@azure/arm-search 2.0.0 → 3.0.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 (209) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -78
  4. package/dist/index.js +2926 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/{esm/models/adminKeysMappers.js → dist-esm/src/index.js} +5 -2
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +692 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +21 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +35 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +503 -558
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +22 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +92 -47
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/adminKeys.d.ts +33 -0
  29. package/dist-esm/src/operations/adminKeys.d.ts.map +1 -0
  30. package/dist-esm/src/operations/adminKeys.js +90 -0
  31. package/dist-esm/src/operations/adminKeys.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +1 -2
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +26 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +90 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/privateEndpointConnections.d.ts +79 -0
  41. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  42. package/dist-esm/src/operations/privateEndpointConnections.js +273 -0
  43. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  44. package/dist-esm/src/operations/privateLinkResources.d.ts +34 -0
  45. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  46. package/dist-esm/src/operations/privateLinkResources.js +103 -0
  47. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  48. package/dist-esm/src/operations/queryKeys.d.ts +66 -0
  49. package/dist-esm/src/operations/queryKeys.d.ts.map +1 -0
  50. package/dist-esm/src/operations/queryKeys.js +213 -0
  51. package/dist-esm/src/operations/queryKeys.js.map +1 -0
  52. package/dist-esm/src/operations/services.d.ts +123 -0
  53. package/dist-esm/src/operations/services.d.ts.map +1 -0
  54. package/dist-esm/src/operations/services.js +475 -0
  55. package/dist-esm/src/operations/services.js.map +1 -0
  56. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +107 -0
  57. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  58. package/dist-esm/src/operations/sharedPrivateLinkResources.js +379 -0
  59. package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +25 -0
  61. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts.map +1 -0
  62. package/{src/models/adminKeysMappers.ts → dist-esm/src/operationsInterfaces/adminKeys.js} +2 -5
  63. package/dist-esm/src/operationsInterfaces/adminKeys.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/{src/models/queryKeysMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -6
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  74. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -7
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +37 -0
  81. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/queryKeys.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/queryKeys.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/services.d.ts +85 -0
  85. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  86. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/services.js} +2 -1
  87. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
  89. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  92. package/dist-esm/src/searchManagementClient.d.ts +25 -0
  93. package/dist-esm/src/searchManagementClient.d.ts.map +1 -0
  94. package/dist-esm/src/searchManagementClient.js +58 -0
  95. package/dist-esm/src/searchManagementClient.js.map +1 -0
  96. package/dist-esm/test/search_examples.d.ts +4 -0
  97. package/dist-esm/test/search_examples.d.ts.map +1 -0
  98. package/dist-esm/test/search_examples.js +163 -0
  99. package/dist-esm/test/search_examples.js.map +1 -0
  100. package/package.json +65 -32
  101. package/review/arm-search.api.md +600 -0
  102. package/rollup.config.js +181 -30
  103. package/{esm/models/queryKeysMappers.js → src/index.ts} +5 -2
  104. package/src/lroImpl.ts +34 -0
  105. package/src/models/index.ts +563 -1357
  106. package/src/models/mappers.ts +516 -575
  107. package/src/models/parameters.ts +122 -48
  108. package/src/operations/adminKeys.ts +65 -109
  109. package/src/operations/index.ts +1 -2
  110. package/src/operations/operations.ts +64 -39
  111. package/src/operations/privateEndpointConnections.ts +223 -235
  112. package/src/operations/privateLinkResources.ts +100 -54
  113. package/src/operations/queryKeys.ts +192 -190
  114. package/src/operations/services.ts +423 -409
  115. package/src/operations/sharedPrivateLinkResources.ts +390 -232
  116. package/src/operationsInterfaces/adminKeys.ts +48 -0
  117. package/src/operationsInterfaces/index.ts +15 -0
  118. package/src/operationsInterfaces/operations.ts +22 -0
  119. package/src/operationsInterfaces/privateEndpointConnections.ts +88 -0
  120. package/src/operationsInterfaces/privateLinkResources.ts +31 -0
  121. package/src/operationsInterfaces/queryKeys.ts +66 -0
  122. package/src/operationsInterfaces/services.ts +144 -0
  123. package/src/operationsInterfaces/sharedPrivateLinkResources.ts +131 -0
  124. package/src/searchManagementClient.ts +90 -46
  125. package/tsconfig.json +3 -3
  126. package/types/arm-search.d.ts +1104 -0
  127. package/types/tsdoc-metadata.json +11 -0
  128. package/dist/arm-search.js +0 -2737
  129. package/dist/arm-search.js.map +0 -1
  130. package/dist/arm-search.min.js +0 -1
  131. package/dist/arm-search.min.js.map +0 -1
  132. package/esm/models/adminKeysMappers.d.ts +0 -2
  133. package/esm/models/adminKeysMappers.d.ts.map +0 -1
  134. package/esm/models/adminKeysMappers.js.map +0 -1
  135. package/esm/models/index.d.ts +0 -1499
  136. package/esm/models/index.d.ts.map +0 -1
  137. package/esm/models/index.js.map +0 -1
  138. package/esm/models/mappers.d.ts +0 -38
  139. package/esm/models/mappers.d.ts.map +0 -1
  140. package/esm/models/mappers.js.map +0 -1
  141. package/esm/models/operationsMappers.d.ts +0 -2
  142. package/esm/models/operationsMappers.d.ts.map +0 -1
  143. package/esm/models/operationsMappers.js +0 -9
  144. package/esm/models/operationsMappers.js.map +0 -1
  145. package/esm/models/parameters.d.ts +0 -14
  146. package/esm/models/parameters.d.ts.map +0 -1
  147. package/esm/models/parameters.js.map +0 -1
  148. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  149. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  150. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  151. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  152. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  153. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  154. package/esm/models/privateLinkResourcesMappers.js +0 -9
  155. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  156. package/esm/models/queryKeysMappers.d.ts +0 -2
  157. package/esm/models/queryKeysMappers.d.ts.map +0 -1
  158. package/esm/models/queryKeysMappers.js.map +0 -1
  159. package/esm/models/servicesMappers.d.ts +0 -2
  160. package/esm/models/servicesMappers.d.ts.map +0 -1
  161. package/esm/models/servicesMappers.js +0 -9
  162. package/esm/models/servicesMappers.js.map +0 -1
  163. package/esm/models/sharedPrivateLinkResourcesMappers.d.ts +0 -2
  164. package/esm/models/sharedPrivateLinkResourcesMappers.d.ts.map +0 -1
  165. package/esm/models/sharedPrivateLinkResourcesMappers.js +0 -9
  166. package/esm/models/sharedPrivateLinkResourcesMappers.js.map +0 -1
  167. package/esm/operations/adminKeys.d.ts +0 -74
  168. package/esm/operations/adminKeys.d.ts.map +0 -1
  169. package/esm/operations/adminKeys.js +0 -92
  170. package/esm/operations/adminKeys.js.map +0 -1
  171. package/esm/operations/index.d.ts.map +0 -1
  172. package/esm/operations/index.js.map +0 -1
  173. package/esm/operations/operations.d.ts +0 -28
  174. package/esm/operations/operations.d.ts.map +0 -1
  175. package/esm/operations/operations.js +0 -50
  176. package/esm/operations/operations.js.map +0 -1
  177. package/esm/operations/privateEndpointConnections.d.ts +0 -161
  178. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  179. package/esm/operations/privateEndpointConnections.js +0 -197
  180. package/esm/operations/privateEndpointConnections.js.map +0 -1
  181. package/esm/operations/privateLinkResources.d.ts +0 -40
  182. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  183. package/esm/operations/privateLinkResources.js +0 -58
  184. package/esm/operations/privateLinkResources.js.map +0 -1
  185. package/esm/operations/queryKeys.d.ts +0 -120
  186. package/esm/operations/queryKeys.d.ts.map +0 -1
  187. package/esm/operations/queryKeys.js +0 -156
  188. package/esm/operations/queryKeys.js.map +0 -1
  189. package/esm/operations/services.d.ts +0 -225
  190. package/esm/operations/services.d.ts.map +0 -1
  191. package/esm/operations/services.js +0 -355
  192. package/esm/operations/services.js.map +0 -1
  193. package/esm/operations/sharedPrivateLinkResources.d.ts +0 -147
  194. package/esm/operations/sharedPrivateLinkResources.d.ts.map +0 -1
  195. package/esm/operations/sharedPrivateLinkResources.js +0 -255
  196. package/esm/operations/sharedPrivateLinkResources.js.map +0 -1
  197. package/esm/searchManagementClient.d.ts +0 -31
  198. package/esm/searchManagementClient.d.ts.map +0 -1
  199. package/esm/searchManagementClient.js +0 -44
  200. package/esm/searchManagementClient.js.map +0 -1
  201. package/esm/searchManagementClientContext.d.ts +0 -23
  202. package/esm/searchManagementClientContext.d.ts.map +0 -1
  203. package/esm/searchManagementClientContext.js +0 -61
  204. package/esm/searchManagementClientContext.js.map +0 -1
  205. package/src/models/privateEndpointConnectionsMappers.ts +0 -33
  206. package/src/models/privateLinkResourcesMappers.ts +0 -33
  207. package/src/models/servicesMappers.ts +0 -35
  208. package/src/models/sharedPrivateLinkResourcesMappers.ts +0 -33
  209. package/src/searchManagementClientContext.ts +0 -68
@@ -0,0 +1,79 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
3
+ import { SearchManagementClient } from "../searchManagementClient";
4
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListByServiceOptionalParams, PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse } from "../models";
5
+ /** Class containing PrivateEndpointConnections operations. */
6
+ export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PrivateEndpointConnections class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: SearchManagementClient);
13
+ /**
14
+ * Gets a list of all private endpoint connections in the given service.
15
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
16
+ * obtain this value from the Azure Resource Manager API or the portal.
17
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
18
+ * specified resource group.
19
+ * @param options The options parameters.
20
+ */
21
+ listByService(resourceGroupName: string, searchServiceName: string, options?: PrivateEndpointConnectionsListByServiceOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
22
+ private listByServicePagingPage;
23
+ private listByServicePagingAll;
24
+ /**
25
+ * Updates a Private Endpoint connection to the search service in the given resource group.
26
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
27
+ * obtain this value from the Azure Resource Manager API or the portal.
28
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
29
+ * specified resource group.
30
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
31
+ * Cognitive Search service with the specified resource group.
32
+ * @param privateEndpointConnection The definition of the private endpoint connection to update.
33
+ * @param options The options parameters.
34
+ */
35
+ update(resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsUpdateOptionalParams): Promise<PrivateEndpointConnectionsUpdateResponse>;
36
+ /**
37
+ * Gets the details of the private endpoint connection to the search service in the given resource
38
+ * group.
39
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
40
+ * obtain this value from the Azure Resource Manager API or the portal.
41
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
42
+ * specified resource group.
43
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
44
+ * Cognitive Search service with the specified resource group.
45
+ * @param options The options parameters.
46
+ */
47
+ get(resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
48
+ /**
49
+ * Disconnects the private endpoint connection and deletes it from the search service.
50
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
51
+ * obtain this value from the Azure Resource Manager API or the portal.
52
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
53
+ * specified resource group.
54
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
55
+ * Cognitive Search service with the specified resource group.
56
+ * @param options The options parameters.
57
+ */
58
+ delete(resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PrivateEndpointConnectionsDeleteResponse>;
59
+ /**
60
+ * Gets a list of all private endpoint connections in the given service.
61
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
62
+ * obtain this value from the Azure Resource Manager API or the portal.
63
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
64
+ * specified resource group.
65
+ * @param options The options parameters.
66
+ */
67
+ private _listByService;
68
+ /**
69
+ * ListByServiceNext
70
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
71
+ * obtain this value from the Azure Resource Manager API or the portal.
72
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
73
+ * specified resource group.
74
+ * @param nextLink The nextLink from the previous successful call to the ListByService method.
75
+ * @param options The options parameters.
76
+ */
77
+ private _listByServiceNext;
78
+ }
79
+ //# sourceMappingURL=privateEndpointConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAIrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACL,yBAAyB,EAEzB,qDAAqD,EACrD,8CAA8C,EAC9C,wCAAwC,EACxC,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC9C,wCAAwC,EAGzC,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,yBAAyB,CAAC;YAuBzC,uBAAuB;YAwBvB,sBAAsB;IAcrC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAapD;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAYpD;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -0,0 +1,273 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PrivateEndpointConnections operations. */
14
+ export class PrivateEndpointConnectionsImpl {
15
+ /**
16
+ * Initialize a new instance of the class PrivateEndpointConnections class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets a list of all private endpoint connections in the given service.
24
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
25
+ * obtain this value from the Azure Resource Manager API or the portal.
26
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
27
+ * specified resource group.
28
+ * @param options The options parameters.
29
+ */
30
+ listByService(resourceGroupName, searchServiceName, options) {
31
+ const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByServicePagingPage(resourceGroupName, searchServiceName, options);
41
+ }
42
+ };
43
+ }
44
+ listByServicePagingPage(resourceGroupName, searchServiceName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
46
+ let result = yield __await(this._listByService(resourceGroupName, searchServiceName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByServicePagingAll(resourceGroupName, searchServiceName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Updates a Private Endpoint connection to the search service in the given resource group.
76
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
77
+ * obtain this value from the Azure Resource Manager API or the portal.
78
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
79
+ * specified resource group.
80
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
81
+ * Cognitive Search service with the specified resource group.
82
+ * @param privateEndpointConnection The definition of the private endpoint connection to update.
83
+ * @param options The options parameters.
84
+ */
85
+ update(resourceGroupName, searchServiceName, privateEndpointConnectionName, privateEndpointConnection, options) {
86
+ return this.client.sendOperationRequest({
87
+ resourceGroupName,
88
+ searchServiceName,
89
+ privateEndpointConnectionName,
90
+ privateEndpointConnection,
91
+ options
92
+ }, updateOperationSpec);
93
+ }
94
+ /**
95
+ * Gets the details of the private endpoint connection to the search service in the given resource
96
+ * group.
97
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
98
+ * obtain this value from the Azure Resource Manager API or the portal.
99
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
100
+ * specified resource group.
101
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
102
+ * Cognitive Search service with the specified resource group.
103
+ * @param options The options parameters.
104
+ */
105
+ get(resourceGroupName, searchServiceName, privateEndpointConnectionName, options) {
106
+ return this.client.sendOperationRequest({
107
+ resourceGroupName,
108
+ searchServiceName,
109
+ privateEndpointConnectionName,
110
+ options
111
+ }, getOperationSpec);
112
+ }
113
+ /**
114
+ * Disconnects the private endpoint connection and deletes it from the search service.
115
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
116
+ * obtain this value from the Azure Resource Manager API or the portal.
117
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
118
+ * specified resource group.
119
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
120
+ * Cognitive Search service with the specified resource group.
121
+ * @param options The options parameters.
122
+ */
123
+ delete(resourceGroupName, searchServiceName, privateEndpointConnectionName, options) {
124
+ return this.client.sendOperationRequest({
125
+ resourceGroupName,
126
+ searchServiceName,
127
+ privateEndpointConnectionName,
128
+ options
129
+ }, deleteOperationSpec);
130
+ }
131
+ /**
132
+ * Gets a list of all private endpoint connections in the given service.
133
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
134
+ * obtain this value from the Azure Resource Manager API or the portal.
135
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
136
+ * specified resource group.
137
+ * @param options The options parameters.
138
+ */
139
+ _listByService(resourceGroupName, searchServiceName, options) {
140
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listByServiceOperationSpec);
141
+ }
142
+ /**
143
+ * ListByServiceNext
144
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
145
+ * obtain this value from the Azure Resource Manager API or the portal.
146
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
147
+ * specified resource group.
148
+ * @param nextLink The nextLink from the previous successful call to the ListByService method.
149
+ * @param options The options parameters.
150
+ */
151
+ _listByServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
152
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listByServiceNextOperationSpec);
153
+ }
154
+ }
155
+ // Operation Specifications
156
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
157
+ const updateOperationSpec = {
158
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
159
+ httpMethod: "PUT",
160
+ responses: {
161
+ 200: {
162
+ bodyMapper: Mappers.PrivateEndpointConnection
163
+ },
164
+ default: {
165
+ bodyMapper: Mappers.CloudError
166
+ }
167
+ },
168
+ requestBody: Parameters.privateEndpointConnection,
169
+ queryParameters: [Parameters.apiVersion],
170
+ urlParameters: [
171
+ Parameters.$host,
172
+ Parameters.resourceGroupName,
173
+ Parameters.searchServiceName,
174
+ Parameters.subscriptionId,
175
+ Parameters.privateEndpointConnectionName
176
+ ],
177
+ headerParameters: [
178
+ Parameters.accept,
179
+ Parameters.clientRequestId,
180
+ Parameters.contentType
181
+ ],
182
+ mediaType: "json",
183
+ serializer
184
+ };
185
+ const getOperationSpec = {
186
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
187
+ httpMethod: "GET",
188
+ responses: {
189
+ 200: {
190
+ bodyMapper: Mappers.PrivateEndpointConnection
191
+ },
192
+ default: {
193
+ bodyMapper: Mappers.CloudError
194
+ }
195
+ },
196
+ queryParameters: [Parameters.apiVersion],
197
+ urlParameters: [
198
+ Parameters.$host,
199
+ Parameters.resourceGroupName,
200
+ Parameters.searchServiceName,
201
+ Parameters.subscriptionId,
202
+ Parameters.privateEndpointConnectionName
203
+ ],
204
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
205
+ serializer
206
+ };
207
+ const deleteOperationSpec = {
208
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
209
+ httpMethod: "DELETE",
210
+ responses: {
211
+ 200: {
212
+ bodyMapper: Mappers.PrivateEndpointConnection
213
+ },
214
+ 404: {},
215
+ default: {
216
+ bodyMapper: Mappers.CloudError
217
+ }
218
+ },
219
+ queryParameters: [Parameters.apiVersion],
220
+ urlParameters: [
221
+ Parameters.$host,
222
+ Parameters.resourceGroupName,
223
+ Parameters.searchServiceName,
224
+ Parameters.subscriptionId,
225
+ Parameters.privateEndpointConnectionName
226
+ ],
227
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
228
+ serializer
229
+ };
230
+ const listByServiceOperationSpec = {
231
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections",
232
+ httpMethod: "GET",
233
+ responses: {
234
+ 200: {
235
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
236
+ },
237
+ default: {
238
+ bodyMapper: Mappers.CloudError
239
+ }
240
+ },
241
+ queryParameters: [Parameters.apiVersion],
242
+ urlParameters: [
243
+ Parameters.$host,
244
+ Parameters.resourceGroupName,
245
+ Parameters.searchServiceName,
246
+ Parameters.subscriptionId
247
+ ],
248
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
249
+ serializer
250
+ };
251
+ const listByServiceNextOperationSpec = {
252
+ path: "{nextLink}",
253
+ httpMethod: "GET",
254
+ responses: {
255
+ 200: {
256
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
257
+ },
258
+ default: {
259
+ bodyMapper: Mappers.CloudError
260
+ }
261
+ },
262
+ queryParameters: [Parameters.apiVersion],
263
+ urlParameters: [
264
+ Parameters.$host,
265
+ Parameters.resourceGroupName,
266
+ Parameters.searchServiceName,
267
+ Parameters.subscriptionId,
268
+ Parameters.nextLink
269
+ ],
270
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
271
+ serializer
272
+ };
273
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAgBnD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,iBAAyB,EACzB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,uBAAuB,CACjC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,uBAAuB,CACpC,iBAAyB,EACzB,iBAAyB,EACzB,OAA+D;;Y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AAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,6JAA6J;IAC/J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,UAAU;CACX,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateLinkResources } from "../operationsInterfaces";
3
+ import { SearchManagementClient } from "../searchManagementClient";
4
+ import { PrivateLinkResource, PrivateLinkResourcesListSupportedOptionalParams } from "../models";
5
+ /** Class containing PrivateLinkResources operations. */
6
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PrivateLinkResources class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: SearchManagementClient);
13
+ /**
14
+ * Gets a list of all supported private link resource types for the given service.
15
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
16
+ * obtain this value from the Azure Resource Manager API or the portal.
17
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
18
+ * specified resource group.
19
+ * @param options The options parameters.
20
+ */
21
+ listSupported(resourceGroupName: string, searchServiceName: string, options?: PrivateLinkResourcesListSupportedOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
22
+ private listSupportedPagingPage;
23
+ private listSupportedPagingAll;
24
+ /**
25
+ * Gets a list of all supported private link resource types for the given service.
26
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
27
+ * obtain this value from the Azure Resource Manager API or the portal.
28
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
29
+ * specified resource group.
30
+ * @param options The options parameters.
31
+ */
32
+ private _listSupported;
33
+ }
34
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACL,mBAAmB,EACnB,+CAA+C,EAEhD,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,mBAAmB,CAAC;YAuBnC,uBAAuB;YAavB,sBAAsB;IAcrC;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAUvB"}
@@ -0,0 +1,103 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PrivateLinkResources operations. */
14
+ export class PrivateLinkResourcesImpl {
15
+ /**
16
+ * Initialize a new instance of the class PrivateLinkResources class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets a list of all supported private link resource types for the given service.
24
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
25
+ * obtain this value from the Azure Resource Manager API or the portal.
26
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
27
+ * specified resource group.
28
+ * @param options The options parameters.
29
+ */
30
+ listSupported(resourceGroupName, searchServiceName, options) {
31
+ const iter = this.listSupportedPagingAll(resourceGroupName, searchServiceName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listSupportedPagingPage(resourceGroupName, searchServiceName, options);
41
+ }
42
+ };
43
+ }
44
+ listSupportedPagingPage(resourceGroupName, searchServiceName, options) {
45
+ return __asyncGenerator(this, arguments, function* listSupportedPagingPage_1() {
46
+ let result = yield __await(this._listSupported(resourceGroupName, searchServiceName, options));
47
+ yield yield __await(result.value || []);
48
+ });
49
+ }
50
+ listSupportedPagingAll(resourceGroupName, searchServiceName, options) {
51
+ return __asyncGenerator(this, arguments, function* listSupportedPagingAll_1() {
52
+ var e_1, _a;
53
+ try {
54
+ for (var _b = __asyncValues(this.listSupportedPagingPage(resourceGroupName, searchServiceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
55
+ const page = _c.value;
56
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
57
+ }
58
+ }
59
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
60
+ finally {
61
+ try {
62
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
63
+ }
64
+ finally { if (e_1) throw e_1.error; }
65
+ }
66
+ });
67
+ }
68
+ /**
69
+ * Gets a list of all supported private link resource types for the given service.
70
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
71
+ * obtain this value from the Azure Resource Manager API or the portal.
72
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
73
+ * specified resource group.
74
+ * @param options The options parameters.
75
+ */
76
+ _listSupported(resourceGroupName, searchServiceName, options) {
77
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listSupportedOperationSpec);
78
+ }
79
+ }
80
+ // Operation Specifications
81
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
82
+ const listSupportedOperationSpec = {
83
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources",
84
+ httpMethod: "GET",
85
+ responses: {
86
+ 200: {
87
+ bodyMapper: Mappers.PrivateLinkResourcesResult
88
+ },
89
+ default: {
90
+ bodyMapper: Mappers.CloudError
91
+ }
92
+ },
93
+ queryParameters: [Parameters.apiVersion],
94
+ urlParameters: [
95
+ Parameters.$host,
96
+ Parameters.resourceGroupName,
97
+ Parameters.searchServiceName,
98
+ Parameters.subscriptionId
99
+ ],
100
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
101
+ serializer
102
+ };
103
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,iBAAyB,EACzB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,uBAAuB,CACjC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,uBAAuB,CACpC,iBAAyB,EACzB,iBAAyB,EACzB,OAAyD;;YAEzD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,cAAc,CACpC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAA,CAAC;YACF,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,sBAAsB,CACnC,iBAAyB,EACzB,iBAAyB,EACzB,OAAyD;;;;gBAEzD,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,uBAAuB,CACnD,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAA,IAAA;oBAJU,MAAM,IAAI,WAAA,CAAA;oBAKnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;;OAOG;IACK,cAAc,CACpB,iBAAyB,EACzB,iBAAyB,EACzB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,EACjD,0BAA0B,CAC3B,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,uJAAuJ;IACzJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,UAAU;CACX,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { QueryKeys } from "../operationsInterfaces";
3
+ import { SearchManagementClient } from "../searchManagementClient";
4
+ import { QueryKey, QueryKeysListBySearchServiceOptionalParams, QueryKeysCreateOptionalParams, QueryKeysCreateResponse, QueryKeysDeleteOptionalParams } from "../models";
5
+ /** Class containing QueryKeys operations. */
6
+ export declare class QueryKeysImpl implements QueryKeys {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class QueryKeys class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: SearchManagementClient);
13
+ /**
14
+ * Returns the list of query API keys for the given Azure Cognitive Search service.
15
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
16
+ * obtain this value from the Azure Resource Manager API or the portal.
17
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
18
+ * specified resource group.
19
+ * @param options The options parameters.
20
+ */
21
+ listBySearchService(resourceGroupName: string, searchServiceName: string, options?: QueryKeysListBySearchServiceOptionalParams): PagedAsyncIterableIterator<QueryKey>;
22
+ private listBySearchServicePagingPage;
23
+ private listBySearchServicePagingAll;
24
+ /**
25
+ * Generates a new query key for the specified search service. You can create up to 50 query keys per
26
+ * service.
27
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
28
+ * obtain this value from the Azure Resource Manager API or the portal.
29
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
30
+ * specified resource group.
31
+ * @param name The name of the new query API key.
32
+ * @param options The options parameters.
33
+ */
34
+ create(resourceGroupName: string, searchServiceName: string, name: string, options?: QueryKeysCreateOptionalParams): Promise<QueryKeysCreateResponse>;
35
+ /**
36
+ * Returns the list of query API keys for the given Azure Cognitive Search service.
37
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
38
+ * obtain this value from the Azure Resource Manager API or the portal.
39
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
40
+ * specified resource group.
41
+ * @param options The options parameters.
42
+ */
43
+ private _listBySearchService;
44
+ /**
45
+ * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for
46
+ * regenerating a query key is to delete and then recreate it.
47
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
48
+ * obtain this value from the Azure Resource Manager API or the portal.
49
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
50
+ * specified resource group.
51
+ * @param key The query key to be deleted. Query keys are identified by value, not by name.
52
+ * @param options The options parameters.
53
+ */
54
+ delete(resourceGroupName: string, searchServiceName: string, key: string, options?: QueryKeysDeleteOptionalParams): Promise<void>;
55
+ /**
56
+ * ListBySearchServiceNext
57
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
58
+ * obtain this value from the Azure Resource Manager API or the portal.
59
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
60
+ * specified resource group.
61
+ * @param nextLink The nextLink from the previous successful call to the ListBySearchService method.
62
+ * @param options The options parameters.
63
+ */
64
+ private _listBySearchServiceNext;
65
+ }
66
+ //# sourceMappingURL=queryKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryKeys.d.ts","sourceRoot":"","sources":["../../../src/operations/queryKeys.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACL,QAAQ,EAER,0CAA0C,EAC1C,6BAA6B,EAC7B,uBAAuB,EAEvB,6BAA6B,EAE9B,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;;OAOG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,0CAA0C,GACnD,0BAA0B,CAAC,QAAQ,CAAC;YAuBxB,6BAA6B;YAwB7B,4BAA4B;IAc3C;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;OAQG;IACH,OAAO,CAAC,wBAAwB;CAWjC"}