@azure/arm-features 3.1.1-alpha.20250124.1 → 3.1.1-alpha.20250127.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,76 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Features } from "../operationsInterfaces/index.js";
3
+ import { FeatureClient } from "../featureClient.js";
4
+ import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models/index.js";
5
+ /** Class containing Features operations. */
6
+ export declare class FeaturesImpl implements Features {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Features class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: FeatureClient);
13
+ /**
14
+ * Gets all the preview features that are available through AFEC for the subscription.
15
+ * @param options The options parameters.
16
+ */
17
+ listAll(options?: FeaturesListAllOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
18
+ private listAllPagingPage;
19
+ private listAllPagingAll;
20
+ /**
21
+ * Gets all the preview features in a provider namespace that are available through AFEC for the
22
+ * subscription.
23
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
24
+ * @param options The options parameters.
25
+ */
26
+ list(resourceProviderNamespace: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
27
+ private listPagingPage;
28
+ private listPagingAll;
29
+ /**
30
+ * Gets all the preview features that are available through AFEC for the subscription.
31
+ * @param options The options parameters.
32
+ */
33
+ private _listAll;
34
+ /**
35
+ * Gets all the preview features in a provider namespace that are available through AFEC for the
36
+ * subscription.
37
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
38
+ * @param options The options parameters.
39
+ */
40
+ private _list;
41
+ /**
42
+ * Gets the preview feature with the specified name.
43
+ * @param resourceProviderNamespace The resource provider namespace for the feature.
44
+ * @param featureName The name of the feature to get.
45
+ * @param options The options parameters.
46
+ */
47
+ get(resourceProviderNamespace: string, featureName: string, options?: FeaturesGetOptionalParams): Promise<FeaturesGetResponse>;
48
+ /**
49
+ * Registers the preview feature for the subscription.
50
+ * @param resourceProviderNamespace The namespace of the resource provider.
51
+ * @param featureName The name of the feature to register.
52
+ * @param options The options parameters.
53
+ */
54
+ register(resourceProviderNamespace: string, featureName: string, options?: FeaturesRegisterOptionalParams): Promise<FeaturesRegisterResponse>;
55
+ /**
56
+ * Unregisters the preview feature for the subscription.
57
+ * @param resourceProviderNamespace The namespace of the resource provider.
58
+ * @param featureName The name of the feature to unregister.
59
+ * @param options The options parameters.
60
+ */
61
+ unregister(resourceProviderNamespace: string, featureName: string, options?: FeaturesUnregisterOptionalParams): Promise<FeaturesUnregisterResponse>;
62
+ /**
63
+ * ListAllNext
64
+ * @param nextLink The nextLink from the previous successful call to the ListAll method.
65
+ * @param options The options parameters.
66
+ */
67
+ private _listAllNext;
68
+ /**
69
+ * ListNext
70
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
71
+ * @param nextLink The nextLink from the previous successful call to the List method.
72
+ * @param options The options parameters.
73
+ */
74
+ private _listNext;
75
+ }
76
+ //# sourceMappingURL=features.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/operations/features.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,aAAa,EAEb,6BAA6B,EAG7B,0BAA0B,EAE1B,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,0BAA0B,EAG3B,MAAM,oBAAoB,CAAC;AAG5B,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;OAGG;IACI,OAAO,CACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,0BAA0B,CAAC,aAAa,CAAC;YAkB7B,iBAAiB;YAsBjB,gBAAgB;IAQ/B;;;;;OAKG;IACI,IAAI,CACT,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,aAAa,CAAC;YAsB7B,cAAc;YA2Bd,aAAa;IAY5B;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAMhB;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;OAKG;IACH,GAAG,CACD,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;OAKG;IACH,QAAQ,CACN,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;;;OAKG;IACH,UAAU,CACR,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAUpB;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
@@ -0,0 +1,354 @@
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.FeaturesImpl = 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 Features operations. */
18
+ class FeaturesImpl {
19
+ /**
20
+ * Initialize a new instance of the class Features class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Gets all the preview features that are available through AFEC for the subscription.
28
+ * @param options The options parameters.
29
+ */
30
+ listAll(options) {
31
+ const iter = this.listAllPagingAll(options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listAllPagingPage(options, settings);
44
+ }
45
+ };
46
+ }
47
+ listAllPagingPage(options, settings) {
48
+ return tslib_1.__asyncGenerator(this, arguments, function* listAllPagingPage_1() {
49
+ let result;
50
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
+ if (!continuationToken) {
52
+ result = yield tslib_1.__await(this._listAll(options));
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield yield tslib_1.__await(page);
57
+ }
58
+ while (continuationToken) {
59
+ result = yield tslib_1.__await(this._listAllNext(continuationToken, options));
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield yield tslib_1.__await(page);
64
+ }
65
+ });
66
+ }
67
+ listAllPagingAll(options) {
68
+ return tslib_1.__asyncGenerator(this, arguments, function* listAllPagingAll_1() {
69
+ var _a, e_1, _b, _c;
70
+ try {
71
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listAllPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
+ _c = _f.value;
73
+ _d = false;
74
+ const page = _c;
75
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
+ }
77
+ }
78
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
+ finally {
80
+ try {
81
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
+ }
83
+ finally { if (e_1) throw e_1.error; }
84
+ }
85
+ });
86
+ }
87
+ /**
88
+ * Gets all the preview features in a provider namespace that are available through AFEC for the
89
+ * subscription.
90
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
91
+ * @param options The options parameters.
92
+ */
93
+ list(resourceProviderNamespace, options) {
94
+ const iter = this.listPagingAll(resourceProviderNamespace, options);
95
+ return {
96
+ next() {
97
+ return iter.next();
98
+ },
99
+ [Symbol.asyncIterator]() {
100
+ return this;
101
+ },
102
+ byPage: (settings) => {
103
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
104
+ throw new Error("maxPageSize is not supported by this operation.");
105
+ }
106
+ return this.listPagingPage(resourceProviderNamespace, options, settings);
107
+ }
108
+ };
109
+ }
110
+ listPagingPage(resourceProviderNamespace, options, settings) {
111
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
112
+ let result;
113
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
114
+ if (!continuationToken) {
115
+ result = yield tslib_1.__await(this._list(resourceProviderNamespace, options));
116
+ let page = result.value || [];
117
+ continuationToken = result.nextLink;
118
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
119
+ yield yield tslib_1.__await(page);
120
+ }
121
+ while (continuationToken) {
122
+ result = yield tslib_1.__await(this._listNext(resourceProviderNamespace, continuationToken, options));
123
+ continuationToken = result.nextLink;
124
+ let page = result.value || [];
125
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
126
+ yield yield tslib_1.__await(page);
127
+ }
128
+ });
129
+ }
130
+ listPagingAll(resourceProviderNamespace, options) {
131
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
132
+ var _a, e_2, _b, _c;
133
+ try {
134
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceProviderNamespace, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
135
+ _c = _f.value;
136
+ _d = false;
137
+ const page = _c;
138
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
139
+ }
140
+ }
141
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
142
+ finally {
143
+ try {
144
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
145
+ }
146
+ finally { if (e_2) throw e_2.error; }
147
+ }
148
+ });
149
+ }
150
+ /**
151
+ * Gets all the preview features that are available through AFEC for the subscription.
152
+ * @param options The options parameters.
153
+ */
154
+ _listAll(options) {
155
+ return this.client.sendOperationRequest({ options }, listAllOperationSpec);
156
+ }
157
+ /**
158
+ * Gets all the preview features in a provider namespace that are available through AFEC for the
159
+ * subscription.
160
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
161
+ * @param options The options parameters.
162
+ */
163
+ _list(resourceProviderNamespace, options) {
164
+ return this.client.sendOperationRequest({ resourceProviderNamespace, options }, listOperationSpec);
165
+ }
166
+ /**
167
+ * Gets the preview feature with the specified name.
168
+ * @param resourceProviderNamespace The resource provider namespace for the feature.
169
+ * @param featureName The name of the feature to get.
170
+ * @param options The options parameters.
171
+ */
172
+ get(resourceProviderNamespace, featureName, options) {
173
+ return this.client.sendOperationRequest({ resourceProviderNamespace, featureName, options }, getOperationSpec);
174
+ }
175
+ /**
176
+ * Registers the preview feature for the subscription.
177
+ * @param resourceProviderNamespace The namespace of the resource provider.
178
+ * @param featureName The name of the feature to register.
179
+ * @param options The options parameters.
180
+ */
181
+ register(resourceProviderNamespace, featureName, options) {
182
+ return this.client.sendOperationRequest({ resourceProviderNamespace, featureName, options }, registerOperationSpec);
183
+ }
184
+ /**
185
+ * Unregisters the preview feature for the subscription.
186
+ * @param resourceProviderNamespace The namespace of the resource provider.
187
+ * @param featureName The name of the feature to unregister.
188
+ * @param options The options parameters.
189
+ */
190
+ unregister(resourceProviderNamespace, featureName, options) {
191
+ return this.client.sendOperationRequest({ resourceProviderNamespace, featureName, options }, unregisterOperationSpec);
192
+ }
193
+ /**
194
+ * ListAllNext
195
+ * @param nextLink The nextLink from the previous successful call to the ListAll method.
196
+ * @param options The options parameters.
197
+ */
198
+ _listAllNext(nextLink, options) {
199
+ return this.client.sendOperationRequest({ nextLink, options }, listAllNextOperationSpec);
200
+ }
201
+ /**
202
+ * ListNext
203
+ * @param resourceProviderNamespace The namespace of the resource provider for getting features.
204
+ * @param nextLink The nextLink from the previous successful call to the List method.
205
+ * @param options The options parameters.
206
+ */
207
+ _listNext(resourceProviderNamespace, nextLink, options) {
208
+ return this.client.sendOperationRequest({ resourceProviderNamespace, nextLink, options }, listNextOperationSpec);
209
+ }
210
+ }
211
+ exports.FeaturesImpl = FeaturesImpl;
212
+ // Operation Specifications
213
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
214
+ const listAllOperationSpec = {
215
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/features",
216
+ httpMethod: "GET",
217
+ responses: {
218
+ 200: {
219
+ bodyMapper: Mappers.FeatureOperationsListResult
220
+ },
221
+ default: {
222
+ bodyMapper: Mappers.ErrorResponse
223
+ }
224
+ },
225
+ queryParameters: [Parameters.apiVersion],
226
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
227
+ headerParameters: [Parameters.accept],
228
+ serializer
229
+ };
230
+ const listOperationSpec = {
231
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features",
232
+ httpMethod: "GET",
233
+ responses: {
234
+ 200: {
235
+ bodyMapper: Mappers.FeatureOperationsListResult
236
+ },
237
+ default: {
238
+ bodyMapper: Mappers.ErrorResponse
239
+ }
240
+ },
241
+ queryParameters: [Parameters.apiVersion],
242
+ urlParameters: [
243
+ Parameters.$host,
244
+ Parameters.subscriptionId,
245
+ Parameters.resourceProviderNamespace
246
+ ],
247
+ headerParameters: [Parameters.accept],
248
+ serializer
249
+ };
250
+ const getOperationSpec = {
251
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}",
252
+ httpMethod: "GET",
253
+ responses: {
254
+ 200: {
255
+ bodyMapper: Mappers.FeatureResult
256
+ },
257
+ default: {
258
+ bodyMapper: Mappers.ErrorResponse
259
+ }
260
+ },
261
+ queryParameters: [Parameters.apiVersion],
262
+ urlParameters: [
263
+ Parameters.$host,
264
+ Parameters.subscriptionId,
265
+ Parameters.resourceProviderNamespace,
266
+ Parameters.featureName
267
+ ],
268
+ headerParameters: [Parameters.accept],
269
+ serializer
270
+ };
271
+ const registerOperationSpec = {
272
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register",
273
+ httpMethod: "POST",
274
+ responses: {
275
+ 200: {
276
+ bodyMapper: Mappers.FeatureResult
277
+ },
278
+ default: {
279
+ bodyMapper: Mappers.ErrorResponse
280
+ }
281
+ },
282
+ queryParameters: [Parameters.apiVersion],
283
+ urlParameters: [
284
+ Parameters.$host,
285
+ Parameters.subscriptionId,
286
+ Parameters.resourceProviderNamespace,
287
+ Parameters.featureName
288
+ ],
289
+ headerParameters: [Parameters.accept],
290
+ serializer
291
+ };
292
+ const unregisterOperationSpec = {
293
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister",
294
+ httpMethod: "POST",
295
+ responses: {
296
+ 200: {
297
+ bodyMapper: Mappers.FeatureResult
298
+ },
299
+ default: {
300
+ bodyMapper: Mappers.ErrorResponse
301
+ }
302
+ },
303
+ queryParameters: [Parameters.apiVersion],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.resourceProviderNamespace,
308
+ Parameters.featureName
309
+ ],
310
+ headerParameters: [Parameters.accept],
311
+ serializer
312
+ };
313
+ const listAllNextOperationSpec = {
314
+ path: "{nextLink}",
315
+ httpMethod: "GET",
316
+ responses: {
317
+ 200: {
318
+ bodyMapper: Mappers.FeatureOperationsListResult
319
+ },
320
+ default: {
321
+ bodyMapper: Mappers.ErrorResponse
322
+ }
323
+ },
324
+ queryParameters: [Parameters.apiVersion],
325
+ urlParameters: [
326
+ Parameters.$host,
327
+ Parameters.nextLink,
328
+ Parameters.subscriptionId
329
+ ],
330
+ headerParameters: [Parameters.accept],
331
+ serializer
332
+ };
333
+ const listNextOperationSpec = {
334
+ path: "{nextLink}",
335
+ httpMethod: "GET",
336
+ responses: {
337
+ 200: {
338
+ bodyMapper: Mappers.FeatureOperationsListResult
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
+ Parameters.resourceProviderNamespace
350
+ ],
351
+ headerParameters: [Parameters.accept],
352
+ serializer
353
+ };
354
+ //# sourceMappingURL=features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/operations/features.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAoBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,OAAO,CACZ,OAAuC;QAEvC,MA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nB,UAAU,CAAC,cAAc;KAC1B;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,2BAA2B;SAChD;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,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;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 { Features } 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 FeatureResult,\n FeaturesListAllNextOptionalParams,\n FeaturesListAllOptionalParams,\n FeaturesListAllResponse,\n FeaturesListNextOptionalParams,\n FeaturesListOptionalParams,\n FeaturesListResponse,\n FeaturesGetOptionalParams,\n FeaturesGetResponse,\n FeaturesRegisterOptionalParams,\n FeaturesRegisterResponse,\n FeaturesUnregisterOptionalParams,\n FeaturesUnregisterResponse,\n FeaturesListAllNextResponse,\n FeaturesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Features operations. */\nexport class FeaturesImpl implements Features {\n private readonly client: FeatureClient;\n\n /**\n * Initialize a new instance of the class Features class.\n * @param client Reference to the service client\n */\n constructor(client: FeatureClient) {\n this.client = client;\n }\n\n /**\n * Gets all the preview features that are available through AFEC for the subscription.\n * @param options The options parameters.\n */\n public listAll(\n options?: FeaturesListAllOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult> {\n const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllPagingPage(\n options?: FeaturesListAllOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FeatureResult[]> {\n let result: FeaturesListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(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._listAllNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n options?: FeaturesListAllOptionalParams\n ): AsyncIterableIterator<FeatureResult> {\n for await (const page of this.listAllPagingPage(options)) {\n yield* page;\n }\n }\n\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 public list(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult> {\n const iter = this.listPagingAll(resourceProviderNamespace, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceProviderNamespace,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FeatureResult[]> {\n let result: FeaturesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceProviderNamespace, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceProviderNamespace,\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 resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): AsyncIterableIterator<FeatureResult> {\n for await (const page of this.listPagingPage(\n resourceProviderNamespace,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the preview features that are available through AFEC for the subscription.\n * @param options The options parameters.\n */\n private _listAll(\n options?: FeaturesListAllOptionalParams\n ): Promise<FeaturesListAllResponse> {\n return this.client.sendOperationRequest({ options }, listAllOperationSpec);\n }\n\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 private _list(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): Promise<FeaturesListResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n listOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceProviderNamespace, featureName, options },\n getOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceProviderNamespace, featureName, options },\n registerOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceProviderNamespace, featureName, options },\n unregisterOperationSpec\n );\n }\n\n /**\n * ListAllNext\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n nextLink: string,\n options?: FeaturesListAllNextOptionalParams\n ): Promise<FeaturesListAllNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceProviderNamespace The namespace of the resource provider for getting features.\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 resourceProviderNamespace: string,\n nextLink: string,\n options?: FeaturesListNextOptionalParams\n ): Promise<FeaturesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/features\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.featureName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst registerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.featureName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst unregisterOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.featureName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\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.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\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.resourceProviderNamespace\n ],\n headerParameters: [Parameters.accept],\n serializer\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/operations/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/operations/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,74 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SubscriptionFeatureRegistrations } from "../operationsInterfaces/index.js";
3
+ import { FeatureClient } from "../featureClient.js";
4
+ import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models/index.js";
5
+ /** Class containing SubscriptionFeatureRegistrations operations. */
6
+ export declare class SubscriptionFeatureRegistrationsImpl implements SubscriptionFeatureRegistrations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class SubscriptionFeatureRegistrations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: FeatureClient);
13
+ /**
14
+ * Returns subscription feature registrations for given subscription and provider namespace.
15
+ * @param providerNamespace The provider namespace.
16
+ * @param options The options parameters.
17
+ */
18
+ listBySubscription(providerNamespace: string, options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
19
+ private listBySubscriptionPagingPage;
20
+ private listBySubscriptionPagingAll;
21
+ /**
22
+ * Returns subscription feature registrations for given subscription.
23
+ * @param options The options parameters.
24
+ */
25
+ listAllBySubscription(options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
26
+ private listAllBySubscriptionPagingPage;
27
+ private listAllBySubscriptionPagingAll;
28
+ /**
29
+ * Returns a feature registration
30
+ * @param providerNamespace The provider namespace.
31
+ * @param featureName The feature name.
32
+ * @param options The options parameters.
33
+ */
34
+ get(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsGetOptionalParams): Promise<SubscriptionFeatureRegistrationsGetResponse>;
35
+ /**
36
+ * Create or update a feature registration.
37
+ * @param providerNamespace The provider namespace.
38
+ * @param featureName The feature name.
39
+ * @param options The options parameters.
40
+ */
41
+ createOrUpdate(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;
42
+ /**
43
+ * Deletes a feature registration
44
+ * @param providerNamespace The provider namespace.
45
+ * @param featureName The feature name.
46
+ * @param options The options parameters.
47
+ */
48
+ delete(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsDeleteOptionalParams): Promise<void>;
49
+ /**
50
+ * Returns subscription feature registrations for given subscription and provider namespace.
51
+ * @param providerNamespace The provider namespace.
52
+ * @param options The options parameters.
53
+ */
54
+ private _listBySubscription;
55
+ /**
56
+ * Returns subscription feature registrations for given subscription.
57
+ * @param options The options parameters.
58
+ */
59
+ private _listAllBySubscription;
60
+ /**
61
+ * ListBySubscriptionNext
62
+ * @param providerNamespace The provider namespace.
63
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
64
+ * @param options The options parameters.
65
+ */
66
+ private _listBySubscriptionNext;
67
+ /**
68
+ * ListAllBySubscriptionNext
69
+ * @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.
70
+ * @param options The options parameters.
71
+ */
72
+ private _listAllBySubscriptionNext;
73
+ }
74
+ //# sourceMappingURL=subscriptionFeatureRegistrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionFeatureRegistrations.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAIpF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,+BAA+B,EAE/B,gEAAgE,EAGhE,mEAAmE,EAEnE,iDAAiD,EACjD,2CAA2C,EAC3C,4DAA4D,EAC5D,sDAAsD,EACtD,oDAAoD,EAGrD,MAAM,oBAAoB,CAAC;AAG5B,oEAAoE;AACpE,qBAAa,oCACX,YAAW,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;OAIG;IACI,kBAAkB,CACvB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,gEAAgE,GACzE,0BAA0B,CAAC,+BAA+B,CAAC;YAsB/C,4BAA4B;YA2B5B,2BAA2B;IAY1C;;;OAGG;IACI,qBAAqB,CAC1B,OAAO,CAAC,EAAE,mEAAmE,GAC5E,0BAA0B,CAAC,+BAA+B,CAAC;YAkB/C,+BAA+B;YAyB/B,8BAA8B;IAQ7C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;IAOvD;;;;;OAKG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC;IAOlE;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE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