@azure/arm-kusto 8.2.1-alpha.20250717.1 → 8.2.1-alpha.20250718.2

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 (163) hide show
  1. package/dist/browser/kustoManagementClient.js +29 -5
  2. package/dist/browser/kustoManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +443 -211
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/attachedDatabaseConfigurations.js +32 -39
  8. package/dist/browser/operations/attachedDatabaseConfigurations.js.map +1 -1
  9. package/dist/browser/operations/clusterPrincipalAssignments.js +32 -39
  10. package/dist/browser/operations/clusterPrincipalAssignments.js.map +1 -1
  11. package/dist/browser/operations/clusters.js +228 -321
  12. package/dist/browser/operations/clusters.js.map +1 -1
  13. package/dist/browser/operations/dataConnections.js +54 -51
  14. package/dist/browser/operations/dataConnections.js.map +1 -1
  15. package/dist/browser/operations/databaseOperations.js +1 -0
  16. package/dist/browser/operations/databaseOperations.js.map +1 -1
  17. package/dist/browser/operations/databasePrincipalAssignments.js +32 -39
  18. package/dist/browser/operations/databasePrincipalAssignments.js.map +1 -1
  19. package/dist/browser/operations/databases.js +65 -84
  20. package/dist/browser/operations/databases.js.map +1 -1
  21. package/dist/browser/operations/managedPrivateEndpoints.js +43 -45
  22. package/dist/browser/operations/managedPrivateEndpoints.js.map +1 -1
  23. package/dist/browser/operations/operations.js +23 -40
  24. package/dist/browser/operations/operations.js.map +1 -1
  25. package/dist/browser/operations/operationsResults.js +1 -0
  26. package/dist/browser/operations/operationsResults.js.map +1 -1
  27. package/dist/browser/operations/operationsResultsLocation.js +1 -0
  28. package/dist/browser/operations/operationsResultsLocation.js.map +1 -1
  29. package/dist/browser/operations/privateEndpointConnections.js +32 -39
  30. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  31. package/dist/browser/operations/privateLinkResources.js +10 -27
  32. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  33. package/dist/browser/operations/sandboxCustomImages.js +43 -45
  34. package/dist/browser/operations/sandboxCustomImages.js.map +1 -1
  35. package/dist/browser/operations/scripts.js +43 -45
  36. package/dist/browser/operations/scripts.js.map +1 -1
  37. package/dist/browser/operations/skus.js +10 -27
  38. package/dist/browser/operations/skus.js.map +1 -1
  39. package/dist/browser/pagingHelper.js +2 -4
  40. package/dist/browser/pagingHelper.js.map +1 -1
  41. package/dist/commonjs/kustoManagementClient.js +29 -5
  42. package/dist/commonjs/kustoManagementClient.js.map +1 -1
  43. package/dist/commonjs/lroImpl.js +7 -3
  44. package/dist/commonjs/lroImpl.js.map +1 -1
  45. package/dist/commonjs/models/mappers.js +443 -211
  46. package/dist/commonjs/models/mappers.js.map +1 -1
  47. package/dist/commonjs/operations/attachedDatabaseConfigurations.js +32 -38
  48. package/dist/commonjs/operations/attachedDatabaseConfigurations.js.map +1 -1
  49. package/dist/commonjs/operations/clusterPrincipalAssignments.js +32 -38
  50. package/dist/commonjs/operations/clusterPrincipalAssignments.js.map +1 -1
  51. package/dist/commonjs/operations/clusters.js +228 -320
  52. package/dist/commonjs/operations/clusters.js.map +1 -1
  53. package/dist/commonjs/operations/dataConnections.js +54 -50
  54. package/dist/commonjs/operations/dataConnections.js.map +1 -1
  55. package/dist/commonjs/operations/databaseOperations.js +1 -0
  56. package/dist/commonjs/operations/databaseOperations.js.map +1 -1
  57. package/dist/commonjs/operations/databasePrincipalAssignments.js +32 -38
  58. package/dist/commonjs/operations/databasePrincipalAssignments.js.map +1 -1
  59. package/dist/commonjs/operations/databases.js +65 -83
  60. package/dist/commonjs/operations/databases.js.map +1 -1
  61. package/dist/commonjs/operations/managedPrivateEndpoints.js +43 -44
  62. package/dist/commonjs/operations/managedPrivateEndpoints.js.map +1 -1
  63. package/dist/commonjs/operations/operations.js +23 -39
  64. package/dist/commonjs/operations/operations.js.map +1 -1
  65. package/dist/commonjs/operations/operationsResults.js +1 -0
  66. package/dist/commonjs/operations/operationsResults.js.map +1 -1
  67. package/dist/commonjs/operations/operationsResultsLocation.js +1 -0
  68. package/dist/commonjs/operations/operationsResultsLocation.js.map +1 -1
  69. package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
  70. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  71. package/dist/commonjs/operations/privateLinkResources.js +10 -26
  72. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  73. package/dist/commonjs/operations/sandboxCustomImages.js +43 -44
  74. package/dist/commonjs/operations/sandboxCustomImages.js.map +1 -1
  75. package/dist/commonjs/operations/scripts.js +43 -44
  76. package/dist/commonjs/operations/scripts.js.map +1 -1
  77. package/dist/commonjs/operations/skus.js +10 -26
  78. package/dist/commonjs/operations/skus.js.map +1 -1
  79. package/dist/commonjs/pagingHelper.js +2 -4
  80. package/dist/commonjs/pagingHelper.js.map +1 -1
  81. package/dist/commonjs/tsdoc-metadata.json +11 -11
  82. package/dist/esm/kustoManagementClient.js +29 -5
  83. package/dist/esm/kustoManagementClient.js.map +1 -1
  84. package/dist/esm/lroImpl.js +7 -3
  85. package/dist/esm/lroImpl.js.map +1 -1
  86. package/dist/esm/models/mappers.js +443 -211
  87. package/dist/esm/models/mappers.js.map +1 -1
  88. package/dist/esm/operations/attachedDatabaseConfigurations.js +32 -39
  89. package/dist/esm/operations/attachedDatabaseConfigurations.js.map +1 -1
  90. package/dist/esm/operations/clusterPrincipalAssignments.js +32 -39
  91. package/dist/esm/operations/clusterPrincipalAssignments.js.map +1 -1
  92. package/dist/esm/operations/clusters.js +228 -321
  93. package/dist/esm/operations/clusters.js.map +1 -1
  94. package/dist/esm/operations/dataConnections.js +54 -51
  95. package/dist/esm/operations/dataConnections.js.map +1 -1
  96. package/dist/esm/operations/databaseOperations.js +1 -0
  97. package/dist/esm/operations/databaseOperations.js.map +1 -1
  98. package/dist/esm/operations/databasePrincipalAssignments.js +32 -39
  99. package/dist/esm/operations/databasePrincipalAssignments.js.map +1 -1
  100. package/dist/esm/operations/databases.js +65 -84
  101. package/dist/esm/operations/databases.js.map +1 -1
  102. package/dist/esm/operations/managedPrivateEndpoints.js +43 -45
  103. package/dist/esm/operations/managedPrivateEndpoints.js.map +1 -1
  104. package/dist/esm/operations/operations.js +23 -40
  105. package/dist/esm/operations/operations.js.map +1 -1
  106. package/dist/esm/operations/operationsResults.js +1 -0
  107. package/dist/esm/operations/operationsResults.js.map +1 -1
  108. package/dist/esm/operations/operationsResultsLocation.js +1 -0
  109. package/dist/esm/operations/operationsResultsLocation.js.map +1 -1
  110. package/dist/esm/operations/privateEndpointConnections.js +32 -39
  111. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  112. package/dist/esm/operations/privateLinkResources.js +10 -27
  113. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  114. package/dist/esm/operations/sandboxCustomImages.js +43 -45
  115. package/dist/esm/operations/sandboxCustomImages.js.map +1 -1
  116. package/dist/esm/operations/scripts.js +43 -45
  117. package/dist/esm/operations/scripts.js.map +1 -1
  118. package/dist/esm/operations/skus.js +10 -27
  119. package/dist/esm/operations/skus.js.map +1 -1
  120. package/dist/esm/pagingHelper.js +2 -4
  121. package/dist/esm/pagingHelper.js.map +1 -1
  122. package/dist/react-native/kustoManagementClient.js +29 -5
  123. package/dist/react-native/kustoManagementClient.js.map +1 -1
  124. package/dist/react-native/lroImpl.js +7 -3
  125. package/dist/react-native/lroImpl.js.map +1 -1
  126. package/dist/react-native/models/mappers.js +443 -211
  127. package/dist/react-native/models/mappers.js.map +1 -1
  128. package/dist/react-native/operations/attachedDatabaseConfigurations.js +32 -39
  129. package/dist/react-native/operations/attachedDatabaseConfigurations.js.map +1 -1
  130. package/dist/react-native/operations/clusterPrincipalAssignments.js +32 -39
  131. package/dist/react-native/operations/clusterPrincipalAssignments.js.map +1 -1
  132. package/dist/react-native/operations/clusters.js +228 -321
  133. package/dist/react-native/operations/clusters.js.map +1 -1
  134. package/dist/react-native/operations/dataConnections.js +54 -51
  135. package/dist/react-native/operations/dataConnections.js.map +1 -1
  136. package/dist/react-native/operations/databaseOperations.js +1 -0
  137. package/dist/react-native/operations/databaseOperations.js.map +1 -1
  138. package/dist/react-native/operations/databasePrincipalAssignments.js +32 -39
  139. package/dist/react-native/operations/databasePrincipalAssignments.js.map +1 -1
  140. package/dist/react-native/operations/databases.js +65 -84
  141. package/dist/react-native/operations/databases.js.map +1 -1
  142. package/dist/react-native/operations/managedPrivateEndpoints.js +43 -45
  143. package/dist/react-native/operations/managedPrivateEndpoints.js.map +1 -1
  144. package/dist/react-native/operations/operations.js +23 -40
  145. package/dist/react-native/operations/operations.js.map +1 -1
  146. package/dist/react-native/operations/operationsResults.js +1 -0
  147. package/dist/react-native/operations/operationsResults.js.map +1 -1
  148. package/dist/react-native/operations/operationsResultsLocation.js +1 -0
  149. package/dist/react-native/operations/operationsResultsLocation.js.map +1 -1
  150. package/dist/react-native/operations/privateEndpointConnections.js +32 -39
  151. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  152. package/dist/react-native/operations/privateLinkResources.js +10 -27
  153. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  154. package/dist/react-native/operations/sandboxCustomImages.js +43 -45
  155. package/dist/react-native/operations/sandboxCustomImages.js.map +1 -1
  156. package/dist/react-native/operations/scripts.js +43 -45
  157. package/dist/react-native/operations/scripts.js.map +1 -1
  158. package/dist/react-native/operations/skus.js +10 -27
  159. package/dist/react-native/operations/skus.js.map +1 -1
  160. package/dist/react-native/pagingHelper.js +2 -4
  161. package/dist/react-native/pagingHelper.js.map +1 -1
  162. package/package.json +2 -2
  163. package/review/arm-kusto-node.api.md +2342 -2342
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /// <reference lib="esnext.asynciterable" />
18
18
  /** Class containing ManagedPrivateEndpoints operations. */
19
19
  class ManagedPrivateEndpointsImpl {
20
+ client;
20
21
  /**
21
22
  * Initialize a new instance of the class ManagedPrivateEndpoints class.
22
23
  * @param client Reference to the service client
@@ -40,39 +41,22 @@ class ManagedPrivateEndpointsImpl {
40
41
  return this;
41
42
  },
42
43
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ if (settings?.maxPageSize) {
44
45
  throw new Error("maxPageSize is not supported by this operation.");
45
46
  }
46
47
  return this.listPagingPage(resourceGroupName, clusterName, options, settings);
47
48
  },
48
49
  };
49
50
  }
50
- listPagingPage(resourceGroupName, clusterName, options, _settings) {
51
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
52
- let result;
53
- result = yield tslib_1.__await(this._list(resourceGroupName, clusterName, options));
54
- yield yield tslib_1.__await(result.value || []);
55
- });
51
+ async *listPagingPage(resourceGroupName, clusterName, options, _settings) {
52
+ let result;
53
+ result = await this._list(resourceGroupName, clusterName, options);
54
+ yield result.value || [];
56
55
  }
57
- listPagingAll(resourceGroupName, clusterName, options) {
58
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
59
- var _a, e_1, _b, _c;
60
- try {
61
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
62
- _c = _f.value;
63
- _d = false;
64
- const page = _c;
65
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
66
- }
67
- }
68
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
69
- finally {
70
- try {
71
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
72
- }
73
- finally { if (e_1) throw e_1.error; }
74
- }
75
- });
56
+ async *listPagingAll(resourceGroupName, clusterName, options) {
57
+ for await (const page of this.listPagingPage(resourceGroupName, clusterName, options)) {
58
+ yield* page;
59
+ }
76
60
  }
77
61
  /**
78
62
  * Checks that the managed private endpoints resource name is valid and is not already in use.
@@ -116,14 +100,19 @@ class ManagedPrivateEndpointsImpl {
116
100
  return this.client.sendOperationRequest(args, spec);
117
101
  };
118
102
  const sendOperationFn = async (args, spec) => {
119
- var _a;
120
103
  let currentRawResponse = undefined;
121
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
104
+ const providedCallback = args.options?.onResponse;
122
105
  const callback = (rawResponse, flatResponse) => {
123
106
  currentRawResponse = rawResponse;
124
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
107
+ providedCallback?.(rawResponse, flatResponse);
108
+ };
109
+ const updatedArgs = {
110
+ ...args,
111
+ options: {
112
+ ...args.options,
113
+ onResponse: callback,
114
+ },
125
115
  };
126
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
127
116
  const flatResponse = await directSendOperation(updatedArgs, spec);
128
117
  return {
129
118
  flatResponse,
@@ -146,8 +135,8 @@ class ManagedPrivateEndpointsImpl {
146
135
  spec: createOrUpdateOperationSpec,
147
136
  });
148
137
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
149
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
150
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
138
+ restoreFrom: options?.resumeFrom,
139
+ intervalInMs: options?.updateIntervalInMs,
151
140
  });
152
141
  await poller.poll();
153
142
  return poller;
@@ -177,14 +166,19 @@ class ManagedPrivateEndpointsImpl {
177
166
  return this.client.sendOperationRequest(args, spec);
178
167
  };
179
168
  const sendOperationFn = async (args, spec) => {
180
- var _a;
181
169
  let currentRawResponse = undefined;
182
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
170
+ const providedCallback = args.options?.onResponse;
183
171
  const callback = (rawResponse, flatResponse) => {
184
172
  currentRawResponse = rawResponse;
185
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
173
+ providedCallback?.(rawResponse, flatResponse);
174
+ };
175
+ const updatedArgs = {
176
+ ...args,
177
+ options: {
178
+ ...args.options,
179
+ onResponse: callback,
180
+ },
186
181
  };
187
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
188
182
  const flatResponse = await directSendOperation(updatedArgs, spec);
189
183
  return {
190
184
  flatResponse,
@@ -207,8 +201,8 @@ class ManagedPrivateEndpointsImpl {
207
201
  spec: updateOperationSpec,
208
202
  });
209
203
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
210
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
211
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
204
+ restoreFrom: options?.resumeFrom,
205
+ intervalInMs: options?.updateIntervalInMs,
212
206
  });
213
207
  await poller.poll();
214
208
  return poller;
@@ -237,14 +231,19 @@ class ManagedPrivateEndpointsImpl {
237
231
  return this.client.sendOperationRequest(args, spec);
238
232
  };
239
233
  const sendOperationFn = async (args, spec) => {
240
- var _a;
241
234
  let currentRawResponse = undefined;
242
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
235
+ const providedCallback = args.options?.onResponse;
243
236
  const callback = (rawResponse, flatResponse) => {
244
237
  currentRawResponse = rawResponse;
245
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
238
+ providedCallback?.(rawResponse, flatResponse);
239
+ };
240
+ const updatedArgs = {
241
+ ...args,
242
+ options: {
243
+ ...args.options,
244
+ onResponse: callback,
245
+ },
246
246
  };
247
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
248
247
  const flatResponse = await directSendOperation(updatedArgs, spec);
249
248
  return {
250
249
  flatResponse,
@@ -266,8 +265,8 @@ class ManagedPrivateEndpointsImpl {
266
265
  spec: deleteOperationSpec,
267
266
  });
268
267
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
269
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
270
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
268
+ restoreFrom: options?.resumeFrom,
269
+ intervalInMs: options?.updateIntervalInMs,
271
270
  });
272
271
  await poller.poll();
273
272
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"managedPrivateEndpoints.js","sourceRoot":"","sources":["../../../src/operations/managedPrivateEndpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAa,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAmD,EACnD,SAAwB;;YAExB,IAAI,MAA2C,CAAC;YAChD,MAAM,GAAG,sBAAM,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GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,0BAA0B;KACtC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { ManagedPrivateEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ManagedPrivateEndpoint,\n ManagedPrivateEndpointsListOptionalParams,\n ManagedPrivateEndpointsListResponse,\n ManagedPrivateEndpointsCheckNameRequest,\n ManagedPrivateEndpointsCheckNameAvailabilityOptionalParams,\n ManagedPrivateEndpointsCheckNameAvailabilityResponse,\n ManagedPrivateEndpointsGetOptionalParams,\n ManagedPrivateEndpointsGetResponse,\n ManagedPrivateEndpointsCreateOrUpdateOptionalParams,\n ManagedPrivateEndpointsCreateOrUpdateResponse,\n ManagedPrivateEndpointsUpdateOptionalParams,\n ManagedPrivateEndpointsUpdateResponse,\n ManagedPrivateEndpointsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedPrivateEndpoints operations. */\nexport class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class ManagedPrivateEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of managed private endpoints.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedPrivateEndpoint> {\n const iter = this.listPagingAll(resourceGroupName, clusterName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ManagedPrivateEndpoint[]> {\n let result: ManagedPrivateEndpointsListResponse;\n result = await this._list(resourceGroupName, clusterName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): AsyncIterableIterator<ManagedPrivateEndpoint> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Checks that the managed private endpoints resource name is valid and is not already in use.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n checkNameAvailability(\n resourceGroupName: string,\n clusterName: string,\n resourceName: ManagedPrivateEndpointsCheckNameRequest,\n options?: ManagedPrivateEndpointsCheckNameAvailabilityOptionalParams,\n ): Promise<ManagedPrivateEndpointsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, resourceName, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Returns the list of managed private endpoints.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): Promise<ManagedPrivateEndpointsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsGetOptionalParams,\n ): Promise<ManagedPrivateEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, managedPrivateEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ManagedPrivateEndpointsCreateOrUpdateResponse>,\n ManagedPrivateEndpointsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ManagedPrivateEndpointsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ManagedPrivateEndpointsCreateOrUpdateResponse,\n OperationState<ManagedPrivateEndpointsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsCreateOrUpdateOptionalParams,\n ): Promise<ManagedPrivateEndpointsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ManagedPrivateEndpointsUpdateResponse>,\n ManagedPrivateEndpointsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ManagedPrivateEndpointsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ManagedPrivateEndpointsUpdateResponse,\n OperationState<ManagedPrivateEndpointsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsUpdateOptionalParams,\n ): Promise<ManagedPrivateEndpointsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpointsCheckNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resourceName2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpointListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 201: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 202: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 204: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 201: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 202: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 204: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"managedPrivateEndpoints.js","sourceRoot":"","sources":["../../../src/operations/managedPrivateEndpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAa,2BAA2B;IACrB,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,C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ACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,0BAA0B;KACtC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0KAA0K;IAChL,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,0BAA0B;KACtC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { ManagedPrivateEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ManagedPrivateEndpoint,\n ManagedPrivateEndpointsListOptionalParams,\n ManagedPrivateEndpointsListResponse,\n ManagedPrivateEndpointsCheckNameRequest,\n ManagedPrivateEndpointsCheckNameAvailabilityOptionalParams,\n ManagedPrivateEndpointsCheckNameAvailabilityResponse,\n ManagedPrivateEndpointsGetOptionalParams,\n ManagedPrivateEndpointsGetResponse,\n ManagedPrivateEndpointsCreateOrUpdateOptionalParams,\n ManagedPrivateEndpointsCreateOrUpdateResponse,\n ManagedPrivateEndpointsUpdateOptionalParams,\n ManagedPrivateEndpointsUpdateResponse,\n ManagedPrivateEndpointsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedPrivateEndpoints operations. */\nexport class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class ManagedPrivateEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of managed private endpoints.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedPrivateEndpoint> {\n const iter = this.listPagingAll(resourceGroupName, clusterName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ManagedPrivateEndpoint[]> {\n let result: ManagedPrivateEndpointsListResponse;\n result = await this._list(resourceGroupName, clusterName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): AsyncIterableIterator<ManagedPrivateEndpoint> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Checks that the managed private endpoints resource name is valid and is not already in use.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n checkNameAvailability(\n resourceGroupName: string,\n clusterName: string,\n resourceName: ManagedPrivateEndpointsCheckNameRequest,\n options?: ManagedPrivateEndpointsCheckNameAvailabilityOptionalParams,\n ): Promise<ManagedPrivateEndpointsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, resourceName, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Returns the list of managed private endpoints.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): Promise<ManagedPrivateEndpointsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsGetOptionalParams,\n ): Promise<ManagedPrivateEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, managedPrivateEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ManagedPrivateEndpointsCreateOrUpdateResponse>,\n ManagedPrivateEndpointsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ManagedPrivateEndpointsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ManagedPrivateEndpointsCreateOrUpdateResponse,\n OperationState<ManagedPrivateEndpointsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsCreateOrUpdateOptionalParams,\n ): Promise<ManagedPrivateEndpointsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ManagedPrivateEndpointsUpdateResponse>,\n ManagedPrivateEndpointsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ManagedPrivateEndpointsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ManagedPrivateEndpointsUpdateResponse,\n OperationState<ManagedPrivateEndpointsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param parameters The managed private endpoint parameters.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n parameters: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsUpdateOptionalParams,\n ): Promise<ManagedPrivateEndpointsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a managed private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param managedPrivateEndpointName The name of the managed private endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n managedPrivateEndpointName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpointsCheckNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resourceName2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpointListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 201: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 202: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 204: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 201: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 202: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n 204: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Operations operations. */
18
18
  class OperationsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Operations class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class OperationsImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listPagingPage(options, settings);
44
45
  },
45
46
  };
46
47
  }
47
- listPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._list(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Lists available operations for the Microsoft.Kusto provider.
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;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MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.Kusto provider.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.Kusto provider.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Kusto/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B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,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.Kusto provider.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.Kusto provider.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Kusto/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing OperationsResults operations. */
16
16
  class OperationsResultsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class OperationsResults class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"operationsResults.js","sourceRoot":"","sources":["../../../src/operations/operationsResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,qDAAqD;AACrD,MAAa,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,QAAgB,EAChB,WAAmB,EACnB,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,EAClC,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,sDA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+GAA+G;IACrH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { OperationsResults } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n OperationsResultsGetOptionalParams,\n OperationsResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing OperationsResults operations. */\nexport class OperationsResultsImpl implements OperationsResults {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class OperationsResults class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns operation results.\n * @param location The name of Azure region.\n * @param operationId The ID of an ongoing async operation.\n * @param options The options parameters.\n */\n get(\n location: string,\n operationId: string,\n options?: OperationsResultsGetOptionalParams,\n ): Promise<OperationsResultsGetResponse> {\n return this.client.sendOperationRequest(\n { location, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operationsResults.js","sourceRoot":"","sources":["../../../src/operations/operationsResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,QAAgB,EAChB,WAAmB,EACnB,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,EAClC,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,sDA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+GAA+G;IACrH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { OperationsResults } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n OperationsResultsGetOptionalParams,\n OperationsResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing OperationsResults operations. */\nexport class OperationsResultsImpl implements OperationsResults {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class OperationsResults class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns operation results.\n * @param location The name of Azure region.\n * @param operationId The ID of an ongoing async operation.\n * @param options The options parameters.\n */\n get(\n location: string,\n operationId: string,\n options?: OperationsResultsGetOptionalParams,\n ): Promise<OperationsResultsGetResponse> {\n return this.client.sendOperationRequest(\n { location, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing OperationsResultsLocation operations. */
16
16
  class OperationsResultsLocationImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class OperationsResultsLocation class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"operationsResultsLocation.js","sourceRoot":"","sources":["../../../src/operations/operationsResultsLocation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,6DAA6D;AAC7D,MAAa,6BAA6B;IAKxC;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,QAAgB,EAChB,WAAmB,EACnB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,EAClC,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA7BD,sEA6BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+GAA+G;IACrH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,mCAAmC;SAC3D;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { OperationsResultsLocation } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n OperationsResultsLocationGetOptionalParams,\n OperationsResultsLocationGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing OperationsResultsLocation operations. */\nexport class OperationsResultsLocationImpl\n implements OperationsResultsLocation\n{\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class OperationsResultsLocation class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns operation results.\n * @param location The name of Azure region.\n * @param operationId The ID of an ongoing async operation.\n * @param options The options parameters.\n */\n get(\n location: string,\n operationId: string,\n options?: OperationsResultsLocationGetOptionalParams,\n ): Promise<OperationsResultsLocationGetResponse> {\n return this.client.sendOperationRequest(\n { location, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {},\n 202: {\n headersMapper: Mappers.OperationsResultsLocationGetHeaders,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.operationId,\n ],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operationsResultsLocation.js","sourceRoot":"","sources":["../../../src/operations/operationsResultsLocation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,6DAA6D;AAC7D,MAAa,6BAA6B;IAGvB,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,QAAgB,EAChB,WAAmB,EACnB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,EAClC,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA7BD,sEA6BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+GAA+G;IACrH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,mCAAmC;SAC3D;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { OperationsResultsLocation } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n OperationsResultsLocationGetOptionalParams,\n OperationsResultsLocationGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing OperationsResultsLocation operations. */\nexport class OperationsResultsLocationImpl\n implements OperationsResultsLocation\n{\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class OperationsResultsLocation class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns operation results.\n * @param location The name of Azure region.\n * @param operationId The ID of an ongoing async operation.\n * @param options The options parameters.\n */\n get(\n location: string,\n operationId: string,\n options?: OperationsResultsLocationGetOptionalParams,\n ): Promise<OperationsResultsLocationGetResponse> {\n return this.client.sendOperationRequest(\n { location, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {},\n 202: {\n headersMapper: Mappers.OperationsResultsLocationGetHeaders,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.operationId,\n ],\n serializer,\n};\n"]}
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /// <reference lib="esnext.asynciterable" />
18
18
  /** Class containing PrivateEndpointConnections operations. */
19
19
  class PrivateEndpointConnectionsImpl {
20
+ client;
20
21
  /**
21
22
  * Initialize a new instance of the class PrivateEndpointConnections class.
22
23
  * @param client Reference to the service client
@@ -40,39 +41,22 @@ class PrivateEndpointConnectionsImpl {
40
41
  return this;
41
42
  },
42
43
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ if (settings?.maxPageSize) {
44
45
  throw new Error("maxPageSize is not supported by this operation.");
45
46
  }
46
47
  return this.listPagingPage(resourceGroupName, clusterName, options, settings);
47
48
  },
48
49
  };
49
50
  }
50
- listPagingPage(resourceGroupName, clusterName, options, _settings) {
51
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
52
- let result;
53
- result = yield tslib_1.__await(this._list(resourceGroupName, clusterName, options));
54
- yield yield tslib_1.__await(result.value || []);
55
- });
51
+ async *listPagingPage(resourceGroupName, clusterName, options, _settings) {
52
+ let result;
53
+ result = await this._list(resourceGroupName, clusterName, options);
54
+ yield result.value || [];
56
55
  }
57
- listPagingAll(resourceGroupName, clusterName, options) {
58
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
59
- var _a, e_1, _b, _c;
60
- try {
61
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
62
- _c = _f.value;
63
- _d = false;
64
- const page = _c;
65
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
66
- }
67
- }
68
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
69
- finally {
70
- try {
71
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
72
- }
73
- finally { if (e_1) throw e_1.error; }
74
- }
75
- });
56
+ async *listPagingAll(resourceGroupName, clusterName, options) {
57
+ for await (const page of this.listPagingPage(resourceGroupName, clusterName, options)) {
58
+ yield* page;
59
+ }
76
60
  }
77
61
  /**
78
62
  * Returns the list of private endpoint connections.
@@ -111,14 +95,19 @@ class PrivateEndpointConnectionsImpl {
111
95
  return this.client.sendOperationRequest(args, spec);
112
96
  };
113
97
  const sendOperationFn = async (args, spec) => {
114
- var _a;
115
98
  let currentRawResponse = undefined;
116
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
99
+ const providedCallback = args.options?.onResponse;
117
100
  const callback = (rawResponse, flatResponse) => {
118
101
  currentRawResponse = rawResponse;
119
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
102
+ providedCallback?.(rawResponse, flatResponse);
103
+ };
104
+ const updatedArgs = {
105
+ ...args,
106
+ options: {
107
+ ...args.options,
108
+ onResponse: callback,
109
+ },
120
110
  };
121
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
122
111
  const flatResponse = await directSendOperation(updatedArgs, spec);
123
112
  return {
124
113
  flatResponse,
@@ -141,8 +130,8 @@ class PrivateEndpointConnectionsImpl {
141
130
  spec: createOrUpdateOperationSpec,
142
131
  });
143
132
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
144
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
145
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
133
+ restoreFrom: options?.resumeFrom,
134
+ intervalInMs: options?.updateIntervalInMs,
146
135
  });
147
136
  await poller.poll();
148
137
  return poller;
@@ -171,14 +160,19 @@ class PrivateEndpointConnectionsImpl {
171
160
  return this.client.sendOperationRequest(args, spec);
172
161
  };
173
162
  const sendOperationFn = async (args, spec) => {
174
- var _a;
175
163
  let currentRawResponse = undefined;
176
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
164
+ const providedCallback = args.options?.onResponse;
177
165
  const callback = (rawResponse, flatResponse) => {
178
166
  currentRawResponse = rawResponse;
179
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
167
+ providedCallback?.(rawResponse, flatResponse);
168
+ };
169
+ const updatedArgs = {
170
+ ...args,
171
+ options: {
172
+ ...args.options,
173
+ onResponse: callback,
174
+ },
180
175
  };
181
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
182
176
  const flatResponse = await directSendOperation(updatedArgs, spec);
183
177
  return {
184
178
  flatResponse,
@@ -200,8 +194,8 @@ class PrivateEndpointConnectionsImpl {
200
194
  spec: deleteOperationSpec,
201
195
  });
202
196
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
203
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
204
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
197
+ restoreFrom: options?.resumeFrom,
198
+ intervalInMs: options?.updateIntervalInMs,
205
199
  });
206
200
  await poller.poll();
207
201
  return poller;