@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
@@ -1,132 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import {
10
- OperationParameter,
11
- OperationURLParameter,
12
- OperationQueryParameter,
13
- } from "@azure/core-client";
14
- import {
15
- OrganizationResource as OrganizationResourceMapper,
16
- OrganizationResourceUpdate as OrganizationResourceUpdateMapper,
17
- } from "../models/mappers";
18
-
19
- export const accept: OperationParameter = {
20
- parameterPath: "accept",
21
- mapper: {
22
- defaultValue: "application/json",
23
- isConstant: true,
24
- serializedName: "Accept",
25
- type: {
26
- name: "String",
27
- },
28
- },
29
- };
30
-
31
- export const $host: OperationURLParameter = {
32
- parameterPath: "$host",
33
- mapper: {
34
- serializedName: "$host",
35
- required: true,
36
- type: {
37
- name: "String",
38
- },
39
- },
40
- skipEncoding: true,
41
- };
42
-
43
- export const apiVersion: OperationQueryParameter = {
44
- parameterPath: "apiVersion",
45
- mapper: {
46
- defaultValue: "2023-08-01",
47
- isConstant: true,
48
- serializedName: "api-version",
49
- type: {
50
- name: "String",
51
- },
52
- },
53
- };
54
-
55
- export const nextLink: OperationURLParameter = {
56
- parameterPath: "nextLink",
57
- mapper: {
58
- serializedName: "nextLink",
59
- required: true,
60
- type: {
61
- name: "String",
62
- },
63
- },
64
- skipEncoding: true,
65
- };
66
-
67
- export const subscriptionId: OperationURLParameter = {
68
- parameterPath: "subscriptionId",
69
- mapper: {
70
- constraints: {
71
- MinLength: 1,
72
- },
73
- serializedName: "subscriptionId",
74
- required: true,
75
- type: {
76
- name: "String",
77
- },
78
- },
79
- };
80
-
81
- export const resourceGroupName: OperationURLParameter = {
82
- parameterPath: "resourceGroupName",
83
- mapper: {
84
- constraints: {
85
- MaxLength: 90,
86
- MinLength: 1,
87
- },
88
- serializedName: "resourceGroupName",
89
- required: true,
90
- type: {
91
- name: "String",
92
- },
93
- },
94
- };
95
-
96
- export const organizationName: OperationURLParameter = {
97
- parameterPath: "organizationName",
98
- mapper: {
99
- constraints: {
100
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
101
- MaxLength: 50,
102
- MinLength: 1,
103
- },
104
- serializedName: "organizationName",
105
- required: true,
106
- type: {
107
- name: "String",
108
- },
109
- },
110
- };
111
-
112
- export const contentType: OperationParameter = {
113
- parameterPath: ["options", "contentType"],
114
- mapper: {
115
- defaultValue: "application/json",
116
- isConstant: true,
117
- serializedName: "Content-Type",
118
- type: {
119
- name: "String",
120
- },
121
- },
122
- };
123
-
124
- export const resource: OperationParameter = {
125
- parameterPath: "resource",
126
- mapper: OrganizationResourceMapper,
127
- };
128
-
129
- export const properties: OperationParameter = {
130
- parameterPath: "properties",
131
- mapper: OrganizationResourceUpdateMapper,
132
- };
@@ -1,149 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Operations } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { AstroManagementClient } from "../astroManagementClient";
16
- import {
17
- Operation,
18
- OperationsListNextOptionalParams,
19
- OperationsListOptionalParams,
20
- OperationsListResponse,
21
- OperationsListNextResponse,
22
- } from "../models";
23
-
24
- /// <reference lib="esnext.asynciterable" />
25
- /** Class containing Operations operations. */
26
- export class OperationsImpl implements Operations {
27
- private readonly client: AstroManagementClient;
28
-
29
- /**
30
- * Initialize a new instance of the class Operations class.
31
- * @param client Reference to the service client
32
- */
33
- constructor(client: AstroManagementClient) {
34
- this.client = client;
35
- }
36
-
37
- /**
38
- * List the operations for the provider
39
- * @param options The options parameters.
40
- */
41
- public list(
42
- options?: OperationsListOptionalParams,
43
- ): PagedAsyncIterableIterator<Operation> {
44
- const iter = this.listPagingAll(options);
45
- return {
46
- next() {
47
- return iter.next();
48
- },
49
- [Symbol.asyncIterator]() {
50
- return this;
51
- },
52
- byPage: (settings?: PageSettings) => {
53
- if (settings?.maxPageSize) {
54
- throw new Error("maxPageSize is not supported by this operation.");
55
- }
56
- return this.listPagingPage(options, settings);
57
- },
58
- };
59
- }
60
-
61
- private async *listPagingPage(
62
- options?: OperationsListOptionalParams,
63
- settings?: PageSettings,
64
- ): AsyncIterableIterator<Operation[]> {
65
- let result: OperationsListResponse;
66
- let continuationToken = settings?.continuationToken;
67
- if (!continuationToken) {
68
- result = await this._list(options);
69
- let page = result.value || [];
70
- continuationToken = result.nextLink;
71
- setContinuationToken(page, continuationToken);
72
- yield page;
73
- }
74
- while (continuationToken) {
75
- result = await this._listNext(continuationToken, options);
76
- continuationToken = result.nextLink;
77
- let page = result.value || [];
78
- setContinuationToken(page, continuationToken);
79
- yield page;
80
- }
81
- }
82
-
83
- private async *listPagingAll(
84
- options?: OperationsListOptionalParams,
85
- ): AsyncIterableIterator<Operation> {
86
- for await (const page of this.listPagingPage(options)) {
87
- yield* page;
88
- }
89
- }
90
-
91
- /**
92
- * List the operations for the provider
93
- * @param options The options parameters.
94
- */
95
- private _list(
96
- options?: OperationsListOptionalParams,
97
- ): Promise<OperationsListResponse> {
98
- return this.client.sendOperationRequest({ options }, listOperationSpec);
99
- }
100
-
101
- /**
102
- * ListNext
103
- * @param nextLink The nextLink from the previous successful call to the List method.
104
- * @param options The options parameters.
105
- */
106
- private _listNext(
107
- nextLink: string,
108
- options?: OperationsListNextOptionalParams,
109
- ): Promise<OperationsListNextResponse> {
110
- return this.client.sendOperationRequest(
111
- { nextLink, options },
112
- listNextOperationSpec,
113
- );
114
- }
115
- }
116
- // Operation Specifications
117
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
118
-
119
- const listOperationSpec: coreClient.OperationSpec = {
120
- path: "/providers/Astronomer.Astro/operations",
121
- httpMethod: "GET",
122
- responses: {
123
- 200: {
124
- bodyMapper: Mappers.OperationListResult,
125
- },
126
- default: {
127
- bodyMapper: Mappers.ErrorResponse,
128
- },
129
- },
130
- queryParameters: [Parameters.apiVersion],
131
- urlParameters: [Parameters.$host],
132
- headerParameters: [Parameters.accept],
133
- serializer,
134
- };
135
- const listNextOperationSpec: coreClient.OperationSpec = {
136
- path: "{nextLink}",
137
- httpMethod: "GET",
138
- responses: {
139
- 200: {
140
- bodyMapper: Mappers.OperationListResult,
141
- },
142
- default: {
143
- bodyMapper: Mappers.ErrorResponse,
144
- },
145
- },
146
- urlParameters: [Parameters.$host, Parameters.nextLink],
147
- headerParameters: [Parameters.accept],
148
- serializer,
149
- };