Skip to content

Commit c3cc9ab

Browse files
authored
Microsoft.Search RP Supports New 2024-06-01-Preview API (Azure#29104)
* Copy files from preview/2024-03-01-preview Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to preview/2024-06-01-preview Updated the API version from preview/2024-03-01-preview to preview/2024-06-01-preview. * Added tag for 2024-06-01-preview in readme file * Add new features for bypass and resourceAccessRules * Prettier fixes * Accumulated fixes * Fix common types, error definition * typo in version * Update examples for provisioning state, add new update example for resource access rules * Add missing example ref * Remove resource access rules, unneeded. Update Bypass description * Fix casing * revert to v2 common types per guidance * revert to v2 common types per guidance
1 parent 6f498e0 commit c3cc9ab

File tree

47 files changed

+6517
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6517
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid",
7+
"sharedPrivateLinkResourceName": "testResource",
8+
"sharedPrivateLinkResource": {
9+
"properties": {
10+
"requestMessage": "please approve",
11+
"groupId": "blob",
12+
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName",
13+
"resourceRegion": null
14+
}
15+
}
16+
},
17+
"responses": {
18+
"202": {
19+
"headers": {
20+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchService/sharedPrivateLinkResources/testResource/operationStatuses/08586060559526078782?api-version=2024-06-01-preview",
21+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchService/sharedPrivateLinkResources/testResource/operationStatuses/08586060559526078782?api-version=2024-06-01-preview"
22+
}
23+
},
24+
"200": {
25+
"body": {
26+
"name": "testResource",
27+
"type": "Microsoft.Search/searchServices/sharedPrivateLinkResources",
28+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource",
29+
"properties": {
30+
"requestMessage": "please approve",
31+
"groupId": "blob",
32+
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName",
33+
"status": "Pending",
34+
"resourceRegion": null
35+
}
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid",
7+
"privateEndpointConnectionName": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
13+
"name": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
14+
"type": "Microsoft.Search/searchServices/privateEndpointConnections",
15+
"properties": {
16+
"privateEndpoint": {
17+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testEndpoint"
18+
},
19+
"privateLinkServiceConnectionState": {
20+
"status": "Disconnected",
21+
"description": "",
22+
"actionsRequired": "None"
23+
}
24+
}
25+
}
26+
},
27+
"404": {}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid",
7+
"sharedPrivateLinkResourceName": "testResource"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource/operationStatuses/159c5e07-c829-4896-8aba-a1d4fcc7c89c?api-version=2024-06-01-preview",
13+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource/operationStatuses/159c5e07-c829-4896-8aba-a1d4fcc7c89c?api-version=2024-06-01-preview"
14+
}
15+
},
16+
"204": {},
17+
"404": {}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid",
7+
"privateEndpointConnectionName": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
13+
"name": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
14+
"type": "Microsoft.Search/searchServices/privateEndpointConnections",
15+
"properties": {
16+
"privateEndpoint": {
17+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testEndpoint"
18+
},
19+
"privateLinkServiceConnectionState": {
20+
"status": "Approved",
21+
"description": "",
22+
"actionsRequired": "None"
23+
}
24+
}
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"location": "westus",
4+
"api-version": "2024-06-01-preview",
5+
"subscriptionId": "subid",
6+
"skuName": "free"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}",
12+
"unit": "Count",
13+
"currentValue": 8,
14+
"limit": 16,
15+
"name": {
16+
"value": "free",
17+
"localizedValue": "F - Free"
18+
}
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"parameters": {
3+
"location": "westus",
4+
"api-version": "2024-06-01-preview",
5+
"subscriptionId": "subid"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/free",
13+
"unit": "Count",
14+
"currentValue": 8,
15+
"limit": 16,
16+
"name": {
17+
"value": "free",
18+
"localizedValue": "F - Free"
19+
}
20+
},
21+
{
22+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/basic",
23+
"unit": "Count",
24+
"currentValue": 8,
25+
"limit": 16,
26+
"name": {
27+
"value": "basic",
28+
"localizedValue": "B - Basic"
29+
}
30+
},
31+
{
32+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/standard",
33+
"unit": "Count",
34+
"currentValue": 8,
35+
"limit": 16,
36+
"name": {
37+
"value": "standard",
38+
"localizedValue": "S - Standard"
39+
}
40+
},
41+
{
42+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/standard2",
43+
"unit": "Count",
44+
"currentValue": 8,
45+
"limit": 16,
46+
"name": {
47+
"value": "standard2",
48+
"localizedValue": "S2 - Standard2"
49+
}
50+
},
51+
{
52+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/standard3",
53+
"unit": "Count",
54+
"currentValue": 8,
55+
"limit": 16,
56+
"name": {
57+
"value": "standard3",
58+
"localizedValue": "S3 - Standard3"
59+
}
60+
},
61+
{
62+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/storageOptimizedL1",
63+
"unit": "Count",
64+
"currentValue": 8,
65+
"limit": 16,
66+
"name": {
67+
"value": "storageOptimizedL1",
68+
"localizedValue": "L1 - Storage Optimized"
69+
}
70+
},
71+
{
72+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/storageOptimizedL2",
73+
"unit": "Count",
74+
"currentValue": 8,
75+
"limit": 16,
76+
"name": {
77+
"value": "storageOptimizedL2",
78+
"localizedValue": "L2 - Storage Optimized"
79+
}
80+
}
81+
],
82+
"nextLink": null
83+
}
84+
}
85+
}
86+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid",
7+
"sharedPrivateLinkResourceName": "testResource"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"name": "testResource",
13+
"type": "Microsoft.Search/searchServices/sharedPrivateLinkResources",
14+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource",
15+
"properties": {
16+
"requestMessage": "please approve",
17+
"groupId": "blob",
18+
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName",
19+
"status": "Pending",
20+
"resourceRegion": null
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
14+
"name": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
15+
"type": "Microsoft.Search/searchServices/privateEndpointConnections",
16+
"properties": {
17+
"privateEndpoint": {
18+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testEndpoint"
19+
},
20+
"privateLinkServiceConnectionState": {
21+
"status": "Approved",
22+
"description": "",
23+
"actionsRequired": "None"
24+
}
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"searchServiceName": "mysearchservice",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2024-06-01-preview",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "testResource",
14+
"type": "Microsoft.Search/searchServices/sharedPrivateLinkResources",
15+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource",
16+
"properties": {
17+
"requestMessage": "please approve",
18+
"groupId": "blob",
19+
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName",
20+
"status": "Pending",
21+
"resourceRegion": null
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)