@azure/arm-features 3.1.1-alpha.20250124.1 → 3.1.1-alpha.20250128.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 (281) hide show
  1. package/{dist-esm/src → dist/browser}/featureClient.d.ts +2 -2
  2. package/dist/browser/featureClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/featureClient.js +19 -21
  4. package/dist/browser/featureClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/models/index.js.map +1 -0
  10. package/dist/browser/models/mappers.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  12. package/dist/browser/models/parameters.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/operations/features.d.ts +3 -3
  14. package/dist/browser/operations/features.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/features.js +3 -3
  16. package/dist/browser/operations/features.js.map +1 -0
  17. package/dist/browser/operations/index.d.ts +3 -0
  18. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  19. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  20. package/dist/browser/operations/index.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/subscriptionFeatureRegistrations.d.ts +3 -3
  22. package/dist/browser/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/subscriptionFeatureRegistrations.js +3 -3
  24. package/dist/browser/operations/subscriptionFeatureRegistrations.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/features.d.ts +1 -1
  26. package/dist/browser/operationsInterfaces/features.d.ts.map +1 -0
  27. package/dist/browser/operationsInterfaces/features.js.map +1 -0
  28. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  30. package/dist/browser/operationsInterfaces/index.js +10 -0
  31. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +1 -1
  33. package/dist/browser/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  34. package/dist/browser/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  35. package/dist/browser/package.json +3 -0
  36. package/dist/browser/pagingHelper.js.map +1 -0
  37. package/dist/commonjs/featureClient.d.ts +40 -0
  38. package/dist/commonjs/featureClient.d.ts.map +1 -0
  39. package/dist/commonjs/featureClient.js +217 -0
  40. package/dist/commonjs/featureClient.js.map +1 -0
  41. package/dist/commonjs/index.d.ts +5 -0
  42. package/dist/commonjs/index.d.ts.map +1 -0
  43. package/dist/commonjs/index.js +19 -0
  44. package/dist/commonjs/index.js.map +1 -0
  45. package/dist/commonjs/models/index.d.ts +323 -0
  46. package/dist/commonjs/models/index.d.ts.map +1 -0
  47. package/dist/commonjs/models/index.js +39 -0
  48. package/dist/commonjs/models/index.js.map +1 -0
  49. package/dist/commonjs/models/mappers.d.ts +15 -0
  50. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  51. package/dist/commonjs/models/mappers.js +427 -0
  52. package/dist/commonjs/models/mappers.js.map +1 -0
  53. package/dist/commonjs/models/parameters.d.ts +13 -0
  54. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  55. package/dist/commonjs/models/parameters.js +122 -0
  56. package/dist/commonjs/models/parameters.js.map +1 -0
  57. package/dist/commonjs/operations/features.d.ts +76 -0
  58. package/dist/commonjs/operations/features.d.ts.map +1 -0
  59. package/dist/commonjs/operations/features.js +354 -0
  60. package/dist/commonjs/operations/features.js.map +1 -0
  61. package/dist/commonjs/operations/index.d.ts +3 -0
  62. package/dist/commonjs/operations/index.d.ts.map +1 -0
  63. package/dist/commonjs/operations/index.js +13 -0
  64. package/dist/commonjs/operations/index.js.map +1 -0
  65. package/dist/commonjs/operations/subscriptionFeatureRegistrations.d.ts +74 -0
  66. package/dist/commonjs/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  67. package/dist/commonjs/operations/subscriptionFeatureRegistrations.js +353 -0
  68. package/dist/commonjs/operations/subscriptionFeatureRegistrations.js.map +1 -0
  69. package/dist/commonjs/operationsInterfaces/features.d.ts +39 -0
  70. package/dist/commonjs/operationsInterfaces/features.d.ts.map +1 -0
  71. package/{dist-esm/src/operationsInterfaces/index.js → dist/commonjs/operationsInterfaces/features.js} +3 -3
  72. package/dist/commonjs/operationsInterfaces/features.js.map +1 -0
  73. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  74. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  75. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  76. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  77. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +38 -0
  78. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  79. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js +10 -0
  80. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  81. package/dist/commonjs/package.json +3 -0
  82. package/dist/commonjs/pagingHelper.d.ts +13 -0
  83. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  84. package/dist/commonjs/pagingHelper.js +36 -0
  85. package/dist/commonjs/pagingHelper.js.map +1 -0
  86. package/dist/esm/featureClient.d.ts +40 -0
  87. package/dist/esm/featureClient.d.ts.map +1 -0
  88. package/dist/esm/featureClient.js +213 -0
  89. package/dist/esm/featureClient.js.map +1 -0
  90. package/dist/esm/index.d.ts +5 -0
  91. package/dist/esm/index.d.ts.map +1 -0
  92. package/{src/index.ts → dist/esm/index.js} +5 -5
  93. package/dist/esm/index.js.map +1 -0
  94. package/dist/esm/models/index.d.ts +323 -0
  95. package/dist/esm/models/index.d.ts.map +1 -0
  96. package/dist/esm/models/index.js +36 -0
  97. package/dist/esm/models/index.js.map +1 -0
  98. package/dist/esm/models/mappers.d.ts +15 -0
  99. package/dist/esm/models/mappers.d.ts.map +1 -0
  100. package/dist/esm/models/mappers.js +424 -0
  101. package/dist/esm/models/mappers.js.map +1 -0
  102. package/dist/esm/models/parameters.d.ts +13 -0
  103. package/dist/esm/models/parameters.d.ts.map +1 -0
  104. package/dist/esm/models/parameters.js +119 -0
  105. package/dist/esm/models/parameters.js.map +1 -0
  106. package/dist/esm/operations/features.d.ts +76 -0
  107. package/dist/esm/operations/features.d.ts.map +1 -0
  108. package/dist/esm/operations/features.js +350 -0
  109. package/dist/esm/operations/features.js.map +1 -0
  110. package/dist/esm/operations/index.d.ts +3 -0
  111. package/dist/esm/operations/index.d.ts.map +1 -0
  112. package/dist/esm/operations/index.js +10 -0
  113. package/dist/esm/operations/index.js.map +1 -0
  114. package/dist/esm/operations/subscriptionFeatureRegistrations.d.ts +74 -0
  115. package/dist/esm/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  116. package/dist/esm/operations/subscriptionFeatureRegistrations.js +349 -0
  117. package/dist/esm/operations/subscriptionFeatureRegistrations.js.map +1 -0
  118. package/dist/esm/operationsInterfaces/features.d.ts +39 -0
  119. package/dist/esm/operationsInterfaces/features.d.ts.map +1 -0
  120. package/{src/operations/index.ts → dist/esm/operationsInterfaces/features.js} +2 -3
  121. package/dist/esm/operationsInterfaces/features.js.map +1 -0
  122. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  123. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  124. package/dist/esm/operationsInterfaces/index.js +10 -0
  125. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  126. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +38 -0
  127. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  128. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js} +2 -3
  129. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  130. package/dist/esm/package.json +3 -0
  131. package/dist/esm/pagingHelper.d.ts +13 -0
  132. package/dist/esm/pagingHelper.d.ts.map +1 -0
  133. package/dist/esm/pagingHelper.js +32 -0
  134. package/dist/esm/pagingHelper.js.map +1 -0
  135. package/dist/react-native/featureClient.d.ts +40 -0
  136. package/dist/react-native/featureClient.d.ts.map +1 -0
  137. package/dist/react-native/featureClient.js +213 -0
  138. package/dist/react-native/featureClient.js.map +1 -0
  139. package/dist/react-native/index.d.ts +5 -0
  140. package/dist/react-native/index.d.ts.map +1 -0
  141. package/dist/react-native/index.js +13 -0
  142. package/dist/react-native/index.js.map +1 -0
  143. package/dist/react-native/models/index.d.ts +323 -0
  144. package/dist/react-native/models/index.d.ts.map +1 -0
  145. package/dist/react-native/models/index.js +36 -0
  146. package/dist/react-native/models/index.js.map +1 -0
  147. package/dist/react-native/models/mappers.d.ts +15 -0
  148. package/dist/react-native/models/mappers.d.ts.map +1 -0
  149. package/dist/react-native/models/mappers.js +424 -0
  150. package/dist/react-native/models/mappers.js.map +1 -0
  151. package/dist/react-native/models/parameters.d.ts +13 -0
  152. package/dist/react-native/models/parameters.d.ts.map +1 -0
  153. package/dist/react-native/models/parameters.js +119 -0
  154. package/dist/react-native/models/parameters.js.map +1 -0
  155. package/dist/react-native/operations/features.d.ts +76 -0
  156. package/dist/react-native/operations/features.d.ts.map +1 -0
  157. package/dist/react-native/operations/features.js +350 -0
  158. package/dist/react-native/operations/features.js.map +1 -0
  159. package/dist/react-native/operations/index.d.ts +3 -0
  160. package/dist/react-native/operations/index.d.ts.map +1 -0
  161. package/dist/react-native/operations/index.js +10 -0
  162. package/dist/react-native/operations/index.js.map +1 -0
  163. package/dist/react-native/operations/subscriptionFeatureRegistrations.d.ts +74 -0
  164. package/dist/react-native/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  165. package/dist/react-native/operations/subscriptionFeatureRegistrations.js +349 -0
  166. package/dist/react-native/operations/subscriptionFeatureRegistrations.js.map +1 -0
  167. package/dist/react-native/operationsInterfaces/features.d.ts +39 -0
  168. package/dist/react-native/operationsInterfaces/features.d.ts.map +1 -0
  169. package/dist/react-native/operationsInterfaces/features.js +9 -0
  170. package/dist/react-native/operationsInterfaces/features.js.map +1 -0
  171. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  172. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  173. package/dist/react-native/operationsInterfaces/index.js +10 -0
  174. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  175. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +38 -0
  176. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  177. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.js +9 -0
  178. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  179. package/dist/react-native/package.json +3 -0
  180. package/dist/react-native/pagingHelper.d.ts +13 -0
  181. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  182. package/dist/react-native/pagingHelper.js +32 -0
  183. package/dist/react-native/pagingHelper.js.map +1 -0
  184. package/package.json +64 -34
  185. package/dist/index.js +0 -1555
  186. package/dist/index.js.map +0 -1
  187. package/dist/index.min.js +0 -1
  188. package/dist/index.min.js.map +0 -1
  189. package/dist-esm/samples-dev/featuresGetSample.d.ts +0 -2
  190. package/dist-esm/samples-dev/featuresGetSample.d.ts.map +0 -1
  191. package/dist-esm/samples-dev/featuresGetSample.js +0 -29
  192. package/dist-esm/samples-dev/featuresGetSample.js.map +0 -1
  193. package/dist-esm/samples-dev/featuresListAllSample.d.ts +0 -2
  194. package/dist-esm/samples-dev/featuresListAllSample.d.ts.map +0 -1
  195. package/dist-esm/samples-dev/featuresListAllSample.js +0 -43
  196. package/dist-esm/samples-dev/featuresListAllSample.js.map +0 -1
  197. package/dist-esm/samples-dev/featuresListSample.d.ts +0 -2
  198. package/dist-esm/samples-dev/featuresListSample.d.ts.map +0 -1
  199. package/dist-esm/samples-dev/featuresListSample.js +0 -44
  200. package/dist-esm/samples-dev/featuresListSample.js.map +0 -1
  201. package/dist-esm/samples-dev/featuresRegisterSample.d.ts +0 -2
  202. package/dist-esm/samples-dev/featuresRegisterSample.d.ts.map +0 -1
  203. package/dist-esm/samples-dev/featuresRegisterSample.js +0 -29
  204. package/dist-esm/samples-dev/featuresRegisterSample.js.map +0 -1
  205. package/dist-esm/samples-dev/featuresUnregisterSample.d.ts +0 -2
  206. package/dist-esm/samples-dev/featuresUnregisterSample.d.ts.map +0 -1
  207. package/dist-esm/samples-dev/featuresUnregisterSample.js +0 -29
  208. package/dist-esm/samples-dev/featuresUnregisterSample.js.map +0 -1
  209. package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
  210. package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
  211. package/dist-esm/samples-dev/listOperationsSample.js +0 -43
  212. package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
  213. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.d.ts +0 -2
  214. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.d.ts.map +0 -1
  215. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.js +0 -28
  216. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.js.map +0 -1
  217. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.d.ts +0 -2
  218. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.d.ts.map +0 -1
  219. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.js +0 -29
  220. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.js.map +0 -1
  221. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.d.ts +0 -2
  222. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.d.ts.map +0 -1
  223. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.js +0 -29
  224. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.js.map +0 -1
  225. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.d.ts +0 -2
  226. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.d.ts.map +0 -1
  227. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.js +0 -43
  228. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.js.map +0 -1
  229. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.d.ts +0 -2
  230. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.d.ts.map +0 -1
  231. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.js +0 -44
  232. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.js.map +0 -1
  233. package/dist-esm/src/featureClient.d.ts.map +0 -1
  234. package/dist-esm/src/featureClient.js.map +0 -1
  235. package/dist-esm/src/index.d.ts +0 -5
  236. package/dist-esm/src/index.js.map +0 -1
  237. package/dist-esm/src/models/index.js.map +0 -1
  238. package/dist-esm/src/models/mappers.js.map +0 -1
  239. package/dist-esm/src/models/parameters.js.map +0 -1
  240. package/dist-esm/src/operations/features.d.ts.map +0 -1
  241. package/dist-esm/src/operations/features.js.map +0 -1
  242. package/dist-esm/src/operations/index.d.ts +0 -3
  243. package/dist-esm/src/operations/index.js.map +0 -1
  244. package/dist-esm/src/operations/subscriptionFeatureRegistrations.d.ts.map +0 -1
  245. package/dist-esm/src/operations/subscriptionFeatureRegistrations.js.map +0 -1
  246. package/dist-esm/src/operationsInterfaces/features.d.ts.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/features.js.map +0 -1
  248. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  249. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  250. package/dist-esm/src/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +0 -1
  251. package/dist-esm/src/operationsInterfaces/subscriptionFeatureRegistrations.js.map +0 -1
  252. package/dist-esm/src/pagingHelper.js.map +0 -1
  253. package/dist-esm/test/features_example.spec.d.ts +0 -4
  254. package/dist-esm/test/features_example.spec.d.ts.map +0 -1
  255. package/dist-esm/test/features_example.spec.js +0 -121
  256. package/dist-esm/test/features_example.spec.js.map +0 -1
  257. package/src/featureClient.ts +0 -276
  258. package/src/models/index.ts +0 -379
  259. package/src/models/mappers.ts +0 -441
  260. package/src/models/parameters.ts +0 -135
  261. package/src/operations/features.ts +0 -426
  262. package/src/operations/subscriptionFeatureRegistrations.ts +0 -434
  263. package/src/operationsInterfaces/features.ts +0 -75
  264. package/src/operationsInterfaces/subscriptionFeatureRegistrations.ts +0 -73
  265. package/src/pagingHelper.ts +0 -39
  266. package/tsconfig.json +0 -33
  267. package/types/arm-features.d.ts +0 -492
  268. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  269. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  270. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  271. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  272. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  273. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  274. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  275. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  276. /package/{dist-esm/src → dist/browser}/operationsInterfaces/features.js +0 -0
  277. /package/{dist-esm/src → dist/browser}/operationsInterfaces/subscriptionFeatureRegistrations.js +0 -0
  278. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  279. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  280. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  281. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,353 @@
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.SubscriptionFeatureRegistrationsImpl = 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
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing SubscriptionFeatureRegistrations operations. */
18
+ class SubscriptionFeatureRegistrationsImpl {
19
+ /**
20
+ * Initialize a new instance of the class SubscriptionFeatureRegistrations class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Returns subscription feature registrations for given subscription and provider namespace.
28
+ * @param providerNamespace The provider namespace.
29
+ * @param options The options parameters.
30
+ */
31
+ listBySubscription(providerNamespace, options) {
32
+ const iter = this.listBySubscriptionPagingAll(providerNamespace, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listBySubscriptionPagingPage(providerNamespace, options, settings);
45
+ }
46
+ };
47
+ }
48
+ listBySubscriptionPagingPage(providerNamespace, options, settings) {
49
+ return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
50
+ let result;
51
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
+ if (!continuationToken) {
53
+ result = yield tslib_1.__await(this._listBySubscription(providerNamespace, options));
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield yield tslib_1.__await(page);
58
+ }
59
+ while (continuationToken) {
60
+ result = yield tslib_1.__await(this._listBySubscriptionNext(providerNamespace, continuationToken, options));
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield yield tslib_1.__await(page);
65
+ }
66
+ });
67
+ }
68
+ listBySubscriptionPagingAll(providerNamespace, options) {
69
+ return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
70
+ var _a, e_1, _b, _c;
71
+ try {
72
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(providerNamespace, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
+ _c = _f.value;
74
+ _d = false;
75
+ const page = _c;
76
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
+ }
78
+ }
79
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
+ finally {
81
+ try {
82
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
+ }
84
+ finally { if (e_1) throw e_1.error; }
85
+ }
86
+ });
87
+ }
88
+ /**
89
+ * Returns subscription feature registrations for given subscription.
90
+ * @param options The options parameters.
91
+ */
92
+ listAllBySubscription(options) {
93
+ const iter = this.listAllBySubscriptionPagingAll(options);
94
+ return {
95
+ next() {
96
+ return iter.next();
97
+ },
98
+ [Symbol.asyncIterator]() {
99
+ return this;
100
+ },
101
+ byPage: (settings) => {
102
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
103
+ throw new Error("maxPageSize is not supported by this operation.");
104
+ }
105
+ return this.listAllBySubscriptionPagingPage(options, settings);
106
+ }
107
+ };
108
+ }
109
+ listAllBySubscriptionPagingPage(options, settings) {
110
+ return tslib_1.__asyncGenerator(this, arguments, function* listAllBySubscriptionPagingPage_1() {
111
+ let result;
112
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
+ if (!continuationToken) {
114
+ result = yield tslib_1.__await(this._listAllBySubscription(options));
115
+ let page = result.value || [];
116
+ continuationToken = result.nextLink;
117
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
118
+ yield yield tslib_1.__await(page);
119
+ }
120
+ while (continuationToken) {
121
+ result = yield tslib_1.__await(this._listAllBySubscriptionNext(continuationToken, options));
122
+ continuationToken = result.nextLink;
123
+ let page = result.value || [];
124
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
125
+ yield yield tslib_1.__await(page);
126
+ }
127
+ });
128
+ }
129
+ listAllBySubscriptionPagingAll(options) {
130
+ return tslib_1.__asyncGenerator(this, arguments, function* listAllBySubscriptionPagingAll_1() {
131
+ var _a, e_2, _b, _c;
132
+ try {
133
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listAllBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
134
+ _c = _f.value;
135
+ _d = false;
136
+ const page = _c;
137
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
138
+ }
139
+ }
140
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
141
+ finally {
142
+ try {
143
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
144
+ }
145
+ finally { if (e_2) throw e_2.error; }
146
+ }
147
+ });
148
+ }
149
+ /**
150
+ * Returns a feature registration
151
+ * @param providerNamespace The provider namespace.
152
+ * @param featureName The feature name.
153
+ * @param options The options parameters.
154
+ */
155
+ get(providerNamespace, featureName, options) {
156
+ return this.client.sendOperationRequest({ providerNamespace, featureName, options }, getOperationSpec);
157
+ }
158
+ /**
159
+ * Create or update a feature registration.
160
+ * @param providerNamespace The provider namespace.
161
+ * @param featureName The feature name.
162
+ * @param options The options parameters.
163
+ */
164
+ createOrUpdate(providerNamespace, featureName, options) {
165
+ return this.client.sendOperationRequest({ providerNamespace, featureName, options }, createOrUpdateOperationSpec);
166
+ }
167
+ /**
168
+ * Deletes a feature registration
169
+ * @param providerNamespace The provider namespace.
170
+ * @param featureName The feature name.
171
+ * @param options The options parameters.
172
+ */
173
+ delete(providerNamespace, featureName, options) {
174
+ return this.client.sendOperationRequest({ providerNamespace, featureName, options }, deleteOperationSpec);
175
+ }
176
+ /**
177
+ * Returns subscription feature registrations for given subscription and provider namespace.
178
+ * @param providerNamespace The provider namespace.
179
+ * @param options The options parameters.
180
+ */
181
+ _listBySubscription(providerNamespace, options) {
182
+ return this.client.sendOperationRequest({ providerNamespace, options }, listBySubscriptionOperationSpec);
183
+ }
184
+ /**
185
+ * Returns subscription feature registrations for given subscription.
186
+ * @param options The options parameters.
187
+ */
188
+ _listAllBySubscription(options) {
189
+ return this.client.sendOperationRequest({ options }, listAllBySubscriptionOperationSpec);
190
+ }
191
+ /**
192
+ * ListBySubscriptionNext
193
+ * @param providerNamespace The provider namespace.
194
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
195
+ * @param options The options parameters.
196
+ */
197
+ _listBySubscriptionNext(providerNamespace, nextLink, options) {
198
+ return this.client.sendOperationRequest({ providerNamespace, nextLink, options }, listBySubscriptionNextOperationSpec);
199
+ }
200
+ /**
201
+ * ListAllBySubscriptionNext
202
+ * @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.
203
+ * @param options The options parameters.
204
+ */
205
+ _listAllBySubscriptionNext(nextLink, options) {
206
+ return this.client.sendOperationRequest({ nextLink, options }, listAllBySubscriptionNextOperationSpec);
207
+ }
208
+ }
209
+ exports.SubscriptionFeatureRegistrationsImpl = SubscriptionFeatureRegistrationsImpl;
210
+ // Operation Specifications
211
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
212
+ const getOperationSpec = {
213
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
214
+ httpMethod: "GET",
215
+ responses: {
216
+ 200: {
217
+ bodyMapper: Mappers.SubscriptionFeatureRegistration
218
+ },
219
+ default: {
220
+ bodyMapper: Mappers.ErrorResponse
221
+ }
222
+ },
223
+ queryParameters: [Parameters.apiVersion],
224
+ urlParameters: [
225
+ Parameters.$host,
226
+ Parameters.subscriptionId,
227
+ Parameters.featureName,
228
+ Parameters.providerNamespace
229
+ ],
230
+ headerParameters: [Parameters.accept1],
231
+ serializer
232
+ };
233
+ const createOrUpdateOperationSpec = {
234
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
235
+ httpMethod: "PUT",
236
+ responses: {
237
+ 200: {
238
+ bodyMapper: Mappers.SubscriptionFeatureRegistration
239
+ },
240
+ default: {
241
+ bodyMapper: Mappers.ErrorResponse
242
+ }
243
+ },
244
+ requestBody: Parameters.subscriptionFeatureRegistrationType,
245
+ queryParameters: [Parameters.apiVersion],
246
+ urlParameters: [
247
+ Parameters.$host,
248
+ Parameters.subscriptionId,
249
+ Parameters.featureName,
250
+ Parameters.providerNamespace
251
+ ],
252
+ headerParameters: [Parameters.accept1, Parameters.contentType],
253
+ mediaType: "json",
254
+ serializer
255
+ };
256
+ const deleteOperationSpec = {
257
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
258
+ httpMethod: "DELETE",
259
+ responses: {
260
+ 200: {},
261
+ 204: {},
262
+ default: {
263
+ bodyMapper: Mappers.ErrorResponse
264
+ }
265
+ },
266
+ queryParameters: [Parameters.apiVersion],
267
+ urlParameters: [
268
+ Parameters.$host,
269
+ Parameters.subscriptionId,
270
+ Parameters.featureName,
271
+ Parameters.providerNamespace
272
+ ],
273
+ headerParameters: [Parameters.accept1],
274
+ serializer
275
+ };
276
+ const listBySubscriptionOperationSpec = {
277
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations",
278
+ httpMethod: "GET",
279
+ responses: {
280
+ 200: {
281
+ bodyMapper: Mappers.SubscriptionFeatureRegistrationList
282
+ },
283
+ default: {
284
+ bodyMapper: Mappers.ErrorResponse
285
+ }
286
+ },
287
+ queryParameters: [Parameters.apiVersion],
288
+ urlParameters: [
289
+ Parameters.$host,
290
+ Parameters.subscriptionId,
291
+ Parameters.providerNamespace
292
+ ],
293
+ headerParameters: [Parameters.accept1],
294
+ serializer
295
+ };
296
+ const listAllBySubscriptionOperationSpec = {
297
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations",
298
+ httpMethod: "GET",
299
+ responses: {
300
+ 200: {
301
+ bodyMapper: Mappers.SubscriptionFeatureRegistrationList
302
+ },
303
+ default: {
304
+ bodyMapper: Mappers.ErrorResponse
305
+ }
306
+ },
307
+ queryParameters: [Parameters.apiVersion],
308
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
309
+ headerParameters: [Parameters.accept1],
310
+ serializer
311
+ };
312
+ const listBySubscriptionNextOperationSpec = {
313
+ path: "{nextLink}",
314
+ httpMethod: "GET",
315
+ responses: {
316
+ 200: {
317
+ bodyMapper: Mappers.SubscriptionFeatureRegistrationList
318
+ },
319
+ default: {
320
+ bodyMapper: Mappers.ErrorResponse
321
+ }
322
+ },
323
+ queryParameters: [Parameters.apiVersion],
324
+ urlParameters: [
325
+ Parameters.$host,
326
+ Parameters.nextLink,
327
+ Parameters.subscriptionId,
328
+ Parameters.providerNamespace
329
+ ],
330
+ headerParameters: [Parameters.accept1],
331
+ serializer
332
+ };
333
+ const listAllBySubscriptionNextOperationSpec = {
334
+ path: "{nextLink}",
335
+ httpMethod: "GET",
336
+ responses: {
337
+ 200: {
338
+ bodyMapper: Mappers.SubscriptionFeatureRegistrationList
339
+ },
340
+ default: {
341
+ bodyMapper: Mappers.ErrorResponse
342
+ }
343
+ },
344
+ queryParameters: [Parameters.apiVersion],
345
+ urlParameters: [
346
+ Parameters.$host,
347
+ Parameters.nextLink,
348
+ Parameters.subscriptionId
349
+ ],
350
+ headerParameters: [Parameters.accept1],
351
+ serializer
352
+ };
353
+ //# sourceMappingURL=subscriptionFeatureRegistrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionFeatureRegistrations.js","sourceRoot":"","sources":["../../../src/operations/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAI/C;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,OAA0E;QAE1E,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC1E,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,4BAA4B,CACtC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ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AC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IACtC,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 { SubscriptionFeatureRegistrations } 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 { FeatureClient } from \"../featureClient.js\";\nimport {\n SubscriptionFeatureRegistration,\n SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams,\n SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsListBySubscriptionResponse,\n SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams,\n SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsListAllBySubscriptionResponse,\n SubscriptionFeatureRegistrationsGetOptionalParams,\n SubscriptionFeatureRegistrationsGetResponse,\n SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams,\n SubscriptionFeatureRegistrationsCreateOrUpdateResponse,\n SubscriptionFeatureRegistrationsDeleteOptionalParams,\n SubscriptionFeatureRegistrationsListBySubscriptionNextResponse,\n SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SubscriptionFeatureRegistrations operations. */\nexport class SubscriptionFeatureRegistrationsImpl\n implements SubscriptionFeatureRegistrations {\n private readonly client: FeatureClient;\n\n /**\n * Initialize a new instance of the class SubscriptionFeatureRegistrations class.\n * @param client Reference to the service client\n */\n constructor(client: FeatureClient) {\n this.client = client;\n }\n\n /**\n * Returns subscription feature registrations for given subscription and provider namespace.\n * @param providerNamespace The provider namespace.\n * @param options The options parameters.\n */\n public listBySubscription(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration> {\n const iter = this.listBySubscriptionPagingAll(providerNamespace, 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.listBySubscriptionPagingPage(\n providerNamespace,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SubscriptionFeatureRegistration[]> {\n let result: SubscriptionFeatureRegistrationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(providerNamespace, 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._listBySubscriptionNext(\n providerNamespace,\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 *listBySubscriptionPagingAll(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<SubscriptionFeatureRegistration> {\n for await (const page of this.listBySubscriptionPagingPage(\n providerNamespace,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns subscription feature registrations for given subscription.\n * @param options The options parameters.\n */\n public listAllBySubscription(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration> {\n const iter = this.listAllBySubscriptionPagingAll(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.listAllBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllBySubscriptionPagingPage(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SubscriptionFeatureRegistration[]> {\n let result: SubscriptionFeatureRegistrationsListAllBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAllBySubscription(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._listAllBySubscriptionNext(\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 *listAllBySubscriptionPagingAll(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): AsyncIterableIterator<SubscriptionFeatureRegistration> {\n for await (const page of this.listAllBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n get(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsGetOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsGetResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, featureName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a feature registration.\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n createOrUpdate(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, featureName, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n delete(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { providerNamespace, featureName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns subscription feature registrations for given subscription and provider namespace.\n * @param providerNamespace The provider namespace.\n * @param options The options parameters.\n */\n private _listBySubscription(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns subscription feature registrations for given subscription.\n * @param options The options parameters.\n */\n private _listAllBySubscription(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsListAllBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listAllBySubscriptionOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param providerNamespace The provider namespace.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n providerNamespace: string,\n nextLink: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListAllBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.\n * @param options The options parameters.\n */\n private _listAllBySubscriptionNext(\n nextLink: string,\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams\n ): Promise<\n SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse\n > {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.featureName,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.subscriptionFeatureRegistrationType,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.featureName,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.featureName,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listAllBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listAllBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\n"]}
@@ -0,0 +1,39 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models/index.js";
3
+ /** Interface representing a Features. */
4
+ export interface Features {
5
+ /**
6
+ * Gets all the preview features that are available through AFEC for the subscription.
7
+ * @param options The options parameters.
8
+ */
9
+ listAll(options?: FeaturesListAllOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
10
+ /**
11
+ * Gets all the preview features in a provider namespace that are available through AFEC for the
12
+ * subscription.
13
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
14
+ * @param options The options parameters.
15
+ */
16
+ list(resourceProviderNamespace: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
17
+ /**
18
+ * Gets the preview feature with the specified name.
19
+ * @param resourceProviderNamespace The resource provider namespace for the feature.
20
+ * @param featureName The name of the feature to get.
21
+ * @param options The options parameters.
22
+ */
23
+ get(resourceProviderNamespace: string, featureName: string, options?: FeaturesGetOptionalParams): Promise<FeaturesGetResponse>;
24
+ /**
25
+ * Registers the preview feature for the subscription.
26
+ * @param resourceProviderNamespace The namespace of the resource provider.
27
+ * @param featureName The name of the feature to register.
28
+ * @param options The options parameters.
29
+ */
30
+ register(resourceProviderNamespace: string, featureName: string, options?: FeaturesRegisterOptionalParams): Promise<FeaturesRegisterResponse>;
31
+ /**
32
+ * Unregisters the preview feature for the subscription.
33
+ * @param resourceProviderNamespace The namespace of the resource provider.
34
+ * @param featureName The name of the feature to unregister.
35
+ * @param options The options parameters.
36
+ */
37
+ unregister(resourceProviderNamespace: string, featureName: string, options?: FeaturesUnregisterOptionalParams): Promise<FeaturesUnregisterResponse>;
38
+ }
39
+ //# sourceMappingURL=features.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/features.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,6BAA6B,EAC7B,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,OAAO,CACL,OAAO,CAAC,EAAE,6BAA6B,GACtC,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,IAAI,CACF,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,GAAG,CACD,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CACN,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;OAKG;IACH,UAAU,CACR,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /*
2
3
  * Copyright (c) Microsoft Corporation.
3
4
  * Licensed under the MIT License.
@@ -5,6 +6,5 @@
5
6
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
7
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
8
  */
8
- export * from "./features";
9
- export * from "./subscriptionFeatureRegistrations";
10
- //# sourceMappingURL=index.js.map
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/features.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n FeatureResult,\n FeaturesListAllOptionalParams,\n FeaturesListOptionalParams,\n FeaturesGetOptionalParams,\n FeaturesGetResponse,\n FeaturesRegisterOptionalParams,\n FeaturesRegisterResponse,\n FeaturesUnregisterOptionalParams,\n FeaturesUnregisterResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Features. */\nexport interface Features {\n /**\n * Gets all the preview features that are available through AFEC for the subscription.\n * @param options The options parameters.\n */\n listAll(\n options?: FeaturesListAllOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult>;\n /**\n * Gets all the preview features in a provider namespace that are available through AFEC for the\n * subscription.\n * @param resourceProviderNamespace The namespace of the resource provider for getting features.\n * @param options The options parameters.\n */\n list(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult>;\n /**\n * Gets the preview feature with the specified name.\n * @param resourceProviderNamespace The resource provider namespace for the feature.\n * @param featureName The name of the feature to get.\n * @param options The options parameters.\n */\n get(\n resourceProviderNamespace: string,\n featureName: string,\n options?: FeaturesGetOptionalParams\n ): Promise<FeaturesGetResponse>;\n /**\n * Registers the preview feature for the subscription.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param featureName The name of the feature to register.\n * @param options The options parameters.\n */\n register(\n resourceProviderNamespace: string,\n featureName: string,\n options?: FeaturesRegisterOptionalParams\n ): Promise<FeaturesRegisterResponse>;\n /**\n * Unregisters the preview feature for the subscription.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param featureName The name of the feature to unregister.\n * @param options The options parameters.\n */\n unregister(\n resourceProviderNamespace: string,\n featureName: string,\n options?: FeaturesUnregisterOptionalParams\n ): Promise<FeaturesUnregisterResponse>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./features.js";
2
+ export * from "./subscriptionFeatureRegistrations.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC;AAC9B,cAAc,uCAAuC,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("./features.js"), exports);
12
+ tslib_1.__exportStar(require("./subscriptionFeatureRegistrations.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wDAA8B;AAC9B,gFAAsD","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 \"./features.js\";\nexport * from \"./subscriptionFeatureRegistrations.js\";\n"]}
@@ -0,0 +1,38 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models/index.js";
3
+ /** Interface representing a SubscriptionFeatureRegistrations. */
4
+ export interface SubscriptionFeatureRegistrations {
5
+ /**
6
+ * Returns subscription feature registrations for given subscription and provider namespace.
7
+ * @param providerNamespace The provider namespace.
8
+ * @param options The options parameters.
9
+ */
10
+ listBySubscription(providerNamespace: string, options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
11
+ /**
12
+ * Returns subscription feature registrations for given subscription.
13
+ * @param options The options parameters.
14
+ */
15
+ listAllBySubscription(options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
16
+ /**
17
+ * Returns a feature registration
18
+ * @param providerNamespace The provider namespace.
19
+ * @param featureName The feature name.
20
+ * @param options The options parameters.
21
+ */
22
+ get(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsGetOptionalParams): Promise<SubscriptionFeatureRegistrationsGetResponse>;
23
+ /**
24
+ * Create or update a feature registration.
25
+ * @param providerNamespace The provider namespace.
26
+ * @param featureName The feature name.
27
+ * @param options The options parameters.
28
+ */
29
+ createOrUpdate(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;
30
+ /**
31
+ * Deletes a feature registration
32
+ * @param providerNamespace The provider namespace.
33
+ * @param featureName The feature name.
34
+ * @param options The options parameters.
35
+ */
36
+ delete(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsDeleteOptionalParams): Promise<void>;
37
+ }
38
+ //# sourceMappingURL=subscriptionFeatureRegistrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionFeatureRegistrations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,+BAA+B,EAC/B,gEAAgE,EAChE,mEAAmE,EACnE,iDAAiD,EACjD,2CAA2C,EAC3C,4DAA4D,EAC5D,sDAAsD,EACtD,oDAAoD,EACrD,MAAM,oBAAoB,CAAC;AAG5B,iEAAiE;AACjE,MAAM,WAAW,gCAAgC;IAC/C;;;;OAIG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,gEAAgE,GACzE,0BAA0B,CAAC,+BAA+B,CAAC,CAAC;IAC/D;;;OAGG;IACH,qBAAqB,CACnB,OAAO,CAAC,EAAE,mEAAmE,GAC5E,0BAA0B,CAAC,+BAA+B,CAAC,CAAC;IAC/D;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC,CAAC;IACxD;;;;;OAKG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC,CAAC;IACnE;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=subscriptionFeatureRegistrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionFeatureRegistrations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n SubscriptionFeatureRegistration,\n SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsGetOptionalParams,\n SubscriptionFeatureRegistrationsGetResponse,\n SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams,\n SubscriptionFeatureRegistrationsCreateOrUpdateResponse,\n SubscriptionFeatureRegistrationsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a SubscriptionFeatureRegistrations. */\nexport interface SubscriptionFeatureRegistrations {\n /**\n * Returns subscription feature registrations for given subscription and provider namespace.\n * @param providerNamespace The provider namespace.\n * @param options The options parameters.\n */\n listBySubscription(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;\n /**\n * Returns subscription feature registrations for given subscription.\n * @param options The options parameters.\n */\n listAllBySubscription(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;\n /**\n * Returns a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n get(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsGetOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsGetResponse>;\n /**\n * Create or update a feature registration.\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n createOrUpdate(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;\n /**\n * Deletes a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n delete(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given a result page from a pageable operation, returns a
6
+ * continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page A result object from calling .byPage() on a paged operation.
9
+ * @returns The continuation token that can be passed into byPage().
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,36 @@
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.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given a result page from a pageable operation, returns a
15
+ * continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page A result object from calling .byPage() on a paged operation.
18
+ * @returns The continuation token that can be passed into byPage().
19
+ */
20
+ function getContinuationToken(page) {
21
+ var _a;
22
+ if (typeof page !== "object" || page === null) {
23
+ return undefined;
24
+ }
25
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
26
+ }
27
+ function setContinuationToken(page, continuationToken) {
28
+ var _a;
29
+ if (typeof page !== "object" || page === null || !continuationToken) {
30
+ return;
31
+ }
32
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
33
+ pageInfo.continuationToken = continuationToken;
34
+ pageMap.set(page, pageInfo);
35
+ }
36
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}