@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
@@ -1,8 +1,8 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
3
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
4
- import { Features, SubscriptionFeatureRegistrations } from "./operationsInterfaces";
5
- import { FeatureClientOptionalParams, Operation, ListOperationsOptionalParams } from "./models";
4
+ import { Features, SubscriptionFeatureRegistrations } from "./operationsInterfaces/index.js";
5
+ import { FeatureClientOptionalParams, Operation, ListOperationsOptionalParams } from "./models/index.js";
6
6
  export declare class FeatureClient extends coreClient.ServiceClient {
7
7
  $host: string;
8
8
  apiVersion: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureClient.d.ts","sourceRoot":"","sources":["../../src/featureClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAM9E,OAAO,EACL,QAAQ,EACR,gCAAgC,EACjC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EAET,4BAA4B,EAG7B,MAAM,mBAAmB,CAAC;AAG3B,qBAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2BAA2B;IA+EvC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAMvB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAU3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,gCAAgC,EAAE,gCAAgC,CAAC;CACpE"}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import { setContinuationToken } from "./pagingHelper";
12
- import { FeaturesImpl, SubscriptionFeatureRegistrationsImpl } from "./operations";
13
- import * as Parameters from "./models/parameters";
14
- import * as Mappers from "./models/mappers";
11
+ import { setContinuationToken } from "./pagingHelper.js";
12
+ import { FeaturesImpl, SubscriptionFeatureRegistrationsImpl } from "./operations/index.js";
13
+ import * as Parameters from "./models/parameters.js";
14
+ import * as Mappers from "./models/mappers.js";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  export class FeatureClient extends coreClient.ServiceClient {
17
17
  /**
@@ -81,22 +81,20 @@ export class FeatureClient extends coreClient.ServiceClient {
81
81
  }
82
82
  const apiVersionPolicy = {
83
83
  name: "CustomApiVersionPolicy",
84
- sendRequest(request, next) {
85
- return __awaiter(this, void 0, void 0, function* () {
86
- const param = request.url.split("?");
87
- if (param.length > 1) {
88
- const newParams = param[1].split("&").map((item) => {
89
- if (item.indexOf("api-version") > -1) {
90
- return "api-version=" + apiVersion;
91
- }
92
- else {
93
- return item;
94
- }
95
- });
96
- request.url = param[0] + "?" + newParams.join("&");
97
- }
98
- return next(request);
99
- });
84
+ async sendRequest(request, next) {
85
+ const param = request.url.split("?");
86
+ if (param.length > 1) {
87
+ const newParams = param[1].split("&").map((item) => {
88
+ if (item.indexOf("api-version") > -1) {
89
+ return "api-version=" + apiVersion;
90
+ }
91
+ else {
92
+ return item;
93
+ }
94
+ });
95
+ request.url = param[0] + "?" + newParams.join("&");
96
+ }
97
+ return next(request);
100
98
  }
101
99
  };
102
100
  this.pipeline.addPolicy(apiVersionPolicy);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureClient.js","sourceRoot":"","sources":["../../src/featureClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAQ9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oCAAoC,EACrC,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAU/C,4CAA4C;AAC5C,MAAM,OAAO,aAAc,SAAQ,UAAU,CAAC,aAAa;IAKzD;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAqC;;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgC;YAC5C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6BAA6B,CAAC;QACrD,MAAM,eAAe,GACnB,O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C,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"./pagingHelper.js\";\nimport {\n FeaturesImpl,\n SubscriptionFeatureRegistrationsImpl\n} from \"./operations/index.js\";\nimport {\n Features,\n SubscriptionFeatureRegistrations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n FeatureClientOptionalParams,\n Operation,\n ListOperationsNextOptionalParams,\n ListOperationsOptionalParams,\n ListOperationsResponse,\n ListOperationsNextResponse\n} from \"./models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport class FeatureClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the FeatureClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FeatureClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FeatureClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-features/3.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-07-01\";\n this.features = new FeaturesImpl(this);\n this.subscriptionFeatureRegistrations = new SubscriptionFeatureRegistrationsImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Lists all of the available Microsoft.Features REST API operations.\n * @param options The options parameters.\n */\n public listOperations(\n options?: ListOperationsOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsPagingAll(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.listOperationsPagingPage(options, settings);\n }\n };\n }\n\n private async *listOperationsPagingPage(\n options?: ListOperationsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: ListOperationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listOperations(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._listOperationsNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listOperationsPagingAll(\n options?: ListOperationsOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Features REST API operations.\n * @param options The options parameters.\n */\n private _listOperations(\n options?: ListOperationsOptionalParams\n ): Promise<ListOperationsResponse> {\n return this.sendOperationRequest({ options }, listOperationsOperationSpec);\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n private _listOperationsNext(\n nextLink: string,\n options?: ListOperationsNextOptionalParams\n ): Promise<ListOperationsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextOperationSpec\n );\n }\n\n features: Features;\n subscriptionFeatureRegistrations: SubscriptionFeatureRegistrations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Features/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { FeatureClient } from "./featureClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,cAAc,iCAAiC,CAAC"}
@@ -6,8 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  /// <reference lib="esnext.asynciterable" />
9
- export { getContinuationToken } from "./pagingHelper";
10
- export * from "./models";
11
- export { FeatureClient } from "./featureClient";
12
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { FeatureClient } from "./featureClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
13
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { FeatureClient } from \"./featureClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqMH,6FAA6F;AAC7F,MAAM,CAAN,IAAY,yCAeX;AAfD,WAAY,yCAAyC;IACnD,mBAAmB;IACnB,0EAA6B,CAAA;IAC7B,oBAAoB;IACpB,4EAA+B,CAAA;IAC/B,cAAc;IACd,gEAAmB,CAAA;IACnB,kBAAkB;IAClB,wEAA2B,CAAA;IAC3B,iBAAiB;IACjB,sEAAyB,CAAA;IACzB,oBAAoB;IACpB,4EAA+B,CAAA;IAC/B,mBAAmB;IACnB,0EAA6B,CAAA;AAC/B,CAAC,EAfW,yCAAyC,KAAzC,yCAAyC,QAepD;AAiBD,oGAAoG;AACpG,MAAM,CAAN,IAAY,gDAOX;AAPD,WAAY,gDAAgD;IAC1D,mBAAmB;IACnB,iFAA6B,CAAA;IAC7B,uBAAuB;IACvB,yFAAqC,CAAA;IACrC,mBAAmB;IACnB,iFAA6B,CAAA;AAC/B,CAAC,EAPW,gDAAgD,KAAhD,gDAAgD,QAO3D","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 * as coreClient from \"@azure/core-client\";\n\n/** Result of the request to list Microsoft.Features operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** List of Microsoft.Features operations. */\n value?: Operation[];\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** Microsoft.Features operation */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** The object that represents the operation. */\n display?: OperationDisplay;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft.Features */\n provider?: string;\n /** Resource on which the operation is performed: Profile, endpoint, etc. */\n resource?: string;\n /** Operation type: Read, write, delete, etc. */\n operation?: string;\n}\n\n/** Error response indicates that the service is not able to process the incoming request. */\nexport interface ErrorResponse {\n /** The error details. */\n error?: ErrorDefinition;\n}\n\n/** Error definition. */\nexport interface ErrorDefinition {\n /**\n * Service specific error code which serves as the substatus for the HTTP error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * Description of the error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /** Internal error details. */\n details?: ErrorDefinition[];\n}\n\n/** List of previewed features. */\nexport interface FeatureOperationsListResult {\n /** The array of features. */\n value?: FeatureResult[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** Previewed feature information. */\nexport interface FeatureResult {\n /** The name of the feature. */\n name?: string;\n /** Properties of the previewed feature. */\n properties?: FeatureProperties;\n /** The resource ID of the feature. */\n id?: string;\n /** The resource type of the feature. */\n type?: string;\n}\n\n/** Information about feature. */\nexport interface FeatureProperties {\n /** The registration state of the feature for the subscription. */\n state?: string;\n}\n\nexport interface SubscriptionFeatureRegistrationProperties {\n /**\n * The tenantId.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /**\n * The subscriptionId.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n /**\n * The featureName.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly featureName?: string;\n /**\n * The featureDisplayName.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The providerNamespace.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly providerNamespace?: string;\n /** The state. */\n state?: SubscriptionFeatureRegistrationState;\n /** Authorization Profile */\n authorizationProfile?: AuthorizationProfile;\n /** Key-value pairs for meta data. */\n metadata?: { [propertyName: string]: string };\n /**\n * The feature release date.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly releaseDate?: Date;\n /**\n * The feature registration date.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly registrationDate?: Date;\n /**\n * The feature documentation link.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly documentationLink?: string;\n /**\n * The feature approval type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly approvalType?: SubscriptionFeatureRegistrationApprovalType;\n /** Indicates whether feature should be displayed in Portal. */\n shouldFeatureDisplayInPortal?: boolean;\n /** The feature description. */\n description?: string;\n}\n\n/** Authorization Profile */\nexport interface AuthorizationProfile {\n /**\n * The requested time\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly requestedTime?: Date;\n /**\n * The requester\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly requester?: string;\n /**\n * The requester object id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly requesterObjectId?: string;\n /**\n * The approved time\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly approvedTime?: Date;\n /**\n * The approver\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly approver?: string;\n}\n\n/** An Azure proxy resource. */\nexport interface ProxyResource {\n /**\n * Azure resource Id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Azure resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Azure resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** The list of subscription feature registrations. */\nexport interface SubscriptionFeatureRegistrationList {\n /** The link used to get the next page of subscription feature registrations list. */\n nextLink?: string;\n /** The list of subscription feature registrations. */\n value?: SubscriptionFeatureRegistration[];\n}\n\n/** Subscription feature registration details */\nexport interface SubscriptionFeatureRegistration extends ProxyResource {\n properties?: SubscriptionFeatureRegistrationProperties;\n}\n\n/** Known values of {@link SubscriptionFeatureRegistrationState} that the service accepts. */\nexport enum KnownSubscriptionFeatureRegistrationState {\n /** NotSpecified */\n NotSpecified = \"NotSpecified\",\n /** NotRegistered */\n NotRegistered = \"NotRegistered\",\n /** Pending */\n Pending = \"Pending\",\n /** Registering */\n Registering = \"Registering\",\n /** Registered */\n Registered = \"Registered\",\n /** Unregistering */\n Unregistering = \"Unregistering\",\n /** Unregistered */\n Unregistered = \"Unregistered\"\n}\n\n/**\n * Defines values for SubscriptionFeatureRegistrationState. \\\n * {@link KnownSubscriptionFeatureRegistrationState} can be used interchangeably with SubscriptionFeatureRegistrationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotSpecified** \\\n * **NotRegistered** \\\n * **Pending** \\\n * **Registering** \\\n * **Registered** \\\n * **Unregistering** \\\n * **Unregistered**\n */\nexport type SubscriptionFeatureRegistrationState = string;\n\n/** Known values of {@link SubscriptionFeatureRegistrationApprovalType} that the service accepts. */\nexport enum KnownSubscriptionFeatureRegistrationApprovalType {\n /** NotSpecified */\n NotSpecified = \"NotSpecified\",\n /** ApprovalRequired */\n ApprovalRequired = \"ApprovalRequired\",\n /** AutoApproval */\n AutoApproval = \"AutoApproval\"\n}\n\n/**\n * Defines values for SubscriptionFeatureRegistrationApprovalType. \\\n * {@link KnownSubscriptionFeatureRegistrationApprovalType} can be used interchangeably with SubscriptionFeatureRegistrationApprovalType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotSpecified** \\\n * **ApprovalRequired** \\\n * **AutoApproval**\n */\nexport type SubscriptionFeatureRegistrationApprovalType = string;\n\n/** Optional parameters. */\nexport interface ListOperationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperations operation. */\nexport type ListOperationsResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ListOperationsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperationsNext operation. */\nexport type ListOperationsNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface FeaturesListAllOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listAll operation. */\nexport type FeaturesListAllResponse = FeatureOperationsListResult;\n\n/** Optional parameters. */\nexport interface FeaturesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type FeaturesListResponse = FeatureOperationsListResult;\n\n/** Optional parameters. */\nexport interface FeaturesGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type FeaturesGetResponse = FeatureResult;\n\n/** Optional parameters. */\nexport interface FeaturesRegisterOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the register operation. */\nexport type FeaturesRegisterResponse = FeatureResult;\n\n/** Optional parameters. */\nexport interface FeaturesUnregisterOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the unregister operation. */\nexport type FeaturesUnregisterResponse = FeatureResult;\n\n/** Optional parameters. */\nexport interface FeaturesListAllNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listAllNext operation. */\nexport type FeaturesListAllNextResponse = FeatureOperationsListResult;\n\n/** Optional parameters. */\nexport interface FeaturesListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type FeaturesListNextResponse = FeatureOperationsListResult;\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type SubscriptionFeatureRegistrationsGetResponse = SubscriptionFeatureRegistration;\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Subscription Feature Registration Type details. */\n subscriptionFeatureRegistrationType?: SubscriptionFeatureRegistration;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type SubscriptionFeatureRegistrationsCreateOrUpdateResponse = SubscriptionFeatureRegistration;\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type SubscriptionFeatureRegistrationsListBySubscriptionResponse = SubscriptionFeatureRegistrationList;\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listAllBySubscription operation. */\nexport type SubscriptionFeatureRegistrationsListAllBySubscriptionResponse = SubscriptionFeatureRegistrationList;\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type SubscriptionFeatureRegistrationsListBySubscriptionNextResponse = SubscriptionFeatureRegistrationList;\n\n/** Optional parameters. */\nexport interface SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listAllBySubscriptionNext operation. */\nexport type SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse = SubscriptionFeatureRegistrationList;\n\n/** Optional parameters. */\nexport interface FeatureClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,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ACjB,SAAS,EAAE,2CAA2C;iBACvD;aACF,GACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDefinition\"\n }\n }\n }\n }\n};\n\nexport const ErrorDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDefinition\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDefinition\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const FeatureOperationsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FeatureOperationsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"FeatureResult\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const FeatureResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FeatureResult\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"FeatureProperties\"\n }\n },\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const FeatureProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FeatureProperties\",\n modelProperties: {\n state: {\n serializedName: \"state\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SubscriptionFeatureRegistrationProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionFeatureRegistrationProperties\",\n modelProperties: {\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n featureName: {\n serializedName: \"featureName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n providerNamespace: {\n serializedName: \"providerNamespace\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n state: {\n serializedName: \"state\",\n type: {\n name: \"String\"\n }\n },\n authorizationProfile: {\n serializedName: \"authorizationProfile\",\n type: {\n name: \"Composite\",\n className: \"AuthorizationProfile\"\n }\n },\n metadata: {\n serializedName: \"metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" }, constraints: { MaxLength: 1000 } }\n }\n },\n releaseDate: {\n serializedName: \"releaseDate\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n registrationDate: {\n serializedName: \"registrationDate\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n documentationLink: {\n constraints: {\n MaxLength: 1000\n },\n serializedName: \"documentationLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n approvalType: {\n serializedName: \"approvalType\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n shouldFeatureDisplayInPortal: {\n defaultValue: false,\n serializedName: \"shouldFeatureDisplayInPortal\",\n type: {\n name: \"Boolean\"\n }\n },\n description: {\n constraints: {\n MaxLength: 1000\n },\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const AuthorizationProfile: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AuthorizationProfile\",\n modelProperties: {\n requestedTime: {\n serializedName: \"requestedTime\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n requester: {\n serializedName: \"requester\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n requesterObjectId: {\n serializedName: \"requesterObjectId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n approvedTime: {\n serializedName: \"approvedTime\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n approver: {\n serializedName: \"approver\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SubscriptionFeatureRegistrationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionFeatureRegistrationList\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SubscriptionFeatureRegistration\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SubscriptionFeatureRegistration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionFeatureRegistration\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"SubscriptionFeatureRegistrationProperties\"\n }\n }\n }\n }\n};\n"]}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { SubscriptionFeatureRegistration as SubscriptionFeatureRegistrationMapper } from "../models/mappers";
8
+ import { SubscriptionFeatureRegistration as SubscriptionFeatureRegistrationMapper } from "../models/mappers.js";
9
9
  export const accept = {
10
10
  parameterPath: "accept",
11
11
  mapper: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,+BAA+B,IAAI,qCAAqC,EAAE,MAAM,sBAAsB,CAAC;AAEhH,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,6BAA6B;QAC3C,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB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AAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA0B;IACtD,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE;QACN,cAAc,EAAE,mBAAmB;QACnC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAuB;IACrE,aAAa,EAAE,CAAC,SAAS,EAAE,qCAAqC,CAAC;IACjE,MAAM,EAAE,qCAAqC;CAC9C,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { SubscriptionFeatureRegistration as SubscriptionFeatureRegistrationMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json, text/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-07-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceProviderNamespace: OperationURLParameter = {\n parameterPath: \"resourceProviderNamespace\",\n mapper: {\n serializedName: \"resourceProviderNamespace\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const featureName: OperationURLParameter = {\n parameterPath: \"featureName\",\n mapper: {\n serializedName: \"featureName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept1: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const providerNamespace: OperationURLParameter = {\n parameterPath: \"providerNamespace\",\n mapper: {\n serializedName: \"providerNamespace\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionFeatureRegistrationType: OperationParameter = {\n parameterPath: [\"options\", \"subscriptionFeatureRegistrationType\"],\n mapper: SubscriptionFeatureRegistrationMapper\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Features } from "../operationsInterfaces";
3
- import { FeatureClient } from "../featureClient";
4
- import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models";
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
5
  /** Class containing Features operations. */
6
6
  export declare class FeaturesImpl implements Features {
7
7
  private readonly client;
@@ -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"}
@@ -6,10 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  /// <reference lib="esnext.asynciterable" />
14
14
  /** Class containing Features operations. */
15
15
  export class FeaturesImpl {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/operations/features.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAo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;IACzD,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;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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC;AAC9B,cAAc,uCAAuC,CAAC"}
@@ -5,6 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./features";
9
- export * from "./subscriptionFeatureRegistrations";
8
+ export * from "./features.js";
9
+ export * from "./subscriptionFeatureRegistrations.js";
10
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,uCAAuC,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 * from \"./features.js\";\nexport * from \"./subscriptionFeatureRegistrations.js\";\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { SubscriptionFeatureRegistrations } from "../operationsInterfaces";
3
- import { FeatureClient } from "../featureClient";
4
- import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models";
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
5
  /** Class containing SubscriptionFeatureRegistrations operations. */
6
6
  export declare class SubscriptionFeatureRegistrationsImpl implements SubscriptionFeatureRegistrations {
7
7
  private readonly client;
@@ -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,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAS9B;;;;;OAKG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;CAWnC"}
@@ -6,10 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  /// <reference lib="esnext.asynciterable" />
14
14
  /** Class containing SubscriptionFeatureRegistrations operations. */
15
15
  export class SubscriptionFeatureRegistrationsImpl {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionFeatureRegistrations.js","sourceRoot":"","sources":["../../../src/operations/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;A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,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IACtC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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;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"]}
@@ -1,5 +1,5 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models";
2
+ import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models/index.js";
3
3
  /** Interface representing a Features. */
4
4
  export interface Features {
5
5
  /**
@@ -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"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,oCAAoC,CAAC"}
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,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./features.js";
9
+ export * from "./subscriptionFeatureRegistrations.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,uCAAuC,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 * from \"./features.js\";\nexport * from \"./subscriptionFeatureRegistrations.js\";\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models";
2
+ import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models/index.js";
3
3
  /** Interface representing a SubscriptionFeatureRegistrations. */
4
4
  export interface SubscriptionFeatureRegistrations {
5
5
  /**
@@ -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 @@
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": "module"
3
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,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,MAAM,UAAU,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"]}
@@ -0,0 +1,40 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
4
+ import { Features, SubscriptionFeatureRegistrations } from "./operationsInterfaces/index.js";
5
+ import { FeatureClientOptionalParams, Operation, ListOperationsOptionalParams } from "./models/index.js";
6
+ export declare class FeatureClient extends coreClient.ServiceClient {
7
+ $host: string;
8
+ apiVersion: string;
9
+ subscriptionId: string;
10
+ /**
11
+ * Initializes a new instance of the FeatureClient class.
12
+ * @param credentials Subscription credentials which uniquely identify client subscription.
13
+ * @param subscriptionId The Azure subscription ID.
14
+ * @param options The parameter options
15
+ */
16
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: FeatureClientOptionalParams);
17
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
18
+ private addCustomApiVersionPolicy;
19
+ /**
20
+ * Lists all of the available Microsoft.Features REST API operations.
21
+ * @param options The options parameters.
22
+ */
23
+ listOperations(options?: ListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
24
+ private listOperationsPagingPage;
25
+ private listOperationsPagingAll;
26
+ /**
27
+ * Lists all of the available Microsoft.Features REST API operations.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listOperations;
31
+ /**
32
+ * ListOperationsNext
33
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
34
+ * @param options The options parameters.
35
+ */
36
+ private _listOperationsNext;
37
+ features: Features;
38
+ subscriptionFeatureRegistrations: SubscriptionFeatureRegistrations;
39
+ }
40
+ //# sourceMappingURL=featureClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureClient.d.ts","sourceRoot":"","sources":["../../src/featureClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAM9E,OAAO,EACL,QAAQ,EACR,gCAAgC,EACjC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,2BAA2B,EAC3B,SAAS,EAET,4BAA4B,EAG7B,MAAM,mBAAmB,CAAC;AAG3B,qBAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2BAA2B;IA+EvC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAMvB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAU3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,gCAAgC,EAAE,gCAAgC,CAAC;CACpE"}