@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,38 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ AvailableOperation,
12
+ OperationsListOptionalParams,
13
+ OperationsGetOptionalParams,
14
+ OperationsGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a Operations. */
19
+ export interface Operations {
20
+ /**
21
+ * Return list of operations
22
+ * @param options The options parameters.
23
+ */
24
+ list(
25
+ options?: OperationsListOptionalParams
26
+ ): PagedAsyncIterableIterator<AvailableOperation>;
27
+ /**
28
+ * Return an async operation
29
+ * @param regionId The region Id (westus, eastus)
30
+ * @param operationId operation id
31
+ * @param options The options parameters.
32
+ */
33
+ get(
34
+ regionId: string,
35
+ operationId: string,
36
+ options?: OperationsGetOptionalParams
37
+ ): Promise<OperationsGetResponse>;
38
+ }
@@ -0,0 +1,40 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ PrivateCloud,
12
+ PrivateCloudsListOptionalParams,
13
+ PrivateCloudsGetOptionalParams,
14
+ PrivateCloudsGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a PrivateClouds. */
19
+ export interface PrivateClouds {
20
+ /**
21
+ * Returns list of private clouds in particular region
22
+ * @param regionId The region Id (westus, eastus)
23
+ * @param options The options parameters.
24
+ */
25
+ list(
26
+ regionId: string,
27
+ options?: PrivateCloudsListOptionalParams
28
+ ): PagedAsyncIterableIterator<PrivateCloud>;
29
+ /**
30
+ * Returns private cloud by its name
31
+ * @param pcName The private cloud name
32
+ * @param regionId The region Id (westus, eastus)
33
+ * @param options The options parameters.
34
+ */
35
+ get(
36
+ pcName: string,
37
+ regionId: string,
38
+ options?: PrivateCloudsGetOptionalParams
39
+ ): Promise<PrivateCloudsGetResponse>;
40
+ }
@@ -0,0 +1,44 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ ResourcePool,
12
+ ResourcePoolsListOptionalParams,
13
+ ResourcePoolsGetOptionalParams,
14
+ ResourcePoolsGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a ResourcePools. */
19
+ export interface ResourcePools {
20
+ /**
21
+ * Returns list of resource pools in region for private cloud
22
+ * @param regionId The region Id (westus, eastus)
23
+ * @param pcName The private cloud name
24
+ * @param options The options parameters.
25
+ */
26
+ list(
27
+ regionId: string,
28
+ pcName: string,
29
+ options?: ResourcePoolsListOptionalParams
30
+ ): PagedAsyncIterableIterator<ResourcePool>;
31
+ /**
32
+ * Returns resource pool templates by its name
33
+ * @param regionId The region Id (westus, eastus)
34
+ * @param pcName The private cloud name
35
+ * @param resourcePoolName resource pool id (vsphereId)
36
+ * @param options The options parameters.
37
+ */
38
+ get(
39
+ regionId: string,
40
+ pcName: string,
41
+ resourcePoolName: string,
42
+ options?: ResourcePoolsGetOptionalParams
43
+ ): Promise<ResourcePoolsGetResponse>;
44
+ }
@@ -0,0 +1,24 @@
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 } from "@azure/core-paging";
10
+ import { SkuAvailability, SkusAvailabilityListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a SkusAvailability. */
14
+ export interface SkusAvailability {
15
+ /**
16
+ * Returns list of available resources in region
17
+ * @param regionId The region Id (westus, eastus)
18
+ * @param options The options parameters.
19
+ */
20
+ list(
21
+ regionId: string,
22
+ options?: SkusAvailabilityListOptionalParams
23
+ ): PagedAsyncIterableIterator<SkuAvailability>;
24
+ }
@@ -0,0 +1,24 @@
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 } from "@azure/core-paging";
10
+ import { Usage, UsagesListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Usages. */
14
+ export interface Usages {
15
+ /**
16
+ * Returns list of usage in region
17
+ * @param regionId The region Id (westus, eastus)
18
+ * @param options The options parameters.
19
+ */
20
+ list(
21
+ regionId: string,
22
+ options?: UsagesListOptionalParams
23
+ ): PagedAsyncIterableIterator<Usage>;
24
+ }
@@ -0,0 +1,46 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ VirtualMachineTemplate,
12
+ VirtualMachineTemplatesListOptionalParams,
13
+ VirtualMachineTemplatesGetOptionalParams,
14
+ VirtualMachineTemplatesGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a VirtualMachineTemplates. */
19
+ export interface VirtualMachineTemplates {
20
+ /**
21
+ * Returns list of virtual machine templates in region for private cloud
22
+ * @param pcName The private cloud name
23
+ * @param regionId The region Id (westus, eastus)
24
+ * @param resourcePoolName Resource pool used to derive vSphere cluster which contains VM templates
25
+ * @param options The options parameters.
26
+ */
27
+ list(
28
+ pcName: string,
29
+ regionId: string,
30
+ resourcePoolName: string,
31
+ options?: VirtualMachineTemplatesListOptionalParams
32
+ ): PagedAsyncIterableIterator<VirtualMachineTemplate>;
33
+ /**
34
+ * Returns virtual machine templates by its name
35
+ * @param regionId The region Id (westus, eastus)
36
+ * @param pcName The private cloud name
37
+ * @param virtualMachineTemplateName virtual machine template id (vsphereId)
38
+ * @param options The options parameters.
39
+ */
40
+ get(
41
+ regionId: string,
42
+ pcName: string,
43
+ virtualMachineTemplateName: string,
44
+ options?: VirtualMachineTemplatesGetOptionalParams
45
+ ): Promise<VirtualMachineTemplatesGetResponse>;
46
+ }
@@ -0,0 +1,191 @@
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 } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ VirtualMachine,
13
+ VirtualMachinesListBySubscriptionOptionalParams,
14
+ VirtualMachinesListByResourceGroupOptionalParams,
15
+ VirtualMachinesGetOptionalParams,
16
+ VirtualMachinesGetResponse,
17
+ VirtualMachinesCreateOrUpdateOptionalParams,
18
+ VirtualMachinesCreateOrUpdateResponse,
19
+ VirtualMachinesDeleteOptionalParams,
20
+ VirtualMachinesDeleteResponse,
21
+ PatchPayload,
22
+ VirtualMachinesUpdateOptionalParams,
23
+ VirtualMachinesUpdateResponse,
24
+ VirtualMachinesStartOptionalParams,
25
+ VirtualMachinesStopOptionalParams
26
+ } from "../models";
27
+
28
+ /// <reference lib="esnext.asynciterable" />
29
+ /** Interface representing a VirtualMachines. */
30
+ export interface VirtualMachines {
31
+ /**
32
+ * Returns list virtual machine within subscription
33
+ * @param options The options parameters.
34
+ */
35
+ listBySubscription(
36
+ options?: VirtualMachinesListBySubscriptionOptionalParams
37
+ ): PagedAsyncIterableIterator<VirtualMachine>;
38
+ /**
39
+ * Returns list of virtual machine within resource group
40
+ * @param resourceGroupName The name of the resource group
41
+ * @param options The options parameters.
42
+ */
43
+ listByResourceGroup(
44
+ resourceGroupName: string,
45
+ options?: VirtualMachinesListByResourceGroupOptionalParams
46
+ ): PagedAsyncIterableIterator<VirtualMachine>;
47
+ /**
48
+ * Get virtual machine
49
+ * @param resourceGroupName The name of the resource group
50
+ * @param virtualMachineName virtual machine name
51
+ * @param options The options parameters.
52
+ */
53
+ get(
54
+ resourceGroupName: string,
55
+ virtualMachineName: string,
56
+ options?: VirtualMachinesGetOptionalParams
57
+ ): Promise<VirtualMachinesGetResponse>;
58
+ /**
59
+ * Create Or Update Virtual Machine
60
+ * @param resourceGroupName The name of the resource group
61
+ * @param virtualMachineName virtual machine name
62
+ * @param virtualMachineRequest Create or Update Virtual Machine request
63
+ * @param options The options parameters.
64
+ */
65
+ beginCreateOrUpdate(
66
+ resourceGroupName: string,
67
+ virtualMachineName: string,
68
+ virtualMachineRequest: VirtualMachine,
69
+ options?: VirtualMachinesCreateOrUpdateOptionalParams
70
+ ): Promise<
71
+ PollerLike<
72
+ PollOperationState<VirtualMachinesCreateOrUpdateResponse>,
73
+ VirtualMachinesCreateOrUpdateResponse
74
+ >
75
+ >;
76
+ /**
77
+ * Create Or Update Virtual Machine
78
+ * @param resourceGroupName The name of the resource group
79
+ * @param virtualMachineName virtual machine name
80
+ * @param virtualMachineRequest Create or Update Virtual Machine request
81
+ * @param options The options parameters.
82
+ */
83
+ beginCreateOrUpdateAndWait(
84
+ resourceGroupName: string,
85
+ virtualMachineName: string,
86
+ virtualMachineRequest: VirtualMachine,
87
+ options?: VirtualMachinesCreateOrUpdateOptionalParams
88
+ ): Promise<VirtualMachinesCreateOrUpdateResponse>;
89
+ /**
90
+ * Delete virtual machine
91
+ * @param resourceGroupName The name of the resource group
92
+ * @param virtualMachineName virtual machine name
93
+ * @param options The options parameters.
94
+ */
95
+ beginDelete(
96
+ resourceGroupName: string,
97
+ virtualMachineName: string,
98
+ options?: VirtualMachinesDeleteOptionalParams
99
+ ): Promise<
100
+ PollerLike<
101
+ PollOperationState<VirtualMachinesDeleteResponse>,
102
+ VirtualMachinesDeleteResponse
103
+ >
104
+ >;
105
+ /**
106
+ * Delete virtual machine
107
+ * @param resourceGroupName The name of the resource group
108
+ * @param virtualMachineName virtual machine name
109
+ * @param options The options parameters.
110
+ */
111
+ beginDeleteAndWait(
112
+ resourceGroupName: string,
113
+ virtualMachineName: string,
114
+ options?: VirtualMachinesDeleteOptionalParams
115
+ ): Promise<VirtualMachinesDeleteResponse>;
116
+ /**
117
+ * Patch virtual machine properties
118
+ * @param resourceGroupName The name of the resource group
119
+ * @param virtualMachineName virtual machine name
120
+ * @param virtualMachineRequest Patch virtual machine request
121
+ * @param options The options parameters.
122
+ */
123
+ beginUpdate(
124
+ resourceGroupName: string,
125
+ virtualMachineName: string,
126
+ virtualMachineRequest: PatchPayload,
127
+ options?: VirtualMachinesUpdateOptionalParams
128
+ ): Promise<
129
+ PollerLike<
130
+ PollOperationState<VirtualMachinesUpdateResponse>,
131
+ VirtualMachinesUpdateResponse
132
+ >
133
+ >;
134
+ /**
135
+ * Patch virtual machine properties
136
+ * @param resourceGroupName The name of the resource group
137
+ * @param virtualMachineName virtual machine name
138
+ * @param virtualMachineRequest Patch virtual machine request
139
+ * @param options The options parameters.
140
+ */
141
+ beginUpdateAndWait(
142
+ resourceGroupName: string,
143
+ virtualMachineName: string,
144
+ virtualMachineRequest: PatchPayload,
145
+ options?: VirtualMachinesUpdateOptionalParams
146
+ ): Promise<VirtualMachinesUpdateResponse>;
147
+ /**
148
+ * Power on virtual machine
149
+ * @param resourceGroupName The name of the resource group
150
+ * @param virtualMachineName virtual machine name
151
+ * @param options The options parameters.
152
+ */
153
+ beginStart(
154
+ resourceGroupName: string,
155
+ virtualMachineName: string,
156
+ options?: VirtualMachinesStartOptionalParams
157
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
158
+ /**
159
+ * Power on virtual machine
160
+ * @param resourceGroupName The name of the resource group
161
+ * @param virtualMachineName virtual machine name
162
+ * @param options The options parameters.
163
+ */
164
+ beginStartAndWait(
165
+ resourceGroupName: string,
166
+ virtualMachineName: string,
167
+ options?: VirtualMachinesStartOptionalParams
168
+ ): Promise<void>;
169
+ /**
170
+ * Power off virtual machine, options: shutdown, poweroff, and suspend
171
+ * @param resourceGroupName The name of the resource group
172
+ * @param virtualMachineName virtual machine name
173
+ * @param options The options parameters.
174
+ */
175
+ beginStop(
176
+ resourceGroupName: string,
177
+ virtualMachineName: string,
178
+ options?: VirtualMachinesStopOptionalParams
179
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
180
+ /**
181
+ * Power off virtual machine, options: shutdown, poweroff, and suspend
182
+ * @param resourceGroupName The name of the resource group
183
+ * @param virtualMachineName virtual machine name
184
+ * @param options The options parameters.
185
+ */
186
+ beginStopAndWait(
187
+ resourceGroupName: string,
188
+ virtualMachineName: string,
189
+ options?: VirtualMachinesStopOptionalParams
190
+ ): Promise<void>;
191
+ }
@@ -0,0 +1,46 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ VirtualNetwork,
12
+ VirtualNetworksListOptionalParams,
13
+ VirtualNetworksGetOptionalParams,
14
+ VirtualNetworksGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a VirtualNetworks. */
19
+ export interface VirtualNetworks {
20
+ /**
21
+ * Return list of virtual networks in location for private cloud
22
+ * @param regionId The region Id (westus, eastus)
23
+ * @param pcName The private cloud name
24
+ * @param resourcePoolName Resource pool used to derive vSphere cluster which contains virtual networks
25
+ * @param options The options parameters.
26
+ */
27
+ list(
28
+ regionId: string,
29
+ pcName: string,
30
+ resourcePoolName: string,
31
+ options?: VirtualNetworksListOptionalParams
32
+ ): PagedAsyncIterableIterator<VirtualNetwork>;
33
+ /**
34
+ * Return virtual network by its name
35
+ * @param regionId The region Id (westus, eastus)
36
+ * @param pcName The private cloud name
37
+ * @param virtualNetworkName virtual network id (vsphereId)
38
+ * @param options The options parameters.
39
+ */
40
+ get(
41
+ regionId: string,
42
+ pcName: string,
43
+ virtualNetworkName: string,
44
+ options?: VirtualNetworksGetOptionalParams
45
+ ): Promise<VirtualNetworksGetResponse>;
46
+ }
@@ -0,0 +1,126 @@
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 * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ OperationsImpl,
13
+ DedicatedCloudNodesImpl,
14
+ DedicatedCloudServicesImpl,
15
+ SkusAvailabilityImpl,
16
+ PrivateCloudsImpl,
17
+ CustomizationPoliciesImpl,
18
+ ResourcePoolsImpl,
19
+ VirtualMachineTemplatesImpl,
20
+ VirtualNetworksImpl,
21
+ UsagesImpl,
22
+ VirtualMachinesImpl
23
+ } from "./operations";
24
+ import {
25
+ Operations,
26
+ DedicatedCloudNodes,
27
+ DedicatedCloudServices,
28
+ SkusAvailability,
29
+ PrivateClouds,
30
+ CustomizationPolicies,
31
+ ResourcePools,
32
+ VirtualMachineTemplates,
33
+ VirtualNetworks,
34
+ Usages,
35
+ VirtualMachines
36
+ } from "./operationsInterfaces";
37
+ import { VMwareCloudSimpleOptionalParams } from "./models";
38
+
39
+ export class VMwareCloudSimple extends coreClient.ServiceClient {
40
+ $host: string;
41
+ apiVersion: string;
42
+ subscriptionId: string;
43
+ referer: string;
44
+
45
+ /**
46
+ * Initializes a new instance of the VMwareCloudSimple class.
47
+ * @param credentials Subscription credentials which uniquely identify client subscription.
48
+ * @param subscriptionId The subscription ID.
49
+ * @param referer referer url
50
+ * @param options The parameter options
51
+ */
52
+ constructor(
53
+ credentials: coreAuth.TokenCredential,
54
+ subscriptionId: string,
55
+ referer: string,
56
+ options?: VMwareCloudSimpleOptionalParams
57
+ ) {
58
+ if (credentials === undefined) {
59
+ throw new Error("'credentials' cannot be null");
60
+ }
61
+ if (subscriptionId === undefined) {
62
+ throw new Error("'subscriptionId' cannot be null");
63
+ }
64
+ if (referer === undefined) {
65
+ throw new Error("'referer' cannot be null");
66
+ }
67
+
68
+ // Initializing default values for options
69
+ if (!options) {
70
+ options = {};
71
+ }
72
+ const defaults: VMwareCloudSimpleOptionalParams = {
73
+ requestContentType: "application/json; charset=utf-8",
74
+ credential: credentials
75
+ };
76
+
77
+ const packageDetails = `azsdk-js-arm-vmwarecloudsimple/2.0.0`;
78
+ const userAgentPrefix =
79
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
80
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
81
+ : `${packageDetails}`;
82
+
83
+ if (!options.credentialScopes) {
84
+ options.credentialScopes = ["https://management.azure.com/.default"];
85
+ }
86
+ const optionsWithDefaults = {
87
+ ...defaults,
88
+ ...options,
89
+ userAgentOptions: {
90
+ userAgentPrefix
91
+ },
92
+ baseUri: options.endpoint || "https://management.azure.com"
93
+ };
94
+ super(optionsWithDefaults);
95
+ // Parameter assignments
96
+ this.subscriptionId = subscriptionId;
97
+ this.referer = referer;
98
+
99
+ // Assigning values to Constant parameters
100
+ this.$host = options.$host || "https://management.azure.com";
101
+ this.apiVersion = options.apiVersion || "2019-04-01";
102
+ this.operations = new OperationsImpl(this);
103
+ this.dedicatedCloudNodes = new DedicatedCloudNodesImpl(this);
104
+ this.dedicatedCloudServices = new DedicatedCloudServicesImpl(this);
105
+ this.skusAvailability = new SkusAvailabilityImpl(this);
106
+ this.privateClouds = new PrivateCloudsImpl(this);
107
+ this.customizationPolicies = new CustomizationPoliciesImpl(this);
108
+ this.resourcePools = new ResourcePoolsImpl(this);
109
+ this.virtualMachineTemplates = new VirtualMachineTemplatesImpl(this);
110
+ this.virtualNetworks = new VirtualNetworksImpl(this);
111
+ this.usages = new UsagesImpl(this);
112
+ this.virtualMachines = new VirtualMachinesImpl(this);
113
+ }
114
+
115
+ operations: Operations;
116
+ dedicatedCloudNodes: DedicatedCloudNodes;
117
+ dedicatedCloudServices: DedicatedCloudServices;
118
+ skusAvailability: SkusAvailability;
119
+ privateClouds: PrivateClouds;
120
+ customizationPolicies: CustomizationPolicies;
121
+ resourcePools: ResourcePools;
122
+ virtualMachineTemplates: VirtualMachineTemplates;
123
+ virtualNetworks: VirtualNetworks;
124
+ usages: Usages;
125
+ virtualMachines: VirtualMachines;
126
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }