@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
@@ -0,0 +1,523 @@
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 { setContinuationToken } from "../pagingHelper.js";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
12
+ import { createHttpPoller, } from "@azure/core-lro";
13
+ import { createLroSpec } from "../lroImpl.js";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing Organizations operations. */
16
+ export class OrganizationsImpl {
17
+ client;
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?.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listBySubscriptionPagingPage(options, settings);
43
+ },
44
+ };
45
+ }
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
63
+ }
64
+ async *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
68
+ }
69
+ /**
70
+ * List OrganizationResource resources by resource group
71
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
72
+ * @param options The options parameters.
73
+ */
74
+ listByResourceGroup(resourceGroupName, options) {
75
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
76
+ return {
77
+ next() {
78
+ return iter.next();
79
+ },
80
+ [Symbol.asyncIterator]() {
81
+ return this;
82
+ },
83
+ byPage: (settings) => {
84
+ if (settings?.maxPageSize) {
85
+ throw new Error("maxPageSize is not supported by this operation.");
86
+ }
87
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
88
+ },
89
+ };
90
+ }
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
108
+ }
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
113
+ }
114
+ /**
115
+ * List OrganizationResource resources by subscription ID
116
+ * @param options The options parameters.
117
+ */
118
+ _listBySubscription(options) {
119
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
120
+ }
121
+ /**
122
+ * List OrganizationResource resources by resource group
123
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
124
+ * @param options The options parameters.
125
+ */
126
+ _listByResourceGroup(resourceGroupName, options) {
127
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
128
+ }
129
+ /**
130
+ * Get a OrganizationResource
131
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
132
+ * @param organizationName Name of the Organizations resource
133
+ * @param options The options parameters.
134
+ */
135
+ get(resourceGroupName, organizationName, options) {
136
+ return this.client.sendOperationRequest({ resourceGroupName, organizationName, options }, getOperationSpec);
137
+ }
138
+ /**
139
+ * Create a OrganizationResource
140
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
141
+ * @param organizationName Name of the Organizations resource
142
+ * @param resource Resource create parameters.
143
+ * @param options The options parameters.
144
+ */
145
+ async beginCreateOrUpdate(resourceGroupName, organizationName, resource, options) {
146
+ const directSendOperation = async (args, spec) => {
147
+ return this.client.sendOperationRequest(args, spec);
148
+ };
149
+ const sendOperationFn = async (args, spec) => {
150
+ let currentRawResponse = undefined;
151
+ const providedCallback = args.options?.onResponse;
152
+ const callback = (rawResponse, flatResponse) => {
153
+ currentRawResponse = rawResponse;
154
+ providedCallback?.(rawResponse, flatResponse);
155
+ };
156
+ const updatedArgs = {
157
+ ...args,
158
+ options: {
159
+ ...args.options,
160
+ onResponse: callback,
161
+ },
162
+ };
163
+ const flatResponse = await directSendOperation(updatedArgs, spec);
164
+ return {
165
+ flatResponse,
166
+ rawResponse: {
167
+ statusCode: currentRawResponse.status,
168
+ body: currentRawResponse.parsedBody,
169
+ headers: currentRawResponse.headers.toJSON(),
170
+ },
171
+ };
172
+ };
173
+ const lro = createLroSpec({
174
+ sendOperationFn,
175
+ args: { resourceGroupName, organizationName, resource, options },
176
+ spec: createOrUpdateOperationSpec,
177
+ });
178
+ const poller = await createHttpPoller(lro, {
179
+ restoreFrom: options?.resumeFrom,
180
+ intervalInMs: options?.updateIntervalInMs,
181
+ resourceLocationConfig: "azure-async-operation",
182
+ });
183
+ await poller.poll();
184
+ return poller;
185
+ }
186
+ /**
187
+ * Create a OrganizationResource
188
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
189
+ * @param organizationName Name of the Organizations resource
190
+ * @param resource Resource create parameters.
191
+ * @param options The options parameters.
192
+ */
193
+ async beginCreateOrUpdateAndWait(resourceGroupName, organizationName, resource, options) {
194
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, organizationName, resource, options);
195
+ return poller.pollUntilDone();
196
+ }
197
+ /**
198
+ * Update a OrganizationResource
199
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
200
+ * @param organizationName Name of the Organizations resource
201
+ * @param properties The resource properties to be updated.
202
+ * @param options The options parameters.
203
+ */
204
+ async beginUpdate(resourceGroupName, organizationName, properties, options) {
205
+ const directSendOperation = async (args, spec) => {
206
+ return this.client.sendOperationRequest(args, spec);
207
+ };
208
+ const sendOperationFn = async (args, spec) => {
209
+ let currentRawResponse = undefined;
210
+ const providedCallback = args.options?.onResponse;
211
+ const callback = (rawResponse, flatResponse) => {
212
+ currentRawResponse = rawResponse;
213
+ providedCallback?.(rawResponse, flatResponse);
214
+ };
215
+ const updatedArgs = {
216
+ ...args,
217
+ options: {
218
+ ...args.options,
219
+ onResponse: callback,
220
+ },
221
+ };
222
+ const flatResponse = await directSendOperation(updatedArgs, spec);
223
+ return {
224
+ flatResponse,
225
+ rawResponse: {
226
+ statusCode: currentRawResponse.status,
227
+ body: currentRawResponse.parsedBody,
228
+ headers: currentRawResponse.headers.toJSON(),
229
+ },
230
+ };
231
+ };
232
+ const lro = createLroSpec({
233
+ sendOperationFn,
234
+ args: { resourceGroupName, organizationName, properties, options },
235
+ spec: updateOperationSpec,
236
+ });
237
+ const poller = await createHttpPoller(lro, {
238
+ restoreFrom: options?.resumeFrom,
239
+ intervalInMs: options?.updateIntervalInMs,
240
+ resourceLocationConfig: "location",
241
+ });
242
+ await poller.poll();
243
+ return poller;
244
+ }
245
+ /**
246
+ * Update a OrganizationResource
247
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
248
+ * @param organizationName Name of the Organizations resource
249
+ * @param properties The resource properties to be updated.
250
+ * @param options The options parameters.
251
+ */
252
+ async beginUpdateAndWait(resourceGroupName, organizationName, properties, options) {
253
+ const poller = await this.beginUpdate(resourceGroupName, organizationName, properties, options);
254
+ return poller.pollUntilDone();
255
+ }
256
+ /**
257
+ * Delete a OrganizationResource
258
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
259
+ * @param organizationName Name of the Organizations resource
260
+ * @param options The options parameters.
261
+ */
262
+ async beginDelete(resourceGroupName, organizationName, options) {
263
+ const directSendOperation = async (args, spec) => {
264
+ return this.client.sendOperationRequest(args, spec);
265
+ };
266
+ const sendOperationFn = async (args, spec) => {
267
+ let currentRawResponse = undefined;
268
+ const providedCallback = args.options?.onResponse;
269
+ const callback = (rawResponse, flatResponse) => {
270
+ currentRawResponse = rawResponse;
271
+ providedCallback?.(rawResponse, flatResponse);
272
+ };
273
+ const updatedArgs = {
274
+ ...args,
275
+ options: {
276
+ ...args.options,
277
+ onResponse: callback,
278
+ },
279
+ };
280
+ const flatResponse = await directSendOperation(updatedArgs, spec);
281
+ return {
282
+ flatResponse,
283
+ rawResponse: {
284
+ statusCode: currentRawResponse.status,
285
+ body: currentRawResponse.parsedBody,
286
+ headers: currentRawResponse.headers.toJSON(),
287
+ },
288
+ };
289
+ };
290
+ const lro = createLroSpec({
291
+ sendOperationFn,
292
+ args: { resourceGroupName, organizationName, options },
293
+ spec: deleteOperationSpec,
294
+ });
295
+ const poller = await createHttpPoller(lro, {
296
+ restoreFrom: options?.resumeFrom,
297
+ intervalInMs: options?.updateIntervalInMs,
298
+ resourceLocationConfig: "location",
299
+ });
300
+ await poller.poll();
301
+ return poller;
302
+ }
303
+ /**
304
+ * Delete a OrganizationResource
305
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
306
+ * @param organizationName Name of the Organizations resource
307
+ * @param options The options parameters.
308
+ */
309
+ async beginDeleteAndWait(resourceGroupName, organizationName, options) {
310
+ const poller = await this.beginDelete(resourceGroupName, organizationName, options);
311
+ return poller.pollUntilDone();
312
+ }
313
+ /**
314
+ * ListBySubscriptionNext
315
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
316
+ * @param options The options parameters.
317
+ */
318
+ _listBySubscriptionNext(nextLink, options) {
319
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
320
+ }
321
+ /**
322
+ * ListByResourceGroupNext
323
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
324
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
325
+ * @param options The options parameters.
326
+ */
327
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
328
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
329
+ }
330
+ }
331
+ // Operation Specifications
332
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
333
+ const listBySubscriptionOperationSpec = {
334
+ path: "/subscriptions/{subscriptionId}/providers/Astronomer.Astro/organizations",
335
+ httpMethod: "GET",
336
+ responses: {
337
+ 200: {
338
+ bodyMapper: Mappers.OrganizationResourceListResult,
339
+ },
340
+ default: {
341
+ bodyMapper: Mappers.ErrorResponse,
342
+ },
343
+ },
344
+ queryParameters: [Parameters.apiVersion],
345
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
346
+ headerParameters: [Parameters.accept],
347
+ serializer,
348
+ };
349
+ const listByResourceGroupOperationSpec = {
350
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations",
351
+ httpMethod: "GET",
352
+ responses: {
353
+ 200: {
354
+ bodyMapper: Mappers.OrganizationResourceListResult,
355
+ },
356
+ default: {
357
+ bodyMapper: Mappers.ErrorResponse,
358
+ },
359
+ },
360
+ queryParameters: [Parameters.apiVersion],
361
+ urlParameters: [
362
+ Parameters.$host,
363
+ Parameters.subscriptionId,
364
+ Parameters.resourceGroupName,
365
+ ],
366
+ headerParameters: [Parameters.accept],
367
+ serializer,
368
+ };
369
+ const getOperationSpec = {
370
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
371
+ httpMethod: "GET",
372
+ responses: {
373
+ 200: {
374
+ bodyMapper: Mappers.OrganizationResource,
375
+ },
376
+ default: {
377
+ bodyMapper: Mappers.ErrorResponse,
378
+ },
379
+ },
380
+ queryParameters: [Parameters.apiVersion],
381
+ urlParameters: [
382
+ Parameters.$host,
383
+ Parameters.subscriptionId,
384
+ Parameters.resourceGroupName,
385
+ Parameters.organizationName,
386
+ ],
387
+ headerParameters: [Parameters.accept],
388
+ serializer,
389
+ };
390
+ const createOrUpdateOperationSpec = {
391
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
392
+ httpMethod: "PUT",
393
+ responses: {
394
+ 200: {
395
+ bodyMapper: Mappers.OrganizationResource,
396
+ },
397
+ 201: {
398
+ bodyMapper: Mappers.OrganizationResource,
399
+ },
400
+ 202: {
401
+ bodyMapper: Mappers.OrganizationResource,
402
+ },
403
+ 204: {
404
+ bodyMapper: Mappers.OrganizationResource,
405
+ },
406
+ default: {
407
+ bodyMapper: Mappers.ErrorResponse,
408
+ },
409
+ },
410
+ requestBody: Parameters.resource,
411
+ queryParameters: [Parameters.apiVersion],
412
+ urlParameters: [
413
+ Parameters.$host,
414
+ Parameters.subscriptionId,
415
+ Parameters.resourceGroupName,
416
+ Parameters.organizationName,
417
+ ],
418
+ headerParameters: [Parameters.accept, Parameters.contentType],
419
+ mediaType: "json",
420
+ serializer,
421
+ };
422
+ const updateOperationSpec = {
423
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
424
+ httpMethod: "PATCH",
425
+ responses: {
426
+ 200: {
427
+ bodyMapper: Mappers.OrganizationResource,
428
+ },
429
+ 201: {
430
+ bodyMapper: Mappers.OrganizationResource,
431
+ },
432
+ 202: {
433
+ bodyMapper: Mappers.OrganizationResource,
434
+ },
435
+ 204: {
436
+ bodyMapper: Mappers.OrganizationResource,
437
+ },
438
+ default: {
439
+ bodyMapper: Mappers.ErrorResponse,
440
+ },
441
+ },
442
+ requestBody: Parameters.properties,
443
+ queryParameters: [Parameters.apiVersion],
444
+ urlParameters: [
445
+ Parameters.$host,
446
+ Parameters.subscriptionId,
447
+ Parameters.resourceGroupName,
448
+ Parameters.organizationName,
449
+ ],
450
+ headerParameters: [Parameters.accept, Parameters.contentType],
451
+ mediaType: "json",
452
+ serializer,
453
+ };
454
+ const deleteOperationSpec = {
455
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}",
456
+ httpMethod: "DELETE",
457
+ responses: {
458
+ 200: {
459
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
460
+ },
461
+ 201: {
462
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
463
+ },
464
+ 202: {
465
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
466
+ },
467
+ 204: {
468
+ headersMapper: Mappers.OrganizationsDeleteHeaders,
469
+ },
470
+ default: {
471
+ bodyMapper: Mappers.ErrorResponse,
472
+ },
473
+ },
474
+ queryParameters: [Parameters.apiVersion],
475
+ urlParameters: [
476
+ Parameters.$host,
477
+ Parameters.subscriptionId,
478
+ Parameters.resourceGroupName,
479
+ Parameters.organizationName,
480
+ ],
481
+ headerParameters: [Parameters.accept],
482
+ serializer,
483
+ };
484
+ const listBySubscriptionNextOperationSpec = {
485
+ path: "{nextLink}",
486
+ httpMethod: "GET",
487
+ responses: {
488
+ 200: {
489
+ bodyMapper: Mappers.OrganizationResourceListResult,
490
+ },
491
+ default: {
492
+ bodyMapper: Mappers.ErrorResponse,
493
+ },
494
+ },
495
+ urlParameters: [
496
+ Parameters.$host,
497
+ Parameters.nextLink,
498
+ Parameters.subscriptionId,
499
+ ],
500
+ headerParameters: [Parameters.accept],
501
+ serializer,
502
+ };
503
+ const listByResourceGroupNextOperationSpec = {
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
+ Parameters.resourceGroupName,
519
+ ],
520
+ headerParameters: [Parameters.accept],
521
+ serializer,
522
+ };
523
+ //# 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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;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"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * List the operations for the provider\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}