@azure/arm-search 1.3.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 (199) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +21 -21
  3. package/README.md +98 -96
  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/dist-esm/src/index.js +12 -0
  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/dist-esm/src/models/mappers.js +1013 -0
  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/dist-esm/src/models/parameters.js +182 -0
  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/dist-esm/src/operations/index.d.ts +8 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/src/operations/index.js +15 -0
  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/dist-esm/src/operationsInterfaces/adminKeys.js +9 -0
  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/dist-esm/src/operationsInterfaces/operations.js +9 -0
  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/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  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/dist-esm/src/operationsInterfaces/services.js +9 -0
  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 +70 -34
  101. package/review/arm-search.api.md +600 -0
  102. package/rollup.config.js +184 -27
  103. package/src/index.ts +12 -0
  104. package/src/lroImpl.ts +34 -0
  105. package/src/models/index.ts +837 -0
  106. package/src/models/mappers.ts +1092 -0
  107. package/src/models/parameters.ts +213 -0
  108. package/src/operations/adminKeys.ts +122 -0
  109. package/{lib → src}/operations/index.ts +6 -5
  110. package/src/operations/operations.ts +98 -0
  111. package/src/operations/privateEndpointConnections.ts +363 -0
  112. package/src/operations/privateLinkResources.ts +139 -0
  113. package/src/operations/queryKeys.ts +288 -0
  114. package/src/operations/services.ts +606 -0
  115. package/src/operations/sharedPrivateLinkResources.ts +525 -0
  116. package/src/operationsInterfaces/adminKeys.ts +48 -0
  117. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +7 -6
  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 +104 -0
  125. package/tsconfig.json +4 -4
  126. package/types/arm-search.d.ts +1104 -0
  127. package/types/tsdoc-metadata.json +11 -0
  128. package/dist/arm-search.js +0 -1329
  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 +0 -11
  135. package/esm/models/adminKeysMappers.js.map +0 -1
  136. package/esm/models/index.d.ts +0 -788
  137. package/esm/models/index.d.ts.map +0 -1
  138. package/esm/models/index.js +0 -10
  139. package/esm/models/index.js.map +0 -1
  140. package/esm/models/mappers.d.ts +0 -18
  141. package/esm/models/mappers.d.ts.map +0 -1
  142. package/esm/models/mappers.js +0 -438
  143. package/esm/models/mappers.js.map +0 -1
  144. package/esm/models/operationsMappers.d.ts +0 -2
  145. package/esm/models/operationsMappers.d.ts.map +0 -1
  146. package/esm/models/operationsMappers.js +0 -11
  147. package/esm/models/operationsMappers.js.map +0 -1
  148. package/esm/models/parameters.d.ts +0 -11
  149. package/esm/models/parameters.d.ts.map +0 -1
  150. package/esm/models/parameters.js +0 -107
  151. package/esm/models/parameters.js.map +0 -1
  152. package/esm/models/queryKeysMappers.d.ts +0 -2
  153. package/esm/models/queryKeysMappers.d.ts.map +0 -1
  154. package/esm/models/queryKeysMappers.js +0 -11
  155. package/esm/models/queryKeysMappers.js.map +0 -1
  156. package/esm/models/servicesMappers.d.ts +0 -2
  157. package/esm/models/servicesMappers.d.ts.map +0 -1
  158. package/esm/models/servicesMappers.js +0 -11
  159. package/esm/models/servicesMappers.js.map +0 -1
  160. package/esm/operations/adminKeys.d.ts +0 -74
  161. package/esm/operations/adminKeys.d.ts.map +0 -1
  162. package/esm/operations/adminKeys.js +0 -93
  163. package/esm/operations/adminKeys.js.map +0 -1
  164. package/esm/operations/index.d.ts +0 -5
  165. package/esm/operations/index.d.ts.map +0 -1
  166. package/esm/operations/index.js.map +0 -1
  167. package/esm/operations/operations.d.ts +0 -28
  168. package/esm/operations/operations.d.ts.map +0 -1
  169. package/esm/operations/operations.js +0 -51
  170. package/esm/operations/operations.js.map +0 -1
  171. package/esm/operations/queryKeys.d.ts +0 -102
  172. package/esm/operations/queryKeys.d.ts.map +0 -1
  173. package/esm/operations/queryKeys.js +0 -127
  174. package/esm/operations/queryKeys.js.map +0 -1
  175. package/esm/operations/services.d.ts +0 -174
  176. package/esm/operations/services.d.ts.map +0 -1
  177. package/esm/operations/services.js +0 -268
  178. package/esm/operations/services.js.map +0 -1
  179. package/esm/searchManagementClient.d.ts +0 -22
  180. package/esm/searchManagementClient.d.ts.map +0 -1
  181. package/esm/searchManagementClient.js +0 -37
  182. package/esm/searchManagementClient.js.map +0 -1
  183. package/esm/searchManagementClientContext.d.ts +0 -17
  184. package/esm/searchManagementClientContext.d.ts.map +0 -1
  185. package/esm/searchManagementClientContext.js +0 -57
  186. package/esm/searchManagementClientContext.js.map +0 -1
  187. package/lib/models/adminKeysMappers.ts +0 -15
  188. package/lib/models/index.ts +0 -842
  189. package/lib/models/mappers.ts +0 -462
  190. package/lib/models/operationsMappers.ts +0 -17
  191. package/lib/models/parameters.ts +0 -109
  192. package/lib/models/queryKeysMappers.ts +0 -16
  193. package/lib/models/servicesMappers.ts +0 -22
  194. package/lib/operations/adminKeys.ts +0 -167
  195. package/lib/operations/operations.ts +0 -74
  196. package/lib/operations/queryKeys.ts +0 -234
  197. package/lib/operations/services.ts +0 -439
  198. package/lib/searchManagementClient.ts +0 -49
  199. package/lib/searchManagementClientContext.ts +0 -63
@@ -0,0 +1,475 @@
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, __awaiter } 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
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing Services operations. */
16
+ export class ServicesImpl {
17
+ /**
18
+ * Initialize a new instance of the class Services class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Gets a list of all search services 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 options The options parameters.
29
+ */
30
+ listByResourceGroup(resourceGroupName, options) {
31
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
41
+ }
42
+ };
43
+ }
44
+ listByResourceGroupPagingPage(resourceGroupName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
46
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByResourceGroupPagingAll(resourceGroupName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, 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
+ * Gets a list of all search services in the given subscription.
76
+ * @param options The options parameters.
77
+ */
78
+ listBySubscription(options) {
79
+ const iter = this.listBySubscriptionPagingAll(options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.listBySubscriptionPagingPage(options);
89
+ }
90
+ };
91
+ }
92
+ listBySubscriptionPagingPage(options) {
93
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
94
+ let result = yield __await(this._listBySubscription(options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ listBySubscriptionPagingAll(options) {
105
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
109
+ const page = _c.value;
110
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
111
+ }
112
+ }
113
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
+ finally {
115
+ try {
116
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
117
+ }
118
+ finally { if (e_2) throw e_2.error; }
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Creates or updates a search service in the given resource group. If the search service already
124
+ * exists, all properties will be updated with the given values.
125
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
126
+ * obtain this value from the Azure Resource Manager API or the portal.
127
+ * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
128
+ * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
129
+ * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
130
+ * characters in length. Search service names must be globally unique since they are part of the
131
+ * service URI (https://<name>.search.windows.net). You cannot change the service name after the
132
+ * service is created.
133
+ * @param service The definition of the search service to create or update.
134
+ * @param options The options parameters.
135
+ */
136
+ beginCreateOrUpdate(resourceGroupName, searchServiceName, service, options) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
139
+ return this.client.sendOperationRequest(args, spec);
140
+ });
141
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
142
+ var _a;
143
+ let currentRawResponse = undefined;
144
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
145
+ const callback = (rawResponse, flatResponse) => {
146
+ currentRawResponse = rawResponse;
147
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
148
+ };
149
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
150
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
151
+ return {
152
+ flatResponse,
153
+ rawResponse: {
154
+ statusCode: currentRawResponse.status,
155
+ body: currentRawResponse.parsedBody,
156
+ headers: currentRawResponse.headers.toJSON()
157
+ }
158
+ };
159
+ });
160
+ const lro = new LroImpl(sendOperation, { resourceGroupName, searchServiceName, service, options }, createOrUpdateOperationSpec);
161
+ return new LroEngine(lro, {
162
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
163
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
164
+ });
165
+ });
166
+ }
167
+ /**
168
+ * Creates or updates a search service in the given resource group. If the search service already
169
+ * exists, all properties will be updated with the given values.
170
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
171
+ * obtain this value from the Azure Resource Manager API or the portal.
172
+ * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
173
+ * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
174
+ * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
175
+ * characters in length. Search service names must be globally unique since they are part of the
176
+ * service URI (https://<name>.search.windows.net). You cannot change the service name after the
177
+ * service is created.
178
+ * @param service The definition of the search service to create or update.
179
+ * @param options The options parameters.
180
+ */
181
+ beginCreateOrUpdateAndWait(resourceGroupName, searchServiceName, service, options) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, searchServiceName, service, options);
184
+ return poller.pollUntilDone();
185
+ });
186
+ }
187
+ /**
188
+ * Updates an existing search service in the given resource group.
189
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
190
+ * obtain this value from the Azure Resource Manager API or the portal.
191
+ * @param searchServiceName The name of the Azure Cognitive Search service to update.
192
+ * @param service The definition of the search service to update.
193
+ * @param options The options parameters.
194
+ */
195
+ update(resourceGroupName, searchServiceName, service, options) {
196
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, service, options }, updateOperationSpec);
197
+ }
198
+ /**
199
+ * Gets the search service with the given name in the given resource group.
200
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
201
+ * obtain this value from the Azure Resource Manager API or the portal.
202
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
203
+ * specified resource group.
204
+ * @param options The options parameters.
205
+ */
206
+ get(resourceGroupName, searchServiceName, options) {
207
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, getOperationSpec);
208
+ }
209
+ /**
210
+ * Deletes a search service in the given resource group, along with its associated resources.
211
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
212
+ * obtain this value from the Azure Resource Manager API or the portal.
213
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
214
+ * specified resource group.
215
+ * @param options The options parameters.
216
+ */
217
+ delete(resourceGroupName, searchServiceName, options) {
218
+ return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, deleteOperationSpec);
219
+ }
220
+ /**
221
+ * Gets a list of all search services in the given resource group.
222
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
223
+ * obtain this value from the Azure Resource Manager API or the portal.
224
+ * @param options The options parameters.
225
+ */
226
+ _listByResourceGroup(resourceGroupName, options) {
227
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
228
+ }
229
+ /**
230
+ * Gets a list of all search services in the given subscription.
231
+ * @param options The options parameters.
232
+ */
233
+ _listBySubscription(options) {
234
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
235
+ }
236
+ /**
237
+ * Checks whether or not the given search service name is available for use. Search service names must
238
+ * be globally unique since they are part of the service URI (https://<name>.search.windows.net).
239
+ * @param name The search service name to validate. Search service names must only contain lowercase
240
+ * letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain
241
+ * consecutive dashes, and must be between 2 and 60 characters in length.
242
+ * @param options The options parameters.
243
+ */
244
+ checkNameAvailability(name, options) {
245
+ return this.client.sendOperationRequest({ name, options }, checkNameAvailabilityOperationSpec);
246
+ }
247
+ /**
248
+ * ListByResourceGroupNext
249
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
250
+ * obtain this value from the Azure Resource Manager API or the portal.
251
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
252
+ * @param options The options parameters.
253
+ */
254
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
255
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
256
+ }
257
+ /**
258
+ * ListBySubscriptionNext
259
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
260
+ * @param options The options parameters.
261
+ */
262
+ _listBySubscriptionNext(nextLink, options) {
263
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
264
+ }
265
+ }
266
+ // Operation Specifications
267
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
268
+ const createOrUpdateOperationSpec = {
269
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
270
+ httpMethod: "PUT",
271
+ responses: {
272
+ 200: {
273
+ bodyMapper: Mappers.SearchService
274
+ },
275
+ 201: {
276
+ bodyMapper: Mappers.SearchService
277
+ },
278
+ 202: {
279
+ bodyMapper: Mappers.SearchService
280
+ },
281
+ 204: {
282
+ bodyMapper: Mappers.SearchService
283
+ },
284
+ default: {
285
+ bodyMapper: Mappers.CloudError
286
+ }
287
+ },
288
+ requestBody: Parameters.service,
289
+ queryParameters: [Parameters.apiVersion],
290
+ urlParameters: [
291
+ Parameters.$host,
292
+ Parameters.resourceGroupName,
293
+ Parameters.searchServiceName,
294
+ Parameters.subscriptionId
295
+ ],
296
+ headerParameters: [
297
+ Parameters.accept,
298
+ Parameters.clientRequestId,
299
+ Parameters.contentType
300
+ ],
301
+ mediaType: "json",
302
+ serializer
303
+ };
304
+ const updateOperationSpec = {
305
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
306
+ httpMethod: "PATCH",
307
+ responses: {
308
+ 200: {
309
+ bodyMapper: Mappers.SearchService
310
+ },
311
+ default: {
312
+ bodyMapper: Mappers.CloudError
313
+ }
314
+ },
315
+ requestBody: Parameters.service1,
316
+ queryParameters: [Parameters.apiVersion],
317
+ urlParameters: [
318
+ Parameters.$host,
319
+ Parameters.resourceGroupName,
320
+ Parameters.searchServiceName,
321
+ Parameters.subscriptionId
322
+ ],
323
+ headerParameters: [
324
+ Parameters.accept,
325
+ Parameters.clientRequestId,
326
+ Parameters.contentType
327
+ ],
328
+ mediaType: "json",
329
+ serializer
330
+ };
331
+ const getOperationSpec = {
332
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
333
+ httpMethod: "GET",
334
+ responses: {
335
+ 200: {
336
+ bodyMapper: Mappers.SearchService
337
+ },
338
+ default: {
339
+ bodyMapper: Mappers.CloudError
340
+ }
341
+ },
342
+ queryParameters: [Parameters.apiVersion],
343
+ urlParameters: [
344
+ Parameters.$host,
345
+ Parameters.resourceGroupName,
346
+ Parameters.searchServiceName,
347
+ Parameters.subscriptionId
348
+ ],
349
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
350
+ serializer
351
+ };
352
+ const deleteOperationSpec = {
353
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
354
+ httpMethod: "DELETE",
355
+ responses: {
356
+ 200: {},
357
+ 204: {},
358
+ 404: {},
359
+ default: {
360
+ bodyMapper: Mappers.CloudError
361
+ }
362
+ },
363
+ queryParameters: [Parameters.apiVersion],
364
+ urlParameters: [
365
+ Parameters.$host,
366
+ Parameters.resourceGroupName,
367
+ Parameters.searchServiceName,
368
+ Parameters.subscriptionId
369
+ ],
370
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
371
+ serializer
372
+ };
373
+ const listByResourceGroupOperationSpec = {
374
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
375
+ httpMethod: "GET",
376
+ responses: {
377
+ 200: {
378
+ bodyMapper: Mappers.SearchServiceListResult
379
+ },
380
+ default: {
381
+ bodyMapper: Mappers.CloudError
382
+ }
383
+ },
384
+ queryParameters: [Parameters.apiVersion],
385
+ urlParameters: [
386
+ Parameters.$host,
387
+ Parameters.resourceGroupName,
388
+ Parameters.subscriptionId
389
+ ],
390
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
391
+ serializer
392
+ };
393
+ const listBySubscriptionOperationSpec = {
394
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
395
+ httpMethod: "GET",
396
+ responses: {
397
+ 200: {
398
+ bodyMapper: Mappers.SearchServiceListResult
399
+ },
400
+ default: {
401
+ bodyMapper: Mappers.CloudError
402
+ }
403
+ },
404
+ queryParameters: [Parameters.apiVersion],
405
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
406
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
407
+ serializer
408
+ };
409
+ const checkNameAvailabilityOperationSpec = {
410
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
411
+ httpMethod: "POST",
412
+ responses: {
413
+ 200: {
414
+ bodyMapper: Mappers.CheckNameAvailabilityOutput
415
+ },
416
+ default: {
417
+ bodyMapper: Mappers.CloudError
418
+ }
419
+ },
420
+ requestBody: {
421
+ parameterPath: { name: ["name"], typeParam: ["typeParam"] },
422
+ mapper: Object.assign(Object.assign({}, Mappers.CheckNameAvailabilityInput), { required: true })
423
+ },
424
+ queryParameters: [Parameters.apiVersion],
425
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
426
+ headerParameters: [
427
+ Parameters.accept,
428
+ Parameters.clientRequestId,
429
+ Parameters.contentType
430
+ ],
431
+ mediaType: "json",
432
+ serializer
433
+ };
434
+ const listByResourceGroupNextOperationSpec = {
435
+ path: "{nextLink}",
436
+ httpMethod: "GET",
437
+ responses: {
438
+ 200: {
439
+ bodyMapper: Mappers.SearchServiceListResult
440
+ },
441
+ default: {
442
+ bodyMapper: Mappers.CloudError
443
+ }
444
+ },
445
+ queryParameters: [Parameters.apiVersion],
446
+ urlParameters: [
447
+ Parameters.$host,
448
+ Parameters.resourceGroupName,
449
+ Parameters.subscriptionId,
450
+ Parameters.nextLink
451
+ ],
452
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
453
+ serializer
454
+ };
455
+ const listBySubscriptionNextOperationSpec = {
456
+ path: "{nextLink}",
457
+ httpMethod: "GET",
458
+ responses: {
459
+ 200: {
460
+ bodyMapper: Mappers.SearchServiceListResult
461
+ },
462
+ default: {
463
+ bodyMapper: Mappers.CloudError
464
+ }
465
+ },
466
+ queryParameters: [Parameters.apiVersion],
467
+ urlParameters: [
468
+ Parameters.$host,
469
+ Parameters.subscriptionId,
470
+ Parameters.nextLink
471
+ ],
472
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
473
+ serializer
474
+ };
475
+ //# sourceMappingURL=services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/operations/services.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAA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AAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;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,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;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,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,107 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SharedPrivateLinkResources } from "../operationsInterfaces";
3
+ import { SearchManagementClient } from "../searchManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { SharedPrivateLinkResource, SharedPrivateLinkResourcesListByServiceOptionalParams, SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, SharedPrivateLinkResourcesCreateOrUpdateResponse, SharedPrivateLinkResourcesGetOptionalParams, SharedPrivateLinkResourcesGetResponse, SharedPrivateLinkResourcesDeleteOptionalParams } from "../models";
6
+ /** Class containing SharedPrivateLinkResources operations. */
7
+ export declare class SharedPrivateLinkResourcesImpl implements SharedPrivateLinkResources {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class SharedPrivateLinkResources class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: SearchManagementClient);
14
+ /**
15
+ * Gets a list of all shared private link resources managed by the given service.
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 searchServiceName The name of the Azure Cognitive Search service associated with the
19
+ * specified resource group.
20
+ * @param options The options parameters.
21
+ */
22
+ listByService(resourceGroupName: string, searchServiceName: string, options?: SharedPrivateLinkResourcesListByServiceOptionalParams): PagedAsyncIterableIterator<SharedPrivateLinkResource>;
23
+ private listByServicePagingPage;
24
+ private listByServicePagingAll;
25
+ /**
26
+ * Initiates the creation or update of a shared private link resource managed by the search service in
27
+ * the given resource group.
28
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
29
+ * obtain this value from the Azure Resource Manager API or the portal.
30
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
31
+ * specified resource group.
32
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
33
+ * Azure Cognitive Search service within the specified resource group.
34
+ * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
35
+ * update.
36
+ * @param options The options parameters.
37
+ */
38
+ beginCreateOrUpdate(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SharedPrivateLinkResourcesCreateOrUpdateResponse>, SharedPrivateLinkResourcesCreateOrUpdateResponse>>;
39
+ /**
40
+ * Initiates the creation or update of a shared private link resource managed by the search service in
41
+ * the given resource group.
42
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
43
+ * obtain this value from the Azure Resource Manager API or the portal.
44
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
45
+ * specified resource group.
46
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
47
+ * Azure Cognitive Search service within the specified resource group.
48
+ * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
49
+ * update.
50
+ * @param options The options parameters.
51
+ */
52
+ beginCreateOrUpdateAndWait(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse>;
53
+ /**
54
+ * Gets the details of the shared private link resource managed by the search service in the given
55
+ * resource group.
56
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
57
+ * obtain this value from the Azure Resource Manager API or the portal.
58
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
59
+ * specified resource group.
60
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
61
+ * Azure Cognitive Search service within the specified resource group.
62
+ * @param options The options parameters.
63
+ */
64
+ get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: SharedPrivateLinkResourcesGetOptionalParams): Promise<SharedPrivateLinkResourcesGetResponse>;
65
+ /**
66
+ * Initiates the deletion of the shared private link resource from the search service.
67
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
68
+ * obtain this value from the Azure Resource Manager API or the portal.
69
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
70
+ * specified resource group.
71
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
72
+ * Azure Cognitive Search service within the specified resource group.
73
+ * @param options The options parameters.
74
+ */
75
+ beginDelete(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: SharedPrivateLinkResourcesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
76
+ /**
77
+ * Initiates the deletion of the shared private link resource from the search service.
78
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
79
+ * obtain this value from the Azure Resource Manager API or the portal.
80
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
81
+ * specified resource group.
82
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
83
+ * Azure Cognitive Search service within the specified resource group.
84
+ * @param options The options parameters.
85
+ */
86
+ beginDeleteAndWait(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: SharedPrivateLinkResourcesDeleteOptionalParams): Promise<void>;
87
+ /**
88
+ * Gets a list of all shared private link resources managed by the given 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
+ private _listByService;
96
+ /**
97
+ * ListByServiceNext
98
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
99
+ * obtain this value from the Azure Resource Manager API or the portal.
100
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
101
+ * specified resource group.
102
+ * @param nextLink The nextLink from the previous successful call to the ListByService method.
103
+ * @param options The options parameters.
104
+ */
105
+ private _listByServiceNext;
106
+ }
107
+ //# sourceMappingURL=sharedPrivateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedPrivateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/sharedPrivateLinkResources.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,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,yBAAyB,EAEz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