@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,276 +0,0 @@
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
-
9
- import * as coreClient from "@azure/core-client";
10
- import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import {
12
- PipelineRequest,
13
- PipelineResponse,
14
- SendRequest
15
- } from "@azure/core-rest-pipeline";
16
- import * as coreAuth from "@azure/core-auth";
17
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
18
- import { setContinuationToken } from "./pagingHelper";
19
- import {
20
- FeaturesImpl,
21
- SubscriptionFeatureRegistrationsImpl
22
- } from "./operations";
23
- import {
24
- Features,
25
- SubscriptionFeatureRegistrations
26
- } from "./operationsInterfaces";
27
- import * as Parameters from "./models/parameters";
28
- import * as Mappers from "./models/mappers";
29
- import {
30
- FeatureClientOptionalParams,
31
- Operation,
32
- ListOperationsNextOptionalParams,
33
- ListOperationsOptionalParams,
34
- ListOperationsResponse,
35
- ListOperationsNextResponse
36
- } from "./models";
37
-
38
- /// <reference lib="esnext.asynciterable" />
39
- export class FeatureClient extends coreClient.ServiceClient {
40
- $host: string;
41
- apiVersion: string;
42
- subscriptionId: string;
43
-
44
- /**
45
- * Initializes a new instance of the FeatureClient class.
46
- * @param credentials Subscription credentials which uniquely identify client subscription.
47
- * @param subscriptionId The Azure subscription ID.
48
- * @param options The parameter options
49
- */
50
- constructor(
51
- credentials: coreAuth.TokenCredential,
52
- subscriptionId: string,
53
- options?: FeatureClientOptionalParams
54
- ) {
55
- if (credentials === undefined) {
56
- throw new Error("'credentials' cannot be null");
57
- }
58
- if (subscriptionId === undefined) {
59
- throw new Error("'subscriptionId' cannot be null");
60
- }
61
-
62
- // Initializing default values for options
63
- if (!options) {
64
- options = {};
65
- }
66
- const defaults: FeatureClientOptionalParams = {
67
- requestContentType: "application/json; charset=utf-8",
68
- credential: credentials
69
- };
70
-
71
- const packageDetails = `azsdk-js-arm-features/3.1.1`;
72
- const userAgentPrefix =
73
- options.userAgentOptions && options.userAgentOptions.userAgentPrefix
74
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
75
- : `${packageDetails}`;
76
-
77
- const optionsWithDefaults = {
78
- ...defaults,
79
- ...options,
80
- userAgentOptions: {
81
- userAgentPrefix
82
- },
83
- endpoint:
84
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
85
- };
86
- super(optionsWithDefaults);
87
-
88
- let bearerTokenAuthenticationPolicyFound: boolean = false;
89
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
90
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
91
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
92
- (pipelinePolicy) =>
93
- pipelinePolicy.name ===
94
- coreRestPipeline.bearerTokenAuthenticationPolicyName
95
- );
96
- }
97
- if (
98
- !options ||
99
- !options.pipeline ||
100
- options.pipeline.getOrderedPolicies().length == 0 ||
101
- !bearerTokenAuthenticationPolicyFound
102
- ) {
103
- this.pipeline.removePolicy({
104
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
105
- });
106
- this.pipeline.addPolicy(
107
- coreRestPipeline.bearerTokenAuthenticationPolicy({
108
- credential: credentials,
109
- scopes:
110
- optionsWithDefaults.credentialScopes ??
111
- `${optionsWithDefaults.endpoint}/.default`,
112
- challengeCallbacks: {
113
- authorizeRequestOnChallenge:
114
- coreClient.authorizeRequestOnClaimChallenge
115
- }
116
- })
117
- );
118
- }
119
- // Parameter assignments
120
- this.subscriptionId = subscriptionId;
121
-
122
- // Assigning values to Constant parameters
123
- this.$host = options.$host || "https://management.azure.com";
124
- this.apiVersion = options.apiVersion || "2021-07-01";
125
- this.features = new FeaturesImpl(this);
126
- this.subscriptionFeatureRegistrations = new SubscriptionFeatureRegistrationsImpl(
127
- this
128
- );
129
- this.addCustomApiVersionPolicy(options.apiVersion);
130
- }
131
-
132
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
133
- private addCustomApiVersionPolicy(apiVersion?: string) {
134
- if (!apiVersion) {
135
- return;
136
- }
137
- const apiVersionPolicy = {
138
- name: "CustomApiVersionPolicy",
139
- async sendRequest(
140
- request: PipelineRequest,
141
- next: SendRequest
142
- ): Promise<PipelineResponse> {
143
- const param = request.url.split("?");
144
- if (param.length > 1) {
145
- const newParams = param[1].split("&").map((item) => {
146
- if (item.indexOf("api-version") > -1) {
147
- return "api-version=" + apiVersion;
148
- } else {
149
- return item;
150
- }
151
- });
152
- request.url = param[0] + "?" + newParams.join("&");
153
- }
154
- return next(request);
155
- }
156
- };
157
- this.pipeline.addPolicy(apiVersionPolicy);
158
- }
159
-
160
- /**
161
- * Lists all of the available Microsoft.Features REST API operations.
162
- * @param options The options parameters.
163
- */
164
- public listOperations(
165
- options?: ListOperationsOptionalParams
166
- ): PagedAsyncIterableIterator<Operation> {
167
- const iter = this.listOperationsPagingAll(options);
168
- return {
169
- next() {
170
- return iter.next();
171
- },
172
- [Symbol.asyncIterator]() {
173
- return this;
174
- },
175
- byPage: (settings?: PageSettings) => {
176
- if (settings?.maxPageSize) {
177
- throw new Error("maxPageSize is not supported by this operation.");
178
- }
179
- return this.listOperationsPagingPage(options, settings);
180
- }
181
- };
182
- }
183
-
184
- private async *listOperationsPagingPage(
185
- options?: ListOperationsOptionalParams,
186
- settings?: PageSettings
187
- ): AsyncIterableIterator<Operation[]> {
188
- let result: ListOperationsResponse;
189
- let continuationToken = settings?.continuationToken;
190
- if (!continuationToken) {
191
- result = await this._listOperations(options);
192
- let page = result.value || [];
193
- continuationToken = result.nextLink;
194
- setContinuationToken(page, continuationToken);
195
- yield page;
196
- }
197
- while (continuationToken) {
198
- result = await this._listOperationsNext(continuationToken, options);
199
- continuationToken = result.nextLink;
200
- let page = result.value || [];
201
- setContinuationToken(page, continuationToken);
202
- yield page;
203
- }
204
- }
205
-
206
- private async *listOperationsPagingAll(
207
- options?: ListOperationsOptionalParams
208
- ): AsyncIterableIterator<Operation> {
209
- for await (const page of this.listOperationsPagingPage(options)) {
210
- yield* page;
211
- }
212
- }
213
-
214
- /**
215
- * Lists all of the available Microsoft.Features REST API operations.
216
- * @param options The options parameters.
217
- */
218
- private _listOperations(
219
- options?: ListOperationsOptionalParams
220
- ): Promise<ListOperationsResponse> {
221
- return this.sendOperationRequest({ options }, listOperationsOperationSpec);
222
- }
223
-
224
- /**
225
- * ListOperationsNext
226
- * @param nextLink The nextLink from the previous successful call to the ListOperations method.
227
- * @param options The options parameters.
228
- */
229
- private _listOperationsNext(
230
- nextLink: string,
231
- options?: ListOperationsNextOptionalParams
232
- ): Promise<ListOperationsNextResponse> {
233
- return this.sendOperationRequest(
234
- { nextLink, options },
235
- listOperationsNextOperationSpec
236
- );
237
- }
238
-
239
- features: Features;
240
- subscriptionFeatureRegistrations: SubscriptionFeatureRegistrations;
241
- }
242
- // Operation Specifications
243
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
244
-
245
- const listOperationsOperationSpec: coreClient.OperationSpec = {
246
- path: "/providers/Microsoft.Features/operations",
247
- httpMethod: "GET",
248
- responses: {
249
- 200: {
250
- bodyMapper: Mappers.OperationListResult
251
- },
252
- default: {
253
- bodyMapper: Mappers.ErrorResponse
254
- }
255
- },
256
- queryParameters: [Parameters.apiVersion],
257
- urlParameters: [Parameters.$host],
258
- headerParameters: [Parameters.accept],
259
- serializer
260
- };
261
- const listOperationsNextOperationSpec: coreClient.OperationSpec = {
262
- path: "{nextLink}",
263
- httpMethod: "GET",
264
- responses: {
265
- 200: {
266
- bodyMapper: Mappers.OperationListResult
267
- },
268
- default: {
269
- bodyMapper: Mappers.ErrorResponse
270
- }
271
- },
272
- queryParameters: [Parameters.apiVersion],
273
- urlParameters: [Parameters.$host, Parameters.nextLink],
274
- headerParameters: [Parameters.accept],
275
- serializer
276
- };
@@ -1,379 +0,0 @@
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
-
9
- import * as coreClient from "@azure/core-client";
10
-
11
- /** 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. */
12
- export interface OperationListResult {
13
- /** List of Microsoft.Features operations. */
14
- value?: Operation[];
15
- /** URL to get the next set of operation list results if there are any. */
16
- nextLink?: string;
17
- }
18
-
19
- /** Microsoft.Features operation */
20
- export interface Operation {
21
- /** Operation name: {provider}/{resource}/{operation} */
22
- name?: string;
23
- /** The object that represents the operation. */
24
- display?: OperationDisplay;
25
- }
26
-
27
- /** The object that represents the operation. */
28
- export interface OperationDisplay {
29
- /** Service provider: Microsoft.Features */
30
- provider?: string;
31
- /** Resource on which the operation is performed: Profile, endpoint, etc. */
32
- resource?: string;
33
- /** Operation type: Read, write, delete, etc. */
34
- operation?: string;
35
- }
36
-
37
- /** Error response indicates that the service is not able to process the incoming request. */
38
- export interface ErrorResponse {
39
- /** The error details. */
40
- error?: ErrorDefinition;
41
- }
42
-
43
- /** Error definition. */
44
- export interface ErrorDefinition {
45
- /**
46
- * Service specific error code which serves as the substatus for the HTTP error code.
47
- * NOTE: This property will not be serialized. It can only be populated by the server.
48
- */
49
- readonly code?: string;
50
- /**
51
- * Description of the error.
52
- * NOTE: This property will not be serialized. It can only be populated by the server.
53
- */
54
- readonly message?: string;
55
- /** Internal error details. */
56
- details?: ErrorDefinition[];
57
- }
58
-
59
- /** List of previewed features. */
60
- export interface FeatureOperationsListResult {
61
- /** The array of features. */
62
- value?: FeatureResult[];
63
- /** The URL to use for getting the next set of results. */
64
- nextLink?: string;
65
- }
66
-
67
- /** Previewed feature information. */
68
- export interface FeatureResult {
69
- /** The name of the feature. */
70
- name?: string;
71
- /** Properties of the previewed feature. */
72
- properties?: FeatureProperties;
73
- /** The resource ID of the feature. */
74
- id?: string;
75
- /** The resource type of the feature. */
76
- type?: string;
77
- }
78
-
79
- /** Information about feature. */
80
- export interface FeatureProperties {
81
- /** The registration state of the feature for the subscription. */
82
- state?: string;
83
- }
84
-
85
- export interface SubscriptionFeatureRegistrationProperties {
86
- /**
87
- * The tenantId.
88
- * NOTE: This property will not be serialized. It can only be populated by the server.
89
- */
90
- readonly tenantId?: string;
91
- /**
92
- * The subscriptionId.
93
- * NOTE: This property will not be serialized. It can only be populated by the server.
94
- */
95
- readonly subscriptionId?: string;
96
- /**
97
- * The featureName.
98
- * NOTE: This property will not be serialized. It can only be populated by the server.
99
- */
100
- readonly featureName?: string;
101
- /**
102
- * The featureDisplayName.
103
- * NOTE: This property will not be serialized. It can only be populated by the server.
104
- */
105
- readonly displayName?: string;
106
- /**
107
- * The providerNamespace.
108
- * NOTE: This property will not be serialized. It can only be populated by the server.
109
- */
110
- readonly providerNamespace?: string;
111
- /** The state. */
112
- state?: SubscriptionFeatureRegistrationState;
113
- /** Authorization Profile */
114
- authorizationProfile?: AuthorizationProfile;
115
- /** Key-value pairs for meta data. */
116
- metadata?: { [propertyName: string]: string };
117
- /**
118
- * The feature release date.
119
- * NOTE: This property will not be serialized. It can only be populated by the server.
120
- */
121
- readonly releaseDate?: Date;
122
- /**
123
- * The feature registration date.
124
- * NOTE: This property will not be serialized. It can only be populated by the server.
125
- */
126
- readonly registrationDate?: Date;
127
- /**
128
- * The feature documentation link.
129
- * NOTE: This property will not be serialized. It can only be populated by the server.
130
- */
131
- readonly documentationLink?: string;
132
- /**
133
- * The feature approval type.
134
- * NOTE: This property will not be serialized. It can only be populated by the server.
135
- */
136
- readonly approvalType?: SubscriptionFeatureRegistrationApprovalType;
137
- /** Indicates whether feature should be displayed in Portal. */
138
- shouldFeatureDisplayInPortal?: boolean;
139
- /** The feature description. */
140
- description?: string;
141
- }
142
-
143
- /** Authorization Profile */
144
- export interface AuthorizationProfile {
145
- /**
146
- * The requested time
147
- * NOTE: This property will not be serialized. It can only be populated by the server.
148
- */
149
- readonly requestedTime?: Date;
150
- /**
151
- * The requester
152
- * NOTE: This property will not be serialized. It can only be populated by the server.
153
- */
154
- readonly requester?: string;
155
- /**
156
- * The requester object id
157
- * NOTE: This property will not be serialized. It can only be populated by the server.
158
- */
159
- readonly requesterObjectId?: string;
160
- /**
161
- * The approved time
162
- * NOTE: This property will not be serialized. It can only be populated by the server.
163
- */
164
- readonly approvedTime?: Date;
165
- /**
166
- * The approver
167
- * NOTE: This property will not be serialized. It can only be populated by the server.
168
- */
169
- readonly approver?: string;
170
- }
171
-
172
- /** An Azure proxy resource. */
173
- export interface ProxyResource {
174
- /**
175
- * Azure resource Id.
176
- * NOTE: This property will not be serialized. It can only be populated by the server.
177
- */
178
- readonly id?: string;
179
- /**
180
- * Azure resource name.
181
- * NOTE: This property will not be serialized. It can only be populated by the server.
182
- */
183
- readonly name?: string;
184
- /**
185
- * Azure resource type.
186
- * NOTE: This property will not be serialized. It can only be populated by the server.
187
- */
188
- readonly type?: string;
189
- }
190
-
191
- /** The list of subscription feature registrations. */
192
- export interface SubscriptionFeatureRegistrationList {
193
- /** The link used to get the next page of subscription feature registrations list. */
194
- nextLink?: string;
195
- /** The list of subscription feature registrations. */
196
- value?: SubscriptionFeatureRegistration[];
197
- }
198
-
199
- /** Subscription feature registration details */
200
- export interface SubscriptionFeatureRegistration extends ProxyResource {
201
- properties?: SubscriptionFeatureRegistrationProperties;
202
- }
203
-
204
- /** Known values of {@link SubscriptionFeatureRegistrationState} that the service accepts. */
205
- export enum KnownSubscriptionFeatureRegistrationState {
206
- /** NotSpecified */
207
- NotSpecified = "NotSpecified",
208
- /** NotRegistered */
209
- NotRegistered = "NotRegistered",
210
- /** Pending */
211
- Pending = "Pending",
212
- /** Registering */
213
- Registering = "Registering",
214
- /** Registered */
215
- Registered = "Registered",
216
- /** Unregistering */
217
- Unregistering = "Unregistering",
218
- /** Unregistered */
219
- Unregistered = "Unregistered"
220
- }
221
-
222
- /**
223
- * Defines values for SubscriptionFeatureRegistrationState. \
224
- * {@link KnownSubscriptionFeatureRegistrationState} can be used interchangeably with SubscriptionFeatureRegistrationState,
225
- * this enum contains the known values that the service supports.
226
- * ### Known values supported by the service
227
- * **NotSpecified** \
228
- * **NotRegistered** \
229
- * **Pending** \
230
- * **Registering** \
231
- * **Registered** \
232
- * **Unregistering** \
233
- * **Unregistered**
234
- */
235
- export type SubscriptionFeatureRegistrationState = string;
236
-
237
- /** Known values of {@link SubscriptionFeatureRegistrationApprovalType} that the service accepts. */
238
- export enum KnownSubscriptionFeatureRegistrationApprovalType {
239
- /** NotSpecified */
240
- NotSpecified = "NotSpecified",
241
- /** ApprovalRequired */
242
- ApprovalRequired = "ApprovalRequired",
243
- /** AutoApproval */
244
- AutoApproval = "AutoApproval"
245
- }
246
-
247
- /**
248
- * Defines values for SubscriptionFeatureRegistrationApprovalType. \
249
- * {@link KnownSubscriptionFeatureRegistrationApprovalType} can be used interchangeably with SubscriptionFeatureRegistrationApprovalType,
250
- * this enum contains the known values that the service supports.
251
- * ### Known values supported by the service
252
- * **NotSpecified** \
253
- * **ApprovalRequired** \
254
- * **AutoApproval**
255
- */
256
- export type SubscriptionFeatureRegistrationApprovalType = string;
257
-
258
- /** Optional parameters. */
259
- export interface ListOperationsOptionalParams
260
- extends coreClient.OperationOptions {}
261
-
262
- /** Contains response data for the listOperations operation. */
263
- export type ListOperationsResponse = OperationListResult;
264
-
265
- /** Optional parameters. */
266
- export interface ListOperationsNextOptionalParams
267
- extends coreClient.OperationOptions {}
268
-
269
- /** Contains response data for the listOperationsNext operation. */
270
- export type ListOperationsNextResponse = OperationListResult;
271
-
272
- /** Optional parameters. */
273
- export interface FeaturesListAllOptionalParams
274
- extends coreClient.OperationOptions {}
275
-
276
- /** Contains response data for the listAll operation. */
277
- export type FeaturesListAllResponse = FeatureOperationsListResult;
278
-
279
- /** Optional parameters. */
280
- export interface FeaturesListOptionalParams
281
- extends coreClient.OperationOptions {}
282
-
283
- /** Contains response data for the list operation. */
284
- export type FeaturesListResponse = FeatureOperationsListResult;
285
-
286
- /** Optional parameters. */
287
- export interface FeaturesGetOptionalParams
288
- extends coreClient.OperationOptions {}
289
-
290
- /** Contains response data for the get operation. */
291
- export type FeaturesGetResponse = FeatureResult;
292
-
293
- /** Optional parameters. */
294
- export interface FeaturesRegisterOptionalParams
295
- extends coreClient.OperationOptions {}
296
-
297
- /** Contains response data for the register operation. */
298
- export type FeaturesRegisterResponse = FeatureResult;
299
-
300
- /** Optional parameters. */
301
- export interface FeaturesUnregisterOptionalParams
302
- extends coreClient.OperationOptions {}
303
-
304
- /** Contains response data for the unregister operation. */
305
- export type FeaturesUnregisterResponse = FeatureResult;
306
-
307
- /** Optional parameters. */
308
- export interface FeaturesListAllNextOptionalParams
309
- extends coreClient.OperationOptions {}
310
-
311
- /** Contains response data for the listAllNext operation. */
312
- export type FeaturesListAllNextResponse = FeatureOperationsListResult;
313
-
314
- /** Optional parameters. */
315
- export interface FeaturesListNextOptionalParams
316
- extends coreClient.OperationOptions {}
317
-
318
- /** Contains response data for the listNext operation. */
319
- export type FeaturesListNextResponse = FeatureOperationsListResult;
320
-
321
- /** Optional parameters. */
322
- export interface SubscriptionFeatureRegistrationsGetOptionalParams
323
- extends coreClient.OperationOptions {}
324
-
325
- /** Contains response data for the get operation. */
326
- export type SubscriptionFeatureRegistrationsGetResponse = SubscriptionFeatureRegistration;
327
-
328
- /** Optional parameters. */
329
- export interface SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams
330
- extends coreClient.OperationOptions {
331
- /** Subscription Feature Registration Type details. */
332
- subscriptionFeatureRegistrationType?: SubscriptionFeatureRegistration;
333
- }
334
-
335
- /** Contains response data for the createOrUpdate operation. */
336
- export type SubscriptionFeatureRegistrationsCreateOrUpdateResponse = SubscriptionFeatureRegistration;
337
-
338
- /** Optional parameters. */
339
- export interface SubscriptionFeatureRegistrationsDeleteOptionalParams
340
- extends coreClient.OperationOptions {}
341
-
342
- /** Optional parameters. */
343
- export interface SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams
344
- extends coreClient.OperationOptions {}
345
-
346
- /** Contains response data for the listBySubscription operation. */
347
- export type SubscriptionFeatureRegistrationsListBySubscriptionResponse = SubscriptionFeatureRegistrationList;
348
-
349
- /** Optional parameters. */
350
- export interface SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams
351
- extends coreClient.OperationOptions {}
352
-
353
- /** Contains response data for the listAllBySubscription operation. */
354
- export type SubscriptionFeatureRegistrationsListAllBySubscriptionResponse = SubscriptionFeatureRegistrationList;
355
-
356
- /** Optional parameters. */
357
- export interface SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams
358
- extends coreClient.OperationOptions {}
359
-
360
- /** Contains response data for the listBySubscriptionNext operation. */
361
- export type SubscriptionFeatureRegistrationsListBySubscriptionNextResponse = SubscriptionFeatureRegistrationList;
362
-
363
- /** Optional parameters. */
364
- export interface SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams
365
- extends coreClient.OperationOptions {}
366
-
367
- /** Contains response data for the listAllBySubscriptionNext operation. */
368
- export type SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse = SubscriptionFeatureRegistrationList;
369
-
370
- /** Optional parameters. */
371
- export interface FeatureClientOptionalParams
372
- extends coreClient.ServiceClientOptions {
373
- /** server parameter */
374
- $host?: string;
375
- /** Api Version */
376
- apiVersion?: string;
377
- /** Overrides client endpoint. */
378
- endpoint?: string;
379
- }