@azure/arm-avs 1.0.0 → 3.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 (301) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -73
  4. package/dist/index.js +11681 -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/azureVMwareSolutionAPI.d.ts +33 -0
  9. package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -0
  10. package/dist-esm/src/azureVMwareSolutionAPI.js +66 -0
  11. package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2962 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +363 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +115 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +3114 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +53 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +409 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/addons.d.ts +81 -0
  33. package/dist-esm/src/operations/addons.d.ts.map +1 -0
  34. package/dist-esm/src/operations/addons.js +331 -0
  35. package/dist-esm/src/operations/addons.js.map +1 -0
  36. package/dist-esm/src/operations/authorizations.d.ts +81 -0
  37. package/dist-esm/src/operations/authorizations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/authorizations.js +337 -0
  39. package/dist-esm/src/operations/authorizations.js.map +1 -0
  40. package/dist-esm/src/operations/cloudLinks.d.ts +81 -0
  41. package/dist-esm/src/operations/cloudLinks.d.ts.map +1 -0
  42. package/dist-esm/src/operations/cloudLinks.js +337 -0
  43. package/dist-esm/src/operations/cloudLinks.js.map +1 -0
  44. package/dist-esm/src/operations/clusters.d.ts +99 -0
  45. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  46. package/dist-esm/src/operations/clusters.js +423 -0
  47. package/dist-esm/src/operations/clusters.js.map +1 -0
  48. package/dist-esm/src/operations/datastores.d.ts +89 -0
  49. package/dist-esm/src/operations/datastores.d.ts.map +1 -0
  50. package/dist-esm/src/operations/datastores.js +363 -0
  51. package/dist-esm/src/operations/datastores.js.map +1 -0
  52. package/dist-esm/src/operations/globalReachConnections.d.ts +81 -0
  53. package/dist-esm/src/operations/globalReachConnections.d.ts.map +1 -0
  54. package/dist-esm/src/operations/globalReachConnections.js +347 -0
  55. package/dist-esm/src/operations/globalReachConnections.js.map +1 -0
  56. package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +63 -0
  57. package/dist-esm/src/operations/hcxEnterpriseSites.d.ts.map +1 -0
  58. package/dist-esm/src/operations/hcxEnterpriseSites.js +244 -0
  59. package/dist-esm/src/operations/hcxEnterpriseSites.js.map +1 -0
  60. package/dist-esm/src/operations/index.d.ts +17 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +24 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/locations.d.ts +25 -0
  65. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/locations.js +79 -0
  67. package/dist-esm/src/operations/locations.js.map +1 -0
  68. package/dist-esm/src/operations/operations.d.ts +32 -0
  69. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operations.js +120 -0
  71. package/dist-esm/src/operations/operations.js.map +1 -0
  72. package/dist-esm/src/operations/placementPolicies.d.ts +116 -0
  73. package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -0
  74. package/dist-esm/src/operations/placementPolicies.js +466 -0
  75. package/dist-esm/src/operations/placementPolicies.js.map +1 -0
  76. package/dist-esm/src/operations/privateClouds.d.ts +142 -0
  77. package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
  78. package/dist-esm/src/operations/privateClouds.js +672 -0
  79. package/dist-esm/src/operations/privateClouds.js.map +1 -0
  80. package/dist-esm/src/operations/scriptCmdlets.d.ts +53 -0
  81. package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -0
  82. package/dist-esm/src/operations/scriptCmdlets.js +191 -0
  83. package/dist-esm/src/operations/scriptCmdlets.js.map +1 -0
  84. package/dist-esm/src/operations/scriptExecutions.d.ts +89 -0
  85. package/dist-esm/src/operations/scriptExecutions.d.ts.map +1 -0
  86. package/dist-esm/src/operations/scriptExecutions.js +371 -0
  87. package/dist-esm/src/operations/scriptExecutions.js.map +1 -0
  88. package/dist-esm/src/operations/scriptPackages.d.ts +46 -0
  89. package/dist-esm/src/operations/scriptPackages.d.ts.map +1 -0
  90. package/dist-esm/src/operations/scriptPackages.js +169 -0
  91. package/dist-esm/src/operations/scriptPackages.js.map +1 -0
  92. package/dist-esm/src/operations/virtualMachines.d.ts +71 -0
  93. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
  94. package/dist-esm/src/operations/virtualMachines.js +272 -0
  95. package/dist-esm/src/operations/virtualMachines.js.map +1 -0
  96. package/dist-esm/src/operations/workloadNetworks.d.ts +661 -0
  97. package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -0
  98. package/dist-esm/src/operations/workloadNetworks.js +3049 -0
  99. package/dist-esm/src/operations/workloadNetworks.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/addons.d.ts +56 -0
  101. package/dist-esm/src/operationsInterfaces/addons.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/addons.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/addons.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/authorizations.d.ts +56 -0
  105. package/dist-esm/src/operationsInterfaces/authorizations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/authorizations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/authorizations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +56 -0
  109. package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/cloudLinks.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/cloudLinks.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/clusters.d.ts +74 -0
  113. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/datastores.d.ts +62 -0
  117. package/dist-esm/src/operationsInterfaces/datastores.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/datastores.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/datastores.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +56 -0
  121. package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/globalReachConnections.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/globalReachConnections.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +38 -0
  125. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
  129. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/index.js +24 -0
  131. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/locations.d.ts +17 -0
  133. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  137. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts +89 -0
  141. package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/placementPolicies.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/placementPolicies.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +106 -0
  145. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +25 -0
  149. package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/scriptCmdlets.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/scriptCmdlets.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +64 -0
  153. package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/scriptExecutions.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/scriptExecutions.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +21 -0
  157. package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/scriptPackages.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/scriptPackages.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +44 -0
  161. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +500 -0
  165. package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/workloadNetworks.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/workloadNetworks.js.map +1 -0
  168. package/dist-esm/test/sampleTest.d.ts +2 -0
  169. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  170. package/dist-esm/test/sampleTest.js +40 -0
  171. package/dist-esm/test/sampleTest.js.map +1 -0
  172. package/package.json +65 -31
  173. package/review/arm-avs.api.md +2534 -0
  174. package/rollup.config.js +181 -30
  175. package/src/azureVMwareSolutionAPI.ts +139 -0
  176. package/src/index.ts +12 -0
  177. package/src/lroImpl.ts +34 -0
  178. package/src/models/index.ts +3101 -931
  179. package/src/models/mappers.ts +2874 -387
  180. package/src/models/parameters.ts +407 -44
  181. package/src/operations/addons.ts +472 -0
  182. package/src/operations/authorizations.ts +341 -196
  183. package/src/operations/cloudLinks.ts +478 -0
  184. package/src/operations/clusters.ts +444 -238
  185. package/src/operations/datastores.ts +525 -0
  186. package/src/operations/globalReachConnections.ts +488 -0
  187. package/src/operations/hcxEnterpriseSites.ts +200 -210
  188. package/src/operations/index.ts +13 -5
  189. package/src/operations/locations.ts +56 -83
  190. package/src/operations/operations.ts +87 -73
  191. package/src/operations/placementPolicies.ts +677 -0
  192. package/src/operations/privateClouds.ts +705 -319
  193. package/src/operations/scriptCmdlets.ts +266 -0
  194. package/src/operations/scriptExecutions.ts +524 -0
  195. package/src/operations/scriptPackages.ts +229 -0
  196. package/src/operations/virtualMachines.ts +390 -0
  197. package/src/operations/workloadNetworks.ts +4398 -0
  198. package/src/operationsInterfaces/addons.ts +109 -0
  199. package/src/operationsInterfaces/authorizations.ts +109 -0
  200. package/src/operationsInterfaces/cloudLinks.ts +109 -0
  201. package/src/operationsInterfaces/clusters.ts +147 -0
  202. package/src/operationsInterfaces/datastores.ts +121 -0
  203. package/src/operationsInterfaces/globalReachConnections.ts +109 -0
  204. package/src/operationsInterfaces/hcxEnterpriseSites.ts +75 -0
  205. package/src/operationsInterfaces/index.ts +24 -0
  206. package/src/operationsInterfaces/locations.ts +36 -0
  207. package/src/operationsInterfaces/operations.ts +22 -0
  208. package/src/operationsInterfaces/placementPolicies.ts +170 -0
  209. package/src/operationsInterfaces/privateClouds.ts +198 -0
  210. package/src/operationsInterfaces/scriptCmdlets.ts +50 -0
  211. package/src/operationsInterfaces/scriptExecutions.ts +124 -0
  212. package/src/operationsInterfaces/scriptPackages.ts +44 -0
  213. package/src/operationsInterfaces/virtualMachines.ts +85 -0
  214. package/src/operationsInterfaces/workloadNetworks.ts +951 -0
  215. package/tsconfig.json +3 -3
  216. package/types/arm-avs.d.ts +4645 -0
  217. package/types/tsdoc-metadata.json +11 -0
  218. package/dist/arm-avs.js +0 -2585
  219. package/dist/arm-avs.js.map +0 -1
  220. package/dist/arm-avs.min.js +0 -1
  221. package/dist/arm-avs.min.js.map +0 -1
  222. package/esm/avsClient.d.ts +0 -23
  223. package/esm/avsClient.d.ts.map +0 -1
  224. package/esm/avsClient.js +0 -38
  225. package/esm/avsClient.js.map +0 -1
  226. package/esm/avsClientContext.d.ts +0 -16
  227. package/esm/avsClientContext.d.ts.map +0 -1
  228. package/esm/avsClientContext.js +0 -56
  229. package/esm/avsClientContext.js.map +0 -1
  230. package/esm/models/authorizationsMappers.d.ts +0 -2
  231. package/esm/models/authorizationsMappers.d.ts.map +0 -1
  232. package/esm/models/authorizationsMappers.js +0 -9
  233. package/esm/models/authorizationsMappers.js.map +0 -1
  234. package/esm/models/clustersMappers.d.ts +0 -2
  235. package/esm/models/clustersMappers.d.ts.map +0 -1
  236. package/esm/models/clustersMappers.js +0 -9
  237. package/esm/models/clustersMappers.js.map +0 -1
  238. package/esm/models/hcxEnterpriseSitesMappers.d.ts +0 -2
  239. package/esm/models/hcxEnterpriseSitesMappers.d.ts.map +0 -1
  240. package/esm/models/hcxEnterpriseSitesMappers.js +0 -9
  241. package/esm/models/hcxEnterpriseSitesMappers.js.map +0 -1
  242. package/esm/models/index.d.ts +0 -1163
  243. package/esm/models/index.d.ts.map +0 -1
  244. package/esm/models/index.js +0 -8
  245. package/esm/models/index.js.map +0 -1
  246. package/esm/models/locationsMappers.d.ts +0 -2
  247. package/esm/models/locationsMappers.d.ts.map +0 -1
  248. package/esm/models/locationsMappers.js +0 -9
  249. package/esm/models/locationsMappers.js.map +0 -1
  250. package/esm/models/mappers.d.ts +0 -30
  251. package/esm/models/mappers.d.ts.map +0 -1
  252. package/esm/models/mappers.js +0 -881
  253. package/esm/models/mappers.js.map +0 -1
  254. package/esm/models/operationsMappers.d.ts +0 -2
  255. package/esm/models/operationsMappers.d.ts.map +0 -1
  256. package/esm/models/operationsMappers.js +0 -9
  257. package/esm/models/operationsMappers.js.map +0 -1
  258. package/esm/models/parameters.d.ts +0 -12
  259. package/esm/models/parameters.d.ts.map +0 -1
  260. package/esm/models/parameters.js +0 -122
  261. package/esm/models/parameters.js.map +0 -1
  262. package/esm/models/privateCloudsMappers.d.ts +0 -2
  263. package/esm/models/privateCloudsMappers.d.ts.map +0 -1
  264. package/esm/models/privateCloudsMappers.js +0 -9
  265. package/esm/models/privateCloudsMappers.js.map +0 -1
  266. package/esm/operations/authorizations.d.ts +0 -115
  267. package/esm/operations/authorizations.d.ts.map +0 -1
  268. package/esm/operations/authorizations.js +0 -239
  269. package/esm/operations/authorizations.js.map +0 -1
  270. package/esm/operations/clusters.d.ts +0 -133
  271. package/esm/operations/clusters.d.ts.map +0 -1
  272. package/esm/operations/clusters.js +0 -299
  273. package/esm/operations/clusters.js.map +0 -1
  274. package/esm/operations/hcxEnterpriseSites.d.ts +0 -127
  275. package/esm/operations/hcxEnterpriseSites.d.ts.map +0 -1
  276. package/esm/operations/hcxEnterpriseSites.js +0 -196
  277. package/esm/operations/hcxEnterpriseSites.js.map +0 -1
  278. package/esm/operations/index.d.ts +0 -7
  279. package/esm/operations/index.d.ts.map +0 -1
  280. package/esm/operations/index.js +0 -16
  281. package/esm/operations/index.js.map +0 -1
  282. package/esm/operations/locations.d.ts +0 -49
  283. package/esm/operations/locations.d.ts.map +0 -1
  284. package/esm/operations/locations.js +0 -85
  285. package/esm/operations/locations.js.map +0 -1
  286. package/esm/operations/operations.d.ts +0 -46
  287. package/esm/operations/operations.d.ts.map +0 -1
  288. package/esm/operations/operations.js +0 -77
  289. package/esm/operations/operations.js.map +0 -1
  290. package/esm/operations/privateClouds.d.ts +0 -177
  291. package/esm/operations/privateClouds.d.ts.map +0 -1
  292. package/esm/operations/privateClouds.js +0 -365
  293. package/esm/operations/privateClouds.js.map +0 -1
  294. package/src/avsClient.ts +0 -52
  295. package/src/avsClientContext.ts +0 -62
  296. package/src/models/authorizationsMappers.ts +0 -27
  297. package/src/models/clustersMappers.ts +0 -28
  298. package/src/models/hcxEnterpriseSitesMappers.ts +0 -27
  299. package/src/models/locationsMappers.ts +0 -15
  300. package/src/models/operationsMappers.ts +0 -16
  301. package/src/models/privateCloudsMappers.ts +0 -29
@@ -1,127 +1,161 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/hcxEnterpriseSitesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { HcxEnterpriseSites } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { AvsClientContext } from "../avsClientContext";
14
+ import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
15
+ import {
16
+ HcxEnterpriseSite,
17
+ HcxEnterpriseSitesListNextOptionalParams,
18
+ HcxEnterpriseSitesListOptionalParams,
19
+ HcxEnterpriseSitesListResponse,
20
+ HcxEnterpriseSitesGetOptionalParams,
21
+ HcxEnterpriseSitesGetResponse,
22
+ HcxEnterpriseSitesCreateOrUpdateOptionalParams,
23
+ HcxEnterpriseSitesCreateOrUpdateResponse,
24
+ HcxEnterpriseSitesDeleteOptionalParams,
25
+ HcxEnterpriseSitesListNextResponse
26
+ } from "../models";
16
27
 
17
- /** Class representing a HcxEnterpriseSites. */
18
- export class HcxEnterpriseSites {
19
- private readonly client: AvsClientContext;
28
+ /// <reference lib="esnext.asynciterable" />
29
+ /** Class containing HcxEnterpriseSites operations. */
30
+ export class HcxEnterpriseSitesImpl implements HcxEnterpriseSites {
31
+ private readonly client: AzureVMwareSolutionAPI;
20
32
 
21
33
  /**
22
- * Create a HcxEnterpriseSites.
23
- * @param {AvsClientContext} client Reference to the service client.
34
+ * Initialize a new instance of the class HcxEnterpriseSites class.
35
+ * @param client Reference to the service client
24
36
  */
25
- constructor(client: AvsClientContext) {
37
+ constructor(client: AzureVMwareSolutionAPI) {
26
38
  this.client = client;
27
39
  }
28
40
 
29
41
  /**
30
- * @summary List HCX Enterprise Sites in a private cloud
42
+ * List HCX Enterprise Sites in a private cloud
31
43
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
44
  * @param privateCloudName Name of the private cloud
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.HcxEnterpriseSitesListResponse>
45
+ * @param options The options parameters.
35
46
  */
36
- list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise<Models.HcxEnterpriseSitesListResponse>;
37
- /**
38
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
- * @param privateCloudName Name of the private cloud
40
- * @param callback The callback
41
- */
42
- list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback<Models.HcxEnterpriseSiteList>): void;
43
- /**
44
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
- * @param privateCloudName Name of the private cloud
46
- * @param options The optional parameters
47
- * @param callback The callback
48
- */
49
- list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.HcxEnterpriseSiteList>): void;
50
- list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.HcxEnterpriseSiteList>, callback?: msRest.ServiceCallback<Models.HcxEnterpriseSiteList>): Promise<Models.HcxEnterpriseSitesListResponse> {
51
- return this.client.sendOperationRequest(
52
- {
47
+ public list(
48
+ resourceGroupName: string,
49
+ privateCloudName: string,
50
+ options?: HcxEnterpriseSitesListOptionalParams
51
+ ): PagedAsyncIterableIterator<HcxEnterpriseSite> {
52
+ const iter = this.listPagingAll(
53
+ resourceGroupName,
54
+ privateCloudName,
55
+ options
56
+ );
57
+ return {
58
+ next() {
59
+ return iter.next();
60
+ },
61
+ [Symbol.asyncIterator]() {
62
+ return this;
63
+ },
64
+ byPage: () => {
65
+ return this.listPagingPage(
66
+ resourceGroupName,
67
+ privateCloudName,
68
+ options
69
+ );
70
+ }
71
+ };
72
+ }
73
+
74
+ private async *listPagingPage(
75
+ resourceGroupName: string,
76
+ privateCloudName: string,
77
+ options?: HcxEnterpriseSitesListOptionalParams
78
+ ): AsyncIterableIterator<HcxEnterpriseSite[]> {
79
+ let result = await this._list(resourceGroupName, privateCloudName, options);
80
+ yield result.value || [];
81
+ let continuationToken = result.nextLink;
82
+ while (continuationToken) {
83
+ result = await this._listNext(
53
84
  resourceGroupName,
54
85
  privateCloudName,
86
+ continuationToken,
55
87
  options
56
- },
57
- listOperationSpec,
58
- callback) as Promise<Models.HcxEnterpriseSitesListResponse>;
88
+ );
89
+ continuationToken = result.nextLink;
90
+ yield result.value || [];
91
+ }
92
+ }
93
+
94
+ private async *listPagingAll(
95
+ resourceGroupName: string,
96
+ privateCloudName: string,
97
+ options?: HcxEnterpriseSitesListOptionalParams
98
+ ): AsyncIterableIterator<HcxEnterpriseSite> {
99
+ for await (const page of this.listPagingPage(
100
+ resourceGroupName,
101
+ privateCloudName,
102
+ options
103
+ )) {
104
+ yield* page;
105
+ }
59
106
  }
60
107
 
61
108
  /**
62
- * @summary Get an HCX Enterprise Site by name in a private cloud
63
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
64
- * @param privateCloudName Name of the private cloud
65
- * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
66
- * @param [options] The optional parameters
67
- * @returns Promise<Models.HcxEnterpriseSitesGetResponse>
68
- */
69
- get(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase): Promise<Models.HcxEnterpriseSitesGetResponse>;
70
- /**
109
+ * List HCX Enterprise Sites in a private cloud
71
110
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
72
111
  * @param privateCloudName Name of the private cloud
73
- * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
74
- * @param callback The callback
112
+ * @param options The options parameters.
75
113
  */
76
- get(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, callback: msRest.ServiceCallback<Models.HcxEnterpriseSite>): void;
114
+ private _list(
115
+ resourceGroupName: string,
116
+ privateCloudName: string,
117
+ options?: HcxEnterpriseSitesListOptionalParams
118
+ ): Promise<HcxEnterpriseSitesListResponse> {
119
+ return this.client.sendOperationRequest(
120
+ { resourceGroupName, privateCloudName, options },
121
+ listOperationSpec
122
+ );
123
+ }
124
+
77
125
  /**
126
+ * Get an HCX Enterprise Site by name in a private cloud
78
127
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
79
128
  * @param privateCloudName Name of the private cloud
80
129
  * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
81
- * @param options The optional parameters
82
- * @param callback The callback
130
+ * @param options The options parameters.
83
131
  */
84
- get(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.HcxEnterpriseSite>): void;
85
- get(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.HcxEnterpriseSite>, callback?: msRest.ServiceCallback<Models.HcxEnterpriseSite>): Promise<Models.HcxEnterpriseSitesGetResponse> {
132
+ get(
133
+ resourceGroupName: string,
134
+ privateCloudName: string,
135
+ hcxEnterpriseSiteName: string,
136
+ options?: HcxEnterpriseSitesGetOptionalParams
137
+ ): Promise<HcxEnterpriseSitesGetResponse> {
86
138
  return this.client.sendOperationRequest(
87
- {
88
- resourceGroupName,
89
- privateCloudName,
90
- hcxEnterpriseSiteName,
91
- options
92
- },
93
- getOperationSpec,
94
- callback) as Promise<Models.HcxEnterpriseSitesGetResponse>;
139
+ { resourceGroupName, privateCloudName, hcxEnterpriseSiteName, options },
140
+ getOperationSpec
141
+ );
95
142
  }
96
143
 
97
144
  /**
98
- * @summary Create or update an HCX Enterprise Site in a private cloud
145
+ * Create or update an HCX Enterprise Site in a private cloud
99
146
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
100
147
  * @param privateCloudName The name of the private cloud.
101
148
  * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
102
149
  * @param hcxEnterpriseSite The HCX Enterprise Site
103
- * @param [options] The optional parameters
104
- * @returns Promise<Models.HcxEnterpriseSitesCreateOrUpdateResponse>
150
+ * @param options The options parameters.
105
151
  */
106
- createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options?: msRest.RequestOptionsBase): Promise<Models.HcxEnterpriseSitesCreateOrUpdateResponse>;
107
- /**
108
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
109
- * @param privateCloudName The name of the private cloud.
110
- * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
111
- * @param hcxEnterpriseSite The HCX Enterprise Site
112
- * @param callback The callback
113
- */
114
- createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, callback: msRest.ServiceCallback<Models.HcxEnterpriseSite>): void;
115
- /**
116
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
117
- * @param privateCloudName The name of the private cloud.
118
- * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
119
- * @param hcxEnterpriseSite The HCX Enterprise Site
120
- * @param options The optional parameters
121
- * @param callback The callback
122
- */
123
- createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.HcxEnterpriseSite>): void;
124
- createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.HcxEnterpriseSite>, callback?: msRest.ServiceCallback<Models.HcxEnterpriseSite>): Promise<Models.HcxEnterpriseSitesCreateOrUpdateResponse> {
152
+ createOrUpdate(
153
+ resourceGroupName: string,
154
+ privateCloudName: string,
155
+ hcxEnterpriseSiteName: string,
156
+ hcxEnterpriseSite: HcxEnterpriseSite,
157
+ options?: HcxEnterpriseSitesCreateOrUpdateOptionalParams
158
+ ): Promise<HcxEnterpriseSitesCreateOrUpdateResponse> {
125
159
  return this.client.sendOperationRequest(
126
160
  {
127
161
  resourceGroupName,
@@ -130,91 +164,55 @@ export class HcxEnterpriseSites {
130
164
  hcxEnterpriseSite,
131
165
  options
132
166
  },
133
- createOrUpdateOperationSpec,
134
- callback) as Promise<Models.HcxEnterpriseSitesCreateOrUpdateResponse>;
167
+ createOrUpdateOperationSpec
168
+ );
135
169
  }
136
170
 
137
171
  /**
138
- * @summary Delete an HCX Enterprise Site in a private cloud
172
+ * Delete an HCX Enterprise Site in a private cloud
139
173
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
140
174
  * @param privateCloudName Name of the private cloud
141
175
  * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
142
- * @param [options] The optional parameters
143
- * @returns Promise<msRest.RestResponse>
176
+ * @param options The options parameters.
144
177
  */
145
- deleteMethod(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
146
- /**
147
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
148
- * @param privateCloudName Name of the private cloud
149
- * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
150
- * @param callback The callback
151
- */
152
- deleteMethod(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, callback: msRest.ServiceCallback<void>): void;
153
- /**
154
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
155
- * @param privateCloudName Name of the private cloud
156
- * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud
157
- * @param options The optional parameters
158
- * @param callback The callback
159
- */
160
- deleteMethod(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
161
- deleteMethod(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
178
+ delete(
179
+ resourceGroupName: string,
180
+ privateCloudName: string,
181
+ hcxEnterpriseSiteName: string,
182
+ options?: HcxEnterpriseSitesDeleteOptionalParams
183
+ ): Promise<void> {
162
184
  return this.client.sendOperationRequest(
163
- {
164
- resourceGroupName,
165
- privateCloudName,
166
- hcxEnterpriseSiteName,
167
- options
168
- },
169
- deleteMethodOperationSpec,
170
- callback);
185
+ { resourceGroupName, privateCloudName, hcxEnterpriseSiteName, options },
186
+ deleteOperationSpec
187
+ );
171
188
  }
172
189
 
173
190
  /**
174
- * @summary List HCX Enterprise Sites in a private cloud
175
- * @param nextPageLink The NextLink from the previous successful call to List operation.
176
- * @param [options] The optional parameters
177
- * @returns Promise<Models.HcxEnterpriseSitesListNextResponse>
178
- */
179
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.HcxEnterpriseSitesListNextResponse>;
180
- /**
181
- * @param nextPageLink The NextLink from the previous successful call to List operation.
182
- * @param callback The callback
183
- */
184
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.HcxEnterpriseSiteList>): void;
185
- /**
186
- * @param nextPageLink The NextLink from the previous successful call to List operation.
187
- * @param options The optional parameters
188
- * @param callback The callback
191
+ * ListNext
192
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
193
+ * @param privateCloudName Name of the private cloud
194
+ * @param nextLink The nextLink from the previous successful call to the List method.
195
+ * @param options The options parameters.
189
196
  */
190
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.HcxEnterpriseSiteList>): void;
191
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.HcxEnterpriseSiteList>, callback?: msRest.ServiceCallback<Models.HcxEnterpriseSiteList>): Promise<Models.HcxEnterpriseSitesListNextResponse> {
197
+ private _listNext(
198
+ resourceGroupName: string,
199
+ privateCloudName: string,
200
+ nextLink: string,
201
+ options?: HcxEnterpriseSitesListNextOptionalParams
202
+ ): Promise<HcxEnterpriseSitesListNextResponse> {
192
203
  return this.client.sendOperationRequest(
193
- {
194
- nextPageLink,
195
- options
196
- },
197
- listNextOperationSpec,
198
- callback) as Promise<Models.HcxEnterpriseSitesListNextResponse>;
204
+ { resourceGroupName, privateCloudName, nextLink, options },
205
+ listNextOperationSpec
206
+ );
199
207
  }
200
208
  }
201
-
202
209
  // Operation Specifications
203
- const serializer = new msRest.Serializer(Mappers);
204
- const listOperationSpec: msRest.OperationSpec = {
210
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
211
+
212
+ const listOperationSpec: coreClient.OperationSpec = {
213
+ path:
214
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites",
205
215
  httpMethod: "GET",
206
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites",
207
- urlParameters: [
208
- Parameters.subscriptionId,
209
- Parameters.resourceGroupName,
210
- Parameters.privateCloudName
211
- ],
212
- queryParameters: [
213
- Parameters.apiVersion
214
- ],
215
- headerParameters: [
216
- Parameters.acceptLanguage
217
- ],
218
216
  responses: {
219
217
  200: {
220
218
  bodyMapper: Mappers.HcxEnterpriseSiteList
@@ -223,24 +221,20 @@ const listOperationSpec: msRest.OperationSpec = {
223
221
  bodyMapper: Mappers.CloudError
224
222
  }
225
223
  },
226
- serializer
227
- };
228
-
229
- const getOperationSpec: msRest.OperationSpec = {
230
- httpMethod: "GET",
231
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
224
+ queryParameters: [Parameters.apiVersion],
232
225
  urlParameters: [
226
+ Parameters.$host,
233
227
  Parameters.subscriptionId,
234
228
  Parameters.resourceGroupName,
235
- Parameters.privateCloudName,
236
- Parameters.hcxEnterpriseSiteName
237
- ],
238
- queryParameters: [
239
- Parameters.apiVersion
240
- ],
241
- headerParameters: [
242
- Parameters.acceptLanguage
229
+ Parameters.privateCloudName
243
230
  ],
231
+ headerParameters: [Parameters.accept],
232
+ serializer
233
+ };
234
+ const getOperationSpec: coreClient.OperationSpec = {
235
+ path:
236
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
237
+ httpMethod: "GET",
244
238
  responses: {
245
239
  200: {
246
240
  bodyMapper: Mappers.HcxEnterpriseSite
@@ -249,34 +243,21 @@ const getOperationSpec: msRest.OperationSpec = {
249
243
  bodyMapper: Mappers.CloudError
250
244
  }
251
245
  },
252
- serializer
253
- };
254
-
255
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
256
- httpMethod: "PUT",
257
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
246
+ queryParameters: [Parameters.apiVersion],
258
247
  urlParameters: [
248
+ Parameters.$host,
259
249
  Parameters.subscriptionId,
260
250
  Parameters.resourceGroupName,
261
251
  Parameters.privateCloudName,
262
252
  Parameters.hcxEnterpriseSiteName
263
253
  ],
264
- queryParameters: [
265
- Parameters.apiVersion
266
- ],
267
- headerParameters: [
268
- Parameters.acceptLanguage
269
- ],
270
- requestBody: {
271
- parameterPath: "hcxEnterpriseSite",
272
- mapper: {
273
- required: true,
274
- serializedName: "hcxEnterpriseSite",
275
- type: {
276
- name: "Object"
277
- }
278
- }
279
- },
254
+ headerParameters: [Parameters.accept],
255
+ serializer
256
+ };
257
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
258
+ path:
259
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
260
+ httpMethod: "PUT",
280
261
  responses: {
281
262
  200: {
282
263
  bodyMapper: Mappers.HcxEnterpriseSite
@@ -288,24 +269,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
288
269
  bodyMapper: Mappers.CloudError
289
270
  }
290
271
  },
291
- serializer
292
- };
293
-
294
- const deleteMethodOperationSpec: msRest.OperationSpec = {
295
- httpMethod: "DELETE",
296
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
272
+ requestBody: Parameters.hcxEnterpriseSite,
273
+ queryParameters: [Parameters.apiVersion],
297
274
  urlParameters: [
275
+ Parameters.$host,
298
276
  Parameters.subscriptionId,
299
277
  Parameters.resourceGroupName,
300
278
  Parameters.privateCloudName,
301
279
  Parameters.hcxEnterpriseSiteName
302
280
  ],
303
- queryParameters: [
304
- Parameters.apiVersion
305
- ],
306
- headerParameters: [
307
- Parameters.acceptLanguage
308
- ],
281
+ headerParameters: [Parameters.accept, Parameters.contentType],
282
+ mediaType: "json",
283
+ serializer
284
+ };
285
+ const deleteOperationSpec: coreClient.OperationSpec = {
286
+ path:
287
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
288
+ httpMethod: "DELETE",
309
289
  responses: {
310
290
  200: {},
311
291
  204: {},
@@ -313,19 +293,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
313
293
  bodyMapper: Mappers.CloudError
314
294
  }
315
295
  },
296
+ queryParameters: [Parameters.apiVersion],
297
+ urlParameters: [
298
+ Parameters.$host,
299
+ Parameters.subscriptionId,
300
+ Parameters.resourceGroupName,
301
+ Parameters.privateCloudName,
302
+ Parameters.hcxEnterpriseSiteName
303
+ ],
304
+ headerParameters: [Parameters.accept],
316
305
  serializer
317
306
  };
318
-
319
- const listNextOperationSpec: msRest.OperationSpec = {
320
- httpMethod: "GET",
321
- baseUrl: "https://management.azure.com",
307
+ const listNextOperationSpec: coreClient.OperationSpec = {
322
308
  path: "{nextLink}",
323
- urlParameters: [
324
- Parameters.nextPageLink
325
- ],
326
- headerParameters: [
327
- Parameters.acceptLanguage
328
- ],
309
+ httpMethod: "GET",
329
310
  responses: {
330
311
  200: {
331
312
  bodyMapper: Mappers.HcxEnterpriseSiteList
@@ -334,5 +315,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
334
315
  bodyMapper: Mappers.CloudError
335
316
  }
336
317
  },
318
+ queryParameters: [Parameters.apiVersion],
319
+ urlParameters: [
320
+ Parameters.$host,
321
+ Parameters.nextLink,
322
+ Parameters.subscriptionId,
323
+ Parameters.resourceGroupName,
324
+ Parameters.privateCloudName
325
+ ],
326
+ headerParameters: [Parameters.accept],
337
327
  serializer
338
328
  };
@@ -1,16 +1,24 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
9
  export * from "./operations";
12
10
  export * from "./locations";
13
11
  export * from "./privateClouds";
14
12
  export * from "./clusters";
13
+ export * from "./datastores";
15
14
  export * from "./hcxEnterpriseSites";
16
15
  export * from "./authorizations";
16
+ export * from "./globalReachConnections";
17
+ export * from "./workloadNetworks";
18
+ export * from "./cloudLinks";
19
+ export * from "./addons";
20
+ export * from "./virtualMachines";
21
+ export * from "./placementPolicies";
22
+ export * from "./scriptPackages";
23
+ export * from "./scriptCmdlets";
24
+ export * from "./scriptExecutions";