@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,213 @@
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 QueryKeys operations. */
14
+ export class QueryKeysImpl {
15
+ /**
16
+ * Initialize a new instance of the class QueryKeys class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Returns the list of query API keys for the given Azure Cognitive Search 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
+ listBySearchService(resourceGroupName, searchServiceName, options) {
31
+ const iter = this.listBySearchServicePagingAll(resourceGroupName, searchServiceName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listBySearchServicePagingPage(resourceGroupName, searchServiceName, options);
41
+ }
42
+ };
43
+ }
44
+ listBySearchServicePagingPage(resourceGroupName, searchServiceName, options) {
45
+ return __asyncGenerator(this, arguments, function* listBySearchServicePagingPage_1() {
46
+ let result = yield __await(this._listBySearchService(resourceGroupName, searchServiceName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listBySearchServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listBySearchServicePagingAll(resourceGroupName, searchServiceName, options) {
57
+ return __asyncGenerator(this, arguments, function* listBySearchServicePagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listBySearchServicePagingPage(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
+ * Generates a new query key for the specified search service. You can create up to 50 query keys per
76
+ * service.
77
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
78
+ * obtain this value from the Azure Resource Manager API or the portal.
79
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
80
+ * specified resource group.
81
+ * @param name The name of the new query API key.
82
+ * @param options The options parameters.
83
+ */
84
+ create(resourceGroupName, searchServiceName, name, options) {
85
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, name, options }, createOperationSpec);
86
+ }
87
+ /**
88
+ * Returns the list of query API keys for the given Azure Cognitive Search service.
89
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
90
+ * obtain this value from the Azure Resource Manager API or the portal.
91
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
92
+ * specified resource group.
93
+ * @param options The options parameters.
94
+ */
95
+ _listBySearchService(resourceGroupName, searchServiceName, options) {
96
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listBySearchServiceOperationSpec);
97
+ }
98
+ /**
99
+ * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for
100
+ * regenerating a query key is to delete and then recreate it.
101
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
102
+ * obtain this value from the Azure Resource Manager API or the portal.
103
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
104
+ * specified resource group.
105
+ * @param key The query key to be deleted. Query keys are identified by value, not by name.
106
+ * @param options The options parameters.
107
+ */
108
+ delete(resourceGroupName, searchServiceName, key, options) {
109
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, key, options }, deleteOperationSpec);
110
+ }
111
+ /**
112
+ * ListBySearchServiceNext
113
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
114
+ * obtain this value from the Azure Resource Manager API or the portal.
115
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
116
+ * specified resource group.
117
+ * @param nextLink The nextLink from the previous successful call to the ListBySearchService method.
118
+ * @param options The options parameters.
119
+ */
120
+ _listBySearchServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
121
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listBySearchServiceNextOperationSpec);
122
+ }
123
+ }
124
+ // Operation Specifications
125
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
126
+ const createOperationSpec = {
127
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}",
128
+ httpMethod: "POST",
129
+ responses: {
130
+ 200: {
131
+ bodyMapper: Mappers.QueryKey
132
+ },
133
+ default: {
134
+ bodyMapper: Mappers.CloudError
135
+ }
136
+ },
137
+ queryParameters: [Parameters.apiVersion],
138
+ urlParameters: [
139
+ Parameters.$host,
140
+ Parameters.resourceGroupName,
141
+ Parameters.searchServiceName,
142
+ Parameters.subscriptionId,
143
+ Parameters.name
144
+ ],
145
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
146
+ serializer
147
+ };
148
+ const listBySearchServiceOperationSpec = {
149
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys",
150
+ httpMethod: "POST",
151
+ responses: {
152
+ 200: {
153
+ bodyMapper: Mappers.ListQueryKeysResult
154
+ },
155
+ default: {
156
+ bodyMapper: Mappers.CloudError
157
+ }
158
+ },
159
+ queryParameters: [Parameters.apiVersion],
160
+ urlParameters: [
161
+ Parameters.$host,
162
+ Parameters.resourceGroupName,
163
+ Parameters.searchServiceName,
164
+ Parameters.subscriptionId
165
+ ],
166
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
167
+ serializer
168
+ };
169
+ const deleteOperationSpec = {
170
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}",
171
+ httpMethod: "DELETE",
172
+ responses: {
173
+ 200: {},
174
+ 204: {},
175
+ 404: {},
176
+ default: {
177
+ bodyMapper: Mappers.CloudError
178
+ }
179
+ },
180
+ queryParameters: [Parameters.apiVersion],
181
+ urlParameters: [
182
+ Parameters.$host,
183
+ Parameters.resourceGroupName,
184
+ Parameters.searchServiceName,
185
+ Parameters.subscriptionId,
186
+ Parameters.key
187
+ ],
188
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
189
+ serializer
190
+ };
191
+ const listBySearchServiceNextOperationSpec = {
192
+ path: "{nextLink}",
193
+ httpMethod: "GET",
194
+ responses: {
195
+ 200: {
196
+ bodyMapper: Mappers.ListQueryKeysResult
197
+ },
198
+ default: {
199
+ bodyMapper: Mappers.CloudError
200
+ }
201
+ },
202
+ queryParameters: [Parameters.apiVersion],
203
+ urlParameters: [
204
+ Parameters.$host,
205
+ Parameters.resourceGroupName,
206
+ Parameters.searchServiceName,
207
+ Parameters.subscriptionId,
208
+ Parameters.nextLink
209
+ ],
210
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
211
+ serializer
212
+ };
213
+ //# sourceMappingURL=queryKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryKeys.js","sourceRoot":"","sources":["../../../src/operations/queryKeys.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;AAanD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,iBAAyB,EACzB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,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,6BAA6B,CACvC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,iBAAyB,EACzB,OAAoD;;YAEpD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,oBAAoB,CAC1C,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACR,CAAA,CAAC;YACF,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBAC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../operationsInterfaces";
3
+ import { SearchManagementClient } from "../searchManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { SearchService, ServicesListByResourceGroupOptionalParams, ServicesListBySubscriptionOptionalParams, ServicesCreateOrUpdateOptionalParams, ServicesCreateOrUpdateResponse, SearchServiceUpdate, ServicesUpdateOptionalParams, ServicesUpdateResponse, ServicesGetOptionalParams, ServicesGetResponse, ServicesDeleteOptionalParams, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse } from "../models";
6
+ /** Class containing Services operations. */
7
+ export declare class ServicesImpl implements Services {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class Services class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: SearchManagementClient);
14
+ /**
15
+ * Gets a list of all search services in the given resource group.
16
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
17
+ * obtain this value from the Azure Resource Manager API or the portal.
18
+ * @param options The options parameters.
19
+ */
20
+ listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SearchService>;
21
+ private listByResourceGroupPagingPage;
22
+ private listByResourceGroupPagingAll;
23
+ /**
24
+ * Gets a list of all search services in the given subscription.
25
+ * @param options The options parameters.
26
+ */
27
+ listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<SearchService>;
28
+ private listBySubscriptionPagingPage;
29
+ private listBySubscriptionPagingAll;
30
+ /**
31
+ * Creates or updates a search service in the given resource group. If the search service already
32
+ * exists, all properties will be updated with the given values.
33
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
34
+ * obtain this value from the Azure Resource Manager API or the portal.
35
+ * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
36
+ * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
37
+ * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
38
+ * characters in length. Search service names must be globally unique since they are part of the
39
+ * service URI (https://<name>.search.windows.net). You cannot change the service name after the
40
+ * service is created.
41
+ * @param service The definition of the search service to create or update.
42
+ * @param options The options parameters.
43
+ */
44
+ beginCreateOrUpdate(resourceGroupName: string, searchServiceName: string, service: SearchService, options?: ServicesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServicesCreateOrUpdateResponse>, ServicesCreateOrUpdateResponse>>;
45
+ /**
46
+ * Creates or updates a search service in the given resource group. If the search service already
47
+ * exists, all properties will be updated with the given values.
48
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
49
+ * obtain this value from the Azure Resource Manager API or the portal.
50
+ * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
51
+ * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
52
+ * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
53
+ * characters in length. Search service names must be globally unique since they are part of the
54
+ * service URI (https://<name>.search.windows.net). You cannot change the service name after the
55
+ * service is created.
56
+ * @param service The definition of the search service to create or update.
57
+ * @param options The options parameters.
58
+ */
59
+ beginCreateOrUpdateAndWait(resourceGroupName: string, searchServiceName: string, service: SearchService, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServicesCreateOrUpdateResponse>;
60
+ /**
61
+ * Updates an existing search service in the given resource group.
62
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
63
+ * obtain this value from the Azure Resource Manager API or the portal.
64
+ * @param searchServiceName The name of the Azure Cognitive Search service to update.
65
+ * @param service The definition of the search service to update.
66
+ * @param options The options parameters.
67
+ */
68
+ update(resourceGroupName: string, searchServiceName: string, service: SearchServiceUpdate, options?: ServicesUpdateOptionalParams): Promise<ServicesUpdateResponse>;
69
+ /**
70
+ * Gets the search service with the given name in the given resource group.
71
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
72
+ * obtain this value from the Azure Resource Manager API or the portal.
73
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
74
+ * specified resource group.
75
+ * @param options The options parameters.
76
+ */
77
+ get(resourceGroupName: string, searchServiceName: string, options?: ServicesGetOptionalParams): Promise<ServicesGetResponse>;
78
+ /**
79
+ * Deletes a search service in the given resource group, along with its associated resources.
80
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
81
+ * obtain this value from the Azure Resource Manager API or the portal.
82
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
83
+ * specified resource group.
84
+ * @param options The options parameters.
85
+ */
86
+ delete(resourceGroupName: string, searchServiceName: string, options?: ServicesDeleteOptionalParams): Promise<void>;
87
+ /**
88
+ * Gets a list of all search services in the given resource group.
89
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
90
+ * obtain this value from the Azure Resource Manager API or the portal.
91
+ * @param options The options parameters.
92
+ */
93
+ private _listByResourceGroup;
94
+ /**
95
+ * Gets a list of all search services in the given subscription.
96
+ * @param options The options parameters.
97
+ */
98
+ private _listBySubscription;
99
+ /**
100
+ * Checks whether or not the given search service name is available for use. Search service names must
101
+ * be globally unique since they are part of the service URI (https://<name>.search.windows.net).
102
+ * @param name The search service name to validate. Search service names must only contain lowercase
103
+ * letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain
104
+ * consecutive dashes, and must be between 2 and 60 characters in length.
105
+ * @param options The options parameters.
106
+ */
107
+ checkNameAvailability(name: string, options?: ServicesCheckNameAvailabilityOptionalParams): Promise<ServicesCheckNameAvailabilityResponse>;
108
+ /**
109
+ * ListByResourceGroupNext
110
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
111
+ * obtain this value from the Azure Resource Manager API or the portal.
112
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
113
+ * @param options The options parameters.
114
+ */
115
+ private _listByResourceGroupNext;
116
+ /**
117
+ * ListBySubscriptionNext
118
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
119
+ * @param options The options parameters.
120
+ */
121
+ private _listBySubscriptionNext;
122
+ }
123
+ //# sourceMappingURL=services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src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