@azure/arm-search 3.2.0 → 3.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +1805 -777
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/adminKeysGetSample.js +3 -3
- package/dist-esm/samples-dev/adminKeysRegenerateSample.js +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +39 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js +54 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +39 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +3 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +8 -8
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -1
- package/dist-esm/samples-dev/queryKeysCreateSample.js +2 -2
- package/dist-esm/samples-dev/queryKeysCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/queryKeysDeleteSample.js +1 -1
- package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js +3 -3
- package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +81 -19
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +68 -18
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/usageBySubscriptionSkuSample.js +1 -1
- package/dist-esm/samples-dev/usagesListBySubscriptionSample.js +3 -3
- package/dist-esm/samples-dev/usagesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +508 -113
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +90 -12
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +19 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1028 -411
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +85 -57
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/adminKeys.d.ts +5 -5
- package/dist-esm/src/operations/adminKeys.js +15 -15
- package/dist-esm/src/operations/adminKeys.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +79 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +289 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operations/operations.js +5 -5
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +19 -19
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +49 -49
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts +4 -4
- package/dist-esm/src/operations/privateLinkResources.js +10 -10
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/queryKeys.d.ts +12 -12
- package/dist-esm/src/operations/queryKeys.js +32 -32
- package/dist-esm/src/operations/queryKeys.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts +17 -17
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +75 -75
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +21 -21
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/sharedPrivateLinkResources.js +62 -62
- package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts +2 -2
- package/dist-esm/src/operations/usages.js +13 -13
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/services.d.ts +17 -17
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +17 -17
- package/dist-esm/src/operationsInterfaces/usages.d.ts +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/src/searchManagementClient.d.ts +3 -2
- package/dist-esm/src/searchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/searchManagementClient.js +17 -15
- package/dist-esm/src/searchManagementClient.js.map +1 -1
- package/dist-esm/test/search_examples.js.map +1 -1
- package/package.json +12 -11
- package/review/arm-search.api.md +270 -6
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +573 -140
- package/src/models/mappers.ts +1217 -561
- package/src/models/parameters.ts +90 -58
- package/src/operations/adminKeys.ts +22 -24
- package/src/operations/index.ts +1 -0
- package/src/operations/networkSecurityPerimeterConfigurations.ts +400 -0
- package/src/operations/operations.ts +10 -10
- package/src/operations/privateEndpointConnections.ts +74 -77
- package/src/operations/privateLinkResources.ts +21 -22
- package/src/operations/queryKeys.ts +52 -55
- package/src/operations/services.ts +118 -126
- package/src/operations/sharedPrivateLinkResources.ts +103 -108
- package/src/operations/usages.ts +24 -25
- package/src/operationsInterfaces/adminKeys.ts +8 -8
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +90 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +20 -20
- package/src/operationsInterfaces/privateLinkResources.ts +4 -4
- package/src/operationsInterfaces/queryKeys.ts +11 -11
- package/src/operationsInterfaces/services.ts +26 -26
- package/src/operationsInterfaces/sharedPrivateLinkResources.ts +24 -24
- package/src/operationsInterfaces/usages.ts +3 -3
- package/src/pagingHelper.ts +1 -1
- package/src/searchManagementClient.ts +33 -28
- package/types/arm-search.d.ts +650 -171
- package/types/tsdoc-metadata.json +1 -1
|
@@ -24,13 +24,14 @@ import {
|
|
|
24
24
|
PrivateEndpointConnectionsGetResponse,
|
|
25
25
|
PrivateEndpointConnectionsDeleteOptionalParams,
|
|
26
26
|
PrivateEndpointConnectionsDeleteResponse,
|
|
27
|
-
PrivateEndpointConnectionsListByServiceNextResponse
|
|
27
|
+
PrivateEndpointConnectionsListByServiceNextResponse,
|
|
28
28
|
} from "../models";
|
|
29
29
|
|
|
30
30
|
/// <reference lib="esnext.asynciterable" />
|
|
31
31
|
/** Class containing PrivateEndpointConnections operations. */
|
|
32
32
|
export class PrivateEndpointConnectionsImpl
|
|
33
|
-
implements PrivateEndpointConnections
|
|
33
|
+
implements PrivateEndpointConnections
|
|
34
|
+
{
|
|
34
35
|
private readonly client: SearchManagementClient;
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -45,19 +46,19 @@ export class PrivateEndpointConnectionsImpl
|
|
|
45
46
|
* Gets a list of all private endpoint connections in the given service.
|
|
46
47
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
47
48
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
48
|
-
* @param searchServiceName The name of the Azure
|
|
49
|
-
*
|
|
49
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
50
|
+
* resource group.
|
|
50
51
|
* @param options The options parameters.
|
|
51
52
|
*/
|
|
52
53
|
public listByService(
|
|
53
54
|
resourceGroupName: string,
|
|
54
55
|
searchServiceName: string,
|
|
55
|
-
options?: PrivateEndpointConnectionsListByServiceOptionalParams
|
|
56
|
+
options?: PrivateEndpointConnectionsListByServiceOptionalParams,
|
|
56
57
|
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
57
58
|
const iter = this.listByServicePagingAll(
|
|
58
59
|
resourceGroupName,
|
|
59
60
|
searchServiceName,
|
|
60
|
-
options
|
|
61
|
+
options,
|
|
61
62
|
);
|
|
62
63
|
return {
|
|
63
64
|
next() {
|
|
@@ -74,9 +75,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
74
75
|
resourceGroupName,
|
|
75
76
|
searchServiceName,
|
|
76
77
|
options,
|
|
77
|
-
settings
|
|
78
|
+
settings,
|
|
78
79
|
);
|
|
79
|
-
}
|
|
80
|
+
},
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -84,7 +85,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
84
85
|
resourceGroupName: string,
|
|
85
86
|
searchServiceName: string,
|
|
86
87
|
options?: PrivateEndpointConnectionsListByServiceOptionalParams,
|
|
87
|
-
settings?: PageSettings
|
|
88
|
+
settings?: PageSettings,
|
|
88
89
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
89
90
|
let result: PrivateEndpointConnectionsListByServiceResponse;
|
|
90
91
|
let continuationToken = settings?.continuationToken;
|
|
@@ -92,7 +93,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
92
93
|
result = await this._listByService(
|
|
93
94
|
resourceGroupName,
|
|
94
95
|
searchServiceName,
|
|
95
|
-
options
|
|
96
|
+
options,
|
|
96
97
|
);
|
|
97
98
|
let page = result.value || [];
|
|
98
99
|
continuationToken = result.nextLink;
|
|
@@ -104,7 +105,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
104
105
|
resourceGroupName,
|
|
105
106
|
searchServiceName,
|
|
106
107
|
continuationToken,
|
|
107
|
-
options
|
|
108
|
+
options,
|
|
108
109
|
);
|
|
109
110
|
continuationToken = result.nextLink;
|
|
110
111
|
let page = result.value || [];
|
|
@@ -116,25 +117,25 @@ export class PrivateEndpointConnectionsImpl
|
|
|
116
117
|
private async *listByServicePagingAll(
|
|
117
118
|
resourceGroupName: string,
|
|
118
119
|
searchServiceName: string,
|
|
119
|
-
options?: PrivateEndpointConnectionsListByServiceOptionalParams
|
|
120
|
+
options?: PrivateEndpointConnectionsListByServiceOptionalParams,
|
|
120
121
|
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
121
122
|
for await (const page of this.listByServicePagingPage(
|
|
122
123
|
resourceGroupName,
|
|
123
124
|
searchServiceName,
|
|
124
|
-
options
|
|
125
|
+
options,
|
|
125
126
|
)) {
|
|
126
127
|
yield* page;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
/**
|
|
131
|
-
* Updates a
|
|
132
|
+
* Updates a private endpoint connection to the search service in the given resource group.
|
|
132
133
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
133
134
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
134
|
-
* @param searchServiceName The name of the Azure
|
|
135
|
-
*
|
|
136
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
|
|
137
|
-
*
|
|
135
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
136
|
+
* resource group.
|
|
137
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI
|
|
138
|
+
* Search service with the specified resource group.
|
|
138
139
|
* @param privateEndpointConnection The definition of the private endpoint connection to update.
|
|
139
140
|
* @param options The options parameters.
|
|
140
141
|
*/
|
|
@@ -143,7 +144,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
143
144
|
searchServiceName: string,
|
|
144
145
|
privateEndpointConnectionName: string,
|
|
145
146
|
privateEndpointConnection: PrivateEndpointConnection,
|
|
146
|
-
options?: PrivateEndpointConnectionsUpdateOptionalParams
|
|
147
|
+
options?: PrivateEndpointConnectionsUpdateOptionalParams,
|
|
147
148
|
): Promise<PrivateEndpointConnectionsUpdateResponse> {
|
|
148
149
|
return this.client.sendOperationRequest(
|
|
149
150
|
{
|
|
@@ -151,9 +152,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
151
152
|
searchServiceName,
|
|
152
153
|
privateEndpointConnectionName,
|
|
153
154
|
privateEndpointConnection,
|
|
154
|
-
options
|
|
155
|
+
options,
|
|
155
156
|
},
|
|
156
|
-
updateOperationSpec
|
|
157
|
+
updateOperationSpec,
|
|
157
158
|
);
|
|
158
159
|
}
|
|
159
160
|
|
|
@@ -162,26 +163,26 @@ export class PrivateEndpointConnectionsImpl
|
|
|
162
163
|
* group.
|
|
163
164
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
164
165
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
165
|
-
* @param searchServiceName The name of the Azure
|
|
166
|
-
*
|
|
167
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
|
|
168
|
-
*
|
|
166
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
167
|
+
* resource group.
|
|
168
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI
|
|
169
|
+
* Search service with the specified resource group.
|
|
169
170
|
* @param options The options parameters.
|
|
170
171
|
*/
|
|
171
172
|
get(
|
|
172
173
|
resourceGroupName: string,
|
|
173
174
|
searchServiceName: string,
|
|
174
175
|
privateEndpointConnectionName: string,
|
|
175
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
176
|
+
options?: PrivateEndpointConnectionsGetOptionalParams,
|
|
176
177
|
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
177
178
|
return this.client.sendOperationRequest(
|
|
178
179
|
{
|
|
179
180
|
resourceGroupName,
|
|
180
181
|
searchServiceName,
|
|
181
182
|
privateEndpointConnectionName,
|
|
182
|
-
options
|
|
183
|
+
options,
|
|
183
184
|
},
|
|
184
|
-
getOperationSpec
|
|
185
|
+
getOperationSpec,
|
|
185
186
|
);
|
|
186
187
|
}
|
|
187
188
|
|
|
@@ -189,26 +190,26 @@ export class PrivateEndpointConnectionsImpl
|
|
|
189
190
|
* Disconnects the private endpoint connection and deletes it from the search service.
|
|
190
191
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
191
192
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
192
|
-
* @param searchServiceName The name of the Azure
|
|
193
|
-
*
|
|
194
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
|
|
195
|
-
*
|
|
193
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
194
|
+
* resource group.
|
|
195
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI
|
|
196
|
+
* Search service with the specified resource group.
|
|
196
197
|
* @param options The options parameters.
|
|
197
198
|
*/
|
|
198
199
|
delete(
|
|
199
200
|
resourceGroupName: string,
|
|
200
201
|
searchServiceName: string,
|
|
201
202
|
privateEndpointConnectionName: string,
|
|
202
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
203
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
203
204
|
): Promise<PrivateEndpointConnectionsDeleteResponse> {
|
|
204
205
|
return this.client.sendOperationRequest(
|
|
205
206
|
{
|
|
206
207
|
resourceGroupName,
|
|
207
208
|
searchServiceName,
|
|
208
209
|
privateEndpointConnectionName,
|
|
209
|
-
options
|
|
210
|
+
options,
|
|
210
211
|
},
|
|
211
|
-
deleteOperationSpec
|
|
212
|
+
deleteOperationSpec,
|
|
212
213
|
);
|
|
213
214
|
}
|
|
214
215
|
|
|
@@ -216,18 +217,18 @@ export class PrivateEndpointConnectionsImpl
|
|
|
216
217
|
* Gets a list of all private endpoint connections in the given service.
|
|
217
218
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
218
219
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
219
|
-
* @param searchServiceName The name of the Azure
|
|
220
|
-
*
|
|
220
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
221
|
+
* resource group.
|
|
221
222
|
* @param options The options parameters.
|
|
222
223
|
*/
|
|
223
224
|
private _listByService(
|
|
224
225
|
resourceGroupName: string,
|
|
225
226
|
searchServiceName: string,
|
|
226
|
-
options?: PrivateEndpointConnectionsListByServiceOptionalParams
|
|
227
|
+
options?: PrivateEndpointConnectionsListByServiceOptionalParams,
|
|
227
228
|
): Promise<PrivateEndpointConnectionsListByServiceResponse> {
|
|
228
229
|
return this.client.sendOperationRequest(
|
|
229
230
|
{ resourceGroupName, searchServiceName, options },
|
|
230
|
-
listByServiceOperationSpec
|
|
231
|
+
listByServiceOperationSpec,
|
|
231
232
|
);
|
|
232
233
|
}
|
|
233
234
|
|
|
@@ -235,8 +236,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
235
236
|
* ListByServiceNext
|
|
236
237
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
237
238
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
238
|
-
* @param searchServiceName The name of the Azure
|
|
239
|
-
*
|
|
239
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
240
|
+
* resource group.
|
|
240
241
|
* @param nextLink The nextLink from the previous successful call to the ListByService method.
|
|
241
242
|
* @param options The options parameters.
|
|
242
243
|
*/
|
|
@@ -244,11 +245,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
244
245
|
resourceGroupName: string,
|
|
245
246
|
searchServiceName: string,
|
|
246
247
|
nextLink: string,
|
|
247
|
-
options?: PrivateEndpointConnectionsListByServiceNextOptionalParams
|
|
248
|
+
options?: PrivateEndpointConnectionsListByServiceNextOptionalParams,
|
|
248
249
|
): Promise<PrivateEndpointConnectionsListByServiceNextResponse> {
|
|
249
250
|
return this.client.sendOperationRequest(
|
|
250
251
|
{ resourceGroupName, searchServiceName, nextLink, options },
|
|
251
|
-
listByServiceNextOperationSpec
|
|
252
|
+
listByServiceNextOperationSpec,
|
|
252
253
|
);
|
|
253
254
|
}
|
|
254
255
|
}
|
|
@@ -256,16 +257,15 @@ export class PrivateEndpointConnectionsImpl
|
|
|
256
257
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
257
258
|
|
|
258
259
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
259
|
-
path:
|
|
260
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
260
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
261
261
|
httpMethod: "PUT",
|
|
262
262
|
responses: {
|
|
263
263
|
200: {
|
|
264
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
264
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
265
265
|
},
|
|
266
266
|
default: {
|
|
267
|
-
bodyMapper: Mappers.CloudError
|
|
268
|
-
}
|
|
267
|
+
bodyMapper: Mappers.CloudError,
|
|
268
|
+
},
|
|
269
269
|
},
|
|
270
270
|
requestBody: Parameters.privateEndpointConnection,
|
|
271
271
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -274,27 +274,26 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
274
274
|
Parameters.resourceGroupName,
|
|
275
275
|
Parameters.searchServiceName,
|
|
276
276
|
Parameters.subscriptionId,
|
|
277
|
-
Parameters.privateEndpointConnectionName
|
|
277
|
+
Parameters.privateEndpointConnectionName,
|
|
278
278
|
],
|
|
279
279
|
headerParameters: [
|
|
280
280
|
Parameters.accept,
|
|
281
281
|
Parameters.clientRequestId,
|
|
282
|
-
Parameters.contentType
|
|
282
|
+
Parameters.contentType,
|
|
283
283
|
],
|
|
284
284
|
mediaType: "json",
|
|
285
|
-
serializer
|
|
285
|
+
serializer,
|
|
286
286
|
};
|
|
287
287
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
288
|
-
path:
|
|
289
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
288
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
290
289
|
httpMethod: "GET",
|
|
291
290
|
responses: {
|
|
292
291
|
200: {
|
|
293
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
292
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
294
293
|
},
|
|
295
294
|
default: {
|
|
296
|
-
bodyMapper: Mappers.CloudError
|
|
297
|
-
}
|
|
295
|
+
bodyMapper: Mappers.CloudError,
|
|
296
|
+
},
|
|
298
297
|
},
|
|
299
298
|
queryParameters: [Parameters.apiVersion],
|
|
300
299
|
urlParameters: [
|
|
@@ -302,23 +301,22 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
302
301
|
Parameters.resourceGroupName,
|
|
303
302
|
Parameters.searchServiceName,
|
|
304
303
|
Parameters.subscriptionId,
|
|
305
|
-
Parameters.privateEndpointConnectionName
|
|
304
|
+
Parameters.privateEndpointConnectionName,
|
|
306
305
|
],
|
|
307
306
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
308
|
-
serializer
|
|
307
|
+
serializer,
|
|
309
308
|
};
|
|
310
309
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
311
|
-
path:
|
|
312
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
310
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
313
311
|
httpMethod: "DELETE",
|
|
314
312
|
responses: {
|
|
315
313
|
200: {
|
|
316
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
314
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
317
315
|
},
|
|
318
316
|
404: {},
|
|
319
317
|
default: {
|
|
320
|
-
bodyMapper: Mappers.CloudError
|
|
321
|
-
}
|
|
318
|
+
bodyMapper: Mappers.CloudError,
|
|
319
|
+
},
|
|
322
320
|
},
|
|
323
321
|
queryParameters: [Parameters.apiVersion],
|
|
324
322
|
urlParameters: [
|
|
@@ -326,51 +324,50 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
326
324
|
Parameters.resourceGroupName,
|
|
327
325
|
Parameters.searchServiceName,
|
|
328
326
|
Parameters.subscriptionId,
|
|
329
|
-
Parameters.privateEndpointConnectionName
|
|
327
|
+
Parameters.privateEndpointConnectionName,
|
|
330
328
|
],
|
|
331
329
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
332
|
-
serializer
|
|
330
|
+
serializer,
|
|
333
331
|
};
|
|
334
332
|
const listByServiceOperationSpec: coreClient.OperationSpec = {
|
|
335
|
-
path:
|
|
336
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections",
|
|
333
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections",
|
|
337
334
|
httpMethod: "GET",
|
|
338
335
|
responses: {
|
|
339
336
|
200: {
|
|
340
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
337
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
341
338
|
},
|
|
342
339
|
default: {
|
|
343
|
-
bodyMapper: Mappers.CloudError
|
|
344
|
-
}
|
|
340
|
+
bodyMapper: Mappers.CloudError,
|
|
341
|
+
},
|
|
345
342
|
},
|
|
346
343
|
queryParameters: [Parameters.apiVersion],
|
|
347
344
|
urlParameters: [
|
|
348
345
|
Parameters.$host,
|
|
349
346
|
Parameters.resourceGroupName,
|
|
350
347
|
Parameters.searchServiceName,
|
|
351
|
-
Parameters.subscriptionId
|
|
348
|
+
Parameters.subscriptionId,
|
|
352
349
|
],
|
|
353
350
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
354
|
-
serializer
|
|
351
|
+
serializer,
|
|
355
352
|
};
|
|
356
353
|
const listByServiceNextOperationSpec: coreClient.OperationSpec = {
|
|
357
354
|
path: "{nextLink}",
|
|
358
355
|
httpMethod: "GET",
|
|
359
356
|
responses: {
|
|
360
357
|
200: {
|
|
361
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
358
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
362
359
|
},
|
|
363
360
|
default: {
|
|
364
|
-
bodyMapper: Mappers.CloudError
|
|
365
|
-
}
|
|
361
|
+
bodyMapper: Mappers.CloudError,
|
|
362
|
+
},
|
|
366
363
|
},
|
|
367
364
|
urlParameters: [
|
|
368
365
|
Parameters.$host,
|
|
369
366
|
Parameters.resourceGroupName,
|
|
370
367
|
Parameters.searchServiceName,
|
|
371
368
|
Parameters.subscriptionId,
|
|
372
|
-
Parameters.nextLink
|
|
369
|
+
Parameters.nextLink,
|
|
373
370
|
],
|
|
374
371
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
375
|
-
serializer
|
|
372
|
+
serializer,
|
|
376
373
|
};
|
|
@@ -15,7 +15,7 @@ import { SearchManagementClient } from "../searchManagementClient";
|
|
|
15
15
|
import {
|
|
16
16
|
PrivateLinkResource,
|
|
17
17
|
PrivateLinkResourcesListSupportedOptionalParams,
|
|
18
|
-
PrivateLinkResourcesListSupportedResponse
|
|
18
|
+
PrivateLinkResourcesListSupportedResponse,
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -35,19 +35,19 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
35
35
|
* Gets a list of all supported private link resource types for the given service.
|
|
36
36
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
37
37
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
38
|
-
* @param searchServiceName The name of the Azure
|
|
39
|
-
*
|
|
38
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
39
|
+
* resource group.
|
|
40
40
|
* @param options The options parameters.
|
|
41
41
|
*/
|
|
42
42
|
public listSupported(
|
|
43
43
|
resourceGroupName: string,
|
|
44
44
|
searchServiceName: string,
|
|
45
|
-
options?: PrivateLinkResourcesListSupportedOptionalParams
|
|
45
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams,
|
|
46
46
|
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
47
47
|
const iter = this.listSupportedPagingAll(
|
|
48
48
|
resourceGroupName,
|
|
49
49
|
searchServiceName,
|
|
50
|
-
options
|
|
50
|
+
options,
|
|
51
51
|
);
|
|
52
52
|
return {
|
|
53
53
|
next() {
|
|
@@ -64,9 +64,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
64
64
|
resourceGroupName,
|
|
65
65
|
searchServiceName,
|
|
66
66
|
options,
|
|
67
|
-
settings
|
|
67
|
+
settings,
|
|
68
68
|
);
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -74,13 +74,13 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
74
74
|
resourceGroupName: string,
|
|
75
75
|
searchServiceName: string,
|
|
76
76
|
options?: PrivateLinkResourcesListSupportedOptionalParams,
|
|
77
|
-
_settings?: PageSettings
|
|
77
|
+
_settings?: PageSettings,
|
|
78
78
|
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
79
79
|
let result: PrivateLinkResourcesListSupportedResponse;
|
|
80
80
|
result = await this._listSupported(
|
|
81
81
|
resourceGroupName,
|
|
82
82
|
searchServiceName,
|
|
83
|
-
options
|
|
83
|
+
options,
|
|
84
84
|
);
|
|
85
85
|
yield result.value || [];
|
|
86
86
|
}
|
|
@@ -88,12 +88,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
88
88
|
private async *listSupportedPagingAll(
|
|
89
89
|
resourceGroupName: string,
|
|
90
90
|
searchServiceName: string,
|
|
91
|
-
options?: PrivateLinkResourcesListSupportedOptionalParams
|
|
91
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams,
|
|
92
92
|
): AsyncIterableIterator<PrivateLinkResource> {
|
|
93
93
|
for await (const page of this.listSupportedPagingPage(
|
|
94
94
|
resourceGroupName,
|
|
95
95
|
searchServiceName,
|
|
96
|
-
options
|
|
96
|
+
options,
|
|
97
97
|
)) {
|
|
98
98
|
yield* page;
|
|
99
99
|
}
|
|
@@ -103,18 +103,18 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
103
103
|
* Gets a list of all supported private link resource types for the given service.
|
|
104
104
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
105
105
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
106
|
-
* @param searchServiceName The name of the Azure
|
|
107
|
-
*
|
|
106
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
107
|
+
* resource group.
|
|
108
108
|
* @param options The options parameters.
|
|
109
109
|
*/
|
|
110
110
|
private _listSupported(
|
|
111
111
|
resourceGroupName: string,
|
|
112
112
|
searchServiceName: string,
|
|
113
|
-
options?: PrivateLinkResourcesListSupportedOptionalParams
|
|
113
|
+
options?: PrivateLinkResourcesListSupportedOptionalParams,
|
|
114
114
|
): Promise<PrivateLinkResourcesListSupportedResponse> {
|
|
115
115
|
return this.client.sendOperationRequest(
|
|
116
116
|
{ resourceGroupName, searchServiceName, options },
|
|
117
|
-
listSupportedOperationSpec
|
|
117
|
+
listSupportedOperationSpec,
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -122,24 +122,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
122
122
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
123
123
|
|
|
124
124
|
const listSupportedOperationSpec: coreClient.OperationSpec = {
|
|
125
|
-
path:
|
|
126
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources",
|
|
125
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources",
|
|
127
126
|
httpMethod: "GET",
|
|
128
127
|
responses: {
|
|
129
128
|
200: {
|
|
130
|
-
bodyMapper: Mappers.PrivateLinkResourcesResult
|
|
129
|
+
bodyMapper: Mappers.PrivateLinkResourcesResult,
|
|
131
130
|
},
|
|
132
131
|
default: {
|
|
133
|
-
bodyMapper: Mappers.CloudError
|
|
134
|
-
}
|
|
132
|
+
bodyMapper: Mappers.CloudError,
|
|
133
|
+
},
|
|
135
134
|
},
|
|
136
135
|
queryParameters: [Parameters.apiVersion],
|
|
137
136
|
urlParameters: [
|
|
138
137
|
Parameters.$host,
|
|
139
138
|
Parameters.resourceGroupName,
|
|
140
139
|
Parameters.searchServiceName,
|
|
141
|
-
Parameters.subscriptionId
|
|
140
|
+
Parameters.subscriptionId,
|
|
142
141
|
],
|
|
143
142
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
144
|
-
serializer
|
|
143
|
+
serializer,
|
|
145
144
|
};
|