@azure/arm-astro 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/LICENSE +4 -4
  3. package/README.md +26 -19
  4. package/{dist-esm/src → dist/browser}/astroManagementClient.d.ts +2 -2
  5. package/dist/browser/astroManagementClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/astroManagementClient.js +31 -24
  7. package/dist/browser/astroManagementClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +4 -4
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  13. package/dist/browser/lroImpl.js +18 -0
  14. package/dist/browser/lroImpl.js.map +1 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/models/mappers.js +14 -6
  17. package/dist/browser/models/mappers.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  19. package/dist/browser/models/parameters.js.map +1 -0
  20. package/dist/browser/operations/index.d.ts +3 -0
  21. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  22. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  23. package/dist/browser/operations/index.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  25. package/dist/browser/operations/operations.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.js +26 -43
  27. package/dist/browser/operations/operations.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/organizations.d.ts +3 -3
  29. package/dist/browser/operations/organizations.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/organizations.js +175 -206
  31. package/dist/browser/operations/organizations.js.map +1 -0
  32. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  35. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  38. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/organizations.d.ts +1 -1
  40. package/dist/browser/operationsInterfaces/organizations.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/organizations.js.map +1 -0
  42. package/dist/browser/package.json +3 -0
  43. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  44. package/dist/browser/pagingHelper.js.map +1 -0
  45. package/dist/commonjs/astroManagementClient.d.ts +21 -0
  46. package/dist/commonjs/astroManagementClient.d.ts.map +1 -0
  47. package/dist/commonjs/astroManagementClient.js +113 -0
  48. package/dist/commonjs/astroManagementClient.js.map +1 -0
  49. package/dist/commonjs/index.d.ts +5 -0
  50. package/dist/commonjs/index.d.ts.map +1 -0
  51. package/dist/commonjs/index.js +19 -0
  52. package/dist/commonjs/index.js.map +1 -0
  53. package/dist/commonjs/lroImpl.d.ts +11 -0
  54. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  55. package/dist/commonjs/lroImpl.js +21 -0
  56. package/dist/commonjs/lroImpl.js.map +1 -0
  57. package/{types/arm-astro.d.ts → dist/commonjs/models/index.d.ts} +565 -736
  58. package/dist/commonjs/models/index.d.ts.map +1 -0
  59. package/dist/commonjs/models/index.js +89 -0
  60. package/dist/commonjs/models/index.js.map +1 -0
  61. package/dist/commonjs/models/mappers.d.ts +28 -0
  62. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  63. package/dist/commonjs/models/mappers.js +868 -0
  64. package/dist/commonjs/models/mappers.js.map +1 -0
  65. package/dist/commonjs/models/parameters.d.ts +12 -0
  66. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  67. package/dist/commonjs/models/parameters.js +117 -0
  68. package/dist/commonjs/models/parameters.js.map +1 -0
  69. package/dist/commonjs/operations/index.d.ts +3 -0
  70. package/dist/commonjs/operations/index.d.ts.map +1 -0
  71. package/dist/commonjs/operations/index.js +13 -0
  72. package/dist/commonjs/operations/index.js.map +1 -0
  73. package/dist/commonjs/operations/operations.d.ts +32 -0
  74. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  75. package/dist/commonjs/operations/operations.js +121 -0
  76. package/dist/commonjs/operations/operations.js.map +1 -0
  77. package/dist/commonjs/operations/organizations.d.ts +107 -0
  78. package/dist/commonjs/operations/organizations.d.ts.map +1 -0
  79. package/dist/commonjs/operations/organizations.js +528 -0
  80. package/dist/commonjs/operations/organizations.js.map +1 -0
  81. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  82. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  83. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  84. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  85. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  86. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  88. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/organizations.d.ts +71 -0
  90. package/dist/commonjs/operationsInterfaces/organizations.d.ts.map +1 -0
  91. package/dist/commonjs/operationsInterfaces/organizations.js +10 -0
  92. package/dist/commonjs/operationsInterfaces/organizations.js.map +1 -0
  93. package/dist/commonjs/package.json +3 -0
  94. package/dist/commonjs/pagingHelper.d.ts +13 -0
  95. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  96. package/dist/commonjs/pagingHelper.js +34 -0
  97. package/dist/commonjs/pagingHelper.js.map +1 -0
  98. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  99. package/dist/esm/astroManagementClient.d.ts +21 -0
  100. package/dist/esm/astroManagementClient.d.ts.map +1 -0
  101. package/dist/esm/astroManagementClient.js +108 -0
  102. package/dist/esm/astroManagementClient.js.map +1 -0
  103. package/dist/esm/index.d.ts +5 -0
  104. package/dist/esm/index.d.ts.map +1 -0
  105. package/{src/index.ts → dist/esm/index.js} +5 -5
  106. package/dist/esm/index.js.map +1 -0
  107. package/dist/esm/lroImpl.d.ts +11 -0
  108. package/dist/esm/lroImpl.d.ts.map +1 -0
  109. package/dist/esm/lroImpl.js +18 -0
  110. package/dist/esm/lroImpl.js.map +1 -0
  111. package/dist/esm/models/index.d.ts +565 -0
  112. package/dist/esm/models/index.d.ts.map +1 -0
  113. package/dist/esm/models/index.js +86 -0
  114. package/dist/esm/models/index.js.map +1 -0
  115. package/dist/esm/models/mappers.d.ts +28 -0
  116. package/dist/esm/models/mappers.d.ts.map +1 -0
  117. package/dist/esm/models/mappers.js +865 -0
  118. package/dist/esm/models/mappers.js.map +1 -0
  119. package/dist/esm/models/parameters.d.ts +12 -0
  120. package/dist/esm/models/parameters.d.ts.map +1 -0
  121. package/dist/esm/models/parameters.js +114 -0
  122. package/dist/esm/models/parameters.js.map +1 -0
  123. package/dist/esm/operations/index.d.ts +3 -0
  124. package/dist/esm/operations/index.d.ts.map +1 -0
  125. package/dist/esm/operations/index.js +10 -0
  126. package/dist/esm/operations/index.js.map +1 -0
  127. package/dist/esm/operations/operations.d.ts +32 -0
  128. package/dist/esm/operations/operations.d.ts.map +1 -0
  129. package/dist/esm/operations/operations.js +116 -0
  130. package/dist/esm/operations/operations.js.map +1 -0
  131. package/dist/esm/operations/organizations.d.ts +107 -0
  132. package/dist/esm/operations/organizations.d.ts.map +1 -0
  133. package/dist/esm/operations/organizations.js +523 -0
  134. package/dist/esm/operations/organizations.js.map +1 -0
  135. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  136. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  137. package/dist/esm/operationsInterfaces/index.js +10 -0
  138. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  139. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  140. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  141. package/{src/operations/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
  142. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  143. package/dist/esm/operationsInterfaces/organizations.d.ts +71 -0
  144. package/dist/esm/operationsInterfaces/organizations.d.ts.map +1 -0
  145. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/organizations.js} +2 -3
  146. package/dist/esm/operationsInterfaces/organizations.js.map +1 -0
  147. package/dist/esm/package.json +3 -0
  148. package/dist/esm/pagingHelper.d.ts +13 -0
  149. package/dist/esm/pagingHelper.d.ts.map +1 -0
  150. package/dist/esm/pagingHelper.js +30 -0
  151. package/dist/esm/pagingHelper.js.map +1 -0
  152. package/dist/react-native/astroManagementClient.d.ts +21 -0
  153. package/dist/react-native/astroManagementClient.d.ts.map +1 -0
  154. package/dist/react-native/astroManagementClient.js +108 -0
  155. package/dist/react-native/astroManagementClient.js.map +1 -0
  156. package/dist/react-native/index.d.ts +5 -0
  157. package/dist/react-native/index.d.ts.map +1 -0
  158. package/dist/react-native/index.js +13 -0
  159. package/dist/react-native/index.js.map +1 -0
  160. package/dist/react-native/lroImpl.d.ts +11 -0
  161. package/dist/react-native/lroImpl.d.ts.map +1 -0
  162. package/dist/react-native/lroImpl.js +18 -0
  163. package/dist/react-native/lroImpl.js.map +1 -0
  164. package/dist/react-native/models/index.d.ts +565 -0
  165. package/dist/react-native/models/index.d.ts.map +1 -0
  166. package/dist/react-native/models/index.js +86 -0
  167. package/dist/react-native/models/index.js.map +1 -0
  168. package/dist/react-native/models/mappers.d.ts +28 -0
  169. package/dist/react-native/models/mappers.d.ts.map +1 -0
  170. package/dist/react-native/models/mappers.js +865 -0
  171. package/dist/react-native/models/mappers.js.map +1 -0
  172. package/dist/react-native/models/parameters.d.ts +12 -0
  173. package/dist/react-native/models/parameters.d.ts.map +1 -0
  174. package/dist/react-native/models/parameters.js +114 -0
  175. package/dist/react-native/models/parameters.js.map +1 -0
  176. package/dist/react-native/operations/index.d.ts +3 -0
  177. package/dist/react-native/operations/index.d.ts.map +1 -0
  178. package/dist/react-native/operations/index.js +10 -0
  179. package/dist/react-native/operations/index.js.map +1 -0
  180. package/dist/react-native/operations/operations.d.ts +32 -0
  181. package/dist/react-native/operations/operations.d.ts.map +1 -0
  182. package/dist/react-native/operations/operations.js +116 -0
  183. package/dist/react-native/operations/operations.js.map +1 -0
  184. package/dist/react-native/operations/organizations.d.ts +107 -0
  185. package/dist/react-native/operations/organizations.d.ts.map +1 -0
  186. package/dist/react-native/operations/organizations.js +523 -0
  187. package/dist/react-native/operations/organizations.js.map +1 -0
  188. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  189. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  190. package/dist/react-native/operationsInterfaces/index.js +10 -0
  191. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  192. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  193. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  194. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  195. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  196. package/dist/react-native/operationsInterfaces/organizations.d.ts +71 -0
  197. package/dist/react-native/operationsInterfaces/organizations.d.ts.map +1 -0
  198. package/dist/react-native/operationsInterfaces/organizations.js +9 -0
  199. package/dist/react-native/operationsInterfaces/organizations.js.map +1 -0
  200. package/dist/react-native/package.json +3 -0
  201. package/dist/react-native/pagingHelper.d.ts +13 -0
  202. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  203. package/dist/react-native/pagingHelper.js +30 -0
  204. package/dist/react-native/pagingHelper.js.map +1 -0
  205. package/package.json +88 -74
  206. package/dist/index.js +0 -1942
  207. package/dist/index.js.map +0 -1
  208. package/dist/index.min.js +0 -1
  209. package/dist/index.min.js.map +0 -1
  210. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  211. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  213. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  214. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.js +0 -79
  217. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.js.map +0 -1
  218. package/dist-esm/samples-dev/organizationsDeleteSample.d.ts +0 -2
  219. package/dist-esm/samples-dev/organizationsDeleteSample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/organizationsDeleteSample.js +0 -39
  221. package/dist-esm/samples-dev/organizationsDeleteSample.js.map +0 -1
  222. package/dist-esm/samples-dev/organizationsGetSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/organizationsGetSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/organizationsGetSample.js +0 -39
  225. package/dist-esm/samples-dev/organizationsGetSample.js.map +0 -1
  226. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.js +0 -54
  229. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.js.map +0 -1
  230. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.js +0 -53
  233. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.js.map +0 -1
  234. package/dist-esm/samples-dev/organizationsUpdateSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/organizationsUpdateSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/organizationsUpdateSample.js +0 -65
  237. package/dist-esm/samples-dev/organizationsUpdateSample.js.map +0 -1
  238. package/dist-esm/src/astroManagementClient.d.ts.map +0 -1
  239. package/dist-esm/src/astroManagementClient.js.map +0 -1
  240. package/dist-esm/src/index.d.ts +0 -6
  241. package/dist-esm/src/index.d.ts.map +0 -1
  242. package/dist-esm/src/index.js.map +0 -1
  243. package/dist-esm/src/lroImpl.js +0 -21
  244. package/dist-esm/src/lroImpl.js.map +0 -1
  245. package/dist-esm/src/models/index.js.map +0 -1
  246. package/dist-esm/src/models/mappers.js.map +0 -1
  247. package/dist-esm/src/models/parameters.js.map +0 -1
  248. package/dist-esm/src/operations/index.d.ts +0 -3
  249. package/dist-esm/src/operations/index.js.map +0 -1
  250. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  251. package/dist-esm/src/operations/operations.js.map +0 -1
  252. package/dist-esm/src/operations/organizations.d.ts.map +0 -1
  253. package/dist-esm/src/operations/organizations.js.map +0 -1
  254. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  255. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  256. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  257. package/dist-esm/src/operationsInterfaces/organizations.d.ts.map +0 -1
  258. package/dist-esm/src/operationsInterfaces/organizations.js.map +0 -1
  259. package/dist-esm/src/pagingHelper.js.map +0 -1
  260. package/dist-esm/test/astro_operations_test.spec.d.ts +0 -4
  261. package/dist-esm/test/astro_operations_test.spec.d.ts.map +0 -1
  262. package/dist-esm/test/astro_operations_test.spec.js +0 -73
  263. package/dist-esm/test/astro_operations_test.spec.js.map +0 -1
  264. package/src/astroManagementClient.ts +0 -143
  265. package/src/lroImpl.ts +0 -42
  266. package/src/models/index.ts +0 -637
  267. package/src/models/mappers.ts +0 -899
  268. package/src/models/parameters.ts +0 -132
  269. package/src/operations/operations.ts +0 -149
  270. package/src/operations/organizations.ts +0 -728
  271. package/src/operationsInterfaces/operations.ts +0 -22
  272. package/src/operationsInterfaces/organizations.ts +0 -145
  273. package/src/pagingHelper.ts +0 -39
  274. package/tsconfig.json +0 -33
  275. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  276. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  277. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  278. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  279. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  280. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  281. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  282. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  283. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  284. /package/{dist-esm/src → dist/browser}/operationsInterfaces/organizations.js +0 -0
  285. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  286. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  287. /package/review/{arm-astro.api.md → arm-astro-node.api.md} +0 -0
package/dist/index.js DELETED
@@ -1,1942 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link Origin} that the service accepts. */
70
- exports.KnownOrigin = void 0;
71
- (function (KnownOrigin) {
72
- /** User */
73
- KnownOrigin["User"] = "user";
74
- /** System */
75
- KnownOrigin["System"] = "system";
76
- /** UserSystem */
77
- KnownOrigin["UserSystem"] = "user,system";
78
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
79
- /** Known values of {@link ActionType} that the service accepts. */
80
- exports.KnownActionType = void 0;
81
- (function (KnownActionType) {
82
- /** Internal */
83
- KnownActionType["Internal"] = "Internal";
84
- })(exports.KnownActionType || (exports.KnownActionType = {}));
85
- /** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
86
- exports.KnownMarketplaceSubscriptionStatus = void 0;
87
- (function (KnownMarketplaceSubscriptionStatus) {
88
- /** Purchased but not yet activated */
89
- KnownMarketplaceSubscriptionStatus["PendingFulfillmentStart"] = "PendingFulfillmentStart";
90
- /** Marketplace subscription is activated */
91
- KnownMarketplaceSubscriptionStatus["Subscribed"] = "Subscribed";
92
- /** This state indicates that a customer's payment for the Marketplace service was not received */
93
- KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
94
- /** Customer has cancelled the subscription */
95
- KnownMarketplaceSubscriptionStatus["Unsubscribed"] = "Unsubscribed";
96
- })(exports.KnownMarketplaceSubscriptionStatus || (exports.KnownMarketplaceSubscriptionStatus = {}));
97
- /** Known values of {@link ResourceProvisioningState} that the service accepts. */
98
- exports.KnownResourceProvisioningState = void 0;
99
- (function (KnownResourceProvisioningState) {
100
- /** Resource has been created. */
101
- KnownResourceProvisioningState["Succeeded"] = "Succeeded";
102
- /** Resource creation failed. */
103
- KnownResourceProvisioningState["Failed"] = "Failed";
104
- /** Resource creation was canceled. */
105
- KnownResourceProvisioningState["Canceled"] = "Canceled";
106
- })(exports.KnownResourceProvisioningState || (exports.KnownResourceProvisioningState = {}));
107
- /** Known values of {@link SingleSignOnStates} that the service accepts. */
108
- exports.KnownSingleSignOnStates = void 0;
109
- (function (KnownSingleSignOnStates) {
110
- /** Initial state of the SSO resource */
111
- KnownSingleSignOnStates["Initial"] = "Initial";
112
- /** State of the SSO resource when it is enabled */
113
- KnownSingleSignOnStates["Enable"] = "Enable";
114
- /** State of the SSO resource when it is disabled */
115
- KnownSingleSignOnStates["Disable"] = "Disable";
116
- })(exports.KnownSingleSignOnStates || (exports.KnownSingleSignOnStates = {}));
117
- /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
118
- exports.KnownManagedServiceIdentityType = void 0;
119
- (function (KnownManagedServiceIdentityType) {
120
- /** None */
121
- KnownManagedServiceIdentityType["None"] = "None";
122
- /** SystemAssigned */
123
- KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
124
- /** UserAssigned */
125
- KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
126
- /** SystemAssignedUserAssigned */
127
- KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
128
- })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
129
- /** Known values of {@link CreatedByType} that the service accepts. */
130
- exports.KnownCreatedByType = void 0;
131
- (function (KnownCreatedByType) {
132
- /** User */
133
- KnownCreatedByType["User"] = "User";
134
- /** Application */
135
- KnownCreatedByType["Application"] = "Application";
136
- /** ManagedIdentity */
137
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
138
- /** Key */
139
- KnownCreatedByType["Key"] = "Key";
140
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
141
- /** Known values of {@link Versions} that the service accepts. */
142
- exports.KnownVersions = void 0;
143
- (function (KnownVersions) {
144
- /** Dependent on Azure.ResourceManager.Versions.v1_0_Preview_1, LiftrBase.Versions.v1_preview, LiftrBase.Data.Versions.v1_preview */
145
- KnownVersions["V1Preview"] = "2023-08-01";
146
- })(exports.KnownVersions || (exports.KnownVersions = {}));
147
-
148
- /*
149
- * Copyright (c) Microsoft Corporation.
150
- * Licensed under the MIT License.
151
- *
152
- * Code generated by Microsoft (R) AutoRest Code Generator.
153
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
154
- */
155
- const OperationListResult = {
156
- type: {
157
- name: "Composite",
158
- className: "OperationListResult",
159
- modelProperties: {
160
- value: {
161
- serializedName: "value",
162
- readOnly: true,
163
- type: {
164
- name: "Sequence",
165
- element: {
166
- type: {
167
- name: "Composite",
168
- className: "Operation",
169
- },
170
- },
171
- },
172
- },
173
- nextLink: {
174
- serializedName: "nextLink",
175
- readOnly: true,
176
- type: {
177
- name: "String",
178
- },
179
- },
180
- },
181
- },
182
- };
183
- const Operation = {
184
- type: {
185
- name: "Composite",
186
- className: "Operation",
187
- modelProperties: {
188
- name: {
189
- serializedName: "name",
190
- readOnly: true,
191
- type: {
192
- name: "String",
193
- },
194
- },
195
- isDataAction: {
196
- serializedName: "isDataAction",
197
- readOnly: true,
198
- type: {
199
- name: "Boolean",
200
- },
201
- },
202
- display: {
203
- serializedName: "display",
204
- type: {
205
- name: "Composite",
206
- className: "OperationDisplay",
207
- },
208
- },
209
- origin: {
210
- serializedName: "origin",
211
- readOnly: true,
212
- type: {
213
- name: "String",
214
- },
215
- },
216
- actionType: {
217
- serializedName: "actionType",
218
- readOnly: true,
219
- type: {
220
- name: "String",
221
- },
222
- },
223
- },
224
- },
225
- };
226
- const OperationDisplay = {
227
- type: {
228
- name: "Composite",
229
- className: "OperationDisplay",
230
- modelProperties: {
231
- provider: {
232
- serializedName: "provider",
233
- readOnly: true,
234
- type: {
235
- name: "String",
236
- },
237
- },
238
- resource: {
239
- serializedName: "resource",
240
- readOnly: true,
241
- type: {
242
- name: "String",
243
- },
244
- },
245
- operation: {
246
- serializedName: "operation",
247
- readOnly: true,
248
- type: {
249
- name: "String",
250
- },
251
- },
252
- description: {
253
- serializedName: "description",
254
- readOnly: true,
255
- type: {
256
- name: "String",
257
- },
258
- },
259
- },
260
- },
261
- };
262
- const ErrorResponse = {
263
- type: {
264
- name: "Composite",
265
- className: "ErrorResponse",
266
- modelProperties: {
267
- error: {
268
- serializedName: "error",
269
- type: {
270
- name: "Composite",
271
- className: "ErrorDetail",
272
- },
273
- },
274
- },
275
- },
276
- };
277
- const ErrorDetail = {
278
- type: {
279
- name: "Composite",
280
- className: "ErrorDetail",
281
- modelProperties: {
282
- code: {
283
- serializedName: "code",
284
- readOnly: true,
285
- type: {
286
- name: "String",
287
- },
288
- },
289
- message: {
290
- serializedName: "message",
291
- readOnly: true,
292
- type: {
293
- name: "String",
294
- },
295
- },
296
- target: {
297
- serializedName: "target",
298
- readOnly: true,
299
- type: {
300
- name: "String",
301
- },
302
- },
303
- details: {
304
- serializedName: "details",
305
- readOnly: true,
306
- type: {
307
- name: "Sequence",
308
- element: {
309
- type: {
310
- name: "Composite",
311
- className: "ErrorDetail",
312
- },
313
- },
314
- },
315
- },
316
- additionalInfo: {
317
- serializedName: "additionalInfo",
318
- readOnly: true,
319
- type: {
320
- name: "Sequence",
321
- element: {
322
- type: {
323
- name: "Composite",
324
- className: "ErrorAdditionalInfo",
325
- },
326
- },
327
- },
328
- },
329
- },
330
- },
331
- };
332
- const ErrorAdditionalInfo = {
333
- type: {
334
- name: "Composite",
335
- className: "ErrorAdditionalInfo",
336
- modelProperties: {
337
- type: {
338
- serializedName: "type",
339
- readOnly: true,
340
- type: {
341
- name: "String",
342
- },
343
- },
344
- info: {
345
- serializedName: "info",
346
- readOnly: true,
347
- type: {
348
- name: "Dictionary",
349
- value: { type: { name: "any" } },
350
- },
351
- },
352
- },
353
- },
354
- };
355
- const OrganizationResourceListResult = {
356
- type: {
357
- name: "Composite",
358
- className: "OrganizationResourceListResult",
359
- modelProperties: {
360
- value: {
361
- serializedName: "value",
362
- required: true,
363
- type: {
364
- name: "Sequence",
365
- element: {
366
- type: {
367
- name: "Composite",
368
- className: "OrganizationResource",
369
- },
370
- },
371
- },
372
- },
373
- nextLink: {
374
- serializedName: "nextLink",
375
- type: {
376
- name: "String",
377
- },
378
- },
379
- },
380
- },
381
- };
382
- const LiftrBaseDataOrganizationProperties = {
383
- type: {
384
- name: "Composite",
385
- className: "LiftrBaseDataOrganizationProperties",
386
- modelProperties: {
387
- marketplace: {
388
- serializedName: "marketplace",
389
- type: {
390
- name: "Composite",
391
- className: "LiftrBaseMarketplaceDetails",
392
- },
393
- },
394
- user: {
395
- serializedName: "user",
396
- type: {
397
- name: "Composite",
398
- className: "LiftrBaseUserDetails",
399
- },
400
- },
401
- provisioningState: {
402
- serializedName: "provisioningState",
403
- readOnly: true,
404
- type: {
405
- name: "String",
406
- },
407
- },
408
- partnerOrganizationProperties: {
409
- serializedName: "partnerOrganizationProperties",
410
- type: {
411
- name: "Composite",
412
- className: "LiftrBaseDataPartnerOrganizationProperties",
413
- },
414
- },
415
- },
416
- },
417
- };
418
- const LiftrBaseMarketplaceDetails = {
419
- type: {
420
- name: "Composite",
421
- className: "LiftrBaseMarketplaceDetails",
422
- modelProperties: {
423
- subscriptionId: {
424
- serializedName: "subscriptionId",
425
- required: true,
426
- type: {
427
- name: "String",
428
- },
429
- },
430
- subscriptionStatus: {
431
- serializedName: "subscriptionStatus",
432
- type: {
433
- name: "String",
434
- },
435
- },
436
- offerDetails: {
437
- serializedName: "offerDetails",
438
- type: {
439
- name: "Composite",
440
- className: "LiftrBaseOfferDetails",
441
- },
442
- },
443
- },
444
- },
445
- };
446
- const LiftrBaseOfferDetails = {
447
- type: {
448
- name: "Composite",
449
- className: "LiftrBaseOfferDetails",
450
- modelProperties: {
451
- publisherId: {
452
- serializedName: "publisherId",
453
- required: true,
454
- type: {
455
- name: "String",
456
- },
457
- },
458
- offerId: {
459
- serializedName: "offerId",
460
- required: true,
461
- type: {
462
- name: "String",
463
- },
464
- },
465
- planId: {
466
- serializedName: "planId",
467
- required: true,
468
- type: {
469
- name: "String",
470
- },
471
- },
472
- planName: {
473
- serializedName: "planName",
474
- type: {
475
- name: "String",
476
- },
477
- },
478
- termUnit: {
479
- serializedName: "termUnit",
480
- type: {
481
- name: "String",
482
- },
483
- },
484
- termId: {
485
- serializedName: "termId",
486
- type: {
487
- name: "String",
488
- },
489
- },
490
- },
491
- },
492
- };
493
- const LiftrBaseUserDetails = {
494
- type: {
495
- name: "Composite",
496
- className: "LiftrBaseUserDetails",
497
- modelProperties: {
498
- firstName: {
499
- serializedName: "firstName",
500
- required: true,
501
- type: {
502
- name: "String",
503
- },
504
- },
505
- lastName: {
506
- serializedName: "lastName",
507
- required: true,
508
- type: {
509
- name: "String",
510
- },
511
- },
512
- emailAddress: {
513
- constraints: {
514
- Pattern: new RegExp("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$"),
515
- },
516
- serializedName: "emailAddress",
517
- required: true,
518
- type: {
519
- name: "String",
520
- },
521
- },
522
- upn: {
523
- serializedName: "upn",
524
- type: {
525
- name: "String",
526
- },
527
- },
528
- phoneNumber: {
529
- serializedName: "phoneNumber",
530
- type: {
531
- name: "String",
532
- },
533
- },
534
- },
535
- },
536
- };
537
- const LiftrBaseDataPartnerOrganizationProperties = {
538
- type: {
539
- name: "Composite",
540
- className: "LiftrBaseDataPartnerOrganizationProperties",
541
- modelProperties: {
542
- organizationId: {
543
- serializedName: "organizationId",
544
- type: {
545
- name: "String",
546
- },
547
- },
548
- workspaceId: {
549
- serializedName: "workspaceId",
550
- type: {
551
- name: "String",
552
- },
553
- },
554
- organizationName: {
555
- constraints: {
556
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
557
- MaxLength: 50,
558
- MinLength: 1,
559
- },
560
- serializedName: "organizationName",
561
- required: true,
562
- type: {
563
- name: "String",
564
- },
565
- },
566
- workspaceName: {
567
- constraints: {
568
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
569
- MaxLength: 50,
570
- MinLength: 1,
571
- },
572
- serializedName: "workspaceName",
573
- type: {
574
- name: "String",
575
- },
576
- },
577
- singleSignOnProperties: {
578
- serializedName: "singleSignOnProperties",
579
- type: {
580
- name: "Composite",
581
- className: "LiftrBaseSingleSignOnProperties",
582
- },
583
- },
584
- },
585
- },
586
- };
587
- const LiftrBaseSingleSignOnProperties = {
588
- type: {
589
- name: "Composite",
590
- className: "LiftrBaseSingleSignOnProperties",
591
- modelProperties: {
592
- singleSignOnState: {
593
- serializedName: "singleSignOnState",
594
- type: {
595
- name: "String",
596
- },
597
- },
598
- enterpriseAppId: {
599
- serializedName: "enterpriseAppId",
600
- type: {
601
- name: "String",
602
- },
603
- },
604
- singleSignOnUrl: {
605
- serializedName: "singleSignOnUrl",
606
- type: {
607
- name: "String",
608
- },
609
- },
610
- aadDomains: {
611
- serializedName: "aadDomains",
612
- type: {
613
- name: "Sequence",
614
- element: {
615
- type: {
616
- name: "String",
617
- },
618
- },
619
- },
620
- },
621
- provisioningState: {
622
- serializedName: "provisioningState",
623
- readOnly: true,
624
- type: {
625
- name: "String",
626
- },
627
- },
628
- },
629
- },
630
- };
631
- const ManagedServiceIdentity = {
632
- type: {
633
- name: "Composite",
634
- className: "ManagedServiceIdentity",
635
- modelProperties: {
636
- principalId: {
637
- serializedName: "principalId",
638
- readOnly: true,
639
- type: {
640
- name: "Uuid",
641
- },
642
- },
643
- tenantId: {
644
- serializedName: "tenantId",
645
- readOnly: true,
646
- type: {
647
- name: "Uuid",
648
- },
649
- },
650
- type: {
651
- serializedName: "type",
652
- required: true,
653
- type: {
654
- name: "String",
655
- },
656
- },
657
- userAssignedIdentities: {
658
- serializedName: "userAssignedIdentities",
659
- type: {
660
- name: "Dictionary",
661
- value: {
662
- type: { name: "Composite", className: "UserAssignedIdentity" },
663
- },
664
- },
665
- },
666
- },
667
- },
668
- };
669
- const UserAssignedIdentity = {
670
- type: {
671
- name: "Composite",
672
- className: "UserAssignedIdentity",
673
- modelProperties: {
674
- principalId: {
675
- serializedName: "principalId",
676
- readOnly: true,
677
- type: {
678
- name: "Uuid",
679
- },
680
- },
681
- clientId: {
682
- serializedName: "clientId",
683
- readOnly: true,
684
- type: {
685
- name: "Uuid",
686
- },
687
- },
688
- },
689
- },
690
- };
691
- const Resource = {
692
- type: {
693
- name: "Composite",
694
- className: "Resource",
695
- modelProperties: {
696
- id: {
697
- serializedName: "id",
698
- readOnly: true,
699
- type: {
700
- name: "String",
701
- },
702
- },
703
- name: {
704
- serializedName: "name",
705
- readOnly: true,
706
- type: {
707
- name: "String",
708
- },
709
- },
710
- type: {
711
- serializedName: "type",
712
- readOnly: true,
713
- type: {
714
- name: "String",
715
- },
716
- },
717
- systemData: {
718
- serializedName: "systemData",
719
- type: {
720
- name: "Composite",
721
- className: "SystemData",
722
- },
723
- },
724
- },
725
- },
726
- };
727
- const SystemData = {
728
- type: {
729
- name: "Composite",
730
- className: "SystemData",
731
- modelProperties: {
732
- createdBy: {
733
- serializedName: "createdBy",
734
- type: {
735
- name: "String",
736
- },
737
- },
738
- createdByType: {
739
- serializedName: "createdByType",
740
- type: {
741
- name: "String",
742
- },
743
- },
744
- createdAt: {
745
- serializedName: "createdAt",
746
- type: {
747
- name: "DateTime",
748
- },
749
- },
750
- lastModifiedBy: {
751
- serializedName: "lastModifiedBy",
752
- type: {
753
- name: "String",
754
- },
755
- },
756
- lastModifiedByType: {
757
- serializedName: "lastModifiedByType",
758
- type: {
759
- name: "String",
760
- },
761
- },
762
- lastModifiedAt: {
763
- serializedName: "lastModifiedAt",
764
- type: {
765
- name: "DateTime",
766
- },
767
- },
768
- },
769
- },
770
- };
771
- const OrganizationResourceUpdate = {
772
- type: {
773
- name: "Composite",
774
- className: "OrganizationResourceUpdate",
775
- modelProperties: {
776
- identity: {
777
- serializedName: "identity",
778
- type: {
779
- name: "Composite",
780
- className: "ManagedServiceIdentity",
781
- },
782
- },
783
- tags: {
784
- serializedName: "tags",
785
- type: {
786
- name: "Dictionary",
787
- value: { type: { name: "String" } },
788
- },
789
- },
790
- properties: {
791
- serializedName: "properties",
792
- type: {
793
- name: "Composite",
794
- className: "OrganizationResourceUpdateProperties",
795
- },
796
- },
797
- },
798
- },
799
- };
800
- const OrganizationResourceUpdateProperties = {
801
- type: {
802
- name: "Composite",
803
- className: "OrganizationResourceUpdateProperties",
804
- modelProperties: {
805
- user: {
806
- serializedName: "user",
807
- type: {
808
- name: "Composite",
809
- className: "LiftrBaseUserDetailsUpdate",
810
- },
811
- },
812
- partnerOrganizationProperties: {
813
- serializedName: "partnerOrganizationProperties",
814
- type: {
815
- name: "Composite",
816
- className: "LiftrBaseDataPartnerOrganizationPropertiesUpdate",
817
- },
818
- },
819
- },
820
- },
821
- };
822
- const LiftrBaseUserDetailsUpdate = {
823
- type: {
824
- name: "Composite",
825
- className: "LiftrBaseUserDetailsUpdate",
826
- modelProperties: {
827
- firstName: {
828
- serializedName: "firstName",
829
- type: {
830
- name: "String",
831
- },
832
- },
833
- lastName: {
834
- serializedName: "lastName",
835
- type: {
836
- name: "String",
837
- },
838
- },
839
- emailAddress: {
840
- constraints: {
841
- Pattern: new RegExp("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$"),
842
- },
843
- serializedName: "emailAddress",
844
- type: {
845
- name: "String",
846
- },
847
- },
848
- upn: {
849
- serializedName: "upn",
850
- type: {
851
- name: "String",
852
- },
853
- },
854
- phoneNumber: {
855
- serializedName: "phoneNumber",
856
- type: {
857
- name: "String",
858
- },
859
- },
860
- },
861
- },
862
- };
863
- const LiftrBaseDataPartnerOrganizationPropertiesUpdate = {
864
- type: {
865
- name: "Composite",
866
- className: "LiftrBaseDataPartnerOrganizationPropertiesUpdate",
867
- modelProperties: {
868
- organizationId: {
869
- serializedName: "organizationId",
870
- type: {
871
- name: "String",
872
- },
873
- },
874
- workspaceId: {
875
- serializedName: "workspaceId",
876
- type: {
877
- name: "String",
878
- },
879
- },
880
- organizationName: {
881
- constraints: {
882
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
883
- MaxLength: 50,
884
- MinLength: 1,
885
- },
886
- serializedName: "organizationName",
887
- type: {
888
- name: "String",
889
- },
890
- },
891
- workspaceName: {
892
- constraints: {
893
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
894
- MaxLength: 50,
895
- MinLength: 1,
896
- },
897
- serializedName: "workspaceName",
898
- type: {
899
- name: "String",
900
- },
901
- },
902
- singleSignOnProperties: {
903
- serializedName: "singleSignOnProperties",
904
- type: {
905
- name: "Composite",
906
- className: "LiftrBaseSingleSignOnProperties",
907
- },
908
- },
909
- },
910
- },
911
- };
912
- const TrackedResource = {
913
- type: {
914
- name: "Composite",
915
- className: "TrackedResource",
916
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
917
- serializedName: "tags",
918
- type: {
919
- name: "Dictionary",
920
- value: { type: { name: "String" } },
921
- },
922
- }, location: {
923
- serializedName: "location",
924
- required: true,
925
- type: {
926
- name: "String",
927
- },
928
- } }),
929
- },
930
- };
931
- const OrganizationResource = {
932
- type: {
933
- name: "Composite",
934
- className: "OrganizationResource",
935
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
936
- serializedName: "properties",
937
- type: {
938
- name: "Composite",
939
- className: "LiftrBaseDataOrganizationProperties",
940
- },
941
- }, identity: {
942
- serializedName: "identity",
943
- type: {
944
- name: "Composite",
945
- className: "ManagedServiceIdentity",
946
- },
947
- } }),
948
- },
949
- };
950
- const OrganizationsCreateOrUpdateHeaders = {
951
- type: {
952
- name: "Composite",
953
- className: "OrganizationsCreateOrUpdateHeaders",
954
- modelProperties: {
955
- retryAfter: {
956
- serializedName: "retry-after",
957
- type: {
958
- name: "Number",
959
- },
960
- },
961
- },
962
- },
963
- };
964
- const OrganizationsUpdateHeaders = {
965
- type: {
966
- name: "Composite",
967
- className: "OrganizationsUpdateHeaders",
968
- modelProperties: {
969
- retryAfter: {
970
- serializedName: "retry-after",
971
- type: {
972
- name: "Number",
973
- },
974
- },
975
- location: {
976
- serializedName: "location",
977
- type: {
978
- name: "String",
979
- },
980
- },
981
- },
982
- },
983
- };
984
- const OrganizationsDeleteHeaders = {
985
- type: {
986
- name: "Composite",
987
- className: "OrganizationsDeleteHeaders",
988
- modelProperties: {
989
- retryAfter: {
990
- serializedName: "retry-after",
991
- type: {
992
- name: "Number",
993
- },
994
- },
995
- location: {
996
- serializedName: "location",
997
- type: {
998
- name: "String",
999
- },
1000
- },
1001
- },
1002
- },
1003
- };
1004
-
1005
- var Mappers = /*#__PURE__*/Object.freeze({
1006
- __proto__: null,
1007
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1008
- ErrorDetail: ErrorDetail,
1009
- ErrorResponse: ErrorResponse,
1010
- LiftrBaseDataOrganizationProperties: LiftrBaseDataOrganizationProperties,
1011
- LiftrBaseDataPartnerOrganizationProperties: LiftrBaseDataPartnerOrganizationProperties,
1012
- LiftrBaseDataPartnerOrganizationPropertiesUpdate: LiftrBaseDataPartnerOrganizationPropertiesUpdate,
1013
- LiftrBaseMarketplaceDetails: LiftrBaseMarketplaceDetails,
1014
- LiftrBaseOfferDetails: LiftrBaseOfferDetails,
1015
- LiftrBaseSingleSignOnProperties: LiftrBaseSingleSignOnProperties,
1016
- LiftrBaseUserDetails: LiftrBaseUserDetails,
1017
- LiftrBaseUserDetailsUpdate: LiftrBaseUserDetailsUpdate,
1018
- ManagedServiceIdentity: ManagedServiceIdentity,
1019
- Operation: Operation,
1020
- OperationDisplay: OperationDisplay,
1021
- OperationListResult: OperationListResult,
1022
- OrganizationResource: OrganizationResource,
1023
- OrganizationResourceListResult: OrganizationResourceListResult,
1024
- OrganizationResourceUpdate: OrganizationResourceUpdate,
1025
- OrganizationResourceUpdateProperties: OrganizationResourceUpdateProperties,
1026
- OrganizationsCreateOrUpdateHeaders: OrganizationsCreateOrUpdateHeaders,
1027
- OrganizationsDeleteHeaders: OrganizationsDeleteHeaders,
1028
- OrganizationsUpdateHeaders: OrganizationsUpdateHeaders,
1029
- Resource: Resource,
1030
- SystemData: SystemData,
1031
- TrackedResource: TrackedResource,
1032
- UserAssignedIdentity: UserAssignedIdentity
1033
- });
1034
-
1035
- /*
1036
- * Copyright (c) Microsoft Corporation.
1037
- * Licensed under the MIT License.
1038
- *
1039
- * Code generated by Microsoft (R) AutoRest Code Generator.
1040
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1041
- */
1042
- const accept = {
1043
- parameterPath: "accept",
1044
- mapper: {
1045
- defaultValue: "application/json",
1046
- isConstant: true,
1047
- serializedName: "Accept",
1048
- type: {
1049
- name: "String",
1050
- },
1051
- },
1052
- };
1053
- const $host = {
1054
- parameterPath: "$host",
1055
- mapper: {
1056
- serializedName: "$host",
1057
- required: true,
1058
- type: {
1059
- name: "String",
1060
- },
1061
- },
1062
- skipEncoding: true,
1063
- };
1064
- const apiVersion = {
1065
- parameterPath: "apiVersion",
1066
- mapper: {
1067
- defaultValue: "2023-08-01",
1068
- isConstant: true,
1069
- serializedName: "api-version",
1070
- type: {
1071
- name: "String",
1072
- },
1073
- },
1074
- };
1075
- const nextLink = {
1076
- parameterPath: "nextLink",
1077
- mapper: {
1078
- serializedName: "nextLink",
1079
- required: true,
1080
- type: {
1081
- name: "String",
1082
- },
1083
- },
1084
- skipEncoding: true,
1085
- };
1086
- const subscriptionId = {
1087
- parameterPath: "subscriptionId",
1088
- mapper: {
1089
- constraints: {
1090
- MinLength: 1,
1091
- },
1092
- serializedName: "subscriptionId",
1093
- required: true,
1094
- type: {
1095
- name: "String",
1096
- },
1097
- },
1098
- };
1099
- const resourceGroupName = {
1100
- parameterPath: "resourceGroupName",
1101
- mapper: {
1102
- constraints: {
1103
- MaxLength: 90,
1104
- MinLength: 1,
1105
- },
1106
- serializedName: "resourceGroupName",
1107
- required: true,
1108
- type: {
1109
- name: "String",
1110
- },
1111
- },
1112
- };
1113
- const organizationName = {
1114
- parameterPath: "organizationName",
1115
- mapper: {
1116
- constraints: {
1117
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
1118
- MaxLength: 50,
1119
- MinLength: 1,
1120
- },
1121
- serializedName: "organizationName",
1122
- required: true,
1123
- type: {
1124
- name: "String",
1125
- },
1126
- },
1127
- };
1128
- const contentType = {
1129
- parameterPath: ["options", "contentType"],
1130
- mapper: {
1131
- defaultValue: "application/json",
1132
- isConstant: true,
1133
- serializedName: "Content-Type",
1134
- type: {
1135
- name: "String",
1136
- },
1137
- },
1138
- };
1139
- const resource = {
1140
- parameterPath: "resource",
1141
- mapper: OrganizationResource,
1142
- };
1143
- const properties = {
1144
- parameterPath: "properties",
1145
- mapper: OrganizationResourceUpdate,
1146
- };
1147
-
1148
- /*
1149
- * Copyright (c) Microsoft Corporation.
1150
- * Licensed under the MIT License.
1151
- *
1152
- * Code generated by Microsoft (R) AutoRest Code Generator.
1153
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1154
- */
1155
- /// <reference lib="esnext.asynciterable" />
1156
- /** Class containing Operations operations. */
1157
- class OperationsImpl {
1158
- /**
1159
- * Initialize a new instance of the class Operations class.
1160
- * @param client Reference to the service client
1161
- */
1162
- constructor(client) {
1163
- this.client = client;
1164
- }
1165
- /**
1166
- * List the operations for the provider
1167
- * @param options The options parameters.
1168
- */
1169
- list(options) {
1170
- const iter = this.listPagingAll(options);
1171
- return {
1172
- next() {
1173
- return iter.next();
1174
- },
1175
- [Symbol.asyncIterator]() {
1176
- return this;
1177
- },
1178
- byPage: (settings) => {
1179
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1180
- throw new Error("maxPageSize is not supported by this operation.");
1181
- }
1182
- return this.listPagingPage(options, settings);
1183
- },
1184
- };
1185
- }
1186
- listPagingPage(options, settings) {
1187
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1188
- let result;
1189
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1190
- if (!continuationToken) {
1191
- result = yield tslib.__await(this._list(options));
1192
- let page = result.value || [];
1193
- continuationToken = result.nextLink;
1194
- setContinuationToken(page, continuationToken);
1195
- yield yield tslib.__await(page);
1196
- }
1197
- while (continuationToken) {
1198
- result = yield tslib.__await(this._listNext(continuationToken, options));
1199
- continuationToken = result.nextLink;
1200
- let page = result.value || [];
1201
- setContinuationToken(page, continuationToken);
1202
- yield yield tslib.__await(page);
1203
- }
1204
- });
1205
- }
1206
- listPagingAll(options) {
1207
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1208
- var _a, e_1, _b, _c;
1209
- try {
1210
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1211
- _c = _f.value;
1212
- _d = false;
1213
- const page = _c;
1214
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1215
- }
1216
- }
1217
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1218
- finally {
1219
- try {
1220
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1221
- }
1222
- finally { if (e_1) throw e_1.error; }
1223
- }
1224
- });
1225
- }
1226
- /**
1227
- * List the operations for the provider
1228
- * @param options The options parameters.
1229
- */
1230
- _list(options) {
1231
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1232
- }
1233
- /**
1234
- * ListNext
1235
- * @param nextLink The nextLink from the previous successful call to the List method.
1236
- * @param options The options parameters.
1237
- */
1238
- _listNext(nextLink, options) {
1239
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1240
- }
1241
- }
1242
- // Operation Specifications
1243
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1244
- const listOperationSpec = {
1245
- path: "/providers/Astronomer.Astro/operations",
1246
- httpMethod: "GET",
1247
- responses: {
1248
- 200: {
1249
- bodyMapper: OperationListResult,
1250
- },
1251
- default: {
1252
- bodyMapper: ErrorResponse,
1253
- },
1254
- },
1255
- queryParameters: [apiVersion],
1256
- urlParameters: [$host],
1257
- headerParameters: [accept],
1258
- serializer: serializer$1,
1259
- };
1260
- const listNextOperationSpec = {
1261
- path: "{nextLink}",
1262
- httpMethod: "GET",
1263
- responses: {
1264
- 200: {
1265
- bodyMapper: OperationListResult,
1266
- },
1267
- default: {
1268
- bodyMapper: ErrorResponse,
1269
- },
1270
- },
1271
- urlParameters: [$host, nextLink],
1272
- headerParameters: [accept],
1273
- serializer: serializer$1,
1274
- };
1275
-
1276
- /*
1277
- * Copyright (c) Microsoft Corporation.
1278
- * Licensed under the MIT License.
1279
- *
1280
- * Code generated by Microsoft (R) AutoRest Code Generator.
1281
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1282
- */
1283
- function createLroSpec(inputs) {
1284
- const { args, spec, sendOperationFn } = inputs;
1285
- return {
1286
- requestMethod: spec.httpMethod,
1287
- requestPath: spec.path,
1288
- sendInitialRequest: () => sendOperationFn(args, spec),
1289
- sendPollRequest: (path, options) => {
1290
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1291
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1292
- },
1293
- };
1294
- }
1295
-
1296
- /*
1297
- * Copyright (c) Microsoft Corporation.
1298
- * Licensed under the MIT License.
1299
- *
1300
- * Code generated by Microsoft (R) AutoRest Code Generator.
1301
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1302
- */
1303
- /// <reference lib="esnext.asynciterable" />
1304
- /** Class containing Organizations operations. */
1305
- class OrganizationsImpl {
1306
- /**
1307
- * Initialize a new instance of the class Organizations class.
1308
- * @param client Reference to the service client
1309
- */
1310
- constructor(client) {
1311
- this.client = client;
1312
- }
1313
- /**
1314
- * List OrganizationResource resources by subscription ID
1315
- * @param options The options parameters.
1316
- */
1317
- listBySubscription(options) {
1318
- const iter = this.listBySubscriptionPagingAll(options);
1319
- return {
1320
- next() {
1321
- return iter.next();
1322
- },
1323
- [Symbol.asyncIterator]() {
1324
- return this;
1325
- },
1326
- byPage: (settings) => {
1327
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1328
- throw new Error("maxPageSize is not supported by this operation.");
1329
- }
1330
- return this.listBySubscriptionPagingPage(options, settings);
1331
- },
1332
- };
1333
- }
1334
- listBySubscriptionPagingPage(options, settings) {
1335
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1336
- let result;
1337
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1338
- if (!continuationToken) {
1339
- result = yield tslib.__await(this._listBySubscription(options));
1340
- let page = result.value || [];
1341
- continuationToken = result.nextLink;
1342
- setContinuationToken(page, continuationToken);
1343
- yield yield tslib.__await(page);
1344
- }
1345
- while (continuationToken) {
1346
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1347
- continuationToken = result.nextLink;
1348
- let page = result.value || [];
1349
- setContinuationToken(page, continuationToken);
1350
- yield yield tslib.__await(page);
1351
- }
1352
- });
1353
- }
1354
- listBySubscriptionPagingAll(options) {
1355
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1356
- var _a, e_1, _b, _c;
1357
- try {
1358
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1359
- _c = _f.value;
1360
- _d = false;
1361
- const page = _c;
1362
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1363
- }
1364
- }
1365
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1366
- finally {
1367
- try {
1368
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1369
- }
1370
- finally { if (e_1) throw e_1.error; }
1371
- }
1372
- });
1373
- }
1374
- /**
1375
- * List OrganizationResource resources by resource group
1376
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1377
- * @param options The options parameters.
1378
- */
1379
- listByResourceGroup(resourceGroupName, options) {
1380
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1381
- return {
1382
- next() {
1383
- return iter.next();
1384
- },
1385
- [Symbol.asyncIterator]() {
1386
- return this;
1387
- },
1388
- byPage: (settings) => {
1389
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1390
- throw new Error("maxPageSize is not supported by this operation.");
1391
- }
1392
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1393
- },
1394
- };
1395
- }
1396
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1397
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1398
- let result;
1399
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1400
- if (!continuationToken) {
1401
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1402
- let page = result.value || [];
1403
- continuationToken = result.nextLink;
1404
- setContinuationToken(page, continuationToken);
1405
- yield yield tslib.__await(page);
1406
- }
1407
- while (continuationToken) {
1408
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1409
- continuationToken = result.nextLink;
1410
- let page = result.value || [];
1411
- setContinuationToken(page, continuationToken);
1412
- yield yield tslib.__await(page);
1413
- }
1414
- });
1415
- }
1416
- listByResourceGroupPagingAll(resourceGroupName, options) {
1417
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1418
- var _a, e_2, _b, _c;
1419
- try {
1420
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1421
- _c = _f.value;
1422
- _d = false;
1423
- const page = _c;
1424
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1425
- }
1426
- }
1427
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1428
- finally {
1429
- try {
1430
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1431
- }
1432
- finally { if (e_2) throw e_2.error; }
1433
- }
1434
- });
1435
- }
1436
- /**
1437
- * List OrganizationResource resources by subscription ID
1438
- * @param options The options parameters.
1439
- */
1440
- _listBySubscription(options) {
1441
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1442
- }
1443
- /**
1444
- * List OrganizationResource resources by resource group
1445
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1446
- * @param options The options parameters.
1447
- */
1448
- _listByResourceGroup(resourceGroupName, options) {
1449
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1450
- }
1451
- /**
1452
- * Get a OrganizationResource
1453
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1454
- * @param organizationName Name of the Organizations resource
1455
- * @param options The options parameters.
1456
- */
1457
- get(resourceGroupName, organizationName, options) {
1458
- return this.client.sendOperationRequest({ resourceGroupName, organizationName, options }, getOperationSpec);
1459
- }
1460
- /**
1461
- * Create a OrganizationResource
1462
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1463
- * @param organizationName Name of the Organizations resource
1464
- * @param resource Resource create parameters.
1465
- * @param options The options parameters.
1466
- */
1467
- beginCreateOrUpdate(resourceGroupName, organizationName, resource, options) {
1468
- return tslib.__awaiter(this, void 0, void 0, function* () {
1469
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1470
- return this.client.sendOperationRequest(args, spec);
1471
- });
1472
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1473
- var _a;
1474
- let currentRawResponse = undefined;
1475
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1476
- const callback = (rawResponse, flatResponse) => {
1477
- currentRawResponse = rawResponse;
1478
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1479
- };
1480
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1481
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1482
- return {
1483
- flatResponse,
1484
- rawResponse: {
1485
- statusCode: currentRawResponse.status,
1486
- body: currentRawResponse.parsedBody,
1487
- headers: currentRawResponse.headers.toJSON(),
1488
- },
1489
- };
1490
- });
1491
- const lro = createLroSpec({
1492
- sendOperationFn,
1493
- args: { resourceGroupName, organizationName, resource, options },
1494
- spec: createOrUpdateOperationSpec,
1495
- });
1496
- const poller = yield coreLro.createHttpPoller(lro, {
1497
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1498
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1499
- resourceLocationConfig: "azure-async-operation",
1500
- });
1501
- yield poller.poll();
1502
- return poller;
1503
- });
1504
- }
1505
- /**
1506
- * Create a OrganizationResource
1507
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1508
- * @param organizationName Name of the Organizations resource
1509
- * @param resource Resource create parameters.
1510
- * @param options The options parameters.
1511
- */
1512
- beginCreateOrUpdateAndWait(resourceGroupName, organizationName, resource, options) {
1513
- return tslib.__awaiter(this, void 0, void 0, function* () {
1514
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, organizationName, resource, options);
1515
- return poller.pollUntilDone();
1516
- });
1517
- }
1518
- /**
1519
- * Update a OrganizationResource
1520
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1521
- * @param organizationName Name of the Organizations resource
1522
- * @param properties The resource properties to be updated.
1523
- * @param options The options parameters.
1524
- */
1525
- beginUpdate(resourceGroupName, organizationName, properties, options) {
1526
- return tslib.__awaiter(this, void 0, void 0, function* () {
1527
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1528
- return this.client.sendOperationRequest(args, spec);
1529
- });
1530
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1531
- var _a;
1532
- let currentRawResponse = undefined;
1533
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1534
- const callback = (rawResponse, flatResponse) => {
1535
- currentRawResponse = rawResponse;
1536
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1537
- };
1538
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1539
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1540
- return {
1541
- flatResponse,
1542
- rawResponse: {
1543
- statusCode: currentRawResponse.status,
1544
- body: currentRawResponse.parsedBody,
1545
- headers: currentRawResponse.headers.toJSON(),
1546
- },
1547
- };
1548
- });
1549
- const lro = createLroSpec({
1550
- sendOperationFn,
1551
- args: { resourceGroupName, organizationName, properties, options },
1552
- spec: updateOperationSpec,
1553
- });
1554
- const poller = yield coreLro.createHttpPoller(lro, {
1555
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1556
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1557
- resourceLocationConfig: "location",
1558
- });
1559
- yield poller.poll();
1560
- return poller;
1561
- });
1562
- }
1563
- /**
1564
- * Update a OrganizationResource
1565
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1566
- * @param organizationName Name of the Organizations resource
1567
- * @param properties The resource properties to be updated.
1568
- * @param options The options parameters.
1569
- */
1570
- beginUpdateAndWait(resourceGroupName, organizationName, properties, options) {
1571
- return tslib.__awaiter(this, void 0, void 0, function* () {
1572
- const poller = yield this.beginUpdate(resourceGroupName, organizationName, properties, options);
1573
- return poller.pollUntilDone();
1574
- });
1575
- }
1576
- /**
1577
- * Delete a OrganizationResource
1578
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1579
- * @param organizationName Name of the Organizations resource
1580
- * @param options The options parameters.
1581
- */
1582
- beginDelete(resourceGroupName, organizationName, options) {
1583
- return tslib.__awaiter(this, void 0, void 0, function* () {
1584
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1585
- return this.client.sendOperationRequest(args, spec);
1586
- });
1587
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1588
- var _a;
1589
- let currentRawResponse = undefined;
1590
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1591
- const callback = (rawResponse, flatResponse) => {
1592
- currentRawResponse = rawResponse;
1593
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1594
- };
1595
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1596
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1597
- return {
1598
- flatResponse,
1599
- rawResponse: {
1600
- statusCode: currentRawResponse.status,
1601
- body: currentRawResponse.parsedBody,
1602
- headers: currentRawResponse.headers.toJSON(),
1603
- },
1604
- };
1605
- });
1606
- const lro = createLroSpec({
1607
- sendOperationFn,
1608
- args: { resourceGroupName, organizationName, options },
1609
- spec: deleteOperationSpec,
1610
- });
1611
- const poller = yield coreLro.createHttpPoller(lro, {
1612
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1613
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1614
- resourceLocationConfig: "location",
1615
- });
1616
- yield poller.poll();
1617
- return poller;
1618
- });
1619
- }
1620
- /**
1621
- * Delete a OrganizationResource
1622
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1623
- * @param organizationName Name of the Organizations resource
1624
- * @param options The options parameters.
1625
- */
1626
- beginDeleteAndWait(resourceGroupName, organizationName, options) {
1627
- return tslib.__awaiter(this, void 0, void 0, function* () {
1628
- const poller = yield this.beginDelete(resourceGroupName, organizationName, options);
1629
- return poller.pollUntilDone();
1630
- });
1631
- }
1632
- /**
1633
- * ListBySubscriptionNext
1634
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1635
- * @param options The options parameters.
1636
- */
1637
- _listBySubscriptionNext(nextLink, options) {
1638
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1639
- }
1640
- /**
1641
- * ListByResourceGroupNext
1642
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1643
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1644
- * @param options The options parameters.
1645
- */
1646
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1647
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1648
- }
1649
- }
1650
- // Operation Specifications
1651
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1652
- const listBySubscriptionOperationSpec = {
1653
- path: "/subscriptions/{subscriptionId}/providers/Astronomer.Astro/organizations",
1654
- httpMethod: "GET",
1655
- responses: {
1656
- 200: {
1657
- bodyMapper: OrganizationResourceListResult,
1658
- },
1659
- default: {
1660
- bodyMapper: ErrorResponse,
1661
- },
1662
- },
1663
- queryParameters: [apiVersion],
1664
- urlParameters: [$host, subscriptionId],
1665
- headerParameters: [accept],
1666
- serializer,
1667
- };
1668
- const listByResourceGroupOperationSpec = {
1669
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations",
1670
- httpMethod: "GET",
1671
- responses: {
1672
- 200: {
1673
- bodyMapper: OrganizationResourceListResult,
1674
- },
1675
- default: {
1676
- bodyMapper: ErrorResponse,
1677
- },
1678
- },
1679
- queryParameters: [apiVersion],
1680
- urlParameters: [
1681
- $host,
1682
- subscriptionId,
1683
- resourceGroupName,
1684
- ],
1685
- headerParameters: [accept],
1686
- serializer,
1687
- };
1688
- const getOperationSpec = {
1689
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
1690
- httpMethod: "GET",
1691
- responses: {
1692
- 200: {
1693
- bodyMapper: OrganizationResource,
1694
- },
1695
- default: {
1696
- bodyMapper: ErrorResponse,
1697
- },
1698
- },
1699
- queryParameters: [apiVersion],
1700
- urlParameters: [
1701
- $host,
1702
- subscriptionId,
1703
- resourceGroupName,
1704
- organizationName,
1705
- ],
1706
- headerParameters: [accept],
1707
- serializer,
1708
- };
1709
- const createOrUpdateOperationSpec = {
1710
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
1711
- httpMethod: "PUT",
1712
- responses: {
1713
- 200: {
1714
- bodyMapper: OrganizationResource,
1715
- },
1716
- 201: {
1717
- bodyMapper: OrganizationResource,
1718
- },
1719
- 202: {
1720
- bodyMapper: OrganizationResource,
1721
- },
1722
- 204: {
1723
- bodyMapper: OrganizationResource,
1724
- },
1725
- default: {
1726
- bodyMapper: ErrorResponse,
1727
- },
1728
- },
1729
- requestBody: resource,
1730
- queryParameters: [apiVersion],
1731
- urlParameters: [
1732
- $host,
1733
- subscriptionId,
1734
- resourceGroupName,
1735
- organizationName,
1736
- ],
1737
- headerParameters: [accept, contentType],
1738
- mediaType: "json",
1739
- serializer,
1740
- };
1741
- const updateOperationSpec = {
1742
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
1743
- httpMethod: "PATCH",
1744
- responses: {
1745
- 200: {
1746
- bodyMapper: OrganizationResource,
1747
- },
1748
- 201: {
1749
- bodyMapper: OrganizationResource,
1750
- },
1751
- 202: {
1752
- bodyMapper: OrganizationResource,
1753
- },
1754
- 204: {
1755
- bodyMapper: OrganizationResource,
1756
- },
1757
- default: {
1758
- bodyMapper: ErrorResponse,
1759
- },
1760
- },
1761
- requestBody: properties,
1762
- queryParameters: [apiVersion],
1763
- urlParameters: [
1764
- $host,
1765
- subscriptionId,
1766
- resourceGroupName,
1767
- organizationName,
1768
- ],
1769
- headerParameters: [accept, contentType],
1770
- mediaType: "json",
1771
- serializer,
1772
- };
1773
- const deleteOperationSpec = {
1774
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
1775
- httpMethod: "DELETE",
1776
- responses: {
1777
- 200: {
1778
- headersMapper: OrganizationsDeleteHeaders,
1779
- },
1780
- 201: {
1781
- headersMapper: OrganizationsDeleteHeaders,
1782
- },
1783
- 202: {
1784
- headersMapper: OrganizationsDeleteHeaders,
1785
- },
1786
- 204: {
1787
- headersMapper: OrganizationsDeleteHeaders,
1788
- },
1789
- default: {
1790
- bodyMapper: ErrorResponse,
1791
- },
1792
- },
1793
- queryParameters: [apiVersion],
1794
- urlParameters: [
1795
- $host,
1796
- subscriptionId,
1797
- resourceGroupName,
1798
- organizationName,
1799
- ],
1800
- headerParameters: [accept],
1801
- serializer,
1802
- };
1803
- const listBySubscriptionNextOperationSpec = {
1804
- path: "{nextLink}",
1805
- httpMethod: "GET",
1806
- responses: {
1807
- 200: {
1808
- bodyMapper: OrganizationResourceListResult,
1809
- },
1810
- default: {
1811
- bodyMapper: ErrorResponse,
1812
- },
1813
- },
1814
- urlParameters: [
1815
- $host,
1816
- nextLink,
1817
- subscriptionId,
1818
- ],
1819
- headerParameters: [accept],
1820
- serializer,
1821
- };
1822
- const listByResourceGroupNextOperationSpec = {
1823
- path: "{nextLink}",
1824
- httpMethod: "GET",
1825
- responses: {
1826
- 200: {
1827
- bodyMapper: OrganizationResourceListResult,
1828
- },
1829
- default: {
1830
- bodyMapper: ErrorResponse,
1831
- },
1832
- },
1833
- urlParameters: [
1834
- $host,
1835
- nextLink,
1836
- subscriptionId,
1837
- resourceGroupName,
1838
- ],
1839
- headerParameters: [accept],
1840
- serializer,
1841
- };
1842
-
1843
- /*
1844
- * Copyright (c) Microsoft Corporation.
1845
- * Licensed under the MIT License.
1846
- *
1847
- * Code generated by Microsoft (R) AutoRest Code Generator.
1848
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1849
- */
1850
- class AstroManagementClient extends coreClient__namespace.ServiceClient {
1851
- /**
1852
- * Initializes a new instance of the AstroManagementClient class.
1853
- * @param credentials Subscription credentials which uniquely identify client subscription.
1854
- * @param subscriptionId The ID of the target subscription.
1855
- * @param options The parameter options
1856
- */
1857
- constructor(credentials, subscriptionId, options) {
1858
- var _a, _b, _c;
1859
- if (credentials === undefined) {
1860
- throw new Error("'credentials' cannot be null");
1861
- }
1862
- if (subscriptionId === undefined) {
1863
- throw new Error("'subscriptionId' cannot be null");
1864
- }
1865
- // Initializing default values for options
1866
- if (!options) {
1867
- options = {};
1868
- }
1869
- const defaults = {
1870
- requestContentType: "application/json; charset=utf-8",
1871
- credential: credentials,
1872
- };
1873
- const packageDetails = `azsdk-js-arm-astro/1.0.0-beta.1`;
1874
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1875
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1876
- : `${packageDetails}`;
1877
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1878
- userAgentPrefix,
1879
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1880
- super(optionsWithDefaults);
1881
- let bearerTokenAuthenticationPolicyFound = false;
1882
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1883
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1884
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1885
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1886
- }
1887
- if (!options ||
1888
- !options.pipeline ||
1889
- options.pipeline.getOrderedPolicies().length == 0 ||
1890
- !bearerTokenAuthenticationPolicyFound) {
1891
- this.pipeline.removePolicy({
1892
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
1893
- });
1894
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1895
- credential: credentials,
1896
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1897
- challengeCallbacks: {
1898
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
1899
- },
1900
- }));
1901
- }
1902
- // Parameter assignments
1903
- this.subscriptionId = subscriptionId;
1904
- // Assigning values to Constant parameters
1905
- this.$host = options.$host || "https://management.azure.com";
1906
- this.apiVersion = options.apiVersion || "2023-08-01";
1907
- this.operations = new OperationsImpl(this);
1908
- this.organizations = new OrganizationsImpl(this);
1909
- this.addCustomApiVersionPolicy(options.apiVersion);
1910
- }
1911
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1912
- addCustomApiVersionPolicy(apiVersion) {
1913
- if (!apiVersion) {
1914
- return;
1915
- }
1916
- const apiVersionPolicy = {
1917
- name: "CustomApiVersionPolicy",
1918
- sendRequest(request, next) {
1919
- return tslib.__awaiter(this, void 0, void 0, function* () {
1920
- const param = request.url.split("?");
1921
- if (param.length > 1) {
1922
- const newParams = param[1].split("&").map((item) => {
1923
- if (item.indexOf("api-version") > -1) {
1924
- return "api-version=" + apiVersion;
1925
- }
1926
- else {
1927
- return item;
1928
- }
1929
- });
1930
- request.url = param[0] + "?" + newParams.join("&");
1931
- }
1932
- return next(request);
1933
- });
1934
- },
1935
- };
1936
- this.pipeline.addPolicy(apiVersionPolicy);
1937
- }
1938
- }
1939
-
1940
- exports.AstroManagementClient = AstroManagementClient;
1941
- exports.getContinuationToken = getContinuationToken;
1942
- //# sourceMappingURL=index.js.map