@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 {
@@ -29,13 +29,14 @@ import {
29
29
  SharedPrivateLinkResourcesGetOptionalParams,
30
30
  SharedPrivateLinkResourcesGetResponse,
31
31
  SharedPrivateLinkResourcesDeleteOptionalParams,
32
- SharedPrivateLinkResourcesListByServiceNextResponse
32
+ SharedPrivateLinkResourcesListByServiceNextResponse,
33
33
  } from "../models";
34
34
 
35
35
  /// <reference lib="esnext.asynciterable" />
36
36
  /** Class containing SharedPrivateLinkResources operations. */
37
37
  export class SharedPrivateLinkResourcesImpl
38
- implements SharedPrivateLinkResources {
38
+ implements SharedPrivateLinkResources
39
+ {
39
40
  private readonly client: SearchManagementClient;
40
41
 
41
42
  /**
@@ -50,19 +51,19 @@ export class SharedPrivateLinkResourcesImpl
50
51
  * Gets a list of all shared private link resources managed by the given service.
51
52
  * @param resourceGroupName The name of the resource group within the current subscription. You can
52
53
  * obtain this value from the Azure Resource Manager API or the portal.
53
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
54
- * specified resource group.
54
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
55
+ * resource group.
55
56
  * @param options The options parameters.
56
57
  */
57
58
  public listByService(
58
59
  resourceGroupName: string,
59
60
  searchServiceName: string,
60
- options?: SharedPrivateLinkResourcesListByServiceOptionalParams
61
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams,
61
62
  ): PagedAsyncIterableIterator<SharedPrivateLinkResource> {
62
63
  const iter = this.listByServicePagingAll(
63
64
  resourceGroupName,
64
65
  searchServiceName,
65
- options
66
+ options,
66
67
  );
67
68
  return {
68
69
  next() {
@@ -79,9 +80,9 @@ export class SharedPrivateLinkResourcesImpl
79
80
  resourceGroupName,
80
81
  searchServiceName,
81
82
  options,
82
- settings
83
+ settings,
83
84
  );
84
- }
85
+ },
85
86
  };
86
87
  }
87
88
 
@@ -89,7 +90,7 @@ export class SharedPrivateLinkResourcesImpl
89
90
  resourceGroupName: string,
90
91
  searchServiceName: string,
91
92
  options?: SharedPrivateLinkResourcesListByServiceOptionalParams,
92
- settings?: PageSettings
93
+ settings?: PageSettings,
93
94
  ): AsyncIterableIterator<SharedPrivateLinkResource[]> {
94
95
  let result: SharedPrivateLinkResourcesListByServiceResponse;
95
96
  let continuationToken = settings?.continuationToken;
@@ -97,7 +98,7 @@ export class SharedPrivateLinkResourcesImpl
97
98
  result = await this._listByService(
98
99
  resourceGroupName,
99
100
  searchServiceName,
100
- options
101
+ options,
101
102
  );
102
103
  let page = result.value || [];
103
104
  continuationToken = result.nextLink;
@@ -109,7 +110,7 @@ export class SharedPrivateLinkResourcesImpl
109
110
  resourceGroupName,
110
111
  searchServiceName,
111
112
  continuationToken,
112
- options
113
+ options,
113
114
  );
114
115
  continuationToken = result.nextLink;
115
116
  let page = result.value || [];
@@ -121,12 +122,12 @@ export class SharedPrivateLinkResourcesImpl
121
122
  private async *listByServicePagingAll(
122
123
  resourceGroupName: string,
123
124
  searchServiceName: string,
124
- options?: SharedPrivateLinkResourcesListByServiceOptionalParams
125
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams,
125
126
  ): AsyncIterableIterator<SharedPrivateLinkResource> {
126
127
  for await (const page of this.listByServicePagingPage(
127
128
  resourceGroupName,
128
129
  searchServiceName,
129
- options
130
+ options,
130
131
  )) {
131
132
  yield* page;
132
133
  }
@@ -137,10 +138,10 @@ export class SharedPrivateLinkResourcesImpl
137
138
  * the given resource group.
138
139
  * @param resourceGroupName The name of the resource group within the current subscription. You can
139
140
  * obtain this value from the Azure Resource Manager API or the portal.
140
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
141
- * specified resource group.
141
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
142
+ * resource group.
142
143
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
143
- * Azure Cognitive Search service within the specified resource group.
144
+ * Azure AI Search service within the specified resource group.
144
145
  * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
145
146
  * update.
146
147
  * @param options The options parameters.
@@ -150,7 +151,7 @@ export class SharedPrivateLinkResourcesImpl
150
151
  searchServiceName: string,
151
152
  sharedPrivateLinkResourceName: string,
152
153
  sharedPrivateLinkResource: SharedPrivateLinkResource,
153
- options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
154
+ options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
154
155
  ): Promise<
155
156
  SimplePollerLike<
156
157
  OperationState<SharedPrivateLinkResourcesCreateOrUpdateResponse>,
@@ -159,21 +160,20 @@ export class SharedPrivateLinkResourcesImpl
159
160
  > {
160
161
  const directSendOperation = async (
161
162
  args: coreClient.OperationArguments,
162
- spec: coreClient.OperationSpec
163
+ spec: coreClient.OperationSpec,
163
164
  ): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse> => {
164
165
  return this.client.sendOperationRequest(args, spec);
165
166
  };
166
167
  const sendOperationFn = async (
167
168
  args: coreClient.OperationArguments,
168
- spec: coreClient.OperationSpec
169
+ spec: coreClient.OperationSpec,
169
170
  ) => {
170
- let currentRawResponse:
171
- | coreClient.FullOperationResponse
172
- | undefined = undefined;
171
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
172
+ undefined;
173
173
  const providedCallback = args.options?.onResponse;
174
174
  const callback: coreClient.RawResponseCallback = (
175
175
  rawResponse: coreClient.FullOperationResponse,
176
- flatResponse: unknown
176
+ flatResponse: unknown,
177
177
  ) => {
178
178
  currentRawResponse = rawResponse;
179
179
  providedCallback?.(rawResponse, flatResponse);
@@ -182,8 +182,8 @@ export class SharedPrivateLinkResourcesImpl
182
182
  ...args,
183
183
  options: {
184
184
  ...args.options,
185
- onResponse: callback
186
- }
185
+ onResponse: callback,
186
+ },
187
187
  };
188
188
  const flatResponse = await directSendOperation(updatedArgs, spec);
189
189
  return {
@@ -191,8 +191,8 @@ export class SharedPrivateLinkResourcesImpl
191
191
  rawResponse: {
192
192
  statusCode: currentRawResponse!.status,
193
193
  body: currentRawResponse!.parsedBody,
194
- headers: currentRawResponse!.headers.toJSON()
195
- }
194
+ headers: currentRawResponse!.headers.toJSON(),
195
+ },
196
196
  };
197
197
  };
198
198
 
@@ -203,9 +203,9 @@ export class SharedPrivateLinkResourcesImpl
203
203
  searchServiceName,
204
204
  sharedPrivateLinkResourceName,
205
205
  sharedPrivateLinkResource,
206
- options
206
+ options,
207
207
  },
208
- spec: createOrUpdateOperationSpec
208
+ spec: createOrUpdateOperationSpec,
209
209
  });
210
210
  const poller = await createHttpPoller<
211
211
  SharedPrivateLinkResourcesCreateOrUpdateResponse,
@@ -213,7 +213,7 @@ export class SharedPrivateLinkResourcesImpl
213
213
  >(lro, {
214
214
  restoreFrom: options?.resumeFrom,
215
215
  intervalInMs: options?.updateIntervalInMs,
216
- resourceLocationConfig: "azure-async-operation"
216
+ resourceLocationConfig: "azure-async-operation",
217
217
  });
218
218
  await poller.poll();
219
219
  return poller;
@@ -224,10 +224,10 @@ export class SharedPrivateLinkResourcesImpl
224
224
  * the given resource group.
225
225
  * @param resourceGroupName The name of the resource group within the current subscription. You can
226
226
  * obtain this value from the Azure Resource Manager API or the portal.
227
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
228
- * specified resource group.
227
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
228
+ * resource group.
229
229
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
230
- * Azure Cognitive Search service within the specified resource group.
230
+ * Azure AI Search service within the specified resource group.
231
231
  * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
232
232
  * update.
233
233
  * @param options The options parameters.
@@ -237,14 +237,14 @@ export class SharedPrivateLinkResourcesImpl
237
237
  searchServiceName: string,
238
238
  sharedPrivateLinkResourceName: string,
239
239
  sharedPrivateLinkResource: SharedPrivateLinkResource,
240
- options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
240
+ options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
241
241
  ): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse> {
242
242
  const poller = await this.beginCreateOrUpdate(
243
243
  resourceGroupName,
244
244
  searchServiceName,
245
245
  sharedPrivateLinkResourceName,
246
246
  sharedPrivateLinkResource,
247
- options
247
+ options,
248
248
  );
249
249
  return poller.pollUntilDone();
250
250
  }
@@ -254,26 +254,26 @@ export class SharedPrivateLinkResourcesImpl
254
254
  * resource group.
255
255
  * @param resourceGroupName The name of the resource group within the current subscription. You can
256
256
  * obtain this value from the Azure Resource Manager API or the portal.
257
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
258
- * specified resource group.
257
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
258
+ * resource group.
259
259
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
260
- * Azure Cognitive Search service within the specified resource group.
260
+ * Azure AI Search service within the specified resource group.
261
261
  * @param options The options parameters.
262
262
  */
263
263
  get(
264
264
  resourceGroupName: string,
265
265
  searchServiceName: string,
266
266
  sharedPrivateLinkResourceName: string,
267
- options?: SharedPrivateLinkResourcesGetOptionalParams
267
+ options?: SharedPrivateLinkResourcesGetOptionalParams,
268
268
  ): Promise<SharedPrivateLinkResourcesGetResponse> {
269
269
  return this.client.sendOperationRequest(
270
270
  {
271
271
  resourceGroupName,
272
272
  searchServiceName,
273
273
  sharedPrivateLinkResourceName,
274
- options
274
+ options,
275
275
  },
276
- getOperationSpec
276
+ getOperationSpec,
277
277
  );
278
278
  }
279
279
 
@@ -281,35 +281,34 @@ export class SharedPrivateLinkResourcesImpl
281
281
  * Initiates the deletion of the shared private link resource from the search service.
282
282
  * @param resourceGroupName The name of the resource group within the current subscription. You can
283
283
  * obtain this value from the Azure Resource Manager API or the portal.
284
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
285
- * specified resource group.
284
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
285
+ * resource group.
286
286
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
287
- * Azure Cognitive Search service within the specified resource group.
287
+ * Azure AI Search service within the specified resource group.
288
288
  * @param options The options parameters.
289
289
  */
290
290
  async beginDelete(
291
291
  resourceGroupName: string,
292
292
  searchServiceName: string,
293
293
  sharedPrivateLinkResourceName: string,
294
- options?: SharedPrivateLinkResourcesDeleteOptionalParams
294
+ options?: SharedPrivateLinkResourcesDeleteOptionalParams,
295
295
  ): Promise<SimplePollerLike<OperationState<void>, void>> {
296
296
  const directSendOperation = async (
297
297
  args: coreClient.OperationArguments,
298
- spec: coreClient.OperationSpec
298
+ spec: coreClient.OperationSpec,
299
299
  ): Promise<void> => {
300
300
  return this.client.sendOperationRequest(args, spec);
301
301
  };
302
302
  const sendOperationFn = async (
303
303
  args: coreClient.OperationArguments,
304
- spec: coreClient.OperationSpec
304
+ spec: coreClient.OperationSpec,
305
305
  ) => {
306
- let currentRawResponse:
307
- | coreClient.FullOperationResponse
308
- | undefined = undefined;
306
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
307
+ undefined;
309
308
  const providedCallback = args.options?.onResponse;
310
309
  const callback: coreClient.RawResponseCallback = (
311
310
  rawResponse: coreClient.FullOperationResponse,
312
- flatResponse: unknown
311
+ flatResponse: unknown,
313
312
  ) => {
314
313
  currentRawResponse = rawResponse;
315
314
  providedCallback?.(rawResponse, flatResponse);
@@ -318,8 +317,8 @@ export class SharedPrivateLinkResourcesImpl
318
317
  ...args,
319
318
  options: {
320
319
  ...args.options,
321
- onResponse: callback
322
- }
320
+ onResponse: callback,
321
+ },
323
322
  };
324
323
  const flatResponse = await directSendOperation(updatedArgs, spec);
325
324
  return {
@@ -327,8 +326,8 @@ export class SharedPrivateLinkResourcesImpl
327
326
  rawResponse: {
328
327
  statusCode: currentRawResponse!.status,
329
328
  body: currentRawResponse!.parsedBody,
330
- headers: currentRawResponse!.headers.toJSON()
331
- }
329
+ headers: currentRawResponse!.headers.toJSON(),
330
+ },
332
331
  };
333
332
  };
334
333
 
@@ -338,14 +337,14 @@ export class SharedPrivateLinkResourcesImpl
338
337
  resourceGroupName,
339
338
  searchServiceName,
340
339
  sharedPrivateLinkResourceName,
341
- options
340
+ options,
342
341
  },
343
- spec: deleteOperationSpec
342
+ spec: deleteOperationSpec,
344
343
  });
345
344
  const poller = await createHttpPoller<void, OperationState<void>>(lro, {
346
345
  restoreFrom: options?.resumeFrom,
347
346
  intervalInMs: options?.updateIntervalInMs,
348
- resourceLocationConfig: "azure-async-operation"
347
+ resourceLocationConfig: "azure-async-operation",
349
348
  });
350
349
  await poller.poll();
351
350
  return poller;
@@ -355,23 +354,23 @@ export class SharedPrivateLinkResourcesImpl
355
354
  * Initiates the deletion of the shared private link resource from the search service.
356
355
  * @param resourceGroupName The name of the resource group within the current subscription. You can
357
356
  * obtain this value from the Azure Resource Manager API or the portal.
358
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
359
- * specified resource group.
357
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
358
+ * resource group.
360
359
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
361
- * Azure Cognitive Search service within the specified resource group.
360
+ * Azure AI Search service within the specified resource group.
362
361
  * @param options The options parameters.
363
362
  */
364
363
  async beginDeleteAndWait(
365
364
  resourceGroupName: string,
366
365
  searchServiceName: string,
367
366
  sharedPrivateLinkResourceName: string,
368
- options?: SharedPrivateLinkResourcesDeleteOptionalParams
367
+ options?: SharedPrivateLinkResourcesDeleteOptionalParams,
369
368
  ): Promise<void> {
370
369
  const poller = await this.beginDelete(
371
370
  resourceGroupName,
372
371
  searchServiceName,
373
372
  sharedPrivateLinkResourceName,
374
- options
373
+ options,
375
374
  );
376
375
  return poller.pollUntilDone();
377
376
  }
@@ -380,18 +379,18 @@ export class SharedPrivateLinkResourcesImpl
380
379
  * Gets a list of all shared private link resources managed by the given service.
381
380
  * @param resourceGroupName The name of the resource group within the current subscription. You can
382
381
  * obtain this value from the Azure Resource Manager API or the portal.
383
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
384
- * specified resource group.
382
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
383
+ * resource group.
385
384
  * @param options The options parameters.
386
385
  */
387
386
  private _listByService(
388
387
  resourceGroupName: string,
389
388
  searchServiceName: string,
390
- options?: SharedPrivateLinkResourcesListByServiceOptionalParams
389
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams,
391
390
  ): Promise<SharedPrivateLinkResourcesListByServiceResponse> {
392
391
  return this.client.sendOperationRequest(
393
392
  { resourceGroupName, searchServiceName, options },
394
- listByServiceOperationSpec
393
+ listByServiceOperationSpec,
395
394
  );
396
395
  }
397
396
 
@@ -399,8 +398,8 @@ export class SharedPrivateLinkResourcesImpl
399
398
  * ListByServiceNext
400
399
  * @param resourceGroupName The name of the resource group within the current subscription. You can
401
400
  * obtain this value from the Azure Resource Manager API or the portal.
402
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
403
- * specified resource group.
401
+ * @param searchServiceName The name of the Azure AI Search service associated with the specified
402
+ * resource group.
404
403
  * @param nextLink The nextLink from the previous successful call to the ListByService method.
405
404
  * @param options The options parameters.
406
405
  */
@@ -408,11 +407,11 @@ export class SharedPrivateLinkResourcesImpl
408
407
  resourceGroupName: string,
409
408
  searchServiceName: string,
410
409
  nextLink: string,
411
- options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams
410
+ options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams,
412
411
  ): Promise<SharedPrivateLinkResourcesListByServiceNextResponse> {
413
412
  return this.client.sendOperationRequest(
414
413
  { resourceGroupName, searchServiceName, nextLink, options },
415
- listByServiceNextOperationSpec
414
+ listByServiceNextOperationSpec,
416
415
  );
417
416
  }
418
417
  }
@@ -420,25 +419,24 @@ export class SharedPrivateLinkResourcesImpl
420
419
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
421
420
 
422
421
  const createOrUpdateOperationSpec: coreClient.OperationSpec = {
423
- path:
424
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
422
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
425
423
  httpMethod: "PUT",
426
424
  responses: {
427
425
  200: {
428
- bodyMapper: Mappers.SharedPrivateLinkResource
426
+ bodyMapper: Mappers.SharedPrivateLinkResource,
429
427
  },
430
428
  201: {
431
- bodyMapper: Mappers.SharedPrivateLinkResource
429
+ bodyMapper: Mappers.SharedPrivateLinkResource,
432
430
  },
433
431
  202: {
434
- bodyMapper: Mappers.SharedPrivateLinkResource
432
+ bodyMapper: Mappers.SharedPrivateLinkResource,
435
433
  },
436
434
  204: {
437
- bodyMapper: Mappers.SharedPrivateLinkResource
435
+ bodyMapper: Mappers.SharedPrivateLinkResource,
438
436
  },
439
437
  default: {
440
- bodyMapper: Mappers.CloudError
441
- }
438
+ bodyMapper: Mappers.CloudError,
439
+ },
442
440
  },
443
441
  requestBody: Parameters.sharedPrivateLinkResource,
444
442
  queryParameters: [Parameters.apiVersion],
@@ -447,27 +445,26 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
447
445
  Parameters.resourceGroupName,
448
446
  Parameters.searchServiceName,
449
447
  Parameters.subscriptionId,
450
- Parameters.sharedPrivateLinkResourceName
448
+ Parameters.sharedPrivateLinkResourceName,
451
449
  ],
452
450
  headerParameters: [
453
451
  Parameters.accept,
454
452
  Parameters.clientRequestId,
455
- Parameters.contentType
453
+ Parameters.contentType,
456
454
  ],
457
455
  mediaType: "json",
458
- serializer
456
+ serializer,
459
457
  };
460
458
  const getOperationSpec: coreClient.OperationSpec = {
461
- path:
462
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
459
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
463
460
  httpMethod: "GET",
464
461
  responses: {
465
462
  200: {
466
- bodyMapper: Mappers.SharedPrivateLinkResource
463
+ bodyMapper: Mappers.SharedPrivateLinkResource,
467
464
  },
468
465
  default: {
469
- bodyMapper: Mappers.CloudError
470
- }
466
+ bodyMapper: Mappers.CloudError,
467
+ },
471
468
  },
472
469
  queryParameters: [Parameters.apiVersion],
473
470
  urlParameters: [
@@ -475,14 +472,13 @@ const getOperationSpec: coreClient.OperationSpec = {
475
472
  Parameters.resourceGroupName,
476
473
  Parameters.searchServiceName,
477
474
  Parameters.subscriptionId,
478
- Parameters.sharedPrivateLinkResourceName
475
+ Parameters.sharedPrivateLinkResourceName,
479
476
  ],
480
477
  headerParameters: [Parameters.accept, Parameters.clientRequestId],
481
- serializer
478
+ serializer,
482
479
  };
483
480
  const deleteOperationSpec: coreClient.OperationSpec = {
484
- path:
485
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
481
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
486
482
  httpMethod: "DELETE",
487
483
  responses: {
488
484
  200: {},
@@ -490,8 +486,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
490
486
  202: {},
491
487
  204: {},
492
488
  default: {
493
- bodyMapper: Mappers.CloudError
494
- }
489
+ bodyMapper: Mappers.CloudError,
490
+ },
495
491
  },
496
492
  queryParameters: [Parameters.apiVersion],
497
493
  urlParameters: [
@@ -499,51 +495,50 @@ const deleteOperationSpec: coreClient.OperationSpec = {
499
495
  Parameters.resourceGroupName,
500
496
  Parameters.searchServiceName,
501
497
  Parameters.subscriptionId,
502
- Parameters.sharedPrivateLinkResourceName
498
+ Parameters.sharedPrivateLinkResourceName,
503
499
  ],
504
500
  headerParameters: [Parameters.accept, Parameters.clientRequestId],
505
- serializer
501
+ serializer,
506
502
  };
507
503
  const listByServiceOperationSpec: coreClient.OperationSpec = {
508
- path:
509
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
504
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
510
505
  httpMethod: "GET",
511
506
  responses: {
512
507
  200: {
513
- bodyMapper: Mappers.SharedPrivateLinkResourceListResult
508
+ bodyMapper: Mappers.SharedPrivateLinkResourceListResult,
514
509
  },
515
510
  default: {
516
- bodyMapper: Mappers.CloudError
517
- }
511
+ bodyMapper: Mappers.CloudError,
512
+ },
518
513
  },
519
514
  queryParameters: [Parameters.apiVersion],
520
515
  urlParameters: [
521
516
  Parameters.$host,
522
517
  Parameters.resourceGroupName,
523
518
  Parameters.searchServiceName,
524
- Parameters.subscriptionId
519
+ Parameters.subscriptionId,
525
520
  ],
526
521
  headerParameters: [Parameters.accept, Parameters.clientRequestId],
527
- serializer
522
+ serializer,
528
523
  };
529
524
  const listByServiceNextOperationSpec: coreClient.OperationSpec = {
530
525
  path: "{nextLink}",
531
526
  httpMethod: "GET",
532
527
  responses: {
533
528
  200: {
534
- bodyMapper: Mappers.SharedPrivateLinkResourceListResult
529
+ bodyMapper: Mappers.SharedPrivateLinkResourceListResult,
535
530
  },
536
531
  default: {
537
- bodyMapper: Mappers.CloudError
538
- }
532
+ bodyMapper: Mappers.CloudError,
533
+ },
539
534
  },
540
535
  urlParameters: [
541
536
  Parameters.$host,
542
537
  Parameters.resourceGroupName,
543
538
  Parameters.searchServiceName,
544
539
  Parameters.subscriptionId,
545
- Parameters.nextLink
540
+ Parameters.nextLink,
546
541
  ],
547
542
  headerParameters: [Parameters.accept, Parameters.clientRequestId],
548
- serializer
543
+ serializer,
549
544
  };