@azure/arm-kubernetesconfiguration-fluxconfigurations 1.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 (218) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +115 -0
  4. package/dist/browser/fluxConfigurationClient.d.ts +21 -0
  5. package/dist/browser/fluxConfigurationClient.d.ts.map +1 -0
  6. package/dist/browser/fluxConfigurationClient.js +97 -0
  7. package/dist/browser/fluxConfigurationClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/dist/browser/index.js +13 -0
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/lroImpl.d.ts +11 -0
  13. package/dist/browser/lroImpl.d.ts.map +1 -0
  14. package/dist/browser/lroImpl.js +21 -0
  15. package/dist/browser/lroImpl.js.map +1 -0
  16. package/dist/browser/models/index.d.ts +875 -0
  17. package/dist/browser/models/index.d.ts.map +1 -0
  18. package/dist/browser/models/index.js +98 -0
  19. package/dist/browser/models/index.js.map +1 -0
  20. package/dist/browser/models/mappers.d.ts +45 -0
  21. package/dist/browser/models/mappers.d.ts.map +1 -0
  22. package/dist/browser/models/mappers.js +1914 -0
  23. package/dist/browser/models/mappers.js.map +1 -0
  24. package/dist/browser/models/parameters.d.ts +17 -0
  25. package/dist/browser/models/parameters.d.ts.map +1 -0
  26. package/dist/browser/models/parameters.js +164 -0
  27. package/dist/browser/models/parameters.js.map +1 -0
  28. package/dist/browser/operations/fluxConfigOperationStatus.d.ts +26 -0
  29. package/dist/browser/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  30. package/dist/browser/operations/fluxConfigOperationStatus.js +71 -0
  31. package/dist/browser/operations/fluxConfigOperationStatus.js.map +1 -0
  32. package/dist/browser/operations/fluxConfigurations.d.ts +141 -0
  33. package/dist/browser/operations/fluxConfigurations.d.ts.map +1 -0
  34. package/dist/browser/operations/fluxConfigurations.js +536 -0
  35. package/dist/browser/operations/fluxConfigurations.js.map +1 -0
  36. package/dist/browser/operations/index.d.ts +3 -0
  37. package/dist/browser/operations/index.d.ts.map +1 -0
  38. package/dist/browser/operations/index.js +10 -0
  39. package/dist/browser/operations/index.js.map +1 -0
  40. package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  41. package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
  43. package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  44. package/dist/browser/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  45. package/dist/browser/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/fluxConfigurations.js +9 -0
  47. package/dist/browser/operationsInterfaces/fluxConfigurations.js.map +1 -0
  48. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  49. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/index.js +10 -0
  51. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  52. package/dist/browser/package.json +3 -0
  53. package/dist/browser/pagingHelper.d.ts +13 -0
  54. package/dist/browser/pagingHelper.d.ts.map +1 -0
  55. package/dist/browser/pagingHelper.js +32 -0
  56. package/dist/browser/pagingHelper.js.map +1 -0
  57. package/dist/commonjs/fluxConfigurationClient.d.ts +21 -0
  58. package/dist/commonjs/fluxConfigurationClient.d.ts.map +1 -0
  59. package/dist/commonjs/fluxConfigurationClient.js +102 -0
  60. package/dist/commonjs/fluxConfigurationClient.js.map +1 -0
  61. package/dist/commonjs/index.d.ts +5 -0
  62. package/dist/commonjs/index.d.ts.map +1 -0
  63. package/dist/commonjs/index.js +19 -0
  64. package/dist/commonjs/index.js.map +1 -0
  65. package/dist/commonjs/lroImpl.d.ts +11 -0
  66. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  67. package/dist/commonjs/lroImpl.js +24 -0
  68. package/dist/commonjs/lroImpl.js.map +1 -0
  69. package/dist/commonjs/models/index.d.ts +875 -0
  70. package/dist/commonjs/models/index.d.ts.map +1 -0
  71. package/dist/commonjs/models/index.js +101 -0
  72. package/dist/commonjs/models/index.js.map +1 -0
  73. package/dist/commonjs/models/mappers.d.ts +45 -0
  74. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  75. package/dist/commonjs/models/mappers.js +1917 -0
  76. package/dist/commonjs/models/mappers.js.map +1 -0
  77. package/dist/commonjs/models/parameters.d.ts +17 -0
  78. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  79. package/dist/commonjs/models/parameters.js +167 -0
  80. package/dist/commonjs/models/parameters.js.map +1 -0
  81. package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts +26 -0
  82. package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  83. package/dist/commonjs/operations/fluxConfigOperationStatus.js +76 -0
  84. package/dist/commonjs/operations/fluxConfigOperationStatus.js.map +1 -0
  85. package/dist/commonjs/operations/fluxConfigurations.d.ts +141 -0
  86. package/dist/commonjs/operations/fluxConfigurations.d.ts.map +1 -0
  87. package/dist/commonjs/operations/fluxConfigurations.js +540 -0
  88. package/dist/commonjs/operations/fluxConfigurations.js.map +1 -0
  89. package/dist/commonjs/operations/index.d.ts +3 -0
  90. package/dist/commonjs/operations/index.d.ts.map +1 -0
  91. package/dist/commonjs/operations/index.js +13 -0
  92. package/dist/commonjs/operations/index.js.map +1 -0
  93. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  94. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  95. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js +10 -0
  96. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  97. package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  98. package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  99. package/dist/commonjs/operationsInterfaces/fluxConfigurations.js +10 -0
  100. package/dist/commonjs/operationsInterfaces/fluxConfigurations.js.map +1 -0
  101. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  102. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  103. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  104. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  105. package/dist/commonjs/package.json +3 -0
  106. package/dist/commonjs/pagingHelper.d.ts +13 -0
  107. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  108. package/dist/commonjs/pagingHelper.js +36 -0
  109. package/dist/commonjs/pagingHelper.js.map +1 -0
  110. package/dist/commonjs/tsdoc-metadata.json +11 -0
  111. package/dist/esm/fluxConfigurationClient.d.ts +21 -0
  112. package/dist/esm/fluxConfigurationClient.d.ts.map +1 -0
  113. package/dist/esm/fluxConfigurationClient.js +97 -0
  114. package/dist/esm/fluxConfigurationClient.js.map +1 -0
  115. package/dist/esm/index.d.ts +5 -0
  116. package/dist/esm/index.d.ts.map +1 -0
  117. package/dist/esm/index.js +13 -0
  118. package/dist/esm/index.js.map +1 -0
  119. package/dist/esm/lroImpl.d.ts +11 -0
  120. package/dist/esm/lroImpl.d.ts.map +1 -0
  121. package/dist/esm/lroImpl.js +21 -0
  122. package/dist/esm/lroImpl.js.map +1 -0
  123. package/dist/esm/models/index.d.ts +875 -0
  124. package/dist/esm/models/index.d.ts.map +1 -0
  125. package/dist/esm/models/index.js +98 -0
  126. package/dist/esm/models/index.js.map +1 -0
  127. package/dist/esm/models/mappers.d.ts +45 -0
  128. package/dist/esm/models/mappers.d.ts.map +1 -0
  129. package/dist/esm/models/mappers.js +1914 -0
  130. package/dist/esm/models/mappers.js.map +1 -0
  131. package/dist/esm/models/parameters.d.ts +17 -0
  132. package/dist/esm/models/parameters.d.ts.map +1 -0
  133. package/dist/esm/models/parameters.js +164 -0
  134. package/dist/esm/models/parameters.js.map +1 -0
  135. package/dist/esm/operations/fluxConfigOperationStatus.d.ts +26 -0
  136. package/dist/esm/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  137. package/dist/esm/operations/fluxConfigOperationStatus.js +71 -0
  138. package/dist/esm/operations/fluxConfigOperationStatus.js.map +1 -0
  139. package/dist/esm/operations/fluxConfigurations.d.ts +141 -0
  140. package/dist/esm/operations/fluxConfigurations.d.ts.map +1 -0
  141. package/dist/esm/operations/fluxConfigurations.js +536 -0
  142. package/dist/esm/operations/fluxConfigurations.js.map +1 -0
  143. package/dist/esm/operations/index.d.ts +3 -0
  144. package/dist/esm/operations/index.d.ts.map +1 -0
  145. package/dist/esm/operations/index.js +10 -0
  146. package/dist/esm/operations/index.js.map +1 -0
  147. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  148. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  149. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
  150. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  151. package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  152. package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  153. package/dist/esm/operationsInterfaces/fluxConfigurations.js +9 -0
  154. package/dist/esm/operationsInterfaces/fluxConfigurations.js.map +1 -0
  155. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  156. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  157. package/dist/esm/operationsInterfaces/index.js +10 -0
  158. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  159. package/dist/esm/package.json +3 -0
  160. package/dist/esm/pagingHelper.d.ts +13 -0
  161. package/dist/esm/pagingHelper.d.ts.map +1 -0
  162. package/dist/esm/pagingHelper.js +32 -0
  163. package/dist/esm/pagingHelper.js.map +1 -0
  164. package/dist/react-native/fluxConfigurationClient.d.ts +21 -0
  165. package/dist/react-native/fluxConfigurationClient.d.ts.map +1 -0
  166. package/dist/react-native/fluxConfigurationClient.js +97 -0
  167. package/dist/react-native/fluxConfigurationClient.js.map +1 -0
  168. package/dist/react-native/index.d.ts +5 -0
  169. package/dist/react-native/index.d.ts.map +1 -0
  170. package/dist/react-native/index.js +13 -0
  171. package/dist/react-native/index.js.map +1 -0
  172. package/dist/react-native/lroImpl.d.ts +11 -0
  173. package/dist/react-native/lroImpl.d.ts.map +1 -0
  174. package/dist/react-native/lroImpl.js +21 -0
  175. package/dist/react-native/lroImpl.js.map +1 -0
  176. package/dist/react-native/models/index.d.ts +875 -0
  177. package/dist/react-native/models/index.d.ts.map +1 -0
  178. package/dist/react-native/models/index.js +98 -0
  179. package/dist/react-native/models/index.js.map +1 -0
  180. package/dist/react-native/models/mappers.d.ts +45 -0
  181. package/dist/react-native/models/mappers.d.ts.map +1 -0
  182. package/dist/react-native/models/mappers.js +1914 -0
  183. package/dist/react-native/models/mappers.js.map +1 -0
  184. package/dist/react-native/models/parameters.d.ts +17 -0
  185. package/dist/react-native/models/parameters.d.ts.map +1 -0
  186. package/dist/react-native/models/parameters.js +164 -0
  187. package/dist/react-native/models/parameters.js.map +1 -0
  188. package/dist/react-native/operations/fluxConfigOperationStatus.d.ts +26 -0
  189. package/dist/react-native/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  190. package/dist/react-native/operations/fluxConfigOperationStatus.js +71 -0
  191. package/dist/react-native/operations/fluxConfigOperationStatus.js.map +1 -0
  192. package/dist/react-native/operations/fluxConfigurations.d.ts +141 -0
  193. package/dist/react-native/operations/fluxConfigurations.d.ts.map +1 -0
  194. package/dist/react-native/operations/fluxConfigurations.js +536 -0
  195. package/dist/react-native/operations/fluxConfigurations.js.map +1 -0
  196. package/dist/react-native/operations/index.d.ts +3 -0
  197. package/dist/react-native/operations/index.d.ts.map +1 -0
  198. package/dist/react-native/operations/index.js +10 -0
  199. package/dist/react-native/operations/index.js.map +1 -0
  200. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  201. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  202. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
  203. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  204. package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  205. package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  206. package/dist/react-native/operationsInterfaces/fluxConfigurations.js +9 -0
  207. package/dist/react-native/operationsInterfaces/fluxConfigurations.js.map +1 -0
  208. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  209. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  210. package/dist/react-native/operationsInterfaces/index.js +10 -0
  211. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  212. package/dist/react-native/package.json +3 -0
  213. package/dist/react-native/pagingHelper.d.ts +13 -0
  214. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  215. package/dist/react-native/pagingHelper.js +32 -0
  216. package/dist/react-native/pagingHelper.js.map +1 -0
  217. package/package.json +133 -0
  218. package/review/arm-kubernetesconfiguration-fluxconfigurations.api.md +602 -0
@@ -0,0 +1,540 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.FluxConfigurationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing FluxConfigurations operations. */
20
+ class FluxConfigurationsImpl {
21
+ /**
22
+ * Initialize a new instance of the class FluxConfigurations class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * List all Flux Configurations.
30
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
31
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
32
+ * Microsoft.HybridContainerService.
33
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
34
+ * connectedClusters, provisionedClusters, appliances.
35
+ * @param clusterName The name of the kubernetes cluster.
36
+ * @param options The options parameters.
37
+ */
38
+ list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
39
+ const iter = this.listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options);
40
+ return {
41
+ next() {
42
+ return iter.next();
43
+ },
44
+ [Symbol.asyncIterator]() {
45
+ return this;
46
+ },
47
+ byPage: (settings) => {
48
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
49
+ throw new Error("maxPageSize is not supported by this operation.");
50
+ }
51
+ return this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings);
52
+ },
53
+ };
54
+ }
55
+ listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings) {
56
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
57
+ let result;
58
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
59
+ if (!continuationToken) {
60
+ result = yield tslib_1.__await(this._list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options));
61
+ let page = result.value || [];
62
+ continuationToken = result.nextLink;
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield yield tslib_1.__await(page);
65
+ }
66
+ while (continuationToken) {
67
+ result = yield tslib_1.__await(this._listNext(resourceGroupName, clusterRp, clusterResourceName, clusterName, continuationToken, options));
68
+ continuationToken = result.nextLink;
69
+ let page = result.value || [];
70
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
71
+ yield yield tslib_1.__await(page);
72
+ }
73
+ });
74
+ }
75
+ listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
76
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
77
+ var _a, e_1, _b, _c;
78
+ try {
79
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
80
+ _c = _f.value;
81
+ _d = false;
82
+ const page = _c;
83
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
84
+ }
85
+ }
86
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
87
+ finally {
88
+ try {
89
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
90
+ }
91
+ finally { if (e_1) throw e_1.error; }
92
+ }
93
+ });
94
+ }
95
+ /**
96
+ * Gets details of the Flux Configuration.
97
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
98
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
99
+ * Microsoft.HybridContainerService.
100
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
101
+ * connectedClusters, provisionedClusters, appliances.
102
+ * @param clusterName The name of the kubernetes cluster.
103
+ * @param fluxConfigurationName Name of the Flux Configuration.
104
+ * @param options The options parameters.
105
+ */
106
+ get(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options) {
107
+ return this.client.sendOperationRequest({
108
+ resourceGroupName,
109
+ clusterRp,
110
+ clusterResourceName,
111
+ clusterName,
112
+ fluxConfigurationName,
113
+ options,
114
+ }, getOperationSpec);
115
+ }
116
+ /**
117
+ * Create a new Kubernetes Flux Configuration.
118
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
119
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
120
+ * Microsoft.HybridContainerService.
121
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
122
+ * connectedClusters, provisionedClusters, appliances.
123
+ * @param clusterName The name of the kubernetes cluster.
124
+ * @param fluxConfigurationName Name of the Flux Configuration.
125
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
126
+ * @param options The options parameters.
127
+ */
128
+ async beginCreateOrUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration, options) {
129
+ const directSendOperation = async (args, spec) => {
130
+ return this.client.sendOperationRequest(args, spec);
131
+ };
132
+ const sendOperationFn = async (args, spec) => {
133
+ var _a;
134
+ let currentRawResponse = undefined;
135
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
136
+ const callback = (rawResponse, flatResponse) => {
137
+ currentRawResponse = rawResponse;
138
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
139
+ };
140
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
141
+ const flatResponse = await directSendOperation(updatedArgs, spec);
142
+ return {
143
+ flatResponse,
144
+ rawResponse: {
145
+ statusCode: currentRawResponse.status,
146
+ body: currentRawResponse.parsedBody,
147
+ headers: currentRawResponse.headers.toJSON(),
148
+ },
149
+ };
150
+ };
151
+ const lro = (0, lroImpl_js_1.createLroSpec)({
152
+ sendOperationFn,
153
+ args: {
154
+ resourceGroupName,
155
+ clusterRp,
156
+ clusterResourceName,
157
+ clusterName,
158
+ fluxConfigurationName,
159
+ fluxConfiguration,
160
+ options,
161
+ },
162
+ spec: createOrUpdateOperationSpec,
163
+ });
164
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
165
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
166
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
167
+ resourceLocationConfig: "azure-async-operation",
168
+ });
169
+ await poller.poll();
170
+ return poller;
171
+ }
172
+ /**
173
+ * Create a new Kubernetes Flux Configuration.
174
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
176
+ * Microsoft.HybridContainerService.
177
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
178
+ * connectedClusters, provisionedClusters, appliances.
179
+ * @param clusterName The name of the kubernetes cluster.
180
+ * @param fluxConfigurationName Name of the Flux Configuration.
181
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
182
+ * @param options The options parameters.
183
+ */
184
+ async beginCreateOrUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration, options) {
185
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration, options);
186
+ return poller.pollUntilDone();
187
+ }
188
+ /**
189
+ * Update an existing Kubernetes Flux Configuration.
190
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
191
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
192
+ * Microsoft.HybridContainerService.
193
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
194
+ * connectedClusters, provisionedClusters, appliances.
195
+ * @param clusterName The name of the kubernetes cluster.
196
+ * @param fluxConfigurationName Name of the Flux Configuration.
197
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
198
+ * @param options The options parameters.
199
+ */
200
+ async beginUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfigurationPatch, options) {
201
+ const directSendOperation = async (args, spec) => {
202
+ return this.client.sendOperationRequest(args, spec);
203
+ };
204
+ const sendOperationFn = async (args, spec) => {
205
+ var _a;
206
+ let currentRawResponse = undefined;
207
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
208
+ const callback = (rawResponse, flatResponse) => {
209
+ currentRawResponse = rawResponse;
210
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
211
+ };
212
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
213
+ const flatResponse = await directSendOperation(updatedArgs, spec);
214
+ return {
215
+ flatResponse,
216
+ rawResponse: {
217
+ statusCode: currentRawResponse.status,
218
+ body: currentRawResponse.parsedBody,
219
+ headers: currentRawResponse.headers.toJSON(),
220
+ },
221
+ };
222
+ };
223
+ const lro = (0, lroImpl_js_1.createLroSpec)({
224
+ sendOperationFn,
225
+ args: {
226
+ resourceGroupName,
227
+ clusterRp,
228
+ clusterResourceName,
229
+ clusterName,
230
+ fluxConfigurationName,
231
+ fluxConfigurationPatch,
232
+ options,
233
+ },
234
+ spec: updateOperationSpec,
235
+ });
236
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
237
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
238
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
239
+ resourceLocationConfig: "azure-async-operation",
240
+ });
241
+ await poller.poll();
242
+ return poller;
243
+ }
244
+ /**
245
+ * Update an existing Kubernetes Flux Configuration.
246
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
247
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
248
+ * Microsoft.HybridContainerService.
249
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
250
+ * connectedClusters, provisionedClusters, appliances.
251
+ * @param clusterName The name of the kubernetes cluster.
252
+ * @param fluxConfigurationName Name of the Flux Configuration.
253
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
254
+ * @param options The options parameters.
255
+ */
256
+ async beginUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfigurationPatch, options) {
257
+ const poller = await this.beginUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfigurationPatch, options);
258
+ return poller.pollUntilDone();
259
+ }
260
+ /**
261
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
262
+ * the source repo.
263
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
264
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
265
+ * Microsoft.HybridContainerService.
266
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
267
+ * connectedClusters, provisionedClusters, appliances.
268
+ * @param clusterName The name of the kubernetes cluster.
269
+ * @param fluxConfigurationName Name of the Flux Configuration.
270
+ * @param options The options parameters.
271
+ */
272
+ async beginDelete(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options) {
273
+ const directSendOperation = async (args, spec) => {
274
+ return this.client.sendOperationRequest(args, spec);
275
+ };
276
+ const sendOperationFn = async (args, spec) => {
277
+ var _a;
278
+ let currentRawResponse = undefined;
279
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
280
+ const callback = (rawResponse, flatResponse) => {
281
+ currentRawResponse = rawResponse;
282
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
283
+ };
284
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
285
+ const flatResponse = await directSendOperation(updatedArgs, spec);
286
+ return {
287
+ flatResponse,
288
+ rawResponse: {
289
+ statusCode: currentRawResponse.status,
290
+ body: currentRawResponse.parsedBody,
291
+ headers: currentRawResponse.headers.toJSON(),
292
+ },
293
+ };
294
+ };
295
+ const lro = (0, lroImpl_js_1.createLroSpec)({
296
+ sendOperationFn,
297
+ args: {
298
+ resourceGroupName,
299
+ clusterRp,
300
+ clusterResourceName,
301
+ clusterName,
302
+ fluxConfigurationName,
303
+ options,
304
+ },
305
+ spec: deleteOperationSpec,
306
+ });
307
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
308
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
309
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
310
+ resourceLocationConfig: "azure-async-operation",
311
+ });
312
+ await poller.poll();
313
+ return poller;
314
+ }
315
+ /**
316
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
317
+ * the source repo.
318
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
319
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
320
+ * Microsoft.HybridContainerService.
321
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
322
+ * connectedClusters, provisionedClusters, appliances.
323
+ * @param clusterName The name of the kubernetes cluster.
324
+ * @param fluxConfigurationName Name of the Flux Configuration.
325
+ * @param options The options parameters.
326
+ */
327
+ async beginDeleteAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options) {
328
+ const poller = await this.beginDelete(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options);
329
+ return poller.pollUntilDone();
330
+ }
331
+ /**
332
+ * List all Flux Configurations.
333
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
334
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
335
+ * Microsoft.HybridContainerService.
336
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
337
+ * connectedClusters, provisionedClusters, appliances.
338
+ * @param clusterName The name of the kubernetes cluster.
339
+ * @param options The options parameters.
340
+ */
341
+ _list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
342
+ return this.client.sendOperationRequest({
343
+ resourceGroupName,
344
+ clusterRp,
345
+ clusterResourceName,
346
+ clusterName,
347
+ options,
348
+ }, listOperationSpec);
349
+ }
350
+ /**
351
+ * ListNext
352
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
353
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
354
+ * Microsoft.HybridContainerService.
355
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
356
+ * connectedClusters, provisionedClusters, appliances.
357
+ * @param clusterName The name of the kubernetes cluster.
358
+ * @param nextLink The nextLink from the previous successful call to the List method.
359
+ * @param options The options parameters.
360
+ */
361
+ _listNext(resourceGroupName, clusterRp, clusterResourceName, clusterName, nextLink, options) {
362
+ return this.client.sendOperationRequest({
363
+ resourceGroupName,
364
+ clusterRp,
365
+ clusterResourceName,
366
+ clusterName,
367
+ nextLink,
368
+ options,
369
+ }, listNextOperationSpec);
370
+ }
371
+ }
372
+ exports.FluxConfigurationsImpl = FluxConfigurationsImpl;
373
+ // Operation Specifications
374
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
375
+ const getOperationSpec = {
376
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
377
+ httpMethod: "GET",
378
+ responses: {
379
+ 200: {
380
+ bodyMapper: Mappers.FluxConfiguration,
381
+ },
382
+ default: {
383
+ bodyMapper: Mappers.ErrorResponse,
384
+ },
385
+ },
386
+ queryParameters: [Parameters.apiVersion],
387
+ urlParameters: [
388
+ Parameters.$host,
389
+ Parameters.subscriptionId,
390
+ Parameters.resourceGroupName,
391
+ Parameters.clusterRp,
392
+ Parameters.clusterResourceName,
393
+ Parameters.clusterName,
394
+ Parameters.fluxConfigurationName,
395
+ ],
396
+ headerParameters: [Parameters.accept],
397
+ serializer,
398
+ };
399
+ const createOrUpdateOperationSpec = {
400
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
401
+ httpMethod: "PUT",
402
+ responses: {
403
+ 200: {
404
+ bodyMapper: Mappers.FluxConfiguration,
405
+ },
406
+ 201: {
407
+ bodyMapper: Mappers.FluxConfiguration,
408
+ },
409
+ 202: {
410
+ bodyMapper: Mappers.FluxConfiguration,
411
+ },
412
+ 204: {
413
+ bodyMapper: Mappers.FluxConfiguration,
414
+ },
415
+ default: {
416
+ bodyMapper: Mappers.ErrorResponse,
417
+ },
418
+ },
419
+ requestBody: Parameters.fluxConfiguration,
420
+ queryParameters: [Parameters.apiVersion],
421
+ urlParameters: [
422
+ Parameters.$host,
423
+ Parameters.subscriptionId,
424
+ Parameters.resourceGroupName,
425
+ Parameters.clusterRp,
426
+ Parameters.clusterResourceName,
427
+ Parameters.clusterName,
428
+ Parameters.fluxConfigurationName,
429
+ ],
430
+ headerParameters: [Parameters.accept, Parameters.contentType],
431
+ mediaType: "json",
432
+ serializer,
433
+ };
434
+ const updateOperationSpec = {
435
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
436
+ httpMethod: "PATCH",
437
+ responses: {
438
+ 200: {
439
+ bodyMapper: Mappers.FluxConfiguration,
440
+ },
441
+ 201: {
442
+ bodyMapper: Mappers.FluxConfiguration,
443
+ },
444
+ 202: {
445
+ bodyMapper: Mappers.FluxConfiguration,
446
+ },
447
+ 204: {
448
+ bodyMapper: Mappers.FluxConfiguration,
449
+ },
450
+ default: {
451
+ bodyMapper: Mappers.ErrorResponse,
452
+ },
453
+ },
454
+ requestBody: Parameters.fluxConfigurationPatch,
455
+ queryParameters: [Parameters.apiVersion],
456
+ urlParameters: [
457
+ Parameters.$host,
458
+ Parameters.subscriptionId,
459
+ Parameters.resourceGroupName,
460
+ Parameters.clusterRp,
461
+ Parameters.clusterResourceName,
462
+ Parameters.clusterName,
463
+ Parameters.fluxConfigurationName,
464
+ ],
465
+ headerParameters: [Parameters.accept, Parameters.contentType],
466
+ mediaType: "json",
467
+ serializer,
468
+ };
469
+ const deleteOperationSpec = {
470
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
471
+ httpMethod: "DELETE",
472
+ responses: {
473
+ 200: {},
474
+ 201: {},
475
+ 202: {},
476
+ 204: {},
477
+ default: {
478
+ bodyMapper: Mappers.ErrorResponse,
479
+ },
480
+ },
481
+ queryParameters: [Parameters.apiVersion, Parameters.forceDelete],
482
+ urlParameters: [
483
+ Parameters.$host,
484
+ Parameters.subscriptionId,
485
+ Parameters.resourceGroupName,
486
+ Parameters.clusterRp,
487
+ Parameters.clusterResourceName,
488
+ Parameters.clusterName,
489
+ Parameters.fluxConfigurationName,
490
+ ],
491
+ headerParameters: [Parameters.accept],
492
+ serializer,
493
+ };
494
+ const listOperationSpec = {
495
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations",
496
+ httpMethod: "GET",
497
+ responses: {
498
+ 200: {
499
+ bodyMapper: Mappers.FluxConfigurationsList,
500
+ },
501
+ default: {
502
+ bodyMapper: Mappers.ErrorResponse,
503
+ },
504
+ },
505
+ queryParameters: [Parameters.apiVersion],
506
+ urlParameters: [
507
+ Parameters.$host,
508
+ Parameters.subscriptionId,
509
+ Parameters.resourceGroupName,
510
+ Parameters.clusterRp,
511
+ Parameters.clusterResourceName,
512
+ Parameters.clusterName,
513
+ ],
514
+ headerParameters: [Parameters.accept],
515
+ serializer,
516
+ };
517
+ const listNextOperationSpec = {
518
+ path: "{nextLink}",
519
+ httpMethod: "GET",
520
+ responses: {
521
+ 200: {
522
+ bodyMapper: Mappers.FluxConfigurationsList,
523
+ },
524
+ default: {
525
+ bodyMapper: Mappers.ErrorResponse,
526
+ },
527
+ },
528
+ urlParameters: [
529
+ Parameters.$host,
530
+ Parameters.subscriptionId,
531
+ Parameters.resourceGroupName,
532
+ Parameters.clusterRp,
533
+ Parameters.clusterResourceName,
534
+ Parameters.clusterName,
535
+ Parameters.nextLink,
536
+ ],
537
+ headerParameters: [Parameters.accept],
538
+ serializer,
539
+ };
540
+ //# sourceMappingURL=fluxConfigurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fluxConfigurations.js","sourceRoot":"","sources":["../../../src/operations/fluxConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAiB9C,4CAA4C;AAC5C,sDAAsD;AACtD,MAAa,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,iBAAyB,EACzB,SAAiB,EACjB,mBAA2B,EAC3B,WAAmB,EACnB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,W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AAC,WAAW;QACtB,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6LAA6L;IACnM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { FluxConfigurations } 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 { FluxConfigurationClient } from \"../fluxConfigurationClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n FluxConfiguration,\n FluxConfigurationsListNextOptionalParams,\n FluxConfigurationsListOptionalParams,\n FluxConfigurationsListResponse,\n FluxConfigurationsGetOptionalParams,\n FluxConfigurationsGetResponse,\n FluxConfigurationsCreateOrUpdateOptionalParams,\n FluxConfigurationsCreateOrUpdateResponse,\n FluxConfigurationPatch,\n FluxConfigurationsUpdateOptionalParams,\n FluxConfigurationsUpdateResponse,\n FluxConfigurationsDeleteOptionalParams,\n FluxConfigurationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FluxConfigurations operations. */\nexport class FluxConfigurationsImpl implements FluxConfigurations {\n private readonly client: FluxConfigurationClient;\n\n /**\n * Initialize a new instance of the class FluxConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: FluxConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List all Flux Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<FluxConfiguration> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n );\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 clusterRp,\n clusterResourceName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FluxConfiguration[]> {\n let result: FluxConfigurationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n );\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(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams,\n ): AsyncIterableIterator<FluxConfiguration> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets details of the Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsGetOptionalParams,\n ): Promise<FluxConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfiguration: FluxConfiguration,\n options?: FluxConfigurationsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FluxConfigurationsCreateOrUpdateResponse>,\n FluxConfigurationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FluxConfigurationsCreateOrUpdateResponse> => {\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 = 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 clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfiguration,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n FluxConfigurationsCreateOrUpdateResponse,\n OperationState<FluxConfigurationsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfiguration: FluxConfiguration,\n options?: FluxConfigurationsCreateOrUpdateOptionalParams,\n ): Promise<FluxConfigurationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfiguration,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfigurationPatch: FluxConfigurationPatch,\n options?: FluxConfigurationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FluxConfigurationsUpdateResponse>,\n FluxConfigurationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FluxConfigurationsUpdateResponse> => {\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 = 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 clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfigurationPatch,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n FluxConfigurationsUpdateResponse,\n OperationState<FluxConfigurationsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfigurationPatch: FluxConfigurationPatch,\n options?: FluxConfigurationsUpdateOptionalParams,\n ): Promise<FluxConfigurationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfigurationPatch,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from\n * the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsDeleteOptionalParams,\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 = 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 clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\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 resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from\n * the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all Flux Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams,\n ): Promise<FluxConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\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 resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n nextLink: string,\n options?: FluxConfigurationsListNextOptionalParams,\n ): Promise<FluxConfigurationsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n 201: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n 202: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n 204: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.fluxConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n 201: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n 202: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n 204: {\n bodyMapper: Mappers.FluxConfiguration,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.fluxConfigurationPatch,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\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, Parameters.forceDelete],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfigurationsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfigurationsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./fluxConfigurations.js";
2
+ export * from "./fluxConfigOperationStatus.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./fluxConfigurations.js"), exports);
12
+ tslib_1.__exportStar(require("./fluxConfigOperationStatus.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,kEAAwC;AACxC,yEAA+C","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\nexport * from \"./fluxConfigurations.js\";\nexport * from \"./fluxConfigOperationStatus.js\";\n"]}