@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
|
@@ -16,7 +16,7 @@ import { SearchManagementClient } from "../searchManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
ServicesCheckNameAvailabilityOptionalParams,
|
|
39
39
|
ServicesCheckNameAvailabilityResponse,
|
|
40
40
|
ServicesListByResourceGroupNextResponse,
|
|
41
|
-
ServicesListBySubscriptionNextResponse
|
|
41
|
+
ServicesListBySubscriptionNextResponse,
|
|
42
42
|
} from "../models";
|
|
43
43
|
|
|
44
44
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -62,7 +62,7 @@ export class ServicesImpl implements Services {
|
|
|
62
62
|
*/
|
|
63
63
|
public listByResourceGroup(
|
|
64
64
|
resourceGroupName: string,
|
|
65
|
-
options?: ServicesListByResourceGroupOptionalParams
|
|
65
|
+
options?: ServicesListByResourceGroupOptionalParams,
|
|
66
66
|
): PagedAsyncIterableIterator<SearchService> {
|
|
67
67
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
68
68
|
return {
|
|
@@ -79,16 +79,16 @@ export class ServicesImpl implements Services {
|
|
|
79
79
|
return this.listByResourceGroupPagingPage(
|
|
80
80
|
resourceGroupName,
|
|
81
81
|
options,
|
|
82
|
-
settings
|
|
82
|
+
settings,
|
|
83
83
|
);
|
|
84
|
-
}
|
|
84
|
+
},
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
private async *listByResourceGroupPagingPage(
|
|
89
89
|
resourceGroupName: string,
|
|
90
90
|
options?: ServicesListByResourceGroupOptionalParams,
|
|
91
|
-
settings?: PageSettings
|
|
91
|
+
settings?: PageSettings,
|
|
92
92
|
): AsyncIterableIterator<SearchService[]> {
|
|
93
93
|
let result: ServicesListByResourceGroupResponse;
|
|
94
94
|
let continuationToken = settings?.continuationToken;
|
|
@@ -103,7 +103,7 @@ export class ServicesImpl implements Services {
|
|
|
103
103
|
result = await this._listByResourceGroupNext(
|
|
104
104
|
resourceGroupName,
|
|
105
105
|
continuationToken,
|
|
106
|
-
options
|
|
106
|
+
options,
|
|
107
107
|
);
|
|
108
108
|
continuationToken = result.nextLink;
|
|
109
109
|
let page = result.value || [];
|
|
@@ -114,11 +114,11 @@ export class ServicesImpl implements Services {
|
|
|
114
114
|
|
|
115
115
|
private async *listByResourceGroupPagingAll(
|
|
116
116
|
resourceGroupName: string,
|
|
117
|
-
options?: ServicesListByResourceGroupOptionalParams
|
|
117
|
+
options?: ServicesListByResourceGroupOptionalParams,
|
|
118
118
|
): AsyncIterableIterator<SearchService> {
|
|
119
119
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
120
120
|
resourceGroupName,
|
|
121
|
-
options
|
|
121
|
+
options,
|
|
122
122
|
)) {
|
|
123
123
|
yield* page;
|
|
124
124
|
}
|
|
@@ -129,7 +129,7 @@ export class ServicesImpl implements Services {
|
|
|
129
129
|
* @param options The options parameters.
|
|
130
130
|
*/
|
|
131
131
|
public listBySubscription(
|
|
132
|
-
options?: ServicesListBySubscriptionOptionalParams
|
|
132
|
+
options?: ServicesListBySubscriptionOptionalParams,
|
|
133
133
|
): PagedAsyncIterableIterator<SearchService> {
|
|
134
134
|
const iter = this.listBySubscriptionPagingAll(options);
|
|
135
135
|
return {
|
|
@@ -144,13 +144,13 @@ export class ServicesImpl implements Services {
|
|
|
144
144
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
145
145
|
}
|
|
146
146
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
147
|
-
}
|
|
147
|
+
},
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
private async *listBySubscriptionPagingPage(
|
|
152
152
|
options?: ServicesListBySubscriptionOptionalParams,
|
|
153
|
-
settings?: PageSettings
|
|
153
|
+
settings?: PageSettings,
|
|
154
154
|
): AsyncIterableIterator<SearchService[]> {
|
|
155
155
|
let result: ServicesListBySubscriptionResponse;
|
|
156
156
|
let continuationToken = settings?.continuationToken;
|
|
@@ -171,7 +171,7 @@ export class ServicesImpl implements Services {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
private async *listBySubscriptionPagingAll(
|
|
174
|
-
options?: ServicesListBySubscriptionOptionalParams
|
|
174
|
+
options?: ServicesListBySubscriptionOptionalParams,
|
|
175
175
|
): AsyncIterableIterator<SearchService> {
|
|
176
176
|
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
177
177
|
yield* page;
|
|
@@ -183,12 +183,12 @@ export class ServicesImpl implements Services {
|
|
|
183
183
|
* exists, all properties will be updated with the given values.
|
|
184
184
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
185
185
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
186
|
-
* @param searchServiceName The name of the Azure
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
186
|
+
* @param searchServiceName The name of the Azure AI Search service to create or update. Search service
|
|
187
|
+
* names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or
|
|
188
|
+
* last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in
|
|
189
|
+
* length. Search service names must be globally unique since they are part of the service URI
|
|
190
|
+
* (https://<name>.search.windows.net). You cannot change the service name after the service is
|
|
191
|
+
* created.
|
|
192
192
|
* @param service The definition of the search service to create or update.
|
|
193
193
|
* @param options The options parameters.
|
|
194
194
|
*/
|
|
@@ -196,7 +196,7 @@ export class ServicesImpl implements Services {
|
|
|
196
196
|
resourceGroupName: string,
|
|
197
197
|
searchServiceName: string,
|
|
198
198
|
service: SearchService,
|
|
199
|
-
options?: ServicesCreateOrUpdateOptionalParams
|
|
199
|
+
options?: ServicesCreateOrUpdateOptionalParams,
|
|
200
200
|
): Promise<
|
|
201
201
|
SimplePollerLike<
|
|
202
202
|
OperationState<ServicesCreateOrUpdateResponse>,
|
|
@@ -205,21 +205,20 @@ export class ServicesImpl implements Services {
|
|
|
205
205
|
> {
|
|
206
206
|
const directSendOperation = async (
|
|
207
207
|
args: coreClient.OperationArguments,
|
|
208
|
-
spec: coreClient.OperationSpec
|
|
208
|
+
spec: coreClient.OperationSpec,
|
|
209
209
|
): Promise<ServicesCreateOrUpdateResponse> => {
|
|
210
210
|
return this.client.sendOperationRequest(args, spec);
|
|
211
211
|
};
|
|
212
212
|
const sendOperationFn = async (
|
|
213
213
|
args: coreClient.OperationArguments,
|
|
214
|
-
spec: coreClient.OperationSpec
|
|
214
|
+
spec: coreClient.OperationSpec,
|
|
215
215
|
) => {
|
|
216
|
-
let currentRawResponse:
|
|
217
|
-
|
|
218
|
-
| undefined = undefined;
|
|
216
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
217
|
+
undefined;
|
|
219
218
|
const providedCallback = args.options?.onResponse;
|
|
220
219
|
const callback: coreClient.RawResponseCallback = (
|
|
221
220
|
rawResponse: coreClient.FullOperationResponse,
|
|
222
|
-
flatResponse: unknown
|
|
221
|
+
flatResponse: unknown,
|
|
223
222
|
) => {
|
|
224
223
|
currentRawResponse = rawResponse;
|
|
225
224
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -228,8 +227,8 @@ export class ServicesImpl implements Services {
|
|
|
228
227
|
...args,
|
|
229
228
|
options: {
|
|
230
229
|
...args.options,
|
|
231
|
-
onResponse: callback
|
|
232
|
-
}
|
|
230
|
+
onResponse: callback,
|
|
231
|
+
},
|
|
233
232
|
};
|
|
234
233
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
235
234
|
return {
|
|
@@ -237,22 +236,22 @@ export class ServicesImpl implements Services {
|
|
|
237
236
|
rawResponse: {
|
|
238
237
|
statusCode: currentRawResponse!.status,
|
|
239
238
|
body: currentRawResponse!.parsedBody,
|
|
240
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
241
|
-
}
|
|
239
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
240
|
+
},
|
|
242
241
|
};
|
|
243
242
|
};
|
|
244
243
|
|
|
245
244
|
const lro = createLroSpec({
|
|
246
245
|
sendOperationFn,
|
|
247
246
|
args: { resourceGroupName, searchServiceName, service, options },
|
|
248
|
-
spec: createOrUpdateOperationSpec
|
|
247
|
+
spec: createOrUpdateOperationSpec,
|
|
249
248
|
});
|
|
250
249
|
const poller = await createHttpPoller<
|
|
251
250
|
ServicesCreateOrUpdateResponse,
|
|
252
251
|
OperationState<ServicesCreateOrUpdateResponse>
|
|
253
252
|
>(lro, {
|
|
254
253
|
restoreFrom: options?.resumeFrom,
|
|
255
|
-
intervalInMs: options?.updateIntervalInMs
|
|
254
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
256
255
|
});
|
|
257
256
|
await poller.poll();
|
|
258
257
|
return poller;
|
|
@@ -263,12 +262,12 @@ export class ServicesImpl implements Services {
|
|
|
263
262
|
* exists, all properties will be updated with the given values.
|
|
264
263
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
265
264
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
266
|
-
* @param searchServiceName The name of the Azure
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
265
|
+
* @param searchServiceName The name of the Azure AI Search service to create or update. Search service
|
|
266
|
+
* names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or
|
|
267
|
+
* last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in
|
|
268
|
+
* length. Search service names must be globally unique since they are part of the service URI
|
|
269
|
+
* (https://<name>.search.windows.net). You cannot change the service name after the service is
|
|
270
|
+
* created.
|
|
272
271
|
* @param service The definition of the search service to create or update.
|
|
273
272
|
* @param options The options parameters.
|
|
274
273
|
*/
|
|
@@ -276,13 +275,13 @@ export class ServicesImpl implements Services {
|
|
|
276
275
|
resourceGroupName: string,
|
|
277
276
|
searchServiceName: string,
|
|
278
277
|
service: SearchService,
|
|
279
|
-
options?: ServicesCreateOrUpdateOptionalParams
|
|
278
|
+
options?: ServicesCreateOrUpdateOptionalParams,
|
|
280
279
|
): Promise<ServicesCreateOrUpdateResponse> {
|
|
281
280
|
const poller = await this.beginCreateOrUpdate(
|
|
282
281
|
resourceGroupName,
|
|
283
282
|
searchServiceName,
|
|
284
283
|
service,
|
|
285
|
-
options
|
|
284
|
+
options,
|
|
286
285
|
);
|
|
287
286
|
return poller.pollUntilDone();
|
|
288
287
|
}
|
|
@@ -291,7 +290,7 @@ export class ServicesImpl implements Services {
|
|
|
291
290
|
* Updates an existing search service in the given resource group.
|
|
292
291
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
293
292
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
294
|
-
* @param searchServiceName The name of the Azure
|
|
293
|
+
* @param searchServiceName The name of the Azure AI Search service to update.
|
|
295
294
|
* @param service The definition of the search service to update.
|
|
296
295
|
* @param options The options parameters.
|
|
297
296
|
*/
|
|
@@ -299,11 +298,11 @@ export class ServicesImpl implements Services {
|
|
|
299
298
|
resourceGroupName: string,
|
|
300
299
|
searchServiceName: string,
|
|
301
300
|
service: SearchServiceUpdate,
|
|
302
|
-
options?: ServicesUpdateOptionalParams
|
|
301
|
+
options?: ServicesUpdateOptionalParams,
|
|
303
302
|
): Promise<ServicesUpdateResponse> {
|
|
304
303
|
return this.client.sendOperationRequest(
|
|
305
304
|
{ resourceGroupName, searchServiceName, service, options },
|
|
306
|
-
updateOperationSpec
|
|
305
|
+
updateOperationSpec,
|
|
307
306
|
);
|
|
308
307
|
}
|
|
309
308
|
|
|
@@ -311,18 +310,18 @@ export class ServicesImpl implements Services {
|
|
|
311
310
|
* Gets the search service with the given name in the given resource group.
|
|
312
311
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
313
312
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
314
|
-
* @param searchServiceName The name of the Azure
|
|
315
|
-
*
|
|
313
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
314
|
+
* resource group.
|
|
316
315
|
* @param options The options parameters.
|
|
317
316
|
*/
|
|
318
317
|
get(
|
|
319
318
|
resourceGroupName: string,
|
|
320
319
|
searchServiceName: string,
|
|
321
|
-
options?: ServicesGetOptionalParams
|
|
320
|
+
options?: ServicesGetOptionalParams,
|
|
322
321
|
): Promise<ServicesGetResponse> {
|
|
323
322
|
return this.client.sendOperationRequest(
|
|
324
323
|
{ resourceGroupName, searchServiceName, options },
|
|
325
|
-
getOperationSpec
|
|
324
|
+
getOperationSpec,
|
|
326
325
|
);
|
|
327
326
|
}
|
|
328
327
|
|
|
@@ -330,18 +329,18 @@ export class ServicesImpl implements Services {
|
|
|
330
329
|
* Deletes a search service in the given resource group, along with its associated resources.
|
|
331
330
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
332
331
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
333
|
-
* @param searchServiceName The name of the Azure
|
|
334
|
-
*
|
|
332
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
333
|
+
* resource group.
|
|
335
334
|
* @param options The options parameters.
|
|
336
335
|
*/
|
|
337
336
|
delete(
|
|
338
337
|
resourceGroupName: string,
|
|
339
338
|
searchServiceName: string,
|
|
340
|
-
options?: ServicesDeleteOptionalParams
|
|
339
|
+
options?: ServicesDeleteOptionalParams,
|
|
341
340
|
): Promise<void> {
|
|
342
341
|
return this.client.sendOperationRequest(
|
|
343
342
|
{ resourceGroupName, searchServiceName, options },
|
|
344
|
-
deleteOperationSpec
|
|
343
|
+
deleteOperationSpec,
|
|
345
344
|
);
|
|
346
345
|
}
|
|
347
346
|
|
|
@@ -353,11 +352,11 @@ export class ServicesImpl implements Services {
|
|
|
353
352
|
*/
|
|
354
353
|
private _listByResourceGroup(
|
|
355
354
|
resourceGroupName: string,
|
|
356
|
-
options?: ServicesListByResourceGroupOptionalParams
|
|
355
|
+
options?: ServicesListByResourceGroupOptionalParams,
|
|
357
356
|
): Promise<ServicesListByResourceGroupResponse> {
|
|
358
357
|
return this.client.sendOperationRequest(
|
|
359
358
|
{ resourceGroupName, options },
|
|
360
|
-
listByResourceGroupOperationSpec
|
|
359
|
+
listByResourceGroupOperationSpec,
|
|
361
360
|
);
|
|
362
361
|
}
|
|
363
362
|
|
|
@@ -366,11 +365,11 @@ export class ServicesImpl implements Services {
|
|
|
366
365
|
* @param options The options parameters.
|
|
367
366
|
*/
|
|
368
367
|
private _listBySubscription(
|
|
369
|
-
options?: ServicesListBySubscriptionOptionalParams
|
|
368
|
+
options?: ServicesListBySubscriptionOptionalParams,
|
|
370
369
|
): Promise<ServicesListBySubscriptionResponse> {
|
|
371
370
|
return this.client.sendOperationRequest(
|
|
372
371
|
{ options },
|
|
373
|
-
listBySubscriptionOperationSpec
|
|
372
|
+
listBySubscriptionOperationSpec,
|
|
374
373
|
);
|
|
375
374
|
}
|
|
376
375
|
|
|
@@ -384,11 +383,11 @@ export class ServicesImpl implements Services {
|
|
|
384
383
|
*/
|
|
385
384
|
checkNameAvailability(
|
|
386
385
|
name: string,
|
|
387
|
-
options?: ServicesCheckNameAvailabilityOptionalParams
|
|
386
|
+
options?: ServicesCheckNameAvailabilityOptionalParams,
|
|
388
387
|
): Promise<ServicesCheckNameAvailabilityResponse> {
|
|
389
388
|
return this.client.sendOperationRequest(
|
|
390
389
|
{ name, options },
|
|
391
|
-
checkNameAvailabilityOperationSpec
|
|
390
|
+
checkNameAvailabilityOperationSpec,
|
|
392
391
|
);
|
|
393
392
|
}
|
|
394
393
|
|
|
@@ -402,11 +401,11 @@ export class ServicesImpl implements Services {
|
|
|
402
401
|
private _listByResourceGroupNext(
|
|
403
402
|
resourceGroupName: string,
|
|
404
403
|
nextLink: string,
|
|
405
|
-
options?: ServicesListByResourceGroupNextOptionalParams
|
|
404
|
+
options?: ServicesListByResourceGroupNextOptionalParams,
|
|
406
405
|
): Promise<ServicesListByResourceGroupNextResponse> {
|
|
407
406
|
return this.client.sendOperationRequest(
|
|
408
407
|
{ resourceGroupName, nextLink, options },
|
|
409
|
-
listByResourceGroupNextOperationSpec
|
|
408
|
+
listByResourceGroupNextOperationSpec,
|
|
410
409
|
);
|
|
411
410
|
}
|
|
412
411
|
|
|
@@ -417,11 +416,11 @@ export class ServicesImpl implements Services {
|
|
|
417
416
|
*/
|
|
418
417
|
private _listBySubscriptionNext(
|
|
419
418
|
nextLink: string,
|
|
420
|
-
options?: ServicesListBySubscriptionNextOptionalParams
|
|
419
|
+
options?: ServicesListBySubscriptionNextOptionalParams,
|
|
421
420
|
): Promise<ServicesListBySubscriptionNextResponse> {
|
|
422
421
|
return this.client.sendOperationRequest(
|
|
423
422
|
{ nextLink, options },
|
|
424
|
-
listBySubscriptionNextOperationSpec
|
|
423
|
+
listBySubscriptionNextOperationSpec,
|
|
425
424
|
);
|
|
426
425
|
}
|
|
427
426
|
}
|
|
@@ -429,214 +428,207 @@ export class ServicesImpl implements Services {
|
|
|
429
428
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
430
429
|
|
|
431
430
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
432
|
-
path:
|
|
433
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
431
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
434
432
|
httpMethod: "PUT",
|
|
435
433
|
responses: {
|
|
436
434
|
200: {
|
|
437
|
-
bodyMapper: Mappers.SearchService
|
|
435
|
+
bodyMapper: Mappers.SearchService,
|
|
438
436
|
},
|
|
439
437
|
201: {
|
|
440
|
-
bodyMapper: Mappers.SearchService
|
|
438
|
+
bodyMapper: Mappers.SearchService,
|
|
441
439
|
},
|
|
442
440
|
202: {
|
|
443
|
-
bodyMapper: Mappers.SearchService
|
|
441
|
+
bodyMapper: Mappers.SearchService,
|
|
444
442
|
},
|
|
445
443
|
204: {
|
|
446
|
-
bodyMapper: Mappers.SearchService
|
|
444
|
+
bodyMapper: Mappers.SearchService,
|
|
447
445
|
},
|
|
448
446
|
default: {
|
|
449
|
-
bodyMapper: Mappers.CloudError
|
|
450
|
-
}
|
|
447
|
+
bodyMapper: Mappers.CloudError,
|
|
448
|
+
},
|
|
451
449
|
},
|
|
452
450
|
requestBody: Parameters.service,
|
|
453
451
|
queryParameters: [Parameters.apiVersion],
|
|
454
452
|
urlParameters: [
|
|
455
453
|
Parameters.$host,
|
|
456
454
|
Parameters.resourceGroupName,
|
|
457
|
-
Parameters.
|
|
458
|
-
Parameters.
|
|
455
|
+
Parameters.subscriptionId,
|
|
456
|
+
Parameters.searchServiceName1,
|
|
459
457
|
],
|
|
460
458
|
headerParameters: [
|
|
461
459
|
Parameters.accept,
|
|
462
460
|
Parameters.clientRequestId,
|
|
463
|
-
Parameters.contentType
|
|
461
|
+
Parameters.contentType,
|
|
464
462
|
],
|
|
465
463
|
mediaType: "json",
|
|
466
|
-
serializer
|
|
464
|
+
serializer,
|
|
467
465
|
};
|
|
468
466
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
469
|
-
path:
|
|
470
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
467
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
471
468
|
httpMethod: "PATCH",
|
|
472
469
|
responses: {
|
|
473
470
|
200: {
|
|
474
|
-
bodyMapper: Mappers.SearchService
|
|
471
|
+
bodyMapper: Mappers.SearchService,
|
|
475
472
|
},
|
|
476
473
|
default: {
|
|
477
|
-
bodyMapper: Mappers.CloudError
|
|
478
|
-
}
|
|
474
|
+
bodyMapper: Mappers.CloudError,
|
|
475
|
+
},
|
|
479
476
|
},
|
|
480
477
|
requestBody: Parameters.service1,
|
|
481
478
|
queryParameters: [Parameters.apiVersion],
|
|
482
479
|
urlParameters: [
|
|
483
480
|
Parameters.$host,
|
|
484
481
|
Parameters.resourceGroupName,
|
|
485
|
-
Parameters.
|
|
486
|
-
Parameters.
|
|
482
|
+
Parameters.subscriptionId,
|
|
483
|
+
Parameters.searchServiceName1,
|
|
487
484
|
],
|
|
488
485
|
headerParameters: [
|
|
489
486
|
Parameters.accept,
|
|
490
487
|
Parameters.clientRequestId,
|
|
491
|
-
Parameters.contentType
|
|
488
|
+
Parameters.contentType,
|
|
492
489
|
],
|
|
493
490
|
mediaType: "json",
|
|
494
|
-
serializer
|
|
491
|
+
serializer,
|
|
495
492
|
};
|
|
496
493
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
497
|
-
path:
|
|
498
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
494
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
499
495
|
httpMethod: "GET",
|
|
500
496
|
responses: {
|
|
501
497
|
200: {
|
|
502
|
-
bodyMapper: Mappers.SearchService
|
|
498
|
+
bodyMapper: Mappers.SearchService,
|
|
503
499
|
},
|
|
504
500
|
default: {
|
|
505
|
-
bodyMapper: Mappers.CloudError
|
|
506
|
-
}
|
|
501
|
+
bodyMapper: Mappers.CloudError,
|
|
502
|
+
},
|
|
507
503
|
},
|
|
508
504
|
queryParameters: [Parameters.apiVersion],
|
|
509
505
|
urlParameters: [
|
|
510
506
|
Parameters.$host,
|
|
511
507
|
Parameters.resourceGroupName,
|
|
512
508
|
Parameters.searchServiceName,
|
|
513
|
-
Parameters.subscriptionId
|
|
509
|
+
Parameters.subscriptionId,
|
|
514
510
|
],
|
|
515
511
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
516
|
-
serializer
|
|
512
|
+
serializer,
|
|
517
513
|
};
|
|
518
514
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
519
|
-
path:
|
|
520
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
515
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
521
516
|
httpMethod: "DELETE",
|
|
522
517
|
responses: {
|
|
523
518
|
200: {},
|
|
524
519
|
204: {},
|
|
525
520
|
404: {},
|
|
526
521
|
default: {
|
|
527
|
-
bodyMapper: Mappers.CloudError
|
|
528
|
-
}
|
|
522
|
+
bodyMapper: Mappers.CloudError,
|
|
523
|
+
},
|
|
529
524
|
},
|
|
530
525
|
queryParameters: [Parameters.apiVersion],
|
|
531
526
|
urlParameters: [
|
|
532
527
|
Parameters.$host,
|
|
533
528
|
Parameters.resourceGroupName,
|
|
534
529
|
Parameters.searchServiceName,
|
|
535
|
-
Parameters.subscriptionId
|
|
530
|
+
Parameters.subscriptionId,
|
|
536
531
|
],
|
|
537
532
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
538
|
-
serializer
|
|
533
|
+
serializer,
|
|
539
534
|
};
|
|
540
535
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
541
|
-
path:
|
|
542
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
|
|
536
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
|
|
543
537
|
httpMethod: "GET",
|
|
544
538
|
responses: {
|
|
545
539
|
200: {
|
|
546
|
-
bodyMapper: Mappers.SearchServiceListResult
|
|
540
|
+
bodyMapper: Mappers.SearchServiceListResult,
|
|
547
541
|
},
|
|
548
542
|
default: {
|
|
549
|
-
bodyMapper: Mappers.CloudError
|
|
550
|
-
}
|
|
543
|
+
bodyMapper: Mappers.CloudError,
|
|
544
|
+
},
|
|
551
545
|
},
|
|
552
546
|
queryParameters: [Parameters.apiVersion],
|
|
553
547
|
urlParameters: [
|
|
554
548
|
Parameters.$host,
|
|
555
549
|
Parameters.resourceGroupName,
|
|
556
|
-
Parameters.subscriptionId
|
|
550
|
+
Parameters.subscriptionId,
|
|
557
551
|
],
|
|
558
552
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
559
|
-
serializer
|
|
553
|
+
serializer,
|
|
560
554
|
};
|
|
561
555
|
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
562
|
-
path:
|
|
563
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
|
|
556
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
|
|
564
557
|
httpMethod: "GET",
|
|
565
558
|
responses: {
|
|
566
559
|
200: {
|
|
567
|
-
bodyMapper: Mappers.SearchServiceListResult
|
|
560
|
+
bodyMapper: Mappers.SearchServiceListResult,
|
|
568
561
|
},
|
|
569
562
|
default: {
|
|
570
|
-
bodyMapper: Mappers.CloudError
|
|
571
|
-
}
|
|
563
|
+
bodyMapper: Mappers.CloudError,
|
|
564
|
+
},
|
|
572
565
|
},
|
|
573
566
|
queryParameters: [Parameters.apiVersion],
|
|
574
567
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
575
568
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
576
|
-
serializer
|
|
569
|
+
serializer,
|
|
577
570
|
};
|
|
578
571
|
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
579
|
-
path:
|
|
580
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
|
|
572
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
|
|
581
573
|
httpMethod: "POST",
|
|
582
574
|
responses: {
|
|
583
575
|
200: {
|
|
584
|
-
bodyMapper: Mappers.CheckNameAvailabilityOutput
|
|
576
|
+
bodyMapper: Mappers.CheckNameAvailabilityOutput,
|
|
585
577
|
},
|
|
586
578
|
default: {
|
|
587
|
-
bodyMapper: Mappers.CloudError
|
|
588
|
-
}
|
|
579
|
+
bodyMapper: Mappers.CloudError,
|
|
580
|
+
},
|
|
589
581
|
},
|
|
590
582
|
requestBody: {
|
|
591
583
|
parameterPath: { name: ["name"], typeParam: ["typeParam"] },
|
|
592
|
-
mapper: { ...Mappers.CheckNameAvailabilityInput, required: true }
|
|
584
|
+
mapper: { ...Mappers.CheckNameAvailabilityInput, required: true },
|
|
593
585
|
},
|
|
594
586
|
queryParameters: [Parameters.apiVersion],
|
|
595
587
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
596
588
|
headerParameters: [
|
|
597
589
|
Parameters.accept,
|
|
598
590
|
Parameters.clientRequestId,
|
|
599
|
-
Parameters.contentType
|
|
591
|
+
Parameters.contentType,
|
|
600
592
|
],
|
|
601
593
|
mediaType: "json",
|
|
602
|
-
serializer
|
|
594
|
+
serializer,
|
|
603
595
|
};
|
|
604
596
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
605
597
|
path: "{nextLink}",
|
|
606
598
|
httpMethod: "GET",
|
|
607
599
|
responses: {
|
|
608
600
|
200: {
|
|
609
|
-
bodyMapper: Mappers.SearchServiceListResult
|
|
601
|
+
bodyMapper: Mappers.SearchServiceListResult,
|
|
610
602
|
},
|
|
611
603
|
default: {
|
|
612
|
-
bodyMapper: Mappers.CloudError
|
|
613
|
-
}
|
|
604
|
+
bodyMapper: Mappers.CloudError,
|
|
605
|
+
},
|
|
614
606
|
},
|
|
615
607
|
urlParameters: [
|
|
616
608
|
Parameters.$host,
|
|
617
609
|
Parameters.resourceGroupName,
|
|
618
610
|
Parameters.subscriptionId,
|
|
619
|
-
Parameters.nextLink
|
|
611
|
+
Parameters.nextLink,
|
|
620
612
|
],
|
|
621
613
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
622
|
-
serializer
|
|
614
|
+
serializer,
|
|
623
615
|
};
|
|
624
616
|
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
625
617
|
path: "{nextLink}",
|
|
626
618
|
httpMethod: "GET",
|
|
627
619
|
responses: {
|
|
628
620
|
200: {
|
|
629
|
-
bodyMapper: Mappers.SearchServiceListResult
|
|
621
|
+
bodyMapper: Mappers.SearchServiceListResult,
|
|
630
622
|
},
|
|
631
623
|
default: {
|
|
632
|
-
bodyMapper: Mappers.CloudError
|
|
633
|
-
}
|
|
624
|
+
bodyMapper: Mappers.CloudError,
|
|
625
|
+
},
|
|
634
626
|
},
|
|
635
627
|
urlParameters: [
|
|
636
628
|
Parameters.$host,
|
|
637
629
|
Parameters.subscriptionId,
|
|
638
|
-
Parameters.nextLink
|
|
630
|
+
Parameters.nextLink,
|
|
639
631
|
],
|
|
640
632
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
641
|
-
serializer
|
|
633
|
+
serializer,
|
|
642
634
|
};
|