@azure/arm-vmwarecloudsimple 1.1.1 → 2.0.0

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 (283) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +5683 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1328 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +44 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +59 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +1185 -834
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +35 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +157 -106
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/customizationPolicies.d.ts +46 -0
  29. package/dist-esm/src/operations/customizationPolicies.d.ts.map +1 -0
  30. package/dist-esm/src/operations/customizationPolicies.js +169 -0
  31. package/dist-esm/src/operations/customizationPolicies.js.map +1 -0
  32. package/dist-esm/src/operations/dedicatedCloudNodes.d.ts +92 -0
  33. package/dist-esm/src/operations/dedicatedCloudNodes.d.ts.map +1 -0
  34. package/dist-esm/src/operations/dedicatedCloudNodes.js +446 -0
  35. package/dist-esm/src/operations/dedicatedCloudNodes.js.map +1 -0
  36. package/dist-esm/src/operations/dedicatedCloudServices.d.ts +91 -0
  37. package/dist-esm/src/operations/dedicatedCloudServices.d.ts.map +1 -0
  38. package/dist-esm/src/operations/dedicatedCloudServices.js +431 -0
  39. package/dist-esm/src/operations/dedicatedCloudServices.js.map +1 -0
  40. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/operations/index.js +4 -5
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +39 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +155 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/privateClouds.d.ts +42 -0
  49. package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
  50. package/dist-esm/src/operations/privateClouds.js +162 -0
  51. package/dist-esm/src/operations/privateClouds.js.map +1 -0
  52. package/dist-esm/src/operations/resourcePools.d.ts +46 -0
  53. package/dist-esm/src/operations/resourcePools.d.ts.map +1 -0
  54. package/dist-esm/src/operations/resourcePools.js +169 -0
  55. package/dist-esm/src/operations/resourcePools.js.map +1 -0
  56. package/dist-esm/src/operations/skusAvailability.d.ts +35 -0
  57. package/dist-esm/src/operations/skusAvailability.d.ts.map +1 -0
  58. package/dist-esm/src/operations/skusAvailability.js +132 -0
  59. package/dist-esm/src/operations/skusAvailability.js.map +1 -0
  60. package/dist-esm/src/operations/usages.d.ts +35 -0
  61. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  62. package/dist-esm/src/operations/usages.js +132 -0
  63. package/dist-esm/src/operations/usages.js.map +1 -0
  64. package/dist-esm/src/operations/virtualMachineTemplates.d.ts +49 -0
  65. package/dist-esm/src/operations/virtualMachineTemplates.d.ts.map +1 -0
  66. package/dist-esm/src/operations/virtualMachineTemplates.js +172 -0
  67. package/dist-esm/src/operations/virtualMachineTemplates.js.map +1 -0
  68. package/dist-esm/src/operations/virtualMachines.d.ts +135 -0
  69. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
  70. package/dist-esm/src/operations/virtualMachines.js +687 -0
  71. package/dist-esm/src/operations/virtualMachines.js.map +1 -0
  72. package/dist-esm/src/operations/virtualNetworks.d.ts +49 -0
  73. package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -0
  74. package/dist-esm/src/operations/virtualNetworks.js +172 -0
  75. package/dist-esm/src/operations/virtualNetworks.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/customizationPolicies.d.ts +21 -0
  77. package/dist-esm/src/operationsInterfaces/customizationPolicies.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/customizationPolicies.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/customizationPolicies.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.d.ts +56 -0
  81. package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.d.ts +55 -0
  85. package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
  89. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/index.js +19 -0
  91. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +18 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +19 -0
  97. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/resourcePools.d.ts +21 -0
  101. package/dist-esm/src/operationsInterfaces/resourcePools.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/resourcePools.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/resourcePools.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/skusAvailability.d.ts +12 -0
  105. package/dist-esm/src/operationsInterfaces/skusAvailability.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/skusAvailability.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/skusAvailability.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  109. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts +22 -0
  113. package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +99 -0
  117. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts +22 -0
  121. package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/virtualNetworks.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/virtualNetworks.js.map +1 -0
  124. package/dist-esm/src/vMwareCloudSimple.d.ts +30 -0
  125. package/dist-esm/src/vMwareCloudSimple.d.ts.map +1 -0
  126. package/dist-esm/src/vMwareCloudSimple.js +66 -0
  127. package/dist-esm/src/vMwareCloudSimple.js.map +1 -0
  128. package/dist-esm/test/sampleTest.d.ts +2 -0
  129. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  130. package/dist-esm/test/sampleTest.js +40 -0
  131. package/dist-esm/test/sampleTest.js.map +1 -0
  132. package/package.json +70 -32
  133. package/review/arm-vmwarecloudsimple.api.md +1140 -0
  134. package/rollup.config.js +181 -30
  135. package/src/index.ts +12 -0
  136. package/src/lroImpl.ts +34 -0
  137. package/src/models/index.ts +1155 -1956
  138. package/src/models/mappers.ts +1229 -846
  139. package/src/models/parameters.ts +200 -107
  140. package/src/operations/customizationPolicies.ts +217 -0
  141. package/src/operations/dedicatedCloudNodes.ts +391 -317
  142. package/src/operations/dedicatedCloudServices.ts +372 -319
  143. package/src/operations/index.ts +4 -5
  144. package/src/operations/operations.ts +117 -125
  145. package/src/operations/privateClouds.ts +131 -123
  146. package/src/operations/resourcePools.ts +145 -129
  147. package/src/operations/skusAvailability.ts +109 -85
  148. package/src/operations/usages.ts +109 -85
  149. package/src/operations/virtualMachineTemplates.ts +162 -132
  150. package/src/operations/virtualMachines.ts +705 -403
  151. package/src/operations/virtualNetworks.ts +163 -136
  152. package/src/operationsInterfaces/customizationPolicies.ts +44 -0
  153. package/src/operationsInterfaces/dedicatedCloudNodes.ts +110 -0
  154. package/src/operationsInterfaces/dedicatedCloudServices.ts +103 -0
  155. package/src/operationsInterfaces/index.ts +19 -0
  156. package/src/operationsInterfaces/operations.ts +38 -0
  157. package/src/operationsInterfaces/privateClouds.ts +40 -0
  158. package/src/operationsInterfaces/resourcePools.ts +44 -0
  159. package/src/operationsInterfaces/skusAvailability.ts +24 -0
  160. package/src/operationsInterfaces/usages.ts +24 -0
  161. package/src/operationsInterfaces/virtualMachineTemplates.ts +46 -0
  162. package/src/operationsInterfaces/virtualMachines.ts +191 -0
  163. package/src/operationsInterfaces/virtualNetworks.ts +46 -0
  164. package/src/vMwareCloudSimple.ts +126 -0
  165. package/tsconfig.json +3 -3
  166. package/types/arm-vmwarecloudsimple.d.ts +1861 -0
  167. package/types/tsdoc-metadata.json +11 -0
  168. package/dist/arm-vmwarecloudsimple.js +0 -4540
  169. package/dist/arm-vmwarecloudsimple.js.map +0 -1
  170. package/dist/arm-vmwarecloudsimple.min.js +0 -1
  171. package/dist/arm-vmwarecloudsimple.min.js.map +0 -1
  172. package/esm/models/dedicatedCloudNodesMappers.d.ts +0 -2
  173. package/esm/models/dedicatedCloudNodesMappers.d.ts.map +0 -1
  174. package/esm/models/dedicatedCloudNodesMappers.js +0 -9
  175. package/esm/models/dedicatedCloudNodesMappers.js.map +0 -1
  176. package/esm/models/dedicatedCloudServicesMappers.d.ts +0 -2
  177. package/esm/models/dedicatedCloudServicesMappers.d.ts.map +0 -1
  178. package/esm/models/dedicatedCloudServicesMappers.js +0 -9
  179. package/esm/models/dedicatedCloudServicesMappers.js.map +0 -1
  180. package/esm/models/index.d.ts +0 -2190
  181. package/esm/models/index.d.ts.map +0 -1
  182. package/esm/models/index.js +0 -8
  183. package/esm/models/index.js.map +0 -1
  184. package/esm/models/mappers.d.ts +0 -46
  185. package/esm/models/mappers.d.ts.map +0 -1
  186. package/esm/models/mappers.js.map +0 -1
  187. package/esm/models/operationsMappers.d.ts +0 -2
  188. package/esm/models/operationsMappers.d.ts.map +0 -1
  189. package/esm/models/operationsMappers.js +0 -9
  190. package/esm/models/operationsMappers.js.map +0 -1
  191. package/esm/models/parameters.d.ts +0 -24
  192. package/esm/models/parameters.d.ts.map +0 -1
  193. package/esm/models/parameters.js.map +0 -1
  194. package/esm/models/privateCloudsMappers.d.ts +0 -2
  195. package/esm/models/privateCloudsMappers.d.ts.map +0 -1
  196. package/esm/models/privateCloudsMappers.js +0 -9
  197. package/esm/models/privateCloudsMappers.js.map +0 -1
  198. package/esm/models/resourcePoolsMappers.d.ts +0 -2
  199. package/esm/models/resourcePoolsMappers.d.ts.map +0 -1
  200. package/esm/models/resourcePoolsMappers.js +0 -9
  201. package/esm/models/resourcePoolsMappers.js.map +0 -1
  202. package/esm/models/skusAvailabilityMappers.d.ts +0 -2
  203. package/esm/models/skusAvailabilityMappers.d.ts.map +0 -1
  204. package/esm/models/skusAvailabilityMappers.js +0 -9
  205. package/esm/models/skusAvailabilityMappers.js.map +0 -1
  206. package/esm/models/usagesMappers.d.ts +0 -2
  207. package/esm/models/usagesMappers.d.ts.map +0 -1
  208. package/esm/models/usagesMappers.js +0 -9
  209. package/esm/models/usagesMappers.js.map +0 -1
  210. package/esm/models/virtualMachineTemplatesMappers.d.ts +0 -2
  211. package/esm/models/virtualMachineTemplatesMappers.d.ts.map +0 -1
  212. package/esm/models/virtualMachineTemplatesMappers.js +0 -9
  213. package/esm/models/virtualMachineTemplatesMappers.js.map +0 -1
  214. package/esm/models/virtualMachinesMappers.d.ts +0 -2
  215. package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
  216. package/esm/models/virtualMachinesMappers.js +0 -9
  217. package/esm/models/virtualMachinesMappers.js.map +0 -1
  218. package/esm/models/virtualNetworksMappers.d.ts +0 -2
  219. package/esm/models/virtualNetworksMappers.d.ts.map +0 -1
  220. package/esm/models/virtualNetworksMappers.js +0 -9
  221. package/esm/models/virtualNetworksMappers.js.map +0 -1
  222. package/esm/operations/dedicatedCloudNodes.d.ts +0 -173
  223. package/esm/operations/dedicatedCloudNodes.d.ts.map +0 -1
  224. package/esm/operations/dedicatedCloudNodes.js +0 -304
  225. package/esm/operations/dedicatedCloudNodes.js.map +0 -1
  226. package/esm/operations/dedicatedCloudServices.d.ts +0 -174
  227. package/esm/operations/dedicatedCloudServices.d.ts.map +0 -1
  228. package/esm/operations/dedicatedCloudServices.js +0 -300
  229. package/esm/operations/dedicatedCloudServices.js.map +0 -1
  230. package/esm/operations/index.d.ts.map +0 -1
  231. package/esm/operations/index.js.map +0 -1
  232. package/esm/operations/operations.d.ts +0 -70
  233. package/esm/operations/operations.d.ts.map +0 -1
  234. package/esm/operations/operations.js +0 -116
  235. package/esm/operations/operations.js.map +0 -1
  236. package/esm/operations/privateClouds.d.ts +0 -73
  237. package/esm/operations/privateClouds.d.ts.map +0 -1
  238. package/esm/operations/privateClouds.js +0 -113
  239. package/esm/operations/privateClouds.js.map +0 -1
  240. package/esm/operations/resourcePools.d.ts +0 -79
  241. package/esm/operations/resourcePools.d.ts.map +0 -1
  242. package/esm/operations/resourcePools.js +0 -117
  243. package/esm/operations/resourcePools.js.map +0 -1
  244. package/esm/operations/skusAvailability.d.ts +0 -51
  245. package/esm/operations/skusAvailability.d.ts.map +0 -1
  246. package/esm/operations/skusAvailability.js +0 -83
  247. package/esm/operations/skusAvailability.js.map +0 -1
  248. package/esm/operations/usages.d.ts +0 -51
  249. package/esm/operations/usages.d.ts.map +0 -1
  250. package/esm/operations/usages.js +0 -83
  251. package/esm/operations/usages.js.map +0 -1
  252. package/esm/operations/virtualMachineTemplates.d.ts +0 -82
  253. package/esm/operations/virtualMachineTemplates.d.ts.map +0 -1
  254. package/esm/operations/virtualMachineTemplates.js +0 -119
  255. package/esm/operations/virtualMachineTemplates.js.map +0 -1
  256. package/esm/operations/virtualMachines.d.ts +0 -201
  257. package/esm/operations/virtualMachines.d.ts.map +0 -1
  258. package/esm/operations/virtualMachines.js +0 -472
  259. package/esm/operations/virtualMachines.js.map +0 -1
  260. package/esm/operations/virtualNetworks.d.ts +0 -85
  261. package/esm/operations/virtualNetworks.d.ts.map +0 -1
  262. package/esm/operations/virtualNetworks.js +0 -119
  263. package/esm/operations/virtualNetworks.js.map +0 -1
  264. package/esm/vMwareCloudSimpleClient.d.ts +0 -34
  265. package/esm/vMwareCloudSimpleClient.d.ts.map +0 -1
  266. package/esm/vMwareCloudSimpleClient.js +0 -48
  267. package/esm/vMwareCloudSimpleClient.js.map +0 -1
  268. package/esm/vMwareCloudSimpleClientContext.d.ts +0 -24
  269. package/esm/vMwareCloudSimpleClientContext.d.ts.map +0 -1
  270. package/esm/vMwareCloudSimpleClientContext.js +0 -66
  271. package/esm/vMwareCloudSimpleClientContext.js.map +0 -1
  272. package/src/models/dedicatedCloudNodesMappers.ts +0 -26
  273. package/src/models/dedicatedCloudServicesMappers.ts +0 -25
  274. package/src/models/operationsMappers.ts +0 -20
  275. package/src/models/privateCloudsMappers.ts +0 -20
  276. package/src/models/resourcePoolsMappers.ts +0 -14
  277. package/src/models/skusAvailabilityMappers.ts +0 -14
  278. package/src/models/usagesMappers.ts +0 -15
  279. package/src/models/virtualMachineTemplatesMappers.ts +0 -18
  280. package/src/models/virtualMachinesMappers.ts +0 -29
  281. package/src/models/virtualNetworksMappers.ts +0 -14
  282. package/src/vMwareCloudSimpleClient.ts +0 -67
  283. package/src/vMwareCloudSimpleClientContext.ts +0 -74
@@ -0,0 +1,687 @@
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, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing VirtualMachines operations. */
16
+ export class VirtualMachinesImpl {
17
+ /**
18
+ * Initialize a new instance of the class VirtualMachines class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Returns list virtual machine within subscription
26
+ * @param options The options parameters.
27
+ */
28
+ listBySubscription(options) {
29
+ const iter = this.listBySubscriptionPagingAll(options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listBySubscriptionPagingPage(options);
39
+ }
40
+ };
41
+ }
42
+ listBySubscriptionPagingPage(options) {
43
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
44
+ let result = yield __await(this._listBySubscription(options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listBySubscriptionPagingAll(options) {
55
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Returns list of virtual machine within resource group
74
+ * @param resourceGroupName The name of the resource group
75
+ * @param options The options parameters.
76
+ */
77
+ listByResourceGroup(resourceGroupName, options) {
78
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
79
+ return {
80
+ next() {
81
+ return iter.next();
82
+ },
83
+ [Symbol.asyncIterator]() {
84
+ return this;
85
+ },
86
+ byPage: () => {
87
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
88
+ }
89
+ };
90
+ }
91
+ listByResourceGroupPagingPage(resourceGroupName, options) {
92
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
93
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
94
+ yield yield __await(result.value || []);
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
98
+ continuationToken = result.nextLink;
99
+ yield yield __await(result.value || []);
100
+ }
101
+ });
102
+ }
103
+ listByResourceGroupPagingAll(resourceGroupName, options) {
104
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
105
+ var e_2, _a;
106
+ try {
107
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
108
+ const page = _c.value;
109
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
+ }
111
+ }
112
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
+ finally {
114
+ try {
115
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
116
+ }
117
+ finally { if (e_2) throw e_2.error; }
118
+ }
119
+ });
120
+ }
121
+ /**
122
+ * Returns list virtual machine within subscription
123
+ * @param options The options parameters.
124
+ */
125
+ _listBySubscription(options) {
126
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
127
+ }
128
+ /**
129
+ * Returns list of virtual machine within resource group
130
+ * @param resourceGroupName The name of the resource group
131
+ * @param options The options parameters.
132
+ */
133
+ _listByResourceGroup(resourceGroupName, options) {
134
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
135
+ }
136
+ /**
137
+ * Get virtual machine
138
+ * @param resourceGroupName The name of the resource group
139
+ * @param virtualMachineName virtual machine name
140
+ * @param options The options parameters.
141
+ */
142
+ get(resourceGroupName, virtualMachineName, options) {
143
+ return this.client.sendOperationRequest({ resourceGroupName, virtualMachineName, options }, getOperationSpec);
144
+ }
145
+ /**
146
+ * Create Or Update Virtual Machine
147
+ * @param resourceGroupName The name of the resource group
148
+ * @param virtualMachineName virtual machine name
149
+ * @param virtualMachineRequest Create or Update Virtual Machine request
150
+ * @param options The options parameters.
151
+ */
152
+ beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
155
+ return this.client.sendOperationRequest(args, spec);
156
+ });
157
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
158
+ var _a;
159
+ let currentRawResponse = undefined;
160
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
161
+ const callback = (rawResponse, flatResponse) => {
162
+ currentRawResponse = rawResponse;
163
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
164
+ };
165
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
166
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
167
+ return {
168
+ flatResponse,
169
+ rawResponse: {
170
+ statusCode: currentRawResponse.status,
171
+ body: currentRawResponse.parsedBody,
172
+ headers: currentRawResponse.headers.toJSON()
173
+ }
174
+ };
175
+ });
176
+ const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, createOrUpdateOperationSpec);
177
+ return new LroEngine(lro, {
178
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
179
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
180
+ });
181
+ });
182
+ }
183
+ /**
184
+ * Create Or Update Virtual Machine
185
+ * @param resourceGroupName The name of the resource group
186
+ * @param virtualMachineName virtual machine name
187
+ * @param virtualMachineRequest Create or Update Virtual Machine request
188
+ * @param options The options parameters.
189
+ */
190
+ beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options);
193
+ return poller.pollUntilDone();
194
+ });
195
+ }
196
+ /**
197
+ * Delete virtual machine
198
+ * @param resourceGroupName The name of the resource group
199
+ * @param virtualMachineName virtual machine name
200
+ * @param options The options parameters.
201
+ */
202
+ beginDelete(resourceGroupName, virtualMachineName, options) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
205
+ return this.client.sendOperationRequest(args, spec);
206
+ });
207
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
208
+ var _a;
209
+ let currentRawResponse = undefined;
210
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
211
+ const callback = (rawResponse, flatResponse) => {
212
+ currentRawResponse = rawResponse;
213
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
214
+ };
215
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
216
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
217
+ return {
218
+ flatResponse,
219
+ rawResponse: {
220
+ statusCode: currentRawResponse.status,
221
+ body: currentRawResponse.parsedBody,
222
+ headers: currentRawResponse.headers.toJSON()
223
+ }
224
+ };
225
+ });
226
+ const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, deleteOperationSpec);
227
+ return new LroEngine(lro, {
228
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
229
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
230
+ });
231
+ });
232
+ }
233
+ /**
234
+ * Delete virtual machine
235
+ * @param resourceGroupName The name of the resource group
236
+ * @param virtualMachineName virtual machine name
237
+ * @param options The options parameters.
238
+ */
239
+ beginDeleteAndWait(resourceGroupName, virtualMachineName, options) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, options);
242
+ return poller.pollUntilDone();
243
+ });
244
+ }
245
+ /**
246
+ * Patch virtual machine properties
247
+ * @param resourceGroupName The name of the resource group
248
+ * @param virtualMachineName virtual machine name
249
+ * @param virtualMachineRequest Patch virtual machine request
250
+ * @param options The options parameters.
251
+ */
252
+ beginUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
255
+ return this.client.sendOperationRequest(args, spec);
256
+ });
257
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
258
+ var _a;
259
+ let currentRawResponse = undefined;
260
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
261
+ const callback = (rawResponse, flatResponse) => {
262
+ currentRawResponse = rawResponse;
263
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
264
+ };
265
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
266
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
267
+ return {
268
+ flatResponse,
269
+ rawResponse: {
270
+ statusCode: currentRawResponse.status,
271
+ body: currentRawResponse.parsedBody,
272
+ headers: currentRawResponse.headers.toJSON()
273
+ }
274
+ };
275
+ });
276
+ const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, updateOperationSpec);
277
+ return new LroEngine(lro, {
278
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
279
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
280
+ });
281
+ });
282
+ }
283
+ /**
284
+ * Patch virtual machine properties
285
+ * @param resourceGroupName The name of the resource group
286
+ * @param virtualMachineName virtual machine name
287
+ * @param virtualMachineRequest Patch virtual machine request
288
+ * @param options The options parameters.
289
+ */
290
+ beginUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ const poller = yield this.beginUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options);
293
+ return poller.pollUntilDone();
294
+ });
295
+ }
296
+ /**
297
+ * Power on virtual machine
298
+ * @param resourceGroupName The name of the resource group
299
+ * @param virtualMachineName virtual machine name
300
+ * @param options The options parameters.
301
+ */
302
+ beginStart(resourceGroupName, virtualMachineName, options) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
305
+ return this.client.sendOperationRequest(args, spec);
306
+ });
307
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
308
+ var _a;
309
+ let currentRawResponse = undefined;
310
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
311
+ const callback = (rawResponse, flatResponse) => {
312
+ currentRawResponse = rawResponse;
313
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
314
+ };
315
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
316
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
317
+ return {
318
+ flatResponse,
319
+ rawResponse: {
320
+ statusCode: currentRawResponse.status,
321
+ body: currentRawResponse.parsedBody,
322
+ headers: currentRawResponse.headers.toJSON()
323
+ }
324
+ };
325
+ });
326
+ const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, startOperationSpec);
327
+ return new LroEngine(lro, {
328
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
329
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
330
+ });
331
+ });
332
+ }
333
+ /**
334
+ * Power on virtual machine
335
+ * @param resourceGroupName The name of the resource group
336
+ * @param virtualMachineName virtual machine name
337
+ * @param options The options parameters.
338
+ */
339
+ beginStartAndWait(resourceGroupName, virtualMachineName, options) {
340
+ return __awaiter(this, void 0, void 0, function* () {
341
+ const poller = yield this.beginStart(resourceGroupName, virtualMachineName, options);
342
+ return poller.pollUntilDone();
343
+ });
344
+ }
345
+ /**
346
+ * Power off virtual machine, options: shutdown, poweroff, and suspend
347
+ * @param resourceGroupName The name of the resource group
348
+ * @param virtualMachineName virtual machine name
349
+ * @param options The options parameters.
350
+ */
351
+ beginStop(resourceGroupName, virtualMachineName, options) {
352
+ return __awaiter(this, void 0, void 0, function* () {
353
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
354
+ return this.client.sendOperationRequest(args, spec);
355
+ });
356
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
357
+ var _a;
358
+ let currentRawResponse = undefined;
359
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
360
+ const callback = (rawResponse, flatResponse) => {
361
+ currentRawResponse = rawResponse;
362
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
363
+ };
364
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
365
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
366
+ return {
367
+ flatResponse,
368
+ rawResponse: {
369
+ statusCode: currentRawResponse.status,
370
+ body: currentRawResponse.parsedBody,
371
+ headers: currentRawResponse.headers.toJSON()
372
+ }
373
+ };
374
+ });
375
+ const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, stopOperationSpec);
376
+ return new LroEngine(lro, {
377
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
378
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
379
+ });
380
+ });
381
+ }
382
+ /**
383
+ * Power off virtual machine, options: shutdown, poweroff, and suspend
384
+ * @param resourceGroupName The name of the resource group
385
+ * @param virtualMachineName virtual machine name
386
+ * @param options The options parameters.
387
+ */
388
+ beginStopAndWait(resourceGroupName, virtualMachineName, options) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ const poller = yield this.beginStop(resourceGroupName, virtualMachineName, options);
391
+ return poller.pollUntilDone();
392
+ });
393
+ }
394
+ /**
395
+ * ListBySubscriptionNext
396
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
397
+ * @param options The options parameters.
398
+ */
399
+ _listBySubscriptionNext(nextLink, options) {
400
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
401
+ }
402
+ /**
403
+ * ListByResourceGroupNext
404
+ * @param resourceGroupName The name of the resource group
405
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
406
+ * @param options The options parameters.
407
+ */
408
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
409
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
410
+ }
411
+ }
412
+ // Operation Specifications
413
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
414
+ const listBySubscriptionOperationSpec = {
415
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/virtualMachines",
416
+ httpMethod: "GET",
417
+ responses: {
418
+ 200: {
419
+ bodyMapper: Mappers.VirtualMachineListResponse
420
+ },
421
+ default: {
422
+ bodyMapper: Mappers.CsrpError
423
+ }
424
+ },
425
+ queryParameters: [
426
+ Parameters.apiVersion,
427
+ Parameters.filter,
428
+ Parameters.top,
429
+ Parameters.skipToken
430
+ ],
431
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
432
+ headerParameters: [Parameters.accept],
433
+ serializer
434
+ };
435
+ const listByResourceGroupOperationSpec = {
436
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines",
437
+ httpMethod: "GET",
438
+ responses: {
439
+ 200: {
440
+ bodyMapper: Mappers.VirtualMachineListResponse
441
+ },
442
+ default: {
443
+ bodyMapper: Mappers.CsrpError
444
+ }
445
+ },
446
+ queryParameters: [
447
+ Parameters.apiVersion,
448
+ Parameters.filter,
449
+ Parameters.top,
450
+ Parameters.skipToken
451
+ ],
452
+ urlParameters: [
453
+ Parameters.$host,
454
+ Parameters.subscriptionId,
455
+ Parameters.resourceGroupName
456
+ ],
457
+ headerParameters: [Parameters.accept],
458
+ serializer
459
+ };
460
+ const getOperationSpec = {
461
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
462
+ httpMethod: "GET",
463
+ responses: {
464
+ 200: {
465
+ bodyMapper: Mappers.VirtualMachine
466
+ },
467
+ default: {
468
+ bodyMapper: Mappers.CsrpError
469
+ }
470
+ },
471
+ queryParameters: [Parameters.apiVersion],
472
+ urlParameters: [
473
+ Parameters.$host,
474
+ Parameters.subscriptionId,
475
+ Parameters.resourceGroupName,
476
+ Parameters.virtualMachineName
477
+ ],
478
+ headerParameters: [Parameters.accept],
479
+ serializer
480
+ };
481
+ const createOrUpdateOperationSpec = {
482
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
483
+ httpMethod: "PUT",
484
+ responses: {
485
+ 200: {
486
+ bodyMapper: Mappers.VirtualMachine,
487
+ headersMapper: Mappers.VirtualMachinesCreateOrUpdateHeaders
488
+ },
489
+ 201: {
490
+ bodyMapper: Mappers.VirtualMachine,
491
+ headersMapper: Mappers.VirtualMachinesCreateOrUpdateHeaders
492
+ },
493
+ 202: {
494
+ bodyMapper: Mappers.VirtualMachine,
495
+ headersMapper: Mappers.VirtualMachinesCreateOrUpdateHeaders
496
+ },
497
+ 204: {
498
+ bodyMapper: Mappers.VirtualMachine,
499
+ headersMapper: Mappers.VirtualMachinesCreateOrUpdateHeaders
500
+ },
501
+ default: {
502
+ bodyMapper: Mappers.CsrpError
503
+ }
504
+ },
505
+ requestBody: Parameters.virtualMachineRequest,
506
+ queryParameters: [Parameters.apiVersion],
507
+ urlParameters: [
508
+ Parameters.$host,
509
+ Parameters.subscriptionId,
510
+ Parameters.resourceGroupName,
511
+ Parameters.virtualMachineName1
512
+ ],
513
+ headerParameters: [
514
+ Parameters.accept,
515
+ Parameters.referer,
516
+ Parameters.contentType
517
+ ],
518
+ mediaType: "json",
519
+ serializer
520
+ };
521
+ const deleteOperationSpec = {
522
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
523
+ httpMethod: "DELETE",
524
+ responses: {
525
+ 200: {
526
+ headersMapper: Mappers.VirtualMachinesDeleteHeaders
527
+ },
528
+ 201: {
529
+ headersMapper: Mappers.VirtualMachinesDeleteHeaders
530
+ },
531
+ 202: {
532
+ headersMapper: Mappers.VirtualMachinesDeleteHeaders
533
+ },
534
+ 204: {
535
+ headersMapper: Mappers.VirtualMachinesDeleteHeaders
536
+ },
537
+ default: {
538
+ bodyMapper: Mappers.CsrpError,
539
+ headersMapper: Mappers.VirtualMachinesDeleteExceptionHeaders
540
+ }
541
+ },
542
+ queryParameters: [Parameters.apiVersion],
543
+ urlParameters: [
544
+ Parameters.$host,
545
+ Parameters.subscriptionId,
546
+ Parameters.resourceGroupName,
547
+ Parameters.virtualMachineName
548
+ ],
549
+ headerParameters: [Parameters.accept, Parameters.referer],
550
+ serializer
551
+ };
552
+ const updateOperationSpec = {
553
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
554
+ httpMethod: "PATCH",
555
+ responses: {
556
+ 200: {
557
+ bodyMapper: Mappers.VirtualMachine
558
+ },
559
+ 201: {
560
+ bodyMapper: Mappers.VirtualMachine
561
+ },
562
+ 202: {
563
+ bodyMapper: Mappers.VirtualMachine
564
+ },
565
+ 204: {
566
+ bodyMapper: Mappers.VirtualMachine
567
+ },
568
+ default: {
569
+ bodyMapper: Mappers.CsrpError
570
+ }
571
+ },
572
+ requestBody: Parameters.virtualMachineRequest1,
573
+ queryParameters: [Parameters.apiVersion],
574
+ urlParameters: [
575
+ Parameters.$host,
576
+ Parameters.subscriptionId,
577
+ Parameters.resourceGroupName,
578
+ Parameters.virtualMachineName
579
+ ],
580
+ headerParameters: [Parameters.accept, Parameters.contentType],
581
+ mediaType: "json",
582
+ serializer
583
+ };
584
+ const startOperationSpec = {
585
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/start",
586
+ httpMethod: "POST",
587
+ responses: {
588
+ 200: {},
589
+ 201: {},
590
+ 202: {},
591
+ 204: {},
592
+ default: {
593
+ bodyMapper: Mappers.CsrpError,
594
+ headersMapper: Mappers.VirtualMachinesStartExceptionHeaders
595
+ }
596
+ },
597
+ queryParameters: [Parameters.apiVersion],
598
+ urlParameters: [
599
+ Parameters.$host,
600
+ Parameters.subscriptionId,
601
+ Parameters.resourceGroupName,
602
+ Parameters.virtualMachineName
603
+ ],
604
+ headerParameters: [Parameters.accept, Parameters.referer],
605
+ serializer
606
+ };
607
+ const stopOperationSpec = {
608
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/stop",
609
+ httpMethod: "POST",
610
+ responses: {
611
+ 200: {},
612
+ 201: {},
613
+ 202: {},
614
+ 204: {},
615
+ default: {
616
+ bodyMapper: Mappers.CsrpError,
617
+ headersMapper: Mappers.VirtualMachinesStopExceptionHeaders
618
+ }
619
+ },
620
+ requestBody: Parameters.m,
621
+ queryParameters: [Parameters.apiVersion, Parameters.mode],
622
+ urlParameters: [
623
+ Parameters.$host,
624
+ Parameters.subscriptionId,
625
+ Parameters.resourceGroupName,
626
+ Parameters.virtualMachineName
627
+ ],
628
+ headerParameters: [
629
+ Parameters.accept,
630
+ Parameters.referer,
631
+ Parameters.contentType
632
+ ],
633
+ mediaType: "json",
634
+ serializer
635
+ };
636
+ const listBySubscriptionNextOperationSpec = {
637
+ path: "{nextLink}",
638
+ httpMethod: "GET",
639
+ responses: {
640
+ 200: {
641
+ bodyMapper: Mappers.VirtualMachineListResponse
642
+ },
643
+ default: {
644
+ bodyMapper: Mappers.CsrpError
645
+ }
646
+ },
647
+ queryParameters: [
648
+ Parameters.apiVersion,
649
+ Parameters.filter,
650
+ Parameters.top,
651
+ Parameters.skipToken
652
+ ],
653
+ urlParameters: [
654
+ Parameters.$host,
655
+ Parameters.subscriptionId,
656
+ Parameters.nextLink
657
+ ],
658
+ headerParameters: [Parameters.accept],
659
+ serializer
660
+ };
661
+ const listByResourceGroupNextOperationSpec = {
662
+ path: "{nextLink}",
663
+ httpMethod: "GET",
664
+ responses: {
665
+ 200: {
666
+ bodyMapper: Mappers.VirtualMachineListResponse
667
+ },
668
+ default: {
669
+ bodyMapper: Mappers.CsrpError
670
+ }
671
+ },
672
+ queryParameters: [
673
+ Parameters.apiVersion,
674
+ Parameters.filter,
675
+ Parameters.top,
676
+ Parameters.skipToken
677
+ ],
678
+ urlParameters: [
679
+ Parameters.$host,
680
+ Parameters.subscriptionId,
681
+ Parameters.nextLink,
682
+ Parameters.resourceGroupName
683
+ ],
684
+ headerParameters: [Parameters.accept],
685
+ serializer
686
+ };
687
+ //# sourceMappingURL=virtualMachines.js.map