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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/{dist-esm/src → dist/browser}/featureClient.d.ts +2 -2
  2. package/dist/browser/featureClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/featureClient.js +19 -21
  4. package/dist/browser/featureClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/models/index.js.map +1 -0
  10. package/dist/browser/models/mappers.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  12. package/dist/browser/models/parameters.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/operations/features.d.ts +3 -3
  14. package/dist/browser/operations/features.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/features.js +3 -3
  16. package/dist/browser/operations/features.js.map +1 -0
  17. package/dist/browser/operations/index.d.ts +3 -0
  18. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  19. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  20. package/dist/browser/operations/index.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/subscriptionFeatureRegistrations.d.ts +3 -3
  22. package/dist/browser/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/subscriptionFeatureRegistrations.js +3 -3
  24. package/dist/browser/operations/subscriptionFeatureRegistrations.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/features.d.ts +1 -1
  26. package/dist/browser/operationsInterfaces/features.d.ts.map +1 -0
  27. package/dist/browser/operationsInterfaces/features.js.map +1 -0
  28. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  30. package/dist/browser/operationsInterfaces/index.js +10 -0
  31. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +1 -1
  33. package/dist/browser/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  34. package/dist/browser/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  35. package/dist/browser/package.json +3 -0
  36. package/dist/browser/pagingHelper.js.map +1 -0
  37. package/dist/commonjs/featureClient.d.ts +40 -0
  38. package/dist/commonjs/featureClient.d.ts.map +1 -0
  39. package/dist/commonjs/featureClient.js +217 -0
  40. package/dist/commonjs/featureClient.js.map +1 -0
  41. package/dist/commonjs/index.d.ts +5 -0
  42. package/dist/commonjs/index.d.ts.map +1 -0
  43. package/dist/commonjs/index.js +19 -0
  44. package/dist/commonjs/index.js.map +1 -0
  45. package/dist/commonjs/models/index.d.ts +323 -0
  46. package/dist/commonjs/models/index.d.ts.map +1 -0
  47. package/dist/commonjs/models/index.js +39 -0
  48. package/dist/commonjs/models/index.js.map +1 -0
  49. package/dist/commonjs/models/mappers.d.ts +15 -0
  50. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  51. package/dist/commonjs/models/mappers.js +427 -0
  52. package/dist/commonjs/models/mappers.js.map +1 -0
  53. package/dist/commonjs/models/parameters.d.ts +13 -0
  54. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  55. package/dist/commonjs/models/parameters.js +122 -0
  56. package/dist/commonjs/models/parameters.js.map +1 -0
  57. package/dist/commonjs/operations/features.d.ts +76 -0
  58. package/dist/commonjs/operations/features.d.ts.map +1 -0
  59. package/dist/commonjs/operations/features.js +354 -0
  60. package/dist/commonjs/operations/features.js.map +1 -0
  61. package/dist/commonjs/operations/index.d.ts +3 -0
  62. package/dist/commonjs/operations/index.d.ts.map +1 -0
  63. package/dist/commonjs/operations/index.js +13 -0
  64. package/dist/commonjs/operations/index.js.map +1 -0
  65. package/dist/commonjs/operations/subscriptionFeatureRegistrations.d.ts +74 -0
  66. package/dist/commonjs/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  67. package/dist/commonjs/operations/subscriptionFeatureRegistrations.js +353 -0
  68. package/dist/commonjs/operations/subscriptionFeatureRegistrations.js.map +1 -0
  69. package/dist/commonjs/operationsInterfaces/features.d.ts +39 -0
  70. package/dist/commonjs/operationsInterfaces/features.d.ts.map +1 -0
  71. package/{dist-esm/src/operationsInterfaces/index.js → dist/commonjs/operationsInterfaces/features.js} +3 -3
  72. package/dist/commonjs/operationsInterfaces/features.js.map +1 -0
  73. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  74. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  75. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  76. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  77. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +38 -0
  78. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  79. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js +10 -0
  80. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  81. package/dist/commonjs/package.json +3 -0
  82. package/dist/commonjs/pagingHelper.d.ts +13 -0
  83. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  84. package/dist/commonjs/pagingHelper.js +36 -0
  85. package/dist/commonjs/pagingHelper.js.map +1 -0
  86. package/dist/esm/featureClient.d.ts +40 -0
  87. package/dist/esm/featureClient.d.ts.map +1 -0
  88. package/dist/esm/featureClient.js +213 -0
  89. package/dist/esm/featureClient.js.map +1 -0
  90. package/dist/esm/index.d.ts +5 -0
  91. package/dist/esm/index.d.ts.map +1 -0
  92. package/{src/index.ts → dist/esm/index.js} +5 -5
  93. package/dist/esm/index.js.map +1 -0
  94. package/dist/esm/models/index.d.ts +323 -0
  95. package/dist/esm/models/index.d.ts.map +1 -0
  96. package/dist/esm/models/index.js +36 -0
  97. package/dist/esm/models/index.js.map +1 -0
  98. package/dist/esm/models/mappers.d.ts +15 -0
  99. package/dist/esm/models/mappers.d.ts.map +1 -0
  100. package/dist/esm/models/mappers.js +424 -0
  101. package/dist/esm/models/mappers.js.map +1 -0
  102. package/dist/esm/models/parameters.d.ts +13 -0
  103. package/dist/esm/models/parameters.d.ts.map +1 -0
  104. package/dist/esm/models/parameters.js +119 -0
  105. package/dist/esm/models/parameters.js.map +1 -0
  106. package/dist/esm/operations/features.d.ts +76 -0
  107. package/dist/esm/operations/features.d.ts.map +1 -0
  108. package/dist/esm/operations/features.js +350 -0
  109. package/dist/esm/operations/features.js.map +1 -0
  110. package/dist/esm/operations/index.d.ts +3 -0
  111. package/dist/esm/operations/index.d.ts.map +1 -0
  112. package/dist/esm/operations/index.js +10 -0
  113. package/dist/esm/operations/index.js.map +1 -0
  114. package/dist/esm/operations/subscriptionFeatureRegistrations.d.ts +74 -0
  115. package/dist/esm/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  116. package/dist/esm/operations/subscriptionFeatureRegistrations.js +349 -0
  117. package/dist/esm/operations/subscriptionFeatureRegistrations.js.map +1 -0
  118. package/dist/esm/operationsInterfaces/features.d.ts +39 -0
  119. package/dist/esm/operationsInterfaces/features.d.ts.map +1 -0
  120. package/{src/operations/index.ts → dist/esm/operationsInterfaces/features.js} +2 -3
  121. package/dist/esm/operationsInterfaces/features.js.map +1 -0
  122. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  123. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  124. package/dist/esm/operationsInterfaces/index.js +10 -0
  125. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  126. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +38 -0
  127. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  128. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js} +2 -3
  129. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  130. package/dist/esm/package.json +3 -0
  131. package/dist/esm/pagingHelper.d.ts +13 -0
  132. package/dist/esm/pagingHelper.d.ts.map +1 -0
  133. package/dist/esm/pagingHelper.js +32 -0
  134. package/dist/esm/pagingHelper.js.map +1 -0
  135. package/dist/react-native/featureClient.d.ts +40 -0
  136. package/dist/react-native/featureClient.d.ts.map +1 -0
  137. package/dist/react-native/featureClient.js +213 -0
  138. package/dist/react-native/featureClient.js.map +1 -0
  139. package/dist/react-native/index.d.ts +5 -0
  140. package/dist/react-native/index.d.ts.map +1 -0
  141. package/dist/react-native/index.js +13 -0
  142. package/dist/react-native/index.js.map +1 -0
  143. package/dist/react-native/models/index.d.ts +323 -0
  144. package/dist/react-native/models/index.d.ts.map +1 -0
  145. package/dist/react-native/models/index.js +36 -0
  146. package/dist/react-native/models/index.js.map +1 -0
  147. package/dist/react-native/models/mappers.d.ts +15 -0
  148. package/dist/react-native/models/mappers.d.ts.map +1 -0
  149. package/dist/react-native/models/mappers.js +424 -0
  150. package/dist/react-native/models/mappers.js.map +1 -0
  151. package/dist/react-native/models/parameters.d.ts +13 -0
  152. package/dist/react-native/models/parameters.d.ts.map +1 -0
  153. package/dist/react-native/models/parameters.js +119 -0
  154. package/dist/react-native/models/parameters.js.map +1 -0
  155. package/dist/react-native/operations/features.d.ts +76 -0
  156. package/dist/react-native/operations/features.d.ts.map +1 -0
  157. package/dist/react-native/operations/features.js +350 -0
  158. package/dist/react-native/operations/features.js.map +1 -0
  159. package/dist/react-native/operations/index.d.ts +3 -0
  160. package/dist/react-native/operations/index.d.ts.map +1 -0
  161. package/dist/react-native/operations/index.js +10 -0
  162. package/dist/react-native/operations/index.js.map +1 -0
  163. package/dist/react-native/operations/subscriptionFeatureRegistrations.d.ts +74 -0
  164. package/dist/react-native/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
  165. package/dist/react-native/operations/subscriptionFeatureRegistrations.js +349 -0
  166. package/dist/react-native/operations/subscriptionFeatureRegistrations.js.map +1 -0
  167. package/dist/react-native/operationsInterfaces/features.d.ts +39 -0
  168. package/dist/react-native/operationsInterfaces/features.d.ts.map +1 -0
  169. package/dist/react-native/operationsInterfaces/features.js +9 -0
  170. package/dist/react-native/operationsInterfaces/features.js.map +1 -0
  171. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  172. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  173. package/dist/react-native/operationsInterfaces/index.js +10 -0
  174. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  175. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +38 -0
  176. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
  177. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.js +9 -0
  178. package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
  179. package/dist/react-native/package.json +3 -0
  180. package/dist/react-native/pagingHelper.d.ts +13 -0
  181. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  182. package/dist/react-native/pagingHelper.js +32 -0
  183. package/dist/react-native/pagingHelper.js.map +1 -0
  184. package/package.json +64 -34
  185. package/dist/index.js +0 -1555
  186. package/dist/index.js.map +0 -1
  187. package/dist/index.min.js +0 -1
  188. package/dist/index.min.js.map +0 -1
  189. package/dist-esm/samples-dev/featuresGetSample.d.ts +0 -2
  190. package/dist-esm/samples-dev/featuresGetSample.d.ts.map +0 -1
  191. package/dist-esm/samples-dev/featuresGetSample.js +0 -29
  192. package/dist-esm/samples-dev/featuresGetSample.js.map +0 -1
  193. package/dist-esm/samples-dev/featuresListAllSample.d.ts +0 -2
  194. package/dist-esm/samples-dev/featuresListAllSample.d.ts.map +0 -1
  195. package/dist-esm/samples-dev/featuresListAllSample.js +0 -43
  196. package/dist-esm/samples-dev/featuresListAllSample.js.map +0 -1
  197. package/dist-esm/samples-dev/featuresListSample.d.ts +0 -2
  198. package/dist-esm/samples-dev/featuresListSample.d.ts.map +0 -1
  199. package/dist-esm/samples-dev/featuresListSample.js +0 -44
  200. package/dist-esm/samples-dev/featuresListSample.js.map +0 -1
  201. package/dist-esm/samples-dev/featuresRegisterSample.d.ts +0 -2
  202. package/dist-esm/samples-dev/featuresRegisterSample.d.ts.map +0 -1
  203. package/dist-esm/samples-dev/featuresRegisterSample.js +0 -29
  204. package/dist-esm/samples-dev/featuresRegisterSample.js.map +0 -1
  205. package/dist-esm/samples-dev/featuresUnregisterSample.d.ts +0 -2
  206. package/dist-esm/samples-dev/featuresUnregisterSample.d.ts.map +0 -1
  207. package/dist-esm/samples-dev/featuresUnregisterSample.js +0 -29
  208. package/dist-esm/samples-dev/featuresUnregisterSample.js.map +0 -1
  209. package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
  210. package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
  211. package/dist-esm/samples-dev/listOperationsSample.js +0 -43
  212. package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
  213. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.d.ts +0 -2
  214. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.d.ts.map +0 -1
  215. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.js +0 -28
  216. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.js.map +0 -1
  217. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.d.ts +0 -2
  218. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.d.ts.map +0 -1
  219. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.js +0 -29
  220. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.js.map +0 -1
  221. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.d.ts +0 -2
  222. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.d.ts.map +0 -1
  223. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.js +0 -29
  224. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.js.map +0 -1
  225. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.d.ts +0 -2
  226. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.d.ts.map +0 -1
  227. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.js +0 -43
  228. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.js.map +0 -1
  229. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.d.ts +0 -2
  230. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.d.ts.map +0 -1
  231. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.js +0 -44
  232. package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.js.map +0 -1
  233. package/dist-esm/src/featureClient.d.ts.map +0 -1
  234. package/dist-esm/src/featureClient.js.map +0 -1
  235. package/dist-esm/src/index.d.ts +0 -5
  236. package/dist-esm/src/index.js.map +0 -1
  237. package/dist-esm/src/models/index.js.map +0 -1
  238. package/dist-esm/src/models/mappers.js.map +0 -1
  239. package/dist-esm/src/models/parameters.js.map +0 -1
  240. package/dist-esm/src/operations/features.d.ts.map +0 -1
  241. package/dist-esm/src/operations/features.js.map +0 -1
  242. package/dist-esm/src/operations/index.d.ts +0 -3
  243. package/dist-esm/src/operations/index.js.map +0 -1
  244. package/dist-esm/src/operations/subscriptionFeatureRegistrations.d.ts.map +0 -1
  245. package/dist-esm/src/operations/subscriptionFeatureRegistrations.js.map +0 -1
  246. package/dist-esm/src/operationsInterfaces/features.d.ts.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/features.js.map +0 -1
  248. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  249. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  250. package/dist-esm/src/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +0 -1
  251. package/dist-esm/src/operationsInterfaces/subscriptionFeatureRegistrations.js.map +0 -1
  252. package/dist-esm/src/pagingHelper.js.map +0 -1
  253. package/dist-esm/test/features_example.spec.d.ts +0 -4
  254. package/dist-esm/test/features_example.spec.d.ts.map +0 -1
  255. package/dist-esm/test/features_example.spec.js +0 -121
  256. package/dist-esm/test/features_example.spec.js.map +0 -1
  257. package/src/featureClient.ts +0 -276
  258. package/src/models/index.ts +0 -379
  259. package/src/models/mappers.ts +0 -441
  260. package/src/models/parameters.ts +0 -135
  261. package/src/operations/features.ts +0 -426
  262. package/src/operations/subscriptionFeatureRegistrations.ts +0 -434
  263. package/src/operationsInterfaces/features.ts +0 -75
  264. package/src/operationsInterfaces/subscriptionFeatureRegistrations.ts +0 -73
  265. package/src/pagingHelper.ts +0 -39
  266. package/tsconfig.json +0 -33
  267. package/types/arm-features.d.ts +0 -492
  268. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  269. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  270. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  271. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  272. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  273. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  274. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  275. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  276. /package/{dist-esm/src → dist/browser}/operationsInterfaces/features.js +0 -0
  277. /package/{dist-esm/src → dist/browser}/operationsInterfaces/subscriptionFeatureRegistrations.js +0 -0
  278. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  279. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  280. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  281. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,217 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.FeatureClient = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
+ const pagingHelper_js_1 = require("./pagingHelper.js");
15
+ const index_js_1 = require("./operations/index.js");
16
+ const Parameters = tslib_1.__importStar(require("./models/parameters.js"));
17
+ const Mappers = tslib_1.__importStar(require("./models/mappers.js"));
18
+ /// <reference lib="esnext.asynciterable" />
19
+ class FeatureClient extends coreClient.ServiceClient {
20
+ /**
21
+ * Initializes a new instance of the FeatureClient class.
22
+ * @param credentials Subscription credentials which uniquely identify client subscription.
23
+ * @param subscriptionId The Azure subscription ID.
24
+ * @param options The parameter options
25
+ */
26
+ constructor(credentials, subscriptionId, options) {
27
+ var _a, _b, _c;
28
+ if (credentials === undefined) {
29
+ throw new Error("'credentials' cannot be null");
30
+ }
31
+ if (subscriptionId === undefined) {
32
+ throw new Error("'subscriptionId' cannot be null");
33
+ }
34
+ // Initializing default values for options
35
+ if (!options) {
36
+ options = {};
37
+ }
38
+ const defaults = {
39
+ requestContentType: "application/json; charset=utf-8",
40
+ credential: credentials
41
+ };
42
+ const packageDetails = `azsdk-js-arm-features/3.1.1`;
43
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
44
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
45
+ : `${packageDetails}`;
46
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
47
+ userAgentPrefix
48
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
49
+ super(optionsWithDefaults);
50
+ let bearerTokenAuthenticationPolicyFound = false;
51
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
52
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
53
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
54
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
55
+ }
56
+ if (!options ||
57
+ !options.pipeline ||
58
+ options.pipeline.getOrderedPolicies().length == 0 ||
59
+ !bearerTokenAuthenticationPolicyFound) {
60
+ this.pipeline.removePolicy({
61
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
62
+ });
63
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
64
+ credential: credentials,
65
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
66
+ challengeCallbacks: {
67
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
68
+ }
69
+ }));
70
+ }
71
+ // Parameter assignments
72
+ this.subscriptionId = subscriptionId;
73
+ // Assigning values to Constant parameters
74
+ this.$host = options.$host || "https://management.azure.com";
75
+ this.apiVersion = options.apiVersion || "2021-07-01";
76
+ this.features = new index_js_1.FeaturesImpl(this);
77
+ this.subscriptionFeatureRegistrations = new index_js_1.SubscriptionFeatureRegistrationsImpl(this);
78
+ this.addCustomApiVersionPolicy(options.apiVersion);
79
+ }
80
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
81
+ addCustomApiVersionPolicy(apiVersion) {
82
+ if (!apiVersion) {
83
+ return;
84
+ }
85
+ const apiVersionPolicy = {
86
+ name: "CustomApiVersionPolicy",
87
+ async sendRequest(request, next) {
88
+ const param = request.url.split("?");
89
+ if (param.length > 1) {
90
+ const newParams = param[1].split("&").map((item) => {
91
+ if (item.indexOf("api-version") > -1) {
92
+ return "api-version=" + apiVersion;
93
+ }
94
+ else {
95
+ return item;
96
+ }
97
+ });
98
+ request.url = param[0] + "?" + newParams.join("&");
99
+ }
100
+ return next(request);
101
+ }
102
+ };
103
+ this.pipeline.addPolicy(apiVersionPolicy);
104
+ }
105
+ /**
106
+ * Lists all of the available Microsoft.Features REST API operations.
107
+ * @param options The options parameters.
108
+ */
109
+ listOperations(options) {
110
+ const iter = this.listOperationsPagingAll(options);
111
+ return {
112
+ next() {
113
+ return iter.next();
114
+ },
115
+ [Symbol.asyncIterator]() {
116
+ return this;
117
+ },
118
+ byPage: (settings) => {
119
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
120
+ throw new Error("maxPageSize is not supported by this operation.");
121
+ }
122
+ return this.listOperationsPagingPage(options, settings);
123
+ }
124
+ };
125
+ }
126
+ listOperationsPagingPage(options, settings) {
127
+ return tslib_1.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
128
+ let result;
129
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
130
+ if (!continuationToken) {
131
+ result = yield tslib_1.__await(this._listOperations(options));
132
+ let page = result.value || [];
133
+ continuationToken = result.nextLink;
134
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
135
+ yield yield tslib_1.__await(page);
136
+ }
137
+ while (continuationToken) {
138
+ result = yield tslib_1.__await(this._listOperationsNext(continuationToken, options));
139
+ continuationToken = result.nextLink;
140
+ let page = result.value || [];
141
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
142
+ yield yield tslib_1.__await(page);
143
+ }
144
+ });
145
+ }
146
+ listOperationsPagingAll(options) {
147
+ return tslib_1.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
148
+ var _a, e_1, _b, _c;
149
+ try {
150
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
151
+ _c = _f.value;
152
+ _d = false;
153
+ const page = _c;
154
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
155
+ }
156
+ }
157
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
158
+ finally {
159
+ try {
160
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
161
+ }
162
+ finally { if (e_1) throw e_1.error; }
163
+ }
164
+ });
165
+ }
166
+ /**
167
+ * Lists all of the available Microsoft.Features REST API operations.
168
+ * @param options The options parameters.
169
+ */
170
+ _listOperations(options) {
171
+ return this.sendOperationRequest({ options }, listOperationsOperationSpec);
172
+ }
173
+ /**
174
+ * ListOperationsNext
175
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
176
+ * @param options The options parameters.
177
+ */
178
+ _listOperationsNext(nextLink, options) {
179
+ return this.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
180
+ }
181
+ }
182
+ exports.FeatureClient = FeatureClient;
183
+ // Operation Specifications
184
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
185
+ const listOperationsOperationSpec = {
186
+ path: "/providers/Microsoft.Features/operations",
187
+ httpMethod: "GET",
188
+ responses: {
189
+ 200: {
190
+ bodyMapper: Mappers.OperationListResult
191
+ },
192
+ default: {
193
+ bodyMapper: Mappers.ErrorResponse
194
+ }
195
+ },
196
+ queryParameters: [Parameters.apiVersion],
197
+ urlParameters: [Parameters.$host],
198
+ headerParameters: [Parameters.accept],
199
+ serializer
200
+ };
201
+ const listOperationsNextOperationSpec = {
202
+ path: "{nextLink}",
203
+ httpMethod: "GET",
204
+ responses: {
205
+ 200: {
206
+ bodyMapper: Mappers.OperationListResult
207
+ },
208
+ default: {
209
+ bodyMapper: Mappers.ErrorResponse
210
+ }
211
+ },
212
+ queryParameters: [Parameters.apiVersion],
213
+ urlParameters: [Parameters.$host, Parameters.nextLink],
214
+ headerParameters: [Parameters.accept],
215
+ serializer
216
+ };
217
+ //# sourceMappingURL=featureClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureClient.js","sourceRoot":"","sources":["../../src/featureClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAQ9D,uDAAyD;AACzD,oDAG+B;AAK/B,2EAAqD;AACrD,qEAA+C;AAU/C,4CAA4C;AAC5C,MAAa,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,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAA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I,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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.FeatureClient = exports.getContinuationToken = void 0;
11
+ const tslib_1 = require("tslib");
12
+ /// <reference lib="esnext.asynciterable" />
13
+ var pagingHelper_js_1 = require("./pagingHelper.js");
14
+ Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
15
+ tslib_1.__exportStar(require("./models/index.js"), exports);
16
+ var featureClient_js_1 = require("./featureClient.js");
17
+ Object.defineProperty(exports, "FeatureClient", { enumerable: true, get: function () { return featureClient_js_1.FeatureClient; } });
18
+ tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
19
+ //# 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,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,uDAAmD;AAA1C,iHAAA,aAAa,OAAA;AACtB,0EAAgD","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,323 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ /** 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. */
3
+ export interface OperationListResult {
4
+ /** List of Microsoft.Features operations. */
5
+ value?: Operation[];
6
+ /** URL to get the next set of operation list results if there are any. */
7
+ nextLink?: string;
8
+ }
9
+ /** Microsoft.Features operation */
10
+ export interface Operation {
11
+ /** Operation name: {provider}/{resource}/{operation} */
12
+ name?: string;
13
+ /** The object that represents the operation. */
14
+ display?: OperationDisplay;
15
+ }
16
+ /** The object that represents the operation. */
17
+ export interface OperationDisplay {
18
+ /** Service provider: Microsoft.Features */
19
+ provider?: string;
20
+ /** Resource on which the operation is performed: Profile, endpoint, etc. */
21
+ resource?: string;
22
+ /** Operation type: Read, write, delete, etc. */
23
+ operation?: string;
24
+ }
25
+ /** Error response indicates that the service is not able to process the incoming request. */
26
+ export interface ErrorResponse {
27
+ /** The error details. */
28
+ error?: ErrorDefinition;
29
+ }
30
+ /** Error definition. */
31
+ export interface ErrorDefinition {
32
+ /**
33
+ * Service specific error code which serves as the substatus for the HTTP error code.
34
+ * NOTE: This property will not be serialized. It can only be populated by the server.
35
+ */
36
+ readonly code?: string;
37
+ /**
38
+ * Description of the error.
39
+ * NOTE: This property will not be serialized. It can only be populated by the server.
40
+ */
41
+ readonly message?: string;
42
+ /** Internal error details. */
43
+ details?: ErrorDefinition[];
44
+ }
45
+ /** List of previewed features. */
46
+ export interface FeatureOperationsListResult {
47
+ /** The array of features. */
48
+ value?: FeatureResult[];
49
+ /** The URL to use for getting the next set of results. */
50
+ nextLink?: string;
51
+ }
52
+ /** Previewed feature information. */
53
+ export interface FeatureResult {
54
+ /** The name of the feature. */
55
+ name?: string;
56
+ /** Properties of the previewed feature. */
57
+ properties?: FeatureProperties;
58
+ /** The resource ID of the feature. */
59
+ id?: string;
60
+ /** The resource type of the feature. */
61
+ type?: string;
62
+ }
63
+ /** Information about feature. */
64
+ export interface FeatureProperties {
65
+ /** The registration state of the feature for the subscription. */
66
+ state?: string;
67
+ }
68
+ export interface SubscriptionFeatureRegistrationProperties {
69
+ /**
70
+ * The tenantId.
71
+ * NOTE: This property will not be serialized. It can only be populated by the server.
72
+ */
73
+ readonly tenantId?: string;
74
+ /**
75
+ * The subscriptionId.
76
+ * NOTE: This property will not be serialized. It can only be populated by the server.
77
+ */
78
+ readonly subscriptionId?: string;
79
+ /**
80
+ * The featureName.
81
+ * NOTE: This property will not be serialized. It can only be populated by the server.
82
+ */
83
+ readonly featureName?: string;
84
+ /**
85
+ * The featureDisplayName.
86
+ * NOTE: This property will not be serialized. It can only be populated by the server.
87
+ */
88
+ readonly displayName?: string;
89
+ /**
90
+ * The providerNamespace.
91
+ * NOTE: This property will not be serialized. It can only be populated by the server.
92
+ */
93
+ readonly providerNamespace?: string;
94
+ /** The state. */
95
+ state?: SubscriptionFeatureRegistrationState;
96
+ /** Authorization Profile */
97
+ authorizationProfile?: AuthorizationProfile;
98
+ /** Key-value pairs for meta data. */
99
+ metadata?: {
100
+ [propertyName: string]: string;
101
+ };
102
+ /**
103
+ * The feature release date.
104
+ * NOTE: This property will not be serialized. It can only be populated by the server.
105
+ */
106
+ readonly releaseDate?: Date;
107
+ /**
108
+ * The feature registration date.
109
+ * NOTE: This property will not be serialized. It can only be populated by the server.
110
+ */
111
+ readonly registrationDate?: Date;
112
+ /**
113
+ * The feature documentation link.
114
+ * NOTE: This property will not be serialized. It can only be populated by the server.
115
+ */
116
+ readonly documentationLink?: string;
117
+ /**
118
+ * The feature approval type.
119
+ * NOTE: This property will not be serialized. It can only be populated by the server.
120
+ */
121
+ readonly approvalType?: SubscriptionFeatureRegistrationApprovalType;
122
+ /** Indicates whether feature should be displayed in Portal. */
123
+ shouldFeatureDisplayInPortal?: boolean;
124
+ /** The feature description. */
125
+ description?: string;
126
+ }
127
+ /** Authorization Profile */
128
+ export interface AuthorizationProfile {
129
+ /**
130
+ * The requested time
131
+ * NOTE: This property will not be serialized. It can only be populated by the server.
132
+ */
133
+ readonly requestedTime?: Date;
134
+ /**
135
+ * The requester
136
+ * NOTE: This property will not be serialized. It can only be populated by the server.
137
+ */
138
+ readonly requester?: string;
139
+ /**
140
+ * The requester object id
141
+ * NOTE: This property will not be serialized. It can only be populated by the server.
142
+ */
143
+ readonly requesterObjectId?: string;
144
+ /**
145
+ * The approved time
146
+ * NOTE: This property will not be serialized. It can only be populated by the server.
147
+ */
148
+ readonly approvedTime?: Date;
149
+ /**
150
+ * The approver
151
+ * NOTE: This property will not be serialized. It can only be populated by the server.
152
+ */
153
+ readonly approver?: string;
154
+ }
155
+ /** An Azure proxy resource. */
156
+ export interface ProxyResource {
157
+ /**
158
+ * Azure resource Id.
159
+ * NOTE: This property will not be serialized. It can only be populated by the server.
160
+ */
161
+ readonly id?: string;
162
+ /**
163
+ * Azure resource name.
164
+ * NOTE: This property will not be serialized. It can only be populated by the server.
165
+ */
166
+ readonly name?: string;
167
+ /**
168
+ * Azure resource type.
169
+ * NOTE: This property will not be serialized. It can only be populated by the server.
170
+ */
171
+ readonly type?: string;
172
+ }
173
+ /** The list of subscription feature registrations. */
174
+ export interface SubscriptionFeatureRegistrationList {
175
+ /** The link used to get the next page of subscription feature registrations list. */
176
+ nextLink?: string;
177
+ /** The list of subscription feature registrations. */
178
+ value?: SubscriptionFeatureRegistration[];
179
+ }
180
+ /** Subscription feature registration details */
181
+ export interface SubscriptionFeatureRegistration extends ProxyResource {
182
+ properties?: SubscriptionFeatureRegistrationProperties;
183
+ }
184
+ /** Known values of {@link SubscriptionFeatureRegistrationState} that the service accepts. */
185
+ export declare enum KnownSubscriptionFeatureRegistrationState {
186
+ /** NotSpecified */
187
+ NotSpecified = "NotSpecified",
188
+ /** NotRegistered */
189
+ NotRegistered = "NotRegistered",
190
+ /** Pending */
191
+ Pending = "Pending",
192
+ /** Registering */
193
+ Registering = "Registering",
194
+ /** Registered */
195
+ Registered = "Registered",
196
+ /** Unregistering */
197
+ Unregistering = "Unregistering",
198
+ /** Unregistered */
199
+ Unregistered = "Unregistered"
200
+ }
201
+ /**
202
+ * Defines values for SubscriptionFeatureRegistrationState. \
203
+ * {@link KnownSubscriptionFeatureRegistrationState} can be used interchangeably with SubscriptionFeatureRegistrationState,
204
+ * this enum contains the known values that the service supports.
205
+ * ### Known values supported by the service
206
+ * **NotSpecified** \
207
+ * **NotRegistered** \
208
+ * **Pending** \
209
+ * **Registering** \
210
+ * **Registered** \
211
+ * **Unregistering** \
212
+ * **Unregistered**
213
+ */
214
+ export type SubscriptionFeatureRegistrationState = string;
215
+ /** Known values of {@link SubscriptionFeatureRegistrationApprovalType} that the service accepts. */
216
+ export declare enum KnownSubscriptionFeatureRegistrationApprovalType {
217
+ /** NotSpecified */
218
+ NotSpecified = "NotSpecified",
219
+ /** ApprovalRequired */
220
+ ApprovalRequired = "ApprovalRequired",
221
+ /** AutoApproval */
222
+ AutoApproval = "AutoApproval"
223
+ }
224
+ /**
225
+ * Defines values for SubscriptionFeatureRegistrationApprovalType. \
226
+ * {@link KnownSubscriptionFeatureRegistrationApprovalType} can be used interchangeably with SubscriptionFeatureRegistrationApprovalType,
227
+ * this enum contains the known values that the service supports.
228
+ * ### Known values supported by the service
229
+ * **NotSpecified** \
230
+ * **ApprovalRequired** \
231
+ * **AutoApproval**
232
+ */
233
+ export type SubscriptionFeatureRegistrationApprovalType = string;
234
+ /** Optional parameters. */
235
+ export interface ListOperationsOptionalParams extends coreClient.OperationOptions {
236
+ }
237
+ /** Contains response data for the listOperations operation. */
238
+ export type ListOperationsResponse = OperationListResult;
239
+ /** Optional parameters. */
240
+ export interface ListOperationsNextOptionalParams extends coreClient.OperationOptions {
241
+ }
242
+ /** Contains response data for the listOperationsNext operation. */
243
+ export type ListOperationsNextResponse = OperationListResult;
244
+ /** Optional parameters. */
245
+ export interface FeaturesListAllOptionalParams extends coreClient.OperationOptions {
246
+ }
247
+ /** Contains response data for the listAll operation. */
248
+ export type FeaturesListAllResponse = FeatureOperationsListResult;
249
+ /** Optional parameters. */
250
+ export interface FeaturesListOptionalParams extends coreClient.OperationOptions {
251
+ }
252
+ /** Contains response data for the list operation. */
253
+ export type FeaturesListResponse = FeatureOperationsListResult;
254
+ /** Optional parameters. */
255
+ export interface FeaturesGetOptionalParams extends coreClient.OperationOptions {
256
+ }
257
+ /** Contains response data for the get operation. */
258
+ export type FeaturesGetResponse = FeatureResult;
259
+ /** Optional parameters. */
260
+ export interface FeaturesRegisterOptionalParams extends coreClient.OperationOptions {
261
+ }
262
+ /** Contains response data for the register operation. */
263
+ export type FeaturesRegisterResponse = FeatureResult;
264
+ /** Optional parameters. */
265
+ export interface FeaturesUnregisterOptionalParams extends coreClient.OperationOptions {
266
+ }
267
+ /** Contains response data for the unregister operation. */
268
+ export type FeaturesUnregisterResponse = FeatureResult;
269
+ /** Optional parameters. */
270
+ export interface FeaturesListAllNextOptionalParams extends coreClient.OperationOptions {
271
+ }
272
+ /** Contains response data for the listAllNext operation. */
273
+ export type FeaturesListAllNextResponse = FeatureOperationsListResult;
274
+ /** Optional parameters. */
275
+ export interface FeaturesListNextOptionalParams extends coreClient.OperationOptions {
276
+ }
277
+ /** Contains response data for the listNext operation. */
278
+ export type FeaturesListNextResponse = FeatureOperationsListResult;
279
+ /** Optional parameters. */
280
+ export interface SubscriptionFeatureRegistrationsGetOptionalParams extends coreClient.OperationOptions {
281
+ }
282
+ /** Contains response data for the get operation. */
283
+ export type SubscriptionFeatureRegistrationsGetResponse = SubscriptionFeatureRegistration;
284
+ /** Optional parameters. */
285
+ export interface SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
286
+ /** Subscription Feature Registration Type details. */
287
+ subscriptionFeatureRegistrationType?: SubscriptionFeatureRegistration;
288
+ }
289
+ /** Contains response data for the createOrUpdate operation. */
290
+ export type SubscriptionFeatureRegistrationsCreateOrUpdateResponse = SubscriptionFeatureRegistration;
291
+ /** Optional parameters. */
292
+ export interface SubscriptionFeatureRegistrationsDeleteOptionalParams extends coreClient.OperationOptions {
293
+ }
294
+ /** Optional parameters. */
295
+ export interface SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
296
+ }
297
+ /** Contains response data for the listBySubscription operation. */
298
+ export type SubscriptionFeatureRegistrationsListBySubscriptionResponse = SubscriptionFeatureRegistrationList;
299
+ /** Optional parameters. */
300
+ export interface SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams extends coreClient.OperationOptions {
301
+ }
302
+ /** Contains response data for the listAllBySubscription operation. */
303
+ export type SubscriptionFeatureRegistrationsListAllBySubscriptionResponse = SubscriptionFeatureRegistrationList;
304
+ /** Optional parameters. */
305
+ export interface SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
306
+ }
307
+ /** Contains response data for the listBySubscriptionNext operation. */
308
+ export type SubscriptionFeatureRegistrationsListBySubscriptionNextResponse = SubscriptionFeatureRegistrationList;
309
+ /** Optional parameters. */
310
+ export interface SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
311
+ }
312
+ /** Contains response data for the listAllBySubscriptionNext operation. */
313
+ export type SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse = SubscriptionFeatureRegistrationList;
314
+ /** Optional parameters. */
315
+ export interface FeatureClientOptionalParams extends coreClient.ServiceClientOptions {
316
+ /** server parameter */
317
+ $host?: string;
318
+ /** Api Version */
319
+ apiVersion?: string;
320
+ /** Overrides client endpoint. */
321
+ endpoint?: string;
322
+ }
323
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,mJAAmJ;AACnJ,MAAM,WAAW,mBAAmB;IAClC,6CAA6C;IAC7C,KAAK,CAAC,EAAE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M,MAAM,2CAA2C,GAAG,+BAA+B,CAAC;AAE1F,2BAA2B;AAC3B,MAAM,WAAW,4DACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC,sDAAsD;IACtD,mCAAmC,CAAC,EAAE,+BAA+B,CAAC;CACvE;AAED,+DAA+D;AAC/D,MAAM,MAAM,sDAAsD,GAAG,+BAA+B,CAAC;AAErG,2BAA2B;AAC3B,MAAM,WAAW,oDACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,2BAA2B;AAC3B,MAAM,WAAW,gEACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,mEAAmE;AACnE,MAAM,MAAM,0DAA0D,GAAG,mCAAmC,CAAC;AAE7G,2BAA2B;AAC3B,MAAM,WAAW,mEACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,sEAAsE;AACtE,MAAM,MAAM,6DAA6D,GAAG,mCAAmC,CAAC;AAEhH,2BAA2B;AAC3B,MAAM,WAAW,oEACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,uEAAuE;AACvE,MAAM,MAAM,8DAA8D,GAAG,mCAAmC,CAAC;AAEjH,2BAA2B;AAC3B,MAAM,WAAW,uEACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,0EAA0E;AAC1E,MAAM,MAAM,iEAAiE,GAAG,mCAAmC,CAAC;AAEpH,2BAA2B;AAC3B,MAAM,WAAW,2BACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.KnownSubscriptionFeatureRegistrationApprovalType = exports.KnownSubscriptionFeatureRegistrationState = void 0;
11
+ /** Known values of {@link SubscriptionFeatureRegistrationState} that the service accepts. */
12
+ var KnownSubscriptionFeatureRegistrationState;
13
+ (function (KnownSubscriptionFeatureRegistrationState) {
14
+ /** NotSpecified */
15
+ KnownSubscriptionFeatureRegistrationState["NotSpecified"] = "NotSpecified";
16
+ /** NotRegistered */
17
+ KnownSubscriptionFeatureRegistrationState["NotRegistered"] = "NotRegistered";
18
+ /** Pending */
19
+ KnownSubscriptionFeatureRegistrationState["Pending"] = "Pending";
20
+ /** Registering */
21
+ KnownSubscriptionFeatureRegistrationState["Registering"] = "Registering";
22
+ /** Registered */
23
+ KnownSubscriptionFeatureRegistrationState["Registered"] = "Registered";
24
+ /** Unregistering */
25
+ KnownSubscriptionFeatureRegistrationState["Unregistering"] = "Unregistering";
26
+ /** Unregistered */
27
+ KnownSubscriptionFeatureRegistrationState["Unregistered"] = "Unregistered";
28
+ })(KnownSubscriptionFeatureRegistrationState || (exports.KnownSubscriptionFeatureRegistrationState = KnownSubscriptionFeatureRegistrationState = {}));
29
+ /** Known values of {@link SubscriptionFeatureRegistrationApprovalType} that the service accepts. */
30
+ var KnownSubscriptionFeatureRegistrationApprovalType;
31
+ (function (KnownSubscriptionFeatureRegistrationApprovalType) {
32
+ /** NotSpecified */
33
+ KnownSubscriptionFeatureRegistrationApprovalType["NotSpecified"] = "NotSpecified";
34
+ /** ApprovalRequired */
35
+ KnownSubscriptionFeatureRegistrationApprovalType["ApprovalRequired"] = "ApprovalRequired";
36
+ /** AutoApproval */
37
+ KnownSubscriptionFeatureRegistrationApprovalType["AutoApproval"] = "AutoApproval";
38
+ })(KnownSubscriptionFeatureRegistrationApprovalType || (exports.KnownSubscriptionFeatureRegistrationApprovalType = KnownSubscriptionFeatureRegistrationApprovalType = {}));
39
+ //# sourceMappingURL=index.js.map