@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.
Files changed (154) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +1805 -777
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/adminKeysGetSample.js +3 -3
  9. package/dist-esm/samples-dev/adminKeysRegenerateSample.js +1 -1
  10. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +39 -0
  13. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
  14. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js +54 -0
  17. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js.map +1 -0
  18. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +39 -0
  21. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
  22. package/dist-esm/samples-dev/operationsListSample.js +3 -3
  23. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  24. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  26. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +1 -1
  27. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
  28. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +8 -8
  29. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -1
  30. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +1 -1
  31. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -1
  32. package/dist-esm/samples-dev/queryKeysCreateSample.js +2 -2
  33. package/dist-esm/samples-dev/queryKeysCreateSample.js.map +1 -1
  34. package/dist-esm/samples-dev/queryKeysDeleteSample.js +1 -1
  35. package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js +3 -3
  36. package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js.map +1 -1
  37. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +1 -1
  38. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +81 -19
  39. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
  40. package/dist-esm/samples-dev/servicesDeleteSample.js +1 -1
  41. package/dist-esm/samples-dev/servicesGetSample.js +1 -1
  42. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +1 -1
  43. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
  44. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +1 -1
  45. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +1 -1
  46. package/dist-esm/samples-dev/servicesUpdateSample.js +68 -18
  47. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js +4 -4
  49. package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js.map +1 -1
  50. package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.js +1 -1
  51. package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.js +1 -1
  52. package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js +1 -1
  53. package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js.map +1 -1
  54. package/dist-esm/samples-dev/usageBySubscriptionSkuSample.js +1 -1
  55. package/dist-esm/samples-dev/usagesListBySubscriptionSample.js +3 -3
  56. package/dist-esm/samples-dev/usagesListBySubscriptionSample.js.map +1 -1
  57. package/dist-esm/src/lroImpl.js +1 -1
  58. package/dist-esm/src/models/index.d.ts +508 -113
  59. package/dist-esm/src/models/index.d.ts.map +1 -1
  60. package/dist-esm/src/models/index.js +90 -12
  61. package/dist-esm/src/models/index.js.map +1 -1
  62. package/dist-esm/src/models/mappers.d.ts +19 -0
  63. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  64. package/dist-esm/src/models/mappers.js +1028 -411
  65. package/dist-esm/src/models/mappers.js.map +1 -1
  66. package/dist-esm/src/models/parameters.d.ts +2 -0
  67. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  68. package/dist-esm/src/models/parameters.js +85 -57
  69. package/dist-esm/src/models/parameters.js.map +1 -1
  70. package/dist-esm/src/operations/adminKeys.d.ts +5 -5
  71. package/dist-esm/src/operations/adminKeys.js +15 -15
  72. package/dist-esm/src/operations/adminKeys.js.map +1 -1
  73. package/dist-esm/src/operations/index.d.ts +1 -0
  74. package/dist-esm/src/operations/index.d.ts.map +1 -1
  75. package/dist-esm/src/operations/index.js +1 -0
  76. package/dist-esm/src/operations/index.js.map +1 -1
  77. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +79 -0
  78. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  79. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +289 -0
  80. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  81. package/dist-esm/src/operations/operations.js +5 -5
  82. package/dist-esm/src/operations/operations.js.map +1 -1
  83. package/dist-esm/src/operations/privateEndpointConnections.d.ts +19 -19
  84. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  85. package/dist-esm/src/operations/privateEndpointConnections.js +49 -49
  86. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  87. package/dist-esm/src/operations/privateLinkResources.d.ts +4 -4
  88. package/dist-esm/src/operations/privateLinkResources.js +10 -10
  89. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  90. package/dist-esm/src/operations/queryKeys.d.ts +12 -12
  91. package/dist-esm/src/operations/queryKeys.js +32 -32
  92. package/dist-esm/src/operations/queryKeys.js.map +1 -1
  93. package/dist-esm/src/operations/services.d.ts +17 -17
  94. package/dist-esm/src/operations/services.d.ts.map +1 -1
  95. package/dist-esm/src/operations/services.js +75 -75
  96. package/dist-esm/src/operations/services.js.map +1 -1
  97. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +21 -21
  98. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -1
  99. package/dist-esm/src/operations/sharedPrivateLinkResources.js +62 -62
  100. package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -1
  101. package/dist-esm/src/operations/usages.d.ts +2 -2
  102. package/dist-esm/src/operations/usages.js +13 -13
  103. package/dist-esm/src/operations/usages.js.map +1 -1
  104. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +5 -5
  105. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  107. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  108. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  109. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  110. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  111. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  112. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  113. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +15 -15
  114. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +2 -2
  115. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +7 -7
  116. package/dist-esm/src/operationsInterfaces/services.d.ts +17 -17
  117. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +17 -17
  118. package/dist-esm/src/operationsInterfaces/usages.d.ts +1 -1
  119. package/dist-esm/src/pagingHelper.js.map +1 -1
  120. package/dist-esm/src/searchManagementClient.d.ts +3 -2
  121. package/dist-esm/src/searchManagementClient.d.ts.map +1 -1
  122. package/dist-esm/src/searchManagementClient.js +17 -15
  123. package/dist-esm/src/searchManagementClient.js.map +1 -1
  124. package/dist-esm/test/search_examples.js.map +1 -1
  125. package/package.json +12 -11
  126. package/review/arm-search.api.md +270 -6
  127. package/src/lroImpl.ts +3 -3
  128. package/src/models/index.ts +573 -140
  129. package/src/models/mappers.ts +1217 -561
  130. package/src/models/parameters.ts +90 -58
  131. package/src/operations/adminKeys.ts +22 -24
  132. package/src/operations/index.ts +1 -0
  133. package/src/operations/networkSecurityPerimeterConfigurations.ts +400 -0
  134. package/src/operations/operations.ts +10 -10
  135. package/src/operations/privateEndpointConnections.ts +74 -77
  136. package/src/operations/privateLinkResources.ts +21 -22
  137. package/src/operations/queryKeys.ts +52 -55
  138. package/src/operations/services.ts +118 -126
  139. package/src/operations/sharedPrivateLinkResources.ts +103 -108
  140. package/src/operations/usages.ts +24 -25
  141. package/src/operationsInterfaces/adminKeys.ts +8 -8
  142. package/src/operationsInterfaces/index.ts +1 -0
  143. package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +90 -0
  144. package/src/operationsInterfaces/operations.ts +1 -1
  145. package/src/operationsInterfaces/privateEndpointConnections.ts +20 -20
  146. package/src/operationsInterfaces/privateLinkResources.ts +4 -4
  147. package/src/operationsInterfaces/queryKeys.ts +11 -11
  148. package/src/operationsInterfaces/services.ts +26 -26
  149. package/src/operationsInterfaces/sharedPrivateLinkResources.ts +24 -24
  150. package/src/operationsInterfaces/usages.ts +3 -3
  151. package/src/pagingHelper.ts +1 -1
  152. package/src/searchManagementClient.ts +33 -28
  153. package/types/arm-search.d.ts +650 -171
  154. 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 Cognitive Search service to create or update. Search
187
- * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
188
- * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
189
- * characters in length. Search service names must be globally unique since they are part of the
190
- * service URI (https://<name>.search.windows.net). You cannot change the service name after the
191
- * service is created.
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
- | coreClient.FullOperationResponse
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 Cognitive Search service to create or update. Search
267
- * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
268
- * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
269
- * characters in length. Search service names must be globally unique since they are part of the
270
- * service URI (https://<name>.search.windows.net). You cannot change the service name after the
271
- * service is created.
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 Cognitive Search service to update.
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 Cognitive Search service associated with the
315
- * specified resource group.
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 Cognitive Search service associated with the
334
- * specified resource group.
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.searchServiceName,
458
- Parameters.subscriptionId
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.searchServiceName,
486
- Parameters.subscriptionId
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
  };