@azure/arm-astro 1.0.0-alpha.20241230.1 → 1.0.0-alpha.20250108.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}/astroManagementClient.d.ts +2 -2
  2. package/dist/browser/astroManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/astroManagementClient.js +15 -18
  4. package/dist/browser/astroManagementClient.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/lroImpl.js.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/dist/browser/operations/index.d.ts +3 -0
  15. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  16. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  17. package/dist/browser/operations/index.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  19. package/dist/browser/operations/operations.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  21. package/dist/browser/operations/operations.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/organizations.d.ts +3 -3
  23. package/dist/browser/operations/organizations.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/organizations.js +116 -128
  25. package/dist/browser/operations/organizations.js.map +1 -0
  26. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  27. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  29. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  32. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/organizations.d.ts +1 -1
  34. package/dist/browser/operationsInterfaces/organizations.d.ts.map +1 -0
  35. package/dist/browser/operationsInterfaces/organizations.js.map +1 -0
  36. package/dist/browser/package.json +3 -0
  37. package/dist/browser/pagingHelper.js.map +1 -0
  38. package/dist/commonjs/astroManagementClient.d.ts +21 -0
  39. package/dist/commonjs/astroManagementClient.d.ts.map +1 -0
  40. package/dist/commonjs/astroManagementClient.js +103 -0
  41. package/dist/commonjs/astroManagementClient.js.map +1 -0
  42. package/dist/commonjs/index.d.ts +5 -0
  43. package/dist/commonjs/index.d.ts.map +1 -0
  44. package/dist/commonjs/index.js +19 -0
  45. package/dist/commonjs/index.js.map +1 -0
  46. package/dist/commonjs/lroImpl.d.ts +11 -0
  47. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  48. package/dist/commonjs/lroImpl.js +24 -0
  49. package/dist/commonjs/lroImpl.js.map +1 -0
  50. package/{types/arm-astro.d.ts → dist/commonjs/models/index.d.ts} +565 -736
  51. package/dist/commonjs/models/index.d.ts.map +1 -0
  52. package/dist/commonjs/models/index.js +89 -0
  53. package/dist/commonjs/models/index.js.map +1 -0
  54. package/dist/commonjs/models/mappers.d.ts +28 -0
  55. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  56. package/dist/commonjs/models/mappers.js +860 -0
  57. package/dist/commonjs/models/mappers.js.map +1 -0
  58. package/dist/commonjs/models/parameters.d.ts +12 -0
  59. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  60. package/dist/commonjs/models/parameters.js +117 -0
  61. package/dist/commonjs/models/parameters.js.map +1 -0
  62. package/dist/commonjs/operations/index.d.ts +3 -0
  63. package/dist/commonjs/operations/index.d.ts.map +1 -0
  64. package/dist/commonjs/operations/index.js +13 -0
  65. package/dist/commonjs/operations/index.js.map +1 -0
  66. package/dist/commonjs/operations/operations.d.ts +32 -0
  67. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  68. package/dist/commonjs/operations/operations.js +137 -0
  69. package/dist/commonjs/operations/operations.js.map +1 -0
  70. package/dist/commonjs/operations/organizations.d.ts +107 -0
  71. package/dist/commonjs/operations/organizations.d.ts.map +1 -0
  72. package/dist/commonjs/operations/organizations.js +546 -0
  73. package/dist/commonjs/operations/organizations.js.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  75. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  77. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  79. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  81. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/organizations.d.ts +71 -0
  83. package/dist/commonjs/operationsInterfaces/organizations.d.ts.map +1 -0
  84. package/dist/commonjs/operationsInterfaces/organizations.js +10 -0
  85. package/dist/commonjs/operationsInterfaces/organizations.js.map +1 -0
  86. package/dist/commonjs/package.json +3 -0
  87. package/dist/commonjs/pagingHelper.d.ts +13 -0
  88. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  89. package/dist/commonjs/pagingHelper.js +36 -0
  90. package/dist/commonjs/pagingHelper.js.map +1 -0
  91. package/dist/esm/astroManagementClient.d.ts +21 -0
  92. package/dist/esm/astroManagementClient.d.ts.map +1 -0
  93. package/dist/esm/astroManagementClient.js +98 -0
  94. package/dist/esm/astroManagementClient.js.map +1 -0
  95. package/dist/esm/index.d.ts +5 -0
  96. package/dist/esm/index.d.ts.map +1 -0
  97. package/{src/index.ts → dist/esm/index.js} +5 -5
  98. package/dist/esm/index.js.map +1 -0
  99. package/dist/esm/lroImpl.d.ts +11 -0
  100. package/dist/esm/lroImpl.d.ts.map +1 -0
  101. package/dist/esm/lroImpl.js +21 -0
  102. package/dist/esm/lroImpl.js.map +1 -0
  103. package/dist/esm/models/index.d.ts +565 -0
  104. package/dist/esm/models/index.d.ts.map +1 -0
  105. package/dist/esm/models/index.js +86 -0
  106. package/dist/esm/models/index.js.map +1 -0
  107. package/dist/esm/models/mappers.d.ts +28 -0
  108. package/dist/esm/models/mappers.d.ts.map +1 -0
  109. package/dist/esm/models/mappers.js +857 -0
  110. package/dist/esm/models/mappers.js.map +1 -0
  111. package/dist/esm/models/parameters.d.ts +12 -0
  112. package/dist/esm/models/parameters.d.ts.map +1 -0
  113. package/dist/esm/models/parameters.js +114 -0
  114. package/dist/esm/models/parameters.js.map +1 -0
  115. package/dist/esm/operations/index.d.ts +3 -0
  116. package/dist/esm/operations/index.d.ts.map +1 -0
  117. package/dist/esm/operations/index.js +10 -0
  118. package/dist/esm/operations/index.js.map +1 -0
  119. package/dist/esm/operations/operations.d.ts +32 -0
  120. package/dist/esm/operations/operations.d.ts.map +1 -0
  121. package/dist/esm/operations/operations.js +133 -0
  122. package/dist/esm/operations/operations.js.map +1 -0
  123. package/dist/esm/operations/organizations.d.ts +107 -0
  124. package/dist/esm/operations/organizations.d.ts.map +1 -0
  125. package/dist/esm/operations/organizations.js +542 -0
  126. package/dist/esm/operations/organizations.js.map +1 -0
  127. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  128. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  129. package/dist/esm/operationsInterfaces/index.js +10 -0
  130. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  131. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  132. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  133. package/{src/operations/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
  134. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  135. package/dist/esm/operationsInterfaces/organizations.d.ts +71 -0
  136. package/dist/esm/operationsInterfaces/organizations.d.ts.map +1 -0
  137. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/organizations.js} +2 -3
  138. package/dist/esm/operationsInterfaces/organizations.js.map +1 -0
  139. package/dist/esm/package.json +3 -0
  140. package/dist/esm/pagingHelper.d.ts +13 -0
  141. package/dist/esm/pagingHelper.d.ts.map +1 -0
  142. package/dist/esm/pagingHelper.js +32 -0
  143. package/dist/esm/pagingHelper.js.map +1 -0
  144. package/dist/react-native/astroManagementClient.d.ts +21 -0
  145. package/dist/react-native/astroManagementClient.d.ts.map +1 -0
  146. package/dist/react-native/astroManagementClient.js +98 -0
  147. package/dist/react-native/astroManagementClient.js.map +1 -0
  148. package/dist/react-native/index.d.ts +5 -0
  149. package/dist/react-native/index.d.ts.map +1 -0
  150. package/dist/react-native/index.js +13 -0
  151. package/dist/react-native/index.js.map +1 -0
  152. package/dist/react-native/lroImpl.d.ts +11 -0
  153. package/dist/react-native/lroImpl.d.ts.map +1 -0
  154. package/dist/react-native/lroImpl.js +21 -0
  155. package/dist/react-native/lroImpl.js.map +1 -0
  156. package/dist/react-native/models/index.d.ts +565 -0
  157. package/dist/react-native/models/index.d.ts.map +1 -0
  158. package/dist/react-native/models/index.js +86 -0
  159. package/dist/react-native/models/index.js.map +1 -0
  160. package/dist/react-native/models/mappers.d.ts +28 -0
  161. package/dist/react-native/models/mappers.d.ts.map +1 -0
  162. package/dist/react-native/models/mappers.js +857 -0
  163. package/dist/react-native/models/mappers.js.map +1 -0
  164. package/dist/react-native/models/parameters.d.ts +12 -0
  165. package/dist/react-native/models/parameters.d.ts.map +1 -0
  166. package/dist/react-native/models/parameters.js +114 -0
  167. package/dist/react-native/models/parameters.js.map +1 -0
  168. package/dist/react-native/operations/index.d.ts +3 -0
  169. package/dist/react-native/operations/index.d.ts.map +1 -0
  170. package/dist/react-native/operations/index.js +10 -0
  171. package/dist/react-native/operations/index.js.map +1 -0
  172. package/dist/react-native/operations/operations.d.ts +32 -0
  173. package/dist/react-native/operations/operations.d.ts.map +1 -0
  174. package/dist/react-native/operations/operations.js +133 -0
  175. package/dist/react-native/operations/operations.js.map +1 -0
  176. package/dist/react-native/operations/organizations.d.ts +107 -0
  177. package/dist/react-native/operations/organizations.d.ts.map +1 -0
  178. package/dist/react-native/operations/organizations.js +542 -0
  179. package/dist/react-native/operations/organizations.js.map +1 -0
  180. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  181. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  182. package/dist/react-native/operationsInterfaces/index.js +10 -0
  183. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  184. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  185. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  186. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  187. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  188. package/dist/react-native/operationsInterfaces/organizations.d.ts +71 -0
  189. package/dist/react-native/operationsInterfaces/organizations.d.ts.map +1 -0
  190. package/dist/react-native/operationsInterfaces/organizations.js +9 -0
  191. package/dist/react-native/operationsInterfaces/organizations.js.map +1 -0
  192. package/dist/react-native/package.json +3 -0
  193. package/dist/react-native/pagingHelper.d.ts +13 -0
  194. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  195. package/dist/react-native/pagingHelper.js +32 -0
  196. package/dist/react-native/pagingHelper.js.map +1 -0
  197. package/package.json +58 -28
  198. package/dist/index.js +0 -1942
  199. package/dist/index.js.map +0 -1
  200. package/dist/index.min.js +0 -1
  201. package/dist/index.min.js.map +0 -1
  202. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  203. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  204. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  205. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  206. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.d.ts +0 -2
  207. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.d.ts.map +0 -1
  208. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.js +0 -79
  209. package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.js.map +0 -1
  210. package/dist-esm/samples-dev/organizationsDeleteSample.d.ts +0 -2
  211. package/dist-esm/samples-dev/organizationsDeleteSample.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/organizationsDeleteSample.js +0 -39
  213. package/dist-esm/samples-dev/organizationsDeleteSample.js.map +0 -1
  214. package/dist-esm/samples-dev/organizationsGetSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/organizationsGetSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/organizationsGetSample.js +0 -39
  217. package/dist-esm/samples-dev/organizationsGetSample.js.map +0 -1
  218. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.d.ts +0 -2
  219. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.js +0 -54
  221. package/dist-esm/samples-dev/organizationsListByResourceGroupSample.js.map +0 -1
  222. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.js +0 -53
  225. package/dist-esm/samples-dev/organizationsListBySubscriptionSample.js.map +0 -1
  226. package/dist-esm/samples-dev/organizationsUpdateSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/organizationsUpdateSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/organizationsUpdateSample.js +0 -65
  229. package/dist-esm/samples-dev/organizationsUpdateSample.js.map +0 -1
  230. package/dist-esm/src/astroManagementClient.d.ts.map +0 -1
  231. package/dist-esm/src/astroManagementClient.js.map +0 -1
  232. package/dist-esm/src/index.d.ts +0 -5
  233. package/dist-esm/src/index.js.map +0 -1
  234. package/dist-esm/src/lroImpl.js.map +0 -1
  235. package/dist-esm/src/models/index.js.map +0 -1
  236. package/dist-esm/src/models/mappers.js.map +0 -1
  237. package/dist-esm/src/models/parameters.js.map +0 -1
  238. package/dist-esm/src/operations/index.d.ts +0 -3
  239. package/dist-esm/src/operations/index.js.map +0 -1
  240. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  241. package/dist-esm/src/operations/operations.js.map +0 -1
  242. package/dist-esm/src/operations/organizations.d.ts.map +0 -1
  243. package/dist-esm/src/operations/organizations.js.map +0 -1
  244. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  245. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  246. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/organizations.d.ts.map +0 -1
  248. package/dist-esm/src/operationsInterfaces/organizations.js.map +0 -1
  249. package/dist-esm/src/pagingHelper.js.map +0 -1
  250. package/dist-esm/test/astro_operations_test.spec.d.ts +0 -4
  251. package/dist-esm/test/astro_operations_test.spec.d.ts.map +0 -1
  252. package/dist-esm/test/astro_operations_test.spec.js +0 -77
  253. package/dist-esm/test/astro_operations_test.spec.js.map +0 -1
  254. package/src/astroManagementClient.ts +0 -143
  255. package/src/lroImpl.ts +0 -42
  256. package/src/models/index.ts +0 -637
  257. package/src/models/mappers.ts +0 -899
  258. package/src/models/parameters.ts +0 -132
  259. package/src/operations/operations.ts +0 -149
  260. package/src/operations/organizations.ts +0 -728
  261. package/src/operationsInterfaces/operations.ts +0 -22
  262. package/src/operationsInterfaces/organizations.ts +0 -145
  263. package/src/pagingHelper.ts +0 -39
  264. package/tsconfig.json +0 -33
  265. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  266. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  267. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  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/operations.js +0 -0
  277. /package/{dist-esm/src → dist/browser}/operationsInterfaces/organizations.js +0 -0
  278. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  279. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  280. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  281. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,542 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ import { createHttpPoller, } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl.js";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing Organizations operations. */
17
+ export class OrganizationsImpl {
18
+ /**
19
+ * Initialize a new instance of the class Organizations class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * List OrganizationResource resources by subscription ID
27
+ * @param options The options parameters.
28
+ */
29
+ listBySubscription(options) {
30
+ const iter = this.listBySubscriptionPagingAll(options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listBySubscriptionPagingPage(options, settings);
43
+ },
44
+ };
45
+ }
46
+ listBySubscriptionPagingPage(options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listBySubscription(options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listBySubscriptionPagingAll(options) {
67
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ const page = _c;
74
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
+ }
76
+ }
77
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
+ finally {
79
+ try {
80
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
+ }
82
+ finally { if (e_1) throw e_1.error; }
83
+ }
84
+ });
85
+ }
86
+ /**
87
+ * List OrganizationResource resources by resource group
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
+ * @param options The options parameters.
90
+ */
91
+ listByResourceGroup(resourceGroupName, options) {
92
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
93
+ return {
94
+ next() {
95
+ return iter.next();
96
+ },
97
+ [Symbol.asyncIterator]() {
98
+ return this;
99
+ },
100
+ byPage: (settings) => {
101
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
102
+ throw new Error("maxPageSize is not supported by this operation.");
103
+ }
104
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
+ },
106
+ };
107
+ }
108
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
+ let result;
111
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
+ if (!continuationToken) {
113
+ result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
+ let page = result.value || [];
115
+ continuationToken = result.nextLink;
116
+ setContinuationToken(page, continuationToken);
117
+ yield yield __await(page);
118
+ }
119
+ while (continuationToken) {
120
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
+ continuationToken = result.nextLink;
122
+ let page = result.value || [];
123
+ setContinuationToken(page, continuationToken);
124
+ yield yield __await(page);
125
+ }
126
+ });
127
+ }
128
+ listByResourceGroupPagingAll(resourceGroupName, options) {
129
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
+ var _a, e_2, _b, _c;
131
+ try {
132
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
+ _c = _f.value;
134
+ _d = false;
135
+ const page = _c;
136
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
+ }
138
+ }
139
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
+ finally {
141
+ try {
142
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
+ }
144
+ finally { if (e_2) throw e_2.error; }
145
+ }
146
+ });
147
+ }
148
+ /**
149
+ * List OrganizationResource resources by subscription ID
150
+ * @param options The options parameters.
151
+ */
152
+ _listBySubscription(options) {
153
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
154
+ }
155
+ /**
156
+ * List OrganizationResource resources by resource group
157
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
158
+ * @param options The options parameters.
159
+ */
160
+ _listByResourceGroup(resourceGroupName, options) {
161
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
162
+ }
163
+ /**
164
+ * Get a OrganizationResource
165
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
166
+ * @param organizationName Name of the Organizations resource
167
+ * @param options The options parameters.
168
+ */
169
+ get(resourceGroupName, organizationName, options) {
170
+ return this.client.sendOperationRequest({ resourceGroupName, organizationName, options }, getOperationSpec);
171
+ }
172
+ /**
173
+ * Create a OrganizationResource
174
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
+ * @param organizationName Name of the Organizations resource
176
+ * @param resource Resource create parameters.
177
+ * @param options The options parameters.
178
+ */
179
+ async beginCreateOrUpdate(resourceGroupName, organizationName, resource, options) {
180
+ const directSendOperation = async (args, spec) => {
181
+ return this.client.sendOperationRequest(args, spec);
182
+ };
183
+ const sendOperationFn = async (args, spec) => {
184
+ var _a;
185
+ let currentRawResponse = undefined;
186
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
187
+ const callback = (rawResponse, flatResponse) => {
188
+ currentRawResponse = rawResponse;
189
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
190
+ };
191
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
192
+ const flatResponse = await directSendOperation(updatedArgs, spec);
193
+ return {
194
+ flatResponse,
195
+ rawResponse: {
196
+ statusCode: currentRawResponse.status,
197
+ body: currentRawResponse.parsedBody,
198
+ headers: currentRawResponse.headers.toJSON(),
199
+ },
200
+ };
201
+ };
202
+ const lro = createLroSpec({
203
+ sendOperationFn,
204
+ args: { resourceGroupName, organizationName, resource, options },
205
+ spec: createOrUpdateOperationSpec,
206
+ });
207
+ const poller = await createHttpPoller(lro, {
208
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
209
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
210
+ resourceLocationConfig: "azure-async-operation",
211
+ });
212
+ await poller.poll();
213
+ return poller;
214
+ }
215
+ /**
216
+ * Create a OrganizationResource
217
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
218
+ * @param organizationName Name of the Organizations resource
219
+ * @param resource Resource create parameters.
220
+ * @param options The options parameters.
221
+ */
222
+ async beginCreateOrUpdateAndWait(resourceGroupName, organizationName, resource, options) {
223
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, organizationName, resource, options);
224
+ return poller.pollUntilDone();
225
+ }
226
+ /**
227
+ * Update a OrganizationResource
228
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
229
+ * @param organizationName Name of the Organizations resource
230
+ * @param properties The resource properties to be updated.
231
+ * @param options The options parameters.
232
+ */
233
+ async beginUpdate(resourceGroupName, organizationName, properties, options) {
234
+ const directSendOperation = async (args, spec) => {
235
+ return this.client.sendOperationRequest(args, spec);
236
+ };
237
+ const sendOperationFn = async (args, spec) => {
238
+ var _a;
239
+ let currentRawResponse = undefined;
240
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
241
+ const callback = (rawResponse, flatResponse) => {
242
+ currentRawResponse = rawResponse;
243
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
244
+ };
245
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
246
+ const flatResponse = await directSendOperation(updatedArgs, spec);
247
+ return {
248
+ flatResponse,
249
+ rawResponse: {
250
+ statusCode: currentRawResponse.status,
251
+ body: currentRawResponse.parsedBody,
252
+ headers: currentRawResponse.headers.toJSON(),
253
+ },
254
+ };
255
+ };
256
+ const lro = createLroSpec({
257
+ sendOperationFn,
258
+ args: { resourceGroupName, organizationName, properties, options },
259
+ spec: updateOperationSpec,
260
+ });
261
+ const poller = await createHttpPoller(lro, {
262
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
263
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
264
+ resourceLocationConfig: "location",
265
+ });
266
+ await poller.poll();
267
+ return poller;
268
+ }
269
+ /**
270
+ * Update a OrganizationResource
271
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
272
+ * @param organizationName Name of the Organizations resource
273
+ * @param properties The resource properties to be updated.
274
+ * @param options The options parameters.
275
+ */
276
+ async beginUpdateAndWait(resourceGroupName, organizationName, properties, options) {
277
+ const poller = await this.beginUpdate(resourceGroupName, organizationName, properties, options);
278
+ return poller.pollUntilDone();
279
+ }
280
+ /**
281
+ * Delete a OrganizationResource
282
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
283
+ * @param organizationName Name of the Organizations resource
284
+ * @param options The options parameters.
285
+ */
286
+ async beginDelete(resourceGroupName, organizationName, options) {
287
+ const directSendOperation = async (args, spec) => {
288
+ return this.client.sendOperationRequest(args, spec);
289
+ };
290
+ const sendOperationFn = async (args, spec) => {
291
+ var _a;
292
+ let currentRawResponse = undefined;
293
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
294
+ const callback = (rawResponse, flatResponse) => {
295
+ currentRawResponse = rawResponse;
296
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
297
+ };
298
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
299
+ const flatResponse = await directSendOperation(updatedArgs, spec);
300
+ return {
301
+ flatResponse,
302
+ rawResponse: {
303
+ statusCode: currentRawResponse.status,
304
+ body: currentRawResponse.parsedBody,
305
+ headers: currentRawResponse.headers.toJSON(),
306
+ },
307
+ };
308
+ };
309
+ const lro = createLroSpec({
310
+ sendOperationFn,
311
+ args: { resourceGroupName, organizationName, options },
312
+ spec: deleteOperationSpec,
313
+ });
314
+ const poller = await createHttpPoller(lro, {
315
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
316
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
317
+ resourceLocationConfig: "location",
318
+ });
319
+ await poller.poll();
320
+ return poller;
321
+ }
322
+ /**
323
+ * Delete a OrganizationResource
324
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
325
+ * @param organizationName Name of the Organizations resource
326
+ * @param options The options parameters.
327
+ */
328
+ async beginDeleteAndWait(resourceGroupName, organizationName, options) {
329
+ const poller = await this.beginDelete(resourceGroupName, organizationName, options);
330
+ return poller.pollUntilDone();
331
+ }
332
+ /**
333
+ * ListBySubscriptionNext
334
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
335
+ * @param options The options parameters.
336
+ */
337
+ _listBySubscriptionNext(nextLink, options) {
338
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
339
+ }
340
+ /**
341
+ * ListByResourceGroupNext
342
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
343
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
344
+ * @param options The options parameters.
345
+ */
346
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
347
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
348
+ }
349
+ }
350
+ // Operation Specifications
351
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
352
+ const listBySubscriptionOperationSpec = {
353
+ path: "/subscriptions/{subscriptionId}/providers/Astronomer.Astro/organizations",
354
+ httpMethod: "GET",
355
+ responses: {
356
+ 200: {
357
+ bodyMapper: Mappers.OrganizationResourceListResult,
358
+ },
359
+ default: {
360
+ bodyMapper: Mappers.ErrorResponse,
361
+ },
362
+ },
363
+ queryParameters: [Parameters.apiVersion],
364
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
365
+ headerParameters: [Parameters.accept],
366
+ serializer,
367
+ };
368
+ const listByResourceGroupOperationSpec = {
369
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations",
370
+ httpMethod: "GET",
371
+ responses: {
372
+ 200: {
373
+ bodyMapper: Mappers.OrganizationResourceListResult,
374
+ },
375
+ default: {
376
+ bodyMapper: Mappers.ErrorResponse,
377
+ },
378
+ },
379
+ queryParameters: [Parameters.apiVersion],
380
+ urlParameters: [
381
+ Parameters.$host,
382
+ Parameters.subscriptionId,
383
+ Parameters.resourceGroupName,
384
+ ],
385
+ headerParameters: [Parameters.accept],
386
+ serializer,
387
+ };
388
+ const getOperationSpec = {
389
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
390
+ httpMethod: "GET",
391
+ responses: {
392
+ 200: {
393
+ bodyMapper: Mappers.OrganizationResource,
394
+ },
395
+ default: {
396
+ bodyMapper: Mappers.ErrorResponse,
397
+ },
398
+ },
399
+ queryParameters: [Parameters.apiVersion],
400
+ urlParameters: [
401
+ Parameters.$host,
402
+ Parameters.subscriptionId,
403
+ Parameters.resourceGroupName,
404
+ Parameters.organizationName,
405
+ ],
406
+ headerParameters: [Parameters.accept],
407
+ serializer,
408
+ };
409
+ const createOrUpdateOperationSpec = {
410
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
411
+ httpMethod: "PUT",
412
+ responses: {
413
+ 200: {
414
+ bodyMapper: Mappers.OrganizationResource,
415
+ },
416
+ 201: {
417
+ bodyMapper: Mappers.OrganizationResource,
418
+ },
419
+ 202: {
420
+ bodyMapper: Mappers.OrganizationResource,
421
+ },
422
+ 204: {
423
+ bodyMapper: Mappers.OrganizationResource,
424
+ },
425
+ default: {
426
+ bodyMapper: Mappers.ErrorResponse,
427
+ },
428
+ },
429
+ requestBody: Parameters.resource,
430
+ queryParameters: [Parameters.apiVersion],
431
+ urlParameters: [
432
+ Parameters.$host,
433
+ Parameters.subscriptionId,
434
+ Parameters.resourceGroupName,
435
+ Parameters.organizationName,
436
+ ],
437
+ headerParameters: [Parameters.accept, Parameters.contentType],
438
+ mediaType: "json",
439
+ serializer,
440
+ };
441
+ const updateOperationSpec = {
442
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
443
+ httpMethod: "PATCH",
444
+ responses: {
445
+ 200: {
446
+ bodyMapper: Mappers.OrganizationResource,
447
+ },
448
+ 201: {
449
+ bodyMapper: Mappers.OrganizationResource,
450
+ },
451
+ 202: {
452
+ bodyMapper: Mappers.OrganizationResource,
453
+ },
454
+ 204: {
455
+ bodyMapper: Mappers.OrganizationResource,
456
+ },
457
+ default: {
458
+ bodyMapper: Mappers.ErrorResponse,
459
+ },
460
+ },
461
+ requestBody: Parameters.properties,
462
+ queryParameters: [Parameters.apiVersion],
463
+ urlParameters: [
464
+ Parameters.$host,
465
+ Parameters.subscriptionId,
466
+ Parameters.resourceGroupName,
467
+ Parameters.organizationName,
468
+ ],
469
+ headerParameters: [Parameters.accept, Parameters.contentType],
470
+ mediaType: "json",
471
+ serializer,
472
+ };
473
+ const deleteOperationSpec = {
474
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
475
+ httpMethod: "DELETE",
476
+ responses: {
477
+ 200: {
478
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
479
+ },
480
+ 201: {
481
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
482
+ },
483
+ 202: {
484
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
485
+ },
486
+ 204: {
487
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
488
+ },
489
+ default: {
490
+ bodyMapper: Mappers.ErrorResponse,
491
+ },
492
+ },
493
+ queryParameters: [Parameters.apiVersion],
494
+ urlParameters: [
495
+ Parameters.$host,
496
+ Parameters.subscriptionId,
497
+ Parameters.resourceGroupName,
498
+ Parameters.organizationName,
499
+ ],
500
+ headerParameters: [Parameters.accept],
501
+ serializer,
502
+ };
503
+ const listBySubscriptionNextOperationSpec = {
504
+ path: "{nextLink}",
505
+ httpMethod: "GET",
506
+ responses: {
507
+ 200: {
508
+ bodyMapper: Mappers.OrganizationResourceListResult,
509
+ },
510
+ default: {
511
+ bodyMapper: Mappers.ErrorResponse,
512
+ },
513
+ },
514
+ urlParameters: [
515
+ Parameters.$host,
516
+ Parameters.nextLink,
517
+ Parameters.subscriptionId,
518
+ ],
519
+ headerParameters: [Parameters.accept],
520
+ serializer,
521
+ };
522
+ const listByResourceGroupNextOperationSpec = {
523
+ path: "{nextLink}",
524
+ httpMethod: "GET",
525
+ responses: {
526
+ 200: {
527
+ bodyMapper: Mappers.OrganizationResourceListResult,
528
+ },
529
+ default: {
530
+ bodyMapper: Mappers.ErrorResponse,
531
+ },
532
+ },
533
+ urlParameters: [
534
+ Parameters.$host,
535
+ Parameters.nextLink,
536
+ Parameters.subscriptionId,
537
+ Parameters.resourceGroupName,
538
+ ],
539
+ headerParameters: [Parameters.accept],
540
+ serializer,
541
+ };
542
+ //# sourceMappingURL=organizations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/operations/organizations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAg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AAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Organizations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AstroManagementClient } from \"../astroManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n OrganizationResource,\n OrganizationsListBySubscriptionNextOptionalParams,\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListBySubscriptionResponse,\n OrganizationsListByResourceGroupNextOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsListByResourceGroupResponse,\n OrganizationsGetOptionalParams,\n OrganizationsGetResponse,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsCreateOrUpdateResponse,\n OrganizationResourceUpdate,\n OrganizationsUpdateOptionalParams,\n OrganizationsUpdateResponse,\n OrganizationsDeleteOptionalParams,\n OrganizationsDeleteResponse,\n OrganizationsListBySubscriptionNextResponse,\n OrganizationsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Organizations operations. */\nexport class OrganizationsImpl implements Organizations {\n private readonly client: AstroManagementClient;\n\n /**\n * Initialize a new instance of the class Organizations class.\n * @param client Reference to the service client\n */\n constructor(client: AstroManagementClient) {\n this.client = client;\n }\n\n /**\n * List OrganizationResource resources by subscription ID\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: OrganizationsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<OrganizationResource> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: OrganizationsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<OrganizationResource[]> {\n let result: OrganizationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: OrganizationsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<OrganizationResource> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List OrganizationResource resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<OrganizationResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<OrganizationResource[]> {\n let result: OrganizationsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<OrganizationResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List OrganizationResource resources by subscription ID\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: OrganizationsListBySubscriptionOptionalParams,\n ): Promise<OrganizationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * List OrganizationResource resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ): Promise<OrganizationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsGetOptionalParams,\n ): Promise<OrganizationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options?: OrganizationsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<OrganizationsCreateOrUpdateResponse>,\n OrganizationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<OrganizationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, organizationName, resource, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n OrganizationsCreateOrUpdateResponse,\n OperationState<OrganizationsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options?: OrganizationsCreateOrUpdateOptionalParams,\n ): Promise<OrganizationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n organizationName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResourceUpdate,\n options?: OrganizationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<OrganizationsUpdateResponse>,\n OrganizationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<OrganizationsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, organizationName, properties, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n OrganizationsUpdateResponse,\n OperationState<OrganizationsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResourceUpdate,\n options?: OrganizationsUpdateOptionalParams,\n ): Promise<OrganizationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n organizationName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<OrganizationsDeleteResponse>,\n OrganizationsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<OrganizationsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, organizationName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n OrganizationsDeleteResponse,\n OperationState<OrganizationsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a OrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsDeleteOptionalParams,\n ): Promise<OrganizationsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n organizationName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: OrganizationsListBySubscriptionNextOptionalParams,\n ): Promise<OrganizationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: OrganizationsListByResourceGroupNextOptionalParams,\n ): Promise<OrganizationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Astronomer.Astro/organizations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResource,\n },\n 201: {\n bodyMapper: Mappers.OrganizationResource,\n },\n 202: {\n bodyMapper: Mappers.OrganizationResource,\n },\n 204: {\n bodyMapper: Mappers.OrganizationResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResource,\n },\n 201: {\n bodyMapper: Mappers.OrganizationResource,\n },\n 202: {\n bodyMapper: Mappers.OrganizationResource,\n },\n 204: {\n bodyMapper: Mappers.OrganizationResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.OrganizationsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.OrganizationsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.OrganizationsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.OrganizationsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./operations.js";
2
+ export * from "./organizations.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./operations.js";
9
+ export * from "./organizations.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./organizations.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * List the operations for the provider
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}