@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
package/dist/arm-avs.js DELETED
@@ -1,2585 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
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
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmAvs = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation. All rights reserved.
56
- * Licensed under the MIT License. See License.txt in the project root for license information.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation. All rights reserved.
68
- * Licensed under the MIT License. See License.txt in the project root for license information.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var Trial = {
76
- serializedName: "Trial",
77
- type: {
78
- name: "Composite",
79
- className: "Trial",
80
- modelProperties: {
81
- status: {
82
- readOnly: true,
83
- serializedName: "status",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- availableHosts: {
89
- readOnly: true,
90
- serializedName: "availableHosts",
91
- type: {
92
- name: "Number"
93
- }
94
- }
95
- }
96
- }
97
- };
98
- var Quota = {
99
- serializedName: "Quota",
100
- type: {
101
- name: "Composite",
102
- className: "Quota",
103
- modelProperties: {
104
- hostsRemaining: {
105
- readOnly: true,
106
- serializedName: "hostsRemaining",
107
- type: {
108
- name: "Dictionary",
109
- value: {
110
- type: {
111
- name: "Number"
112
- }
113
- }
114
- }
115
- },
116
- quotaEnabled: {
117
- readOnly: true,
118
- serializedName: "quotaEnabled",
119
- type: {
120
- name: "String"
121
- }
122
- }
123
- }
124
- }
125
- };
126
- var Resource = {
127
- serializedName: "Resource",
128
- type: {
129
- name: "Composite",
130
- className: "Resource",
131
- modelProperties: {
132
- id: {
133
- readOnly: true,
134
- serializedName: "id",
135
- type: {
136
- name: "String"
137
- }
138
- },
139
- name: {
140
- readOnly: true,
141
- serializedName: "name",
142
- type: {
143
- name: "String"
144
- }
145
- },
146
- type: {
147
- readOnly: true,
148
- serializedName: "type",
149
- type: {
150
- name: "String"
151
- }
152
- }
153
- }
154
- }
155
- };
156
- var TrackedResource = {
157
- serializedName: "TrackedResource",
158
- type: {
159
- name: "Composite",
160
- className: "TrackedResource",
161
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { location: {
162
- serializedName: "location",
163
- type: {
164
- name: "String"
165
- }
166
- }, tags: {
167
- serializedName: "tags",
168
- type: {
169
- name: "Dictionary",
170
- value: {
171
- type: {
172
- name: "String"
173
- }
174
- }
175
- }
176
- } })
177
- }
178
- };
179
- var ErrorAdditionalInfo = {
180
- serializedName: "ErrorAdditionalInfo",
181
- type: {
182
- name: "Composite",
183
- className: "ErrorAdditionalInfo",
184
- modelProperties: {
185
- type: {
186
- readOnly: true,
187
- serializedName: "type",
188
- type: {
189
- name: "String"
190
- }
191
- },
192
- info: {
193
- readOnly: true,
194
- serializedName: "info",
195
- type: {
196
- name: "Object"
197
- }
198
- }
199
- }
200
- }
201
- };
202
- var ErrorResponse = {
203
- serializedName: "ErrorResponse",
204
- type: {
205
- name: "Composite",
206
- className: "ErrorResponse",
207
- modelProperties: {
208
- code: {
209
- readOnly: true,
210
- serializedName: "code",
211
- type: {
212
- name: "String"
213
- }
214
- },
215
- message: {
216
- readOnly: true,
217
- serializedName: "message",
218
- type: {
219
- name: "String"
220
- }
221
- },
222
- target: {
223
- readOnly: true,
224
- serializedName: "target",
225
- type: {
226
- name: "String"
227
- }
228
- },
229
- details: {
230
- readOnly: true,
231
- serializedName: "details",
232
- type: {
233
- name: "Sequence",
234
- element: {
235
- type: {
236
- name: "Composite",
237
- className: "ErrorResponse"
238
- }
239
- }
240
- }
241
- },
242
- additionalInfo: {
243
- readOnly: true,
244
- serializedName: "additionalInfo",
245
- type: {
246
- name: "Sequence",
247
- element: {
248
- type: {
249
- name: "Composite",
250
- className: "ErrorAdditionalInfo"
251
- }
252
- }
253
- }
254
- }
255
- }
256
- }
257
- };
258
- var OperationDisplay = {
259
- serializedName: "Operation_display",
260
- type: {
261
- name: "Composite",
262
- className: "OperationDisplay",
263
- modelProperties: {
264
- provider: {
265
- readOnly: true,
266
- serializedName: "provider",
267
- type: {
268
- name: "String"
269
- }
270
- },
271
- resource: {
272
- readOnly: true,
273
- serializedName: "resource",
274
- type: {
275
- name: "String"
276
- }
277
- },
278
- operation: {
279
- readOnly: true,
280
- serializedName: "operation",
281
- type: {
282
- name: "String"
283
- }
284
- },
285
- description: {
286
- readOnly: true,
287
- serializedName: "description",
288
- type: {
289
- name: "String"
290
- }
291
- }
292
- }
293
- }
294
- };
295
- var Operation = {
296
- serializedName: "Operation",
297
- type: {
298
- name: "Composite",
299
- className: "Operation",
300
- modelProperties: {
301
- name: {
302
- readOnly: true,
303
- serializedName: "name",
304
- type: {
305
- name: "String"
306
- }
307
- },
308
- display: {
309
- readOnly: true,
310
- serializedName: "display",
311
- type: {
312
- name: "Composite",
313
- className: "OperationDisplay"
314
- }
315
- }
316
- }
317
- }
318
- };
319
- var ExpressRouteAuthorization = {
320
- serializedName: "ExpressRouteAuthorization",
321
- type: {
322
- name: "Composite",
323
- className: "ExpressRouteAuthorization",
324
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { provisioningState: {
325
- readOnly: true,
326
- serializedName: "properties.provisioningState",
327
- type: {
328
- name: "String"
329
- }
330
- }, expressRouteAuthorizationId: {
331
- readOnly: true,
332
- serializedName: "properties.expressRouteAuthorizationId",
333
- type: {
334
- name: "String"
335
- }
336
- }, expressRouteAuthorizationKey: {
337
- readOnly: true,
338
- serializedName: "properties.expressRouteAuthorizationKey",
339
- type: {
340
- name: "String"
341
- }
342
- } })
343
- }
344
- };
345
- var Circuit = {
346
- serializedName: "Circuit",
347
- type: {
348
- name: "Composite",
349
- className: "Circuit",
350
- modelProperties: {
351
- primarySubnet: {
352
- readOnly: true,
353
- serializedName: "primarySubnet",
354
- type: {
355
- name: "String"
356
- }
357
- },
358
- secondarySubnet: {
359
- readOnly: true,
360
- serializedName: "secondarySubnet",
361
- type: {
362
- name: "String"
363
- }
364
- },
365
- expressRouteID: {
366
- readOnly: true,
367
- serializedName: "expressRouteID",
368
- type: {
369
- name: "String"
370
- }
371
- },
372
- expressRoutePrivatePeeringID: {
373
- readOnly: true,
374
- serializedName: "expressRoutePrivatePeeringID",
375
- type: {
376
- name: "String"
377
- }
378
- }
379
- }
380
- }
381
- };
382
- var Endpoints = {
383
- serializedName: "Endpoints",
384
- type: {
385
- name: "Composite",
386
- className: "Endpoints",
387
- modelProperties: {
388
- nsxtManager: {
389
- readOnly: true,
390
- serializedName: "nsxtManager",
391
- type: {
392
- name: "String"
393
- }
394
- },
395
- vcsa: {
396
- readOnly: true,
397
- serializedName: "vcsa",
398
- type: {
399
- name: "String"
400
- }
401
- },
402
- hcxCloudManager: {
403
- readOnly: true,
404
- serializedName: "hcxCloudManager",
405
- type: {
406
- name: "String"
407
- }
408
- }
409
- }
410
- }
411
- };
412
- var IdentitySource = {
413
- serializedName: "IdentitySource",
414
- type: {
415
- name: "Composite",
416
- className: "IdentitySource",
417
- modelProperties: {
418
- name: {
419
- serializedName: "name",
420
- type: {
421
- name: "String"
422
- }
423
- },
424
- alias: {
425
- serializedName: "alias",
426
- type: {
427
- name: "String"
428
- }
429
- },
430
- domain: {
431
- serializedName: "domain",
432
- type: {
433
- name: "String"
434
- }
435
- },
436
- baseUserDN: {
437
- serializedName: "baseUserDN",
438
- type: {
439
- name: "String"
440
- }
441
- },
442
- baseGroupDN: {
443
- serializedName: "baseGroupDN",
444
- type: {
445
- name: "String"
446
- }
447
- },
448
- primaryServer: {
449
- serializedName: "primaryServer",
450
- type: {
451
- name: "String"
452
- }
453
- },
454
- secondaryServer: {
455
- serializedName: "secondaryServer",
456
- type: {
457
- name: "String"
458
- }
459
- },
460
- ssl: {
461
- serializedName: "ssl",
462
- type: {
463
- name: "String"
464
- }
465
- },
466
- username: {
467
- serializedName: "username",
468
- type: {
469
- name: "String"
470
- }
471
- },
472
- password: {
473
- serializedName: "password",
474
- type: {
475
- name: "String"
476
- }
477
- }
478
- }
479
- }
480
- };
481
- var Sku = {
482
- serializedName: "Sku",
483
- type: {
484
- name: "Composite",
485
- className: "Sku",
486
- modelProperties: {
487
- name: {
488
- required: true,
489
- serializedName: "name",
490
- type: {
491
- name: "String"
492
- }
493
- }
494
- }
495
- }
496
- };
497
- var PrivateCloud = {
498
- serializedName: "PrivateCloud",
499
- type: {
500
- name: "Composite",
501
- className: "PrivateCloud",
502
- modelProperties: __assign(__assign({}, TrackedResource.type.modelProperties), { sku: {
503
- required: true,
504
- serializedName: "sku",
505
- type: {
506
- name: "Composite",
507
- className: "Sku"
508
- }
509
- }, managementCluster: {
510
- serializedName: "properties.managementCluster",
511
- type: {
512
- name: "Composite",
513
- className: "ManagementCluster"
514
- }
515
- }, internet: {
516
- serializedName: "properties.internet",
517
- type: {
518
- name: "String"
519
- }
520
- }, identitySources: {
521
- serializedName: "properties.identitySources",
522
- type: {
523
- name: "Sequence",
524
- element: {
525
- type: {
526
- name: "Composite",
527
- className: "IdentitySource"
528
- }
529
- }
530
- }
531
- }, provisioningState: {
532
- readOnly: true,
533
- serializedName: "properties.provisioningState",
534
- type: {
535
- name: "String"
536
- }
537
- }, circuit: {
538
- serializedName: "properties.circuit",
539
- type: {
540
- name: "Composite",
541
- className: "Circuit"
542
- }
543
- }, endpoints: {
544
- readOnly: true,
545
- serializedName: "properties.endpoints",
546
- type: {
547
- name: "Composite",
548
- className: "Endpoints"
549
- }
550
- }, networkBlock: {
551
- required: true,
552
- serializedName: "properties.networkBlock",
553
- type: {
554
- name: "String"
555
- }
556
- }, managementNetwork: {
557
- readOnly: true,
558
- serializedName: "properties.managementNetwork",
559
- type: {
560
- name: "String"
561
- }
562
- }, provisioningNetwork: {
563
- readOnly: true,
564
- serializedName: "properties.provisioningNetwork",
565
- type: {
566
- name: "String"
567
- }
568
- }, vmotionNetwork: {
569
- readOnly: true,
570
- serializedName: "properties.vmotionNetwork",
571
- type: {
572
- name: "String"
573
- }
574
- }, vcenterPassword: {
575
- serializedName: "properties.vcenterPassword",
576
- type: {
577
- name: "String"
578
- }
579
- }, nsxtPassword: {
580
- serializedName: "properties.nsxtPassword",
581
- type: {
582
- name: "String"
583
- }
584
- }, vcenterCertificateThumbprint: {
585
- readOnly: true,
586
- serializedName: "properties.vcenterCertificateThumbprint",
587
- type: {
588
- name: "String"
589
- }
590
- }, nsxtCertificateThumbprint: {
591
- readOnly: true,
592
- serializedName: "properties.nsxtCertificateThumbprint",
593
- type: {
594
- name: "String"
595
- }
596
- } })
597
- }
598
- };
599
- var ClusterUpdateProperties = {
600
- serializedName: "ClusterUpdateProperties",
601
- type: {
602
- name: "Composite",
603
- className: "ClusterUpdateProperties",
604
- modelProperties: {
605
- clusterSize: {
606
- serializedName: "clusterSize",
607
- type: {
608
- name: "Number"
609
- }
610
- }
611
- }
612
- }
613
- };
614
- var ManagementCluster = {
615
- serializedName: "ManagementCluster",
616
- type: {
617
- name: "Composite",
618
- className: "ManagementCluster",
619
- modelProperties: __assign(__assign({}, ClusterUpdateProperties.type.modelProperties), { clusterId: {
620
- readOnly: true,
621
- serializedName: "clusterId",
622
- type: {
623
- name: "Number"
624
- }
625
- }, hosts: {
626
- readOnly: true,
627
- serializedName: "hosts",
628
- type: {
629
- name: "Sequence",
630
- element: {
631
- type: {
632
- name: "String"
633
- }
634
- }
635
- }
636
- } })
637
- }
638
- };
639
- var PrivateCloudUpdate = {
640
- serializedName: "PrivateCloudUpdate",
641
- type: {
642
- name: "Composite",
643
- className: "PrivateCloudUpdate",
644
- modelProperties: {
645
- tags: {
646
- serializedName: "tags",
647
- type: {
648
- name: "Dictionary",
649
- value: {
650
- type: {
651
- name: "String"
652
- }
653
- }
654
- }
655
- },
656
- managementCluster: {
657
- serializedName: "properties.managementCluster",
658
- type: {
659
- name: "Composite",
660
- className: "ManagementCluster"
661
- }
662
- },
663
- internet: {
664
- serializedName: "properties.internet",
665
- type: {
666
- name: "String"
667
- }
668
- },
669
- identitySources: {
670
- serializedName: "properties.identitySources",
671
- type: {
672
- name: "Sequence",
673
- element: {
674
- type: {
675
- name: "Composite",
676
- className: "IdentitySource"
677
- }
678
- }
679
- }
680
- }
681
- }
682
- }
683
- };
684
- var Cluster = {
685
- serializedName: "Cluster",
686
- type: {
687
- name: "Composite",
688
- className: "Cluster",
689
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { sku: {
690
- required: true,
691
- serializedName: "sku",
692
- type: {
693
- name: "Composite",
694
- className: "Sku"
695
- }
696
- }, clusterSize: {
697
- serializedName: "properties.clusterSize",
698
- type: {
699
- name: "Number"
700
- }
701
- }, clusterId: {
702
- readOnly: true,
703
- serializedName: "properties.clusterId",
704
- type: {
705
- name: "Number"
706
- }
707
- }, hosts: {
708
- readOnly: true,
709
- serializedName: "properties.hosts",
710
- type: {
711
- name: "Sequence",
712
- element: {
713
- type: {
714
- name: "String"
715
- }
716
- }
717
- }
718
- }, provisioningState: {
719
- readOnly: true,
720
- serializedName: "properties.provisioningState",
721
- type: {
722
- name: "String"
723
- }
724
- } })
725
- }
726
- };
727
- var ClusterUpdate = {
728
- serializedName: "ClusterUpdate",
729
- type: {
730
- name: "Composite",
731
- className: "ClusterUpdate",
732
- modelProperties: {
733
- clusterSize: {
734
- serializedName: "properties.clusterSize",
735
- type: {
736
- name: "Number"
737
- }
738
- }
739
- }
740
- }
741
- };
742
- var AdminCredentials = {
743
- serializedName: "AdminCredentials",
744
- type: {
745
- name: "Composite",
746
- className: "AdminCredentials",
747
- modelProperties: {
748
- nsxtUsername: {
749
- readOnly: true,
750
- serializedName: "nsxtUsername",
751
- type: {
752
- name: "String"
753
- }
754
- },
755
- nsxtPassword: {
756
- readOnly: true,
757
- serializedName: "nsxtPassword",
758
- type: {
759
- name: "String"
760
- }
761
- },
762
- vcenterUsername: {
763
- readOnly: true,
764
- serializedName: "vcenterUsername",
765
- type: {
766
- name: "String"
767
- }
768
- },
769
- vcenterPassword: {
770
- readOnly: true,
771
- serializedName: "vcenterPassword",
772
- type: {
773
- name: "String"
774
- }
775
- }
776
- }
777
- }
778
- };
779
- var HcxEnterpriseSite = {
780
- serializedName: "HcxEnterpriseSite",
781
- type: {
782
- name: "Composite",
783
- className: "HcxEnterpriseSite",
784
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { activationKey: {
785
- readOnly: true,
786
- serializedName: "properties.activationKey",
787
- type: {
788
- name: "String"
789
- }
790
- }, status: {
791
- readOnly: true,
792
- serializedName: "properties.status",
793
- type: {
794
- name: "String"
795
- }
796
- } })
797
- }
798
- };
799
- var OperationList = {
800
- serializedName: "OperationList",
801
- type: {
802
- name: "Composite",
803
- className: "OperationList",
804
- modelProperties: {
805
- value: {
806
- readOnly: true,
807
- serializedName: "",
808
- type: {
809
- name: "Sequence",
810
- element: {
811
- type: {
812
- name: "Composite",
813
- className: "Operation"
814
- }
815
- }
816
- }
817
- },
818
- nextLink: {
819
- readOnly: true,
820
- serializedName: "nextLink",
821
- type: {
822
- name: "String"
823
- }
824
- }
825
- }
826
- }
827
- };
828
- var PrivateCloudList = {
829
- serializedName: "PrivateCloudList",
830
- type: {
831
- name: "Composite",
832
- className: "PrivateCloudList",
833
- modelProperties: {
834
- value: {
835
- readOnly: true,
836
- serializedName: "",
837
- type: {
838
- name: "Sequence",
839
- element: {
840
- type: {
841
- name: "Composite",
842
- className: "PrivateCloud"
843
- }
844
- }
845
- }
846
- },
847
- nextLink: {
848
- readOnly: true,
849
- serializedName: "nextLink",
850
- type: {
851
- name: "String"
852
- }
853
- }
854
- }
855
- }
856
- };
857
- var ClusterList = {
858
- serializedName: "ClusterList",
859
- type: {
860
- name: "Composite",
861
- className: "ClusterList",
862
- modelProperties: {
863
- value: {
864
- readOnly: true,
865
- serializedName: "",
866
- type: {
867
- name: "Sequence",
868
- element: {
869
- type: {
870
- name: "Composite",
871
- className: "Cluster"
872
- }
873
- }
874
- }
875
- },
876
- nextLink: {
877
- readOnly: true,
878
- serializedName: "nextLink",
879
- type: {
880
- name: "String"
881
- }
882
- }
883
- }
884
- }
885
- };
886
- var HcxEnterpriseSiteList = {
887
- serializedName: "HcxEnterpriseSiteList",
888
- type: {
889
- name: "Composite",
890
- className: "HcxEnterpriseSiteList",
891
- modelProperties: {
892
- value: {
893
- readOnly: true,
894
- serializedName: "",
895
- type: {
896
- name: "Sequence",
897
- element: {
898
- type: {
899
- name: "Composite",
900
- className: "HcxEnterpriseSite"
901
- }
902
- }
903
- }
904
- },
905
- nextLink: {
906
- readOnly: true,
907
- serializedName: "nextLink",
908
- type: {
909
- name: "String"
910
- }
911
- }
912
- }
913
- }
914
- };
915
- var ExpressRouteAuthorizationList = {
916
- serializedName: "ExpressRouteAuthorizationList",
917
- type: {
918
- name: "Composite",
919
- className: "ExpressRouteAuthorizationList",
920
- modelProperties: {
921
- value: {
922
- readOnly: true,
923
- serializedName: "",
924
- type: {
925
- name: "Sequence",
926
- element: {
927
- type: {
928
- name: "Composite",
929
- className: "ExpressRouteAuthorization"
930
- }
931
- }
932
- }
933
- },
934
- nextLink: {
935
- readOnly: true,
936
- serializedName: "nextLink",
937
- type: {
938
- name: "String"
939
- }
940
- }
941
- }
942
- }
943
- };
944
-
945
- var mappers = /*#__PURE__*/Object.freeze({
946
- __proto__: null,
947
- CloudError: CloudError,
948
- BaseResource: BaseResource,
949
- Trial: Trial,
950
- Quota: Quota,
951
- Resource: Resource,
952
- TrackedResource: TrackedResource,
953
- ErrorAdditionalInfo: ErrorAdditionalInfo,
954
- ErrorResponse: ErrorResponse,
955
- OperationDisplay: OperationDisplay,
956
- Operation: Operation,
957
- ExpressRouteAuthorization: ExpressRouteAuthorization,
958
- Circuit: Circuit,
959
- Endpoints: Endpoints,
960
- IdentitySource: IdentitySource,
961
- Sku: Sku,
962
- PrivateCloud: PrivateCloud,
963
- ClusterUpdateProperties: ClusterUpdateProperties,
964
- ManagementCluster: ManagementCluster,
965
- PrivateCloudUpdate: PrivateCloudUpdate,
966
- Cluster: Cluster,
967
- ClusterUpdate: ClusterUpdate,
968
- AdminCredentials: AdminCredentials,
969
- HcxEnterpriseSite: HcxEnterpriseSite,
970
- OperationList: OperationList,
971
- PrivateCloudList: PrivateCloudList,
972
- ClusterList: ClusterList,
973
- HcxEnterpriseSiteList: HcxEnterpriseSiteList,
974
- ExpressRouteAuthorizationList: ExpressRouteAuthorizationList
975
- });
976
-
977
- /*
978
- * Copyright (c) Microsoft Corporation. All rights reserved.
979
- * Licensed under the MIT License. See License.txt in the project root for license information.
980
- *
981
- * Code generated by Microsoft (R) AutoRest Code Generator.
982
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
983
- */
984
-
985
- var Mappers = /*#__PURE__*/Object.freeze({
986
- __proto__: null,
987
- CloudError: CloudError,
988
- ErrorAdditionalInfo: ErrorAdditionalInfo,
989
- ErrorResponse: ErrorResponse,
990
- Operation: Operation,
991
- OperationDisplay: OperationDisplay,
992
- OperationList: OperationList
993
- });
994
-
995
- /*
996
- * Copyright (c) Microsoft Corporation. All rights reserved.
997
- * Licensed under the MIT License. See License.txt in the project root for
998
- * license information.
999
- *
1000
- * Code generated by Microsoft (R) AutoRest Code Generator.
1001
- * Changes may cause incorrect behavior and will be lost if the code is
1002
- * regenerated.
1003
- */
1004
- var acceptLanguage = {
1005
- parameterPath: "acceptLanguage",
1006
- mapper: {
1007
- serializedName: "accept-language",
1008
- defaultValue: 'en-US',
1009
- type: {
1010
- name: "String"
1011
- }
1012
- }
1013
- };
1014
- var apiVersion = {
1015
- parameterPath: "apiVersion",
1016
- mapper: {
1017
- required: true,
1018
- serializedName: "api-version",
1019
- constraints: {
1020
- MinLength: 1
1021
- },
1022
- type: {
1023
- name: "String"
1024
- }
1025
- }
1026
- };
1027
- var authorizationName = {
1028
- parameterPath: "authorizationName",
1029
- mapper: {
1030
- required: true,
1031
- serializedName: "authorizationName",
1032
- type: {
1033
- name: "String"
1034
- }
1035
- }
1036
- };
1037
- var clusterName = {
1038
- parameterPath: "clusterName",
1039
- mapper: {
1040
- required: true,
1041
- serializedName: "clusterName",
1042
- type: {
1043
- name: "String"
1044
- }
1045
- }
1046
- };
1047
- var hcxEnterpriseSiteName = {
1048
- parameterPath: "hcxEnterpriseSiteName",
1049
- mapper: {
1050
- required: true,
1051
- serializedName: "hcxEnterpriseSiteName",
1052
- type: {
1053
- name: "String"
1054
- }
1055
- }
1056
- };
1057
- var location = {
1058
- parameterPath: "location",
1059
- mapper: {
1060
- required: true,
1061
- serializedName: "location",
1062
- type: {
1063
- name: "String"
1064
- }
1065
- }
1066
- };
1067
- var nextPageLink = {
1068
- parameterPath: "nextPageLink",
1069
- mapper: {
1070
- required: true,
1071
- serializedName: "nextLink",
1072
- type: {
1073
- name: "String"
1074
- }
1075
- },
1076
- skipEncoding: true
1077
- };
1078
- var privateCloudName = {
1079
- parameterPath: "privateCloudName",
1080
- mapper: {
1081
- required: true,
1082
- serializedName: "privateCloudName",
1083
- type: {
1084
- name: "String"
1085
- }
1086
- }
1087
- };
1088
- var resourceGroupName = {
1089
- parameterPath: "resourceGroupName",
1090
- mapper: {
1091
- required: true,
1092
- serializedName: "resourceGroupName",
1093
- constraints: {
1094
- MaxLength: 90,
1095
- MinLength: 1,
1096
- Pattern: /^[-\w\._\(\)]+$/
1097
- },
1098
- type: {
1099
- name: "String"
1100
- }
1101
- }
1102
- };
1103
- var subscriptionId = {
1104
- parameterPath: "subscriptionId",
1105
- mapper: {
1106
- required: true,
1107
- serializedName: "subscriptionId",
1108
- constraints: {
1109
- MinLength: 1
1110
- },
1111
- type: {
1112
- name: "String"
1113
- }
1114
- }
1115
- };
1116
-
1117
- /*
1118
- * Copyright (c) Microsoft Corporation. All rights reserved.
1119
- * Licensed under the MIT License. See License.txt in the project root for
1120
- * license information.
1121
- *
1122
- * Code generated by Microsoft (R) AutoRest Code Generator.
1123
- * Changes may cause incorrect behavior and will be lost if the code is
1124
- * regenerated.
1125
- */
1126
- /** Class representing a Operations. */
1127
- var Operations = /** @class */ (function () {
1128
- /**
1129
- * Create a Operations.
1130
- * @param {AvsClientContext} client Reference to the service client.
1131
- */
1132
- function Operations(client) {
1133
- this.client = client;
1134
- }
1135
- Operations.prototype.list = function (options, callback) {
1136
- return this.client.sendOperationRequest({
1137
- options: options
1138
- }, listOperationSpec, callback);
1139
- };
1140
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
1141
- return this.client.sendOperationRequest({
1142
- nextPageLink: nextPageLink,
1143
- options: options
1144
- }, listNextOperationSpec, callback);
1145
- };
1146
- return Operations;
1147
- }());
1148
- // Operation Specifications
1149
- var serializer = new msRest.Serializer(Mappers);
1150
- var listOperationSpec = {
1151
- httpMethod: "GET",
1152
- path: "providers/Microsoft.AVS/operations",
1153
- queryParameters: [
1154
- apiVersion
1155
- ],
1156
- headerParameters: [
1157
- acceptLanguage
1158
- ],
1159
- responses: {
1160
- 200: {
1161
- bodyMapper: OperationList
1162
- },
1163
- default: {
1164
- bodyMapper: CloudError
1165
- }
1166
- },
1167
- serializer: serializer
1168
- };
1169
- var listNextOperationSpec = {
1170
- httpMethod: "GET",
1171
- baseUrl: "https://management.azure.com",
1172
- path: "{nextLink}",
1173
- urlParameters: [
1174
- nextPageLink
1175
- ],
1176
- headerParameters: [
1177
- acceptLanguage
1178
- ],
1179
- responses: {
1180
- 200: {
1181
- bodyMapper: OperationList
1182
- },
1183
- default: {
1184
- bodyMapper: CloudError
1185
- }
1186
- },
1187
- serializer: serializer
1188
- };
1189
-
1190
- /*
1191
- * Copyright (c) Microsoft Corporation. All rights reserved.
1192
- * Licensed under the MIT License. See License.txt in the project root for license information.
1193
- *
1194
- * Code generated by Microsoft (R) AutoRest Code Generator.
1195
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1196
- */
1197
-
1198
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1199
- __proto__: null,
1200
- CloudError: CloudError,
1201
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1202
- ErrorResponse: ErrorResponse,
1203
- Quota: Quota,
1204
- Trial: Trial
1205
- });
1206
-
1207
- /*
1208
- * Copyright (c) Microsoft Corporation. All rights reserved.
1209
- * Licensed under the MIT License. See License.txt in the project root for
1210
- * license information.
1211
- *
1212
- * Code generated by Microsoft (R) AutoRest Code Generator.
1213
- * Changes may cause incorrect behavior and will be lost if the code is
1214
- * regenerated.
1215
- */
1216
- /** Class representing a Locations. */
1217
- var Locations = /** @class */ (function () {
1218
- /**
1219
- * Create a Locations.
1220
- * @param {AvsClientContext} client Reference to the service client.
1221
- */
1222
- function Locations(client) {
1223
- this.client = client;
1224
- }
1225
- Locations.prototype.checkTrialAvailability = function (location, options, callback) {
1226
- return this.client.sendOperationRequest({
1227
- location: location,
1228
- options: options
1229
- }, checkTrialAvailabilityOperationSpec, callback);
1230
- };
1231
- Locations.prototype.checkQuotaAvailability = function (location, options, callback) {
1232
- return this.client.sendOperationRequest({
1233
- location: location,
1234
- options: options
1235
- }, checkQuotaAvailabilityOperationSpec, callback);
1236
- };
1237
- return Locations;
1238
- }());
1239
- // Operation Specifications
1240
- var serializer$1 = new msRest.Serializer(Mappers$1);
1241
- var checkTrialAvailabilityOperationSpec = {
1242
- httpMethod: "POST",
1243
- path: "subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability",
1244
- urlParameters: [
1245
- subscriptionId,
1246
- location
1247
- ],
1248
- queryParameters: [
1249
- apiVersion
1250
- ],
1251
- headerParameters: [
1252
- acceptLanguage
1253
- ],
1254
- responses: {
1255
- 200: {
1256
- bodyMapper: Trial
1257
- },
1258
- default: {
1259
- bodyMapper: CloudError
1260
- }
1261
- },
1262
- serializer: serializer$1
1263
- };
1264
- var checkQuotaAvailabilityOperationSpec = {
1265
- httpMethod: "POST",
1266
- path: "subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability",
1267
- urlParameters: [
1268
- subscriptionId,
1269
- location
1270
- ],
1271
- queryParameters: [
1272
- apiVersion
1273
- ],
1274
- headerParameters: [
1275
- acceptLanguage
1276
- ],
1277
- responses: {
1278
- 200: {
1279
- bodyMapper: Quota
1280
- },
1281
- default: {
1282
- bodyMapper: CloudError
1283
- }
1284
- },
1285
- serializer: serializer$1
1286
- };
1287
-
1288
- /*
1289
- * Copyright (c) Microsoft Corporation. All rights reserved.
1290
- * Licensed under the MIT License. See License.txt in the project root for license information.
1291
- *
1292
- * Code generated by Microsoft (R) AutoRest Code Generator.
1293
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1294
- */
1295
-
1296
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1297
- __proto__: null,
1298
- AdminCredentials: AdminCredentials,
1299
- BaseResource: BaseResource,
1300
- Circuit: Circuit,
1301
- CloudError: CloudError,
1302
- Cluster: Cluster,
1303
- ClusterUpdateProperties: ClusterUpdateProperties,
1304
- Endpoints: Endpoints,
1305
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1306
- ErrorResponse: ErrorResponse,
1307
- ExpressRouteAuthorization: ExpressRouteAuthorization,
1308
- HcxEnterpriseSite: HcxEnterpriseSite,
1309
- IdentitySource: IdentitySource,
1310
- ManagementCluster: ManagementCluster,
1311
- PrivateCloud: PrivateCloud,
1312
- PrivateCloudList: PrivateCloudList,
1313
- PrivateCloudUpdate: PrivateCloudUpdate,
1314
- Resource: Resource,
1315
- Sku: Sku,
1316
- TrackedResource: TrackedResource
1317
- });
1318
-
1319
- /*
1320
- * Copyright (c) Microsoft Corporation. All rights reserved.
1321
- * Licensed under the MIT License. See License.txt in the project root for
1322
- * license information.
1323
- *
1324
- * Code generated by Microsoft (R) AutoRest Code Generator.
1325
- * Changes may cause incorrect behavior and will be lost if the code is
1326
- * regenerated.
1327
- */
1328
- /** Class representing a PrivateClouds. */
1329
- var PrivateClouds = /** @class */ (function () {
1330
- /**
1331
- * Create a PrivateClouds.
1332
- * @param {AvsClientContext} client Reference to the service client.
1333
- */
1334
- function PrivateClouds(client) {
1335
- this.client = client;
1336
- }
1337
- PrivateClouds.prototype.list = function (resourceGroupName, options, callback) {
1338
- return this.client.sendOperationRequest({
1339
- resourceGroupName: resourceGroupName,
1340
- options: options
1341
- }, listOperationSpec$1, callback);
1342
- };
1343
- PrivateClouds.prototype.listInSubscription = function (options, callback) {
1344
- return this.client.sendOperationRequest({
1345
- options: options
1346
- }, listInSubscriptionOperationSpec, callback);
1347
- };
1348
- PrivateClouds.prototype.get = function (resourceGroupName, privateCloudName, options, callback) {
1349
- return this.client.sendOperationRequest({
1350
- resourceGroupName: resourceGroupName,
1351
- privateCloudName: privateCloudName,
1352
- options: options
1353
- }, getOperationSpec, callback);
1354
- };
1355
- /**
1356
- * @summary Create or update a private cloud
1357
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1358
- * @param privateCloudName Name of the private cloud
1359
- * @param privateCloud The private cloud
1360
- * @param [options] The optional parameters
1361
- * @returns Promise<Models.PrivateCloudsCreateOrUpdateResponse>
1362
- */
1363
- PrivateClouds.prototype.createOrUpdate = function (resourceGroupName, privateCloudName, privateCloud, options) {
1364
- return this.beginCreateOrUpdate(resourceGroupName, privateCloudName, privateCloud, options)
1365
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1366
- };
1367
- /**
1368
- * @summary Update a private cloud
1369
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1370
- * @param privateCloudName Name of the private cloud
1371
- * @param privateCloudUpdate The private cloud properties to be updated
1372
- * @param [options] The optional parameters
1373
- * @returns Promise<Models.PrivateCloudsUpdateResponse>
1374
- */
1375
- PrivateClouds.prototype.update = function (resourceGroupName, privateCloudName, privateCloudUpdate, options) {
1376
- return this.beginUpdate(resourceGroupName, privateCloudName, privateCloudUpdate, options)
1377
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1378
- };
1379
- /**
1380
- * @summary Delete a private cloud
1381
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1382
- * @param privateCloudName Name of the private cloud
1383
- * @param [options] The optional parameters
1384
- * @returns Promise<msRest.RestResponse>
1385
- */
1386
- PrivateClouds.prototype.deleteMethod = function (resourceGroupName, privateCloudName, options) {
1387
- return this.beginDeleteMethod(resourceGroupName, privateCloudName, options)
1388
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1389
- };
1390
- PrivateClouds.prototype.listAdminCredentials = function (resourceGroupName, privateCloudName, options, callback) {
1391
- return this.client.sendOperationRequest({
1392
- resourceGroupName: resourceGroupName,
1393
- privateCloudName: privateCloudName,
1394
- options: options
1395
- }, listAdminCredentialsOperationSpec, callback);
1396
- };
1397
- /**
1398
- * @summary Create or update a private cloud
1399
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1400
- * @param privateCloudName Name of the private cloud
1401
- * @param privateCloud The private cloud
1402
- * @param [options] The optional parameters
1403
- * @returns Promise<msRestAzure.LROPoller>
1404
- */
1405
- PrivateClouds.prototype.beginCreateOrUpdate = function (resourceGroupName, privateCloudName, privateCloud, options) {
1406
- return this.client.sendLRORequest({
1407
- resourceGroupName: resourceGroupName,
1408
- privateCloudName: privateCloudName,
1409
- privateCloud: privateCloud,
1410
- options: options
1411
- }, beginCreateOrUpdateOperationSpec, options);
1412
- };
1413
- /**
1414
- * @summary Update a private cloud
1415
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1416
- * @param privateCloudName Name of the private cloud
1417
- * @param privateCloudUpdate The private cloud properties to be updated
1418
- * @param [options] The optional parameters
1419
- * @returns Promise<msRestAzure.LROPoller>
1420
- */
1421
- PrivateClouds.prototype.beginUpdate = function (resourceGroupName, privateCloudName, privateCloudUpdate, options) {
1422
- return this.client.sendLRORequest({
1423
- resourceGroupName: resourceGroupName,
1424
- privateCloudName: privateCloudName,
1425
- privateCloudUpdate: privateCloudUpdate,
1426
- options: options
1427
- }, beginUpdateOperationSpec, options);
1428
- };
1429
- /**
1430
- * @summary Delete a private cloud
1431
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1432
- * @param privateCloudName Name of the private cloud
1433
- * @param [options] The optional parameters
1434
- * @returns Promise<msRestAzure.LROPoller>
1435
- */
1436
- PrivateClouds.prototype.beginDeleteMethod = function (resourceGroupName, privateCloudName, options) {
1437
- return this.client.sendLRORequest({
1438
- resourceGroupName: resourceGroupName,
1439
- privateCloudName: privateCloudName,
1440
- options: options
1441
- }, beginDeleteMethodOperationSpec, options);
1442
- };
1443
- PrivateClouds.prototype.listNext = function (nextPageLink, options, callback) {
1444
- return this.client.sendOperationRequest({
1445
- nextPageLink: nextPageLink,
1446
- options: options
1447
- }, listNextOperationSpec$1, callback);
1448
- };
1449
- PrivateClouds.prototype.listInSubscriptionNext = function (nextPageLink, options, callback) {
1450
- return this.client.sendOperationRequest({
1451
- nextPageLink: nextPageLink,
1452
- options: options
1453
- }, listInSubscriptionNextOperationSpec, callback);
1454
- };
1455
- return PrivateClouds;
1456
- }());
1457
- // Operation Specifications
1458
- var serializer$2 = new msRest.Serializer(Mappers$2);
1459
- var listOperationSpec$1 = {
1460
- httpMethod: "GET",
1461
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds",
1462
- urlParameters: [
1463
- subscriptionId,
1464
- resourceGroupName
1465
- ],
1466
- queryParameters: [
1467
- apiVersion
1468
- ],
1469
- headerParameters: [
1470
- acceptLanguage
1471
- ],
1472
- responses: {
1473
- 200: {
1474
- bodyMapper: PrivateCloudList
1475
- },
1476
- default: {
1477
- bodyMapper: CloudError
1478
- }
1479
- },
1480
- serializer: serializer$2
1481
- };
1482
- var listInSubscriptionOperationSpec = {
1483
- httpMethod: "GET",
1484
- path: "subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds",
1485
- urlParameters: [
1486
- subscriptionId
1487
- ],
1488
- queryParameters: [
1489
- apiVersion
1490
- ],
1491
- headerParameters: [
1492
- acceptLanguage
1493
- ],
1494
- responses: {
1495
- 200: {
1496
- bodyMapper: PrivateCloudList
1497
- },
1498
- default: {
1499
- bodyMapper: CloudError
1500
- }
1501
- },
1502
- serializer: serializer$2
1503
- };
1504
- var getOperationSpec = {
1505
- httpMethod: "GET",
1506
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
1507
- urlParameters: [
1508
- subscriptionId,
1509
- resourceGroupName,
1510
- privateCloudName
1511
- ],
1512
- queryParameters: [
1513
- apiVersion
1514
- ],
1515
- headerParameters: [
1516
- acceptLanguage
1517
- ],
1518
- responses: {
1519
- 200: {
1520
- bodyMapper: PrivateCloud
1521
- },
1522
- default: {
1523
- bodyMapper: CloudError
1524
- }
1525
- },
1526
- serializer: serializer$2
1527
- };
1528
- var listAdminCredentialsOperationSpec = {
1529
- httpMethod: "POST",
1530
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials",
1531
- urlParameters: [
1532
- subscriptionId,
1533
- resourceGroupName,
1534
- privateCloudName
1535
- ],
1536
- queryParameters: [
1537
- apiVersion
1538
- ],
1539
- headerParameters: [
1540
- acceptLanguage
1541
- ],
1542
- responses: {
1543
- 200: {
1544
- bodyMapper: AdminCredentials
1545
- },
1546
- default: {
1547
- bodyMapper: CloudError
1548
- }
1549
- },
1550
- serializer: serializer$2
1551
- };
1552
- var beginCreateOrUpdateOperationSpec = {
1553
- httpMethod: "PUT",
1554
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
1555
- urlParameters: [
1556
- subscriptionId,
1557
- resourceGroupName,
1558
- privateCloudName
1559
- ],
1560
- queryParameters: [
1561
- apiVersion
1562
- ],
1563
- headerParameters: [
1564
- acceptLanguage
1565
- ],
1566
- requestBody: {
1567
- parameterPath: "privateCloud",
1568
- mapper: __assign(__assign({}, PrivateCloud), { required: true })
1569
- },
1570
- responses: {
1571
- 200: {
1572
- bodyMapper: PrivateCloud
1573
- },
1574
- 201: {
1575
- bodyMapper: PrivateCloud
1576
- },
1577
- default: {
1578
- bodyMapper: CloudError
1579
- }
1580
- },
1581
- serializer: serializer$2
1582
- };
1583
- var beginUpdateOperationSpec = {
1584
- httpMethod: "PATCH",
1585
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
1586
- urlParameters: [
1587
- subscriptionId,
1588
- resourceGroupName,
1589
- privateCloudName
1590
- ],
1591
- queryParameters: [
1592
- apiVersion
1593
- ],
1594
- headerParameters: [
1595
- acceptLanguage
1596
- ],
1597
- requestBody: {
1598
- parameterPath: "privateCloudUpdate",
1599
- mapper: __assign(__assign({}, PrivateCloudUpdate), { required: true })
1600
- },
1601
- responses: {
1602
- 200: {
1603
- bodyMapper: PrivateCloud
1604
- },
1605
- 201: {
1606
- bodyMapper: PrivateCloud
1607
- },
1608
- default: {
1609
- bodyMapper: CloudError
1610
- }
1611
- },
1612
- serializer: serializer$2
1613
- };
1614
- var beginDeleteMethodOperationSpec = {
1615
- httpMethod: "DELETE",
1616
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
1617
- urlParameters: [
1618
- subscriptionId,
1619
- resourceGroupName,
1620
- privateCloudName
1621
- ],
1622
- queryParameters: [
1623
- apiVersion
1624
- ],
1625
- headerParameters: [
1626
- acceptLanguage
1627
- ],
1628
- responses: {
1629
- 200: {},
1630
- 202: {},
1631
- 204: {},
1632
- default: {
1633
- bodyMapper: CloudError
1634
- }
1635
- },
1636
- serializer: serializer$2
1637
- };
1638
- var listNextOperationSpec$1 = {
1639
- httpMethod: "GET",
1640
- baseUrl: "https://management.azure.com",
1641
- path: "{nextLink}",
1642
- urlParameters: [
1643
- nextPageLink
1644
- ],
1645
- headerParameters: [
1646
- acceptLanguage
1647
- ],
1648
- responses: {
1649
- 200: {
1650
- bodyMapper: PrivateCloudList
1651
- },
1652
- default: {
1653
- bodyMapper: CloudError
1654
- }
1655
- },
1656
- serializer: serializer$2
1657
- };
1658
- var listInSubscriptionNextOperationSpec = {
1659
- httpMethod: "GET",
1660
- baseUrl: "https://management.azure.com",
1661
- path: "{nextLink}",
1662
- urlParameters: [
1663
- nextPageLink
1664
- ],
1665
- headerParameters: [
1666
- acceptLanguage
1667
- ],
1668
- responses: {
1669
- 200: {
1670
- bodyMapper: PrivateCloudList
1671
- },
1672
- default: {
1673
- bodyMapper: CloudError
1674
- }
1675
- },
1676
- serializer: serializer$2
1677
- };
1678
-
1679
- /*
1680
- * Copyright (c) Microsoft Corporation. All rights reserved.
1681
- * Licensed under the MIT License. See License.txt in the project root for license information.
1682
- *
1683
- * Code generated by Microsoft (R) AutoRest Code Generator.
1684
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1685
- */
1686
-
1687
- var Mappers$3 = /*#__PURE__*/Object.freeze({
1688
- __proto__: null,
1689
- BaseResource: BaseResource,
1690
- Circuit: Circuit,
1691
- CloudError: CloudError,
1692
- Cluster: Cluster,
1693
- ClusterList: ClusterList,
1694
- ClusterUpdate: ClusterUpdate,
1695
- ClusterUpdateProperties: ClusterUpdateProperties,
1696
- Endpoints: Endpoints,
1697
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1698
- ErrorResponse: ErrorResponse,
1699
- ExpressRouteAuthorization: ExpressRouteAuthorization,
1700
- HcxEnterpriseSite: HcxEnterpriseSite,
1701
- IdentitySource: IdentitySource,
1702
- ManagementCluster: ManagementCluster,
1703
- PrivateCloud: PrivateCloud,
1704
- Resource: Resource,
1705
- Sku: Sku,
1706
- TrackedResource: TrackedResource
1707
- });
1708
-
1709
- /*
1710
- * Copyright (c) Microsoft Corporation. All rights reserved.
1711
- * Licensed under the MIT License. See License.txt in the project root for
1712
- * license information.
1713
- *
1714
- * Code generated by Microsoft (R) AutoRest Code Generator.
1715
- * Changes may cause incorrect behavior and will be lost if the code is
1716
- * regenerated.
1717
- */
1718
- /** Class representing a Clusters. */
1719
- var Clusters = /** @class */ (function () {
1720
- /**
1721
- * Create a Clusters.
1722
- * @param {AvsClientContext} client Reference to the service client.
1723
- */
1724
- function Clusters(client) {
1725
- this.client = client;
1726
- }
1727
- Clusters.prototype.list = function (resourceGroupName, privateCloudName, options, callback) {
1728
- return this.client.sendOperationRequest({
1729
- resourceGroupName: resourceGroupName,
1730
- privateCloudName: privateCloudName,
1731
- options: options
1732
- }, listOperationSpec$2, callback);
1733
- };
1734
- Clusters.prototype.get = function (resourceGroupName, privateCloudName, clusterName, options, callback) {
1735
- return this.client.sendOperationRequest({
1736
- resourceGroupName: resourceGroupName,
1737
- privateCloudName: privateCloudName,
1738
- clusterName: clusterName,
1739
- options: options
1740
- }, getOperationSpec$1, callback);
1741
- };
1742
- /**
1743
- * @summary Create or update a cluster in a private cloud
1744
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1745
- * @param privateCloudName The name of the private cloud.
1746
- * @param clusterName Name of the cluster in the private cloud
1747
- * @param cluster A cluster in the private cloud
1748
- * @param [options] The optional parameters
1749
- * @returns Promise<Models.ClustersCreateOrUpdateResponse>
1750
- */
1751
- Clusters.prototype.createOrUpdate = function (resourceGroupName, privateCloudName, clusterName, cluster, options) {
1752
- return this.beginCreateOrUpdate(resourceGroupName, privateCloudName, clusterName, cluster, options)
1753
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1754
- };
1755
- /**
1756
- * @summary Update a cluster in a private cloud
1757
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1758
- * @param privateCloudName Name of the private cloud
1759
- * @param clusterName Name of the cluster in the private cloud
1760
- * @param [options] The optional parameters
1761
- * @returns Promise<Models.ClustersUpdateResponse>
1762
- */
1763
- Clusters.prototype.update = function (resourceGroupName, privateCloudName, clusterName, options) {
1764
- return this.beginUpdate(resourceGroupName, privateCloudName, clusterName, options)
1765
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1766
- };
1767
- /**
1768
- * @summary Delete a cluster in a private cloud
1769
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1770
- * @param privateCloudName Name of the private cloud
1771
- * @param clusterName Name of the cluster in the private cloud
1772
- * @param [options] The optional parameters
1773
- * @returns Promise<msRest.RestResponse>
1774
- */
1775
- Clusters.prototype.deleteMethod = function (resourceGroupName, privateCloudName, clusterName, options) {
1776
- return this.beginDeleteMethod(resourceGroupName, privateCloudName, clusterName, options)
1777
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1778
- };
1779
- /**
1780
- * @summary Create or update a cluster in a private cloud
1781
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1782
- * @param privateCloudName The name of the private cloud.
1783
- * @param clusterName Name of the cluster in the private cloud
1784
- * @param cluster A cluster in the private cloud
1785
- * @param [options] The optional parameters
1786
- * @returns Promise<msRestAzure.LROPoller>
1787
- */
1788
- Clusters.prototype.beginCreateOrUpdate = function (resourceGroupName, privateCloudName, clusterName, cluster, options) {
1789
- return this.client.sendLRORequest({
1790
- resourceGroupName: resourceGroupName,
1791
- privateCloudName: privateCloudName,
1792
- clusterName: clusterName,
1793
- cluster: cluster,
1794
- options: options
1795
- }, beginCreateOrUpdateOperationSpec$1, options);
1796
- };
1797
- /**
1798
- * @summary Update a cluster in a private cloud
1799
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1800
- * @param privateCloudName Name of the private cloud
1801
- * @param clusterName Name of the cluster in the private cloud
1802
- * @param [options] The optional parameters
1803
- * @returns Promise<msRestAzure.LROPoller>
1804
- */
1805
- Clusters.prototype.beginUpdate = function (resourceGroupName, privateCloudName, clusterName, options) {
1806
- return this.client.sendLRORequest({
1807
- resourceGroupName: resourceGroupName,
1808
- privateCloudName: privateCloudName,
1809
- clusterName: clusterName,
1810
- options: options
1811
- }, beginUpdateOperationSpec$1, options);
1812
- };
1813
- /**
1814
- * @summary Delete a cluster in a private cloud
1815
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1816
- * @param privateCloudName Name of the private cloud
1817
- * @param clusterName Name of the cluster in the private cloud
1818
- * @param [options] The optional parameters
1819
- * @returns Promise<msRestAzure.LROPoller>
1820
- */
1821
- Clusters.prototype.beginDeleteMethod = function (resourceGroupName, privateCloudName, clusterName, options) {
1822
- return this.client.sendLRORequest({
1823
- resourceGroupName: resourceGroupName,
1824
- privateCloudName: privateCloudName,
1825
- clusterName: clusterName,
1826
- options: options
1827
- }, beginDeleteMethodOperationSpec$1, options);
1828
- };
1829
- Clusters.prototype.listNext = function (nextPageLink, options, callback) {
1830
- return this.client.sendOperationRequest({
1831
- nextPageLink: nextPageLink,
1832
- options: options
1833
- }, listNextOperationSpec$2, callback);
1834
- };
1835
- return Clusters;
1836
- }());
1837
- // Operation Specifications
1838
- var serializer$3 = new msRest.Serializer(Mappers$3);
1839
- var listOperationSpec$2 = {
1840
- httpMethod: "GET",
1841
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters",
1842
- urlParameters: [
1843
- subscriptionId,
1844
- resourceGroupName,
1845
- privateCloudName
1846
- ],
1847
- queryParameters: [
1848
- apiVersion
1849
- ],
1850
- headerParameters: [
1851
- acceptLanguage
1852
- ],
1853
- responses: {
1854
- 200: {
1855
- bodyMapper: ClusterList
1856
- },
1857
- default: {
1858
- bodyMapper: CloudError
1859
- }
1860
- },
1861
- serializer: serializer$3
1862
- };
1863
- var getOperationSpec$1 = {
1864
- httpMethod: "GET",
1865
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
1866
- urlParameters: [
1867
- subscriptionId,
1868
- resourceGroupName,
1869
- privateCloudName,
1870
- clusterName
1871
- ],
1872
- queryParameters: [
1873
- apiVersion
1874
- ],
1875
- headerParameters: [
1876
- acceptLanguage
1877
- ],
1878
- responses: {
1879
- 200: {
1880
- bodyMapper: Cluster
1881
- },
1882
- default: {
1883
- bodyMapper: CloudError
1884
- }
1885
- },
1886
- serializer: serializer$3
1887
- };
1888
- var beginCreateOrUpdateOperationSpec$1 = {
1889
- httpMethod: "PUT",
1890
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
1891
- urlParameters: [
1892
- subscriptionId,
1893
- resourceGroupName,
1894
- privateCloudName,
1895
- clusterName
1896
- ],
1897
- queryParameters: [
1898
- apiVersion
1899
- ],
1900
- headerParameters: [
1901
- acceptLanguage
1902
- ],
1903
- requestBody: {
1904
- parameterPath: "cluster",
1905
- mapper: __assign(__assign({}, Cluster), { required: true })
1906
- },
1907
- responses: {
1908
- 200: {
1909
- bodyMapper: Cluster
1910
- },
1911
- 201: {
1912
- bodyMapper: Cluster
1913
- },
1914
- default: {
1915
- bodyMapper: CloudError
1916
- }
1917
- },
1918
- serializer: serializer$3
1919
- };
1920
- var beginUpdateOperationSpec$1 = {
1921
- httpMethod: "PATCH",
1922
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
1923
- urlParameters: [
1924
- subscriptionId,
1925
- resourceGroupName,
1926
- privateCloudName,
1927
- clusterName
1928
- ],
1929
- queryParameters: [
1930
- apiVersion
1931
- ],
1932
- headerParameters: [
1933
- acceptLanguage
1934
- ],
1935
- requestBody: {
1936
- parameterPath: {
1937
- clusterSize: [
1938
- "options",
1939
- "clusterSize"
1940
- ]
1941
- },
1942
- mapper: __assign(__assign({}, ClusterUpdate), { required: true })
1943
- },
1944
- responses: {
1945
- 200: {
1946
- bodyMapper: Cluster
1947
- },
1948
- 201: {
1949
- bodyMapper: Cluster
1950
- },
1951
- default: {
1952
- bodyMapper: CloudError
1953
- }
1954
- },
1955
- serializer: serializer$3
1956
- };
1957
- var beginDeleteMethodOperationSpec$1 = {
1958
- httpMethod: "DELETE",
1959
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
1960
- urlParameters: [
1961
- subscriptionId,
1962
- resourceGroupName,
1963
- privateCloudName,
1964
- clusterName
1965
- ],
1966
- queryParameters: [
1967
- apiVersion
1968
- ],
1969
- headerParameters: [
1970
- acceptLanguage
1971
- ],
1972
- responses: {
1973
- 200: {},
1974
- 202: {},
1975
- 204: {},
1976
- default: {
1977
- bodyMapper: CloudError
1978
- }
1979
- },
1980
- serializer: serializer$3
1981
- };
1982
- var listNextOperationSpec$2 = {
1983
- httpMethod: "GET",
1984
- baseUrl: "https://management.azure.com",
1985
- path: "{nextLink}",
1986
- urlParameters: [
1987
- nextPageLink
1988
- ],
1989
- headerParameters: [
1990
- acceptLanguage
1991
- ],
1992
- responses: {
1993
- 200: {
1994
- bodyMapper: ClusterList
1995
- },
1996
- default: {
1997
- bodyMapper: CloudError
1998
- }
1999
- },
2000
- serializer: serializer$3
2001
- };
2002
-
2003
- /*
2004
- * Copyright (c) Microsoft Corporation. All rights reserved.
2005
- * Licensed under the MIT License. See License.txt in the project root for license information.
2006
- *
2007
- * Code generated by Microsoft (R) AutoRest Code Generator.
2008
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2009
- */
2010
-
2011
- var Mappers$4 = /*#__PURE__*/Object.freeze({
2012
- __proto__: null,
2013
- BaseResource: BaseResource,
2014
- Circuit: Circuit,
2015
- CloudError: CloudError,
2016
- Cluster: Cluster,
2017
- ClusterUpdateProperties: ClusterUpdateProperties,
2018
- Endpoints: Endpoints,
2019
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2020
- ErrorResponse: ErrorResponse,
2021
- ExpressRouteAuthorization: ExpressRouteAuthorization,
2022
- HcxEnterpriseSite: HcxEnterpriseSite,
2023
- HcxEnterpriseSiteList: HcxEnterpriseSiteList,
2024
- IdentitySource: IdentitySource,
2025
- ManagementCluster: ManagementCluster,
2026
- PrivateCloud: PrivateCloud,
2027
- Resource: Resource,
2028
- Sku: Sku,
2029
- TrackedResource: TrackedResource
2030
- });
2031
-
2032
- /*
2033
- * Copyright (c) Microsoft Corporation. All rights reserved.
2034
- * Licensed under the MIT License. See License.txt in the project root for
2035
- * license information.
2036
- *
2037
- * Code generated by Microsoft (R) AutoRest Code Generator.
2038
- * Changes may cause incorrect behavior and will be lost if the code is
2039
- * regenerated.
2040
- */
2041
- /** Class representing a HcxEnterpriseSites. */
2042
- var HcxEnterpriseSites = /** @class */ (function () {
2043
- /**
2044
- * Create a HcxEnterpriseSites.
2045
- * @param {AvsClientContext} client Reference to the service client.
2046
- */
2047
- function HcxEnterpriseSites(client) {
2048
- this.client = client;
2049
- }
2050
- HcxEnterpriseSites.prototype.list = function (resourceGroupName, privateCloudName, options, callback) {
2051
- return this.client.sendOperationRequest({
2052
- resourceGroupName: resourceGroupName,
2053
- privateCloudName: privateCloudName,
2054
- options: options
2055
- }, listOperationSpec$3, callback);
2056
- };
2057
- HcxEnterpriseSites.prototype.get = function (resourceGroupName, privateCloudName, hcxEnterpriseSiteName, options, callback) {
2058
- return this.client.sendOperationRequest({
2059
- resourceGroupName: resourceGroupName,
2060
- privateCloudName: privateCloudName,
2061
- hcxEnterpriseSiteName: hcxEnterpriseSiteName,
2062
- options: options
2063
- }, getOperationSpec$2, callback);
2064
- };
2065
- HcxEnterpriseSites.prototype.createOrUpdate = function (resourceGroupName, privateCloudName, hcxEnterpriseSiteName, hcxEnterpriseSite, options, callback) {
2066
- return this.client.sendOperationRequest({
2067
- resourceGroupName: resourceGroupName,
2068
- privateCloudName: privateCloudName,
2069
- hcxEnterpriseSiteName: hcxEnterpriseSiteName,
2070
- hcxEnterpriseSite: hcxEnterpriseSite,
2071
- options: options
2072
- }, createOrUpdateOperationSpec, callback);
2073
- };
2074
- HcxEnterpriseSites.prototype.deleteMethod = function (resourceGroupName, privateCloudName, hcxEnterpriseSiteName, options, callback) {
2075
- return this.client.sendOperationRequest({
2076
- resourceGroupName: resourceGroupName,
2077
- privateCloudName: privateCloudName,
2078
- hcxEnterpriseSiteName: hcxEnterpriseSiteName,
2079
- options: options
2080
- }, deleteMethodOperationSpec, callback);
2081
- };
2082
- HcxEnterpriseSites.prototype.listNext = function (nextPageLink, options, callback) {
2083
- return this.client.sendOperationRequest({
2084
- nextPageLink: nextPageLink,
2085
- options: options
2086
- }, listNextOperationSpec$3, callback);
2087
- };
2088
- return HcxEnterpriseSites;
2089
- }());
2090
- // Operation Specifications
2091
- var serializer$4 = new msRest.Serializer(Mappers$4);
2092
- var listOperationSpec$3 = {
2093
- httpMethod: "GET",
2094
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites",
2095
- urlParameters: [
2096
- subscriptionId,
2097
- resourceGroupName,
2098
- privateCloudName
2099
- ],
2100
- queryParameters: [
2101
- apiVersion
2102
- ],
2103
- headerParameters: [
2104
- acceptLanguage
2105
- ],
2106
- responses: {
2107
- 200: {
2108
- bodyMapper: HcxEnterpriseSiteList
2109
- },
2110
- default: {
2111
- bodyMapper: CloudError
2112
- }
2113
- },
2114
- serializer: serializer$4
2115
- };
2116
- var getOperationSpec$2 = {
2117
- httpMethod: "GET",
2118
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
2119
- urlParameters: [
2120
- subscriptionId,
2121
- resourceGroupName,
2122
- privateCloudName,
2123
- hcxEnterpriseSiteName
2124
- ],
2125
- queryParameters: [
2126
- apiVersion
2127
- ],
2128
- headerParameters: [
2129
- acceptLanguage
2130
- ],
2131
- responses: {
2132
- 200: {
2133
- bodyMapper: HcxEnterpriseSite
2134
- },
2135
- default: {
2136
- bodyMapper: CloudError
2137
- }
2138
- },
2139
- serializer: serializer$4
2140
- };
2141
- var createOrUpdateOperationSpec = {
2142
- httpMethod: "PUT",
2143
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
2144
- urlParameters: [
2145
- subscriptionId,
2146
- resourceGroupName,
2147
- privateCloudName,
2148
- hcxEnterpriseSiteName
2149
- ],
2150
- queryParameters: [
2151
- apiVersion
2152
- ],
2153
- headerParameters: [
2154
- acceptLanguage
2155
- ],
2156
- requestBody: {
2157
- parameterPath: "hcxEnterpriseSite",
2158
- mapper: {
2159
- required: true,
2160
- serializedName: "hcxEnterpriseSite",
2161
- type: {
2162
- name: "Object"
2163
- }
2164
- }
2165
- },
2166
- responses: {
2167
- 200: {
2168
- bodyMapper: HcxEnterpriseSite
2169
- },
2170
- 201: {
2171
- bodyMapper: HcxEnterpriseSite
2172
- },
2173
- default: {
2174
- bodyMapper: CloudError
2175
- }
2176
- },
2177
- serializer: serializer$4
2178
- };
2179
- var deleteMethodOperationSpec = {
2180
- httpMethod: "DELETE",
2181
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}",
2182
- urlParameters: [
2183
- subscriptionId,
2184
- resourceGroupName,
2185
- privateCloudName,
2186
- hcxEnterpriseSiteName
2187
- ],
2188
- queryParameters: [
2189
- apiVersion
2190
- ],
2191
- headerParameters: [
2192
- acceptLanguage
2193
- ],
2194
- responses: {
2195
- 200: {},
2196
- 204: {},
2197
- default: {
2198
- bodyMapper: CloudError
2199
- }
2200
- },
2201
- serializer: serializer$4
2202
- };
2203
- var listNextOperationSpec$3 = {
2204
- httpMethod: "GET",
2205
- baseUrl: "https://management.azure.com",
2206
- path: "{nextLink}",
2207
- urlParameters: [
2208
- nextPageLink
2209
- ],
2210
- headerParameters: [
2211
- acceptLanguage
2212
- ],
2213
- responses: {
2214
- 200: {
2215
- bodyMapper: HcxEnterpriseSiteList
2216
- },
2217
- default: {
2218
- bodyMapper: CloudError
2219
- }
2220
- },
2221
- serializer: serializer$4
2222
- };
2223
-
2224
- /*
2225
- * Copyright (c) Microsoft Corporation. All rights reserved.
2226
- * Licensed under the MIT License. See License.txt in the project root for license information.
2227
- *
2228
- * Code generated by Microsoft (R) AutoRest Code Generator.
2229
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2230
- */
2231
-
2232
- var Mappers$5 = /*#__PURE__*/Object.freeze({
2233
- __proto__: null,
2234
- BaseResource: BaseResource,
2235
- Circuit: Circuit,
2236
- CloudError: CloudError,
2237
- Cluster: Cluster,
2238
- ClusterUpdateProperties: ClusterUpdateProperties,
2239
- Endpoints: Endpoints,
2240
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2241
- ErrorResponse: ErrorResponse,
2242
- ExpressRouteAuthorization: ExpressRouteAuthorization,
2243
- ExpressRouteAuthorizationList: ExpressRouteAuthorizationList,
2244
- HcxEnterpriseSite: HcxEnterpriseSite,
2245
- IdentitySource: IdentitySource,
2246
- ManagementCluster: ManagementCluster,
2247
- PrivateCloud: PrivateCloud,
2248
- Resource: Resource,
2249
- Sku: Sku,
2250
- TrackedResource: TrackedResource
2251
- });
2252
-
2253
- /*
2254
- * Copyright (c) Microsoft Corporation. All rights reserved.
2255
- * Licensed under the MIT License. See License.txt in the project root for
2256
- * license information.
2257
- *
2258
- * Code generated by Microsoft (R) AutoRest Code Generator.
2259
- * Changes may cause incorrect behavior and will be lost if the code is
2260
- * regenerated.
2261
- */
2262
- /** Class representing a Authorizations. */
2263
- var Authorizations = /** @class */ (function () {
2264
- /**
2265
- * Create a Authorizations.
2266
- * @param {AvsClientContext} client Reference to the service client.
2267
- */
2268
- function Authorizations(client) {
2269
- this.client = client;
2270
- }
2271
- Authorizations.prototype.list = function (resourceGroupName, privateCloudName, options, callback) {
2272
- return this.client.sendOperationRequest({
2273
- resourceGroupName: resourceGroupName,
2274
- privateCloudName: privateCloudName,
2275
- options: options
2276
- }, listOperationSpec$4, callback);
2277
- };
2278
- Authorizations.prototype.get = function (resourceGroupName, privateCloudName, authorizationName, options, callback) {
2279
- return this.client.sendOperationRequest({
2280
- resourceGroupName: resourceGroupName,
2281
- privateCloudName: privateCloudName,
2282
- authorizationName: authorizationName,
2283
- options: options
2284
- }, getOperationSpec$3, callback);
2285
- };
2286
- /**
2287
- * @summary Create or update an ExpressRoute Circuit Authorization in a private cloud
2288
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2289
- * @param privateCloudName The name of the private cloud.
2290
- * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
2291
- * @param authorization An ExpressRoute Circuit Authorization
2292
- * @param [options] The optional parameters
2293
- * @returns Promise<Models.AuthorizationsCreateOrUpdateResponse>
2294
- */
2295
- Authorizations.prototype.createOrUpdate = function (resourceGroupName, privateCloudName, authorizationName, authorization, options) {
2296
- return this.beginCreateOrUpdate(resourceGroupName, privateCloudName, authorizationName, authorization, options)
2297
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2298
- };
2299
- /**
2300
- * @summary Delete an ExpressRoute Circuit Authorization in a private cloud
2301
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2302
- * @param privateCloudName Name of the private cloud
2303
- * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
2304
- * @param [options] The optional parameters
2305
- * @returns Promise<msRest.RestResponse>
2306
- */
2307
- Authorizations.prototype.deleteMethod = function (resourceGroupName, privateCloudName, authorizationName, options) {
2308
- return this.beginDeleteMethod(resourceGroupName, privateCloudName, authorizationName, options)
2309
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2310
- };
2311
- /**
2312
- * @summary Create or update an ExpressRoute Circuit Authorization in a private cloud
2313
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2314
- * @param privateCloudName The name of the private cloud.
2315
- * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
2316
- * @param authorization An ExpressRoute Circuit Authorization
2317
- * @param [options] The optional parameters
2318
- * @returns Promise<msRestAzure.LROPoller>
2319
- */
2320
- Authorizations.prototype.beginCreateOrUpdate = function (resourceGroupName, privateCloudName, authorizationName, authorization, options) {
2321
- return this.client.sendLRORequest({
2322
- resourceGroupName: resourceGroupName,
2323
- privateCloudName: privateCloudName,
2324
- authorizationName: authorizationName,
2325
- authorization: authorization,
2326
- options: options
2327
- }, beginCreateOrUpdateOperationSpec$2, options);
2328
- };
2329
- /**
2330
- * @summary Delete an ExpressRoute Circuit Authorization in a private cloud
2331
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2332
- * @param privateCloudName Name of the private cloud
2333
- * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
2334
- * @param [options] The optional parameters
2335
- * @returns Promise<msRestAzure.LROPoller>
2336
- */
2337
- Authorizations.prototype.beginDeleteMethod = function (resourceGroupName, privateCloudName, authorizationName, options) {
2338
- return this.client.sendLRORequest({
2339
- resourceGroupName: resourceGroupName,
2340
- privateCloudName: privateCloudName,
2341
- authorizationName: authorizationName,
2342
- options: options
2343
- }, beginDeleteMethodOperationSpec$2, options);
2344
- };
2345
- Authorizations.prototype.listNext = function (nextPageLink, options, callback) {
2346
- return this.client.sendOperationRequest({
2347
- nextPageLink: nextPageLink,
2348
- options: options
2349
- }, listNextOperationSpec$4, callback);
2350
- };
2351
- return Authorizations;
2352
- }());
2353
- // Operation Specifications
2354
- var serializer$5 = new msRest.Serializer(Mappers$5);
2355
- var listOperationSpec$4 = {
2356
- httpMethod: "GET",
2357
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations",
2358
- urlParameters: [
2359
- subscriptionId,
2360
- resourceGroupName,
2361
- privateCloudName
2362
- ],
2363
- queryParameters: [
2364
- apiVersion
2365
- ],
2366
- headerParameters: [
2367
- acceptLanguage
2368
- ],
2369
- responses: {
2370
- 200: {
2371
- bodyMapper: ExpressRouteAuthorizationList
2372
- },
2373
- default: {
2374
- bodyMapper: CloudError
2375
- }
2376
- },
2377
- serializer: serializer$5
2378
- };
2379
- var getOperationSpec$3 = {
2380
- httpMethod: "GET",
2381
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
2382
- urlParameters: [
2383
- subscriptionId,
2384
- resourceGroupName,
2385
- privateCloudName,
2386
- authorizationName
2387
- ],
2388
- queryParameters: [
2389
- apiVersion
2390
- ],
2391
- headerParameters: [
2392
- acceptLanguage
2393
- ],
2394
- responses: {
2395
- 200: {
2396
- bodyMapper: ExpressRouteAuthorization
2397
- },
2398
- default: {
2399
- bodyMapper: CloudError
2400
- }
2401
- },
2402
- serializer: serializer$5
2403
- };
2404
- var beginCreateOrUpdateOperationSpec$2 = {
2405
- httpMethod: "PUT",
2406
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
2407
- urlParameters: [
2408
- subscriptionId,
2409
- resourceGroupName,
2410
- privateCloudName,
2411
- authorizationName
2412
- ],
2413
- queryParameters: [
2414
- apiVersion
2415
- ],
2416
- headerParameters: [
2417
- acceptLanguage
2418
- ],
2419
- requestBody: {
2420
- parameterPath: "authorization",
2421
- mapper: {
2422
- required: true,
2423
- serializedName: "authorization",
2424
- type: {
2425
- name: "Object"
2426
- }
2427
- }
2428
- },
2429
- responses: {
2430
- 200: {
2431
- bodyMapper: ExpressRouteAuthorization
2432
- },
2433
- 201: {
2434
- bodyMapper: ExpressRouteAuthorization
2435
- },
2436
- default: {
2437
- bodyMapper: CloudError
2438
- }
2439
- },
2440
- serializer: serializer$5
2441
- };
2442
- var beginDeleteMethodOperationSpec$2 = {
2443
- httpMethod: "DELETE",
2444
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
2445
- urlParameters: [
2446
- subscriptionId,
2447
- resourceGroupName,
2448
- privateCloudName,
2449
- authorizationName
2450
- ],
2451
- queryParameters: [
2452
- apiVersion
2453
- ],
2454
- headerParameters: [
2455
- acceptLanguage
2456
- ],
2457
- responses: {
2458
- 200: {},
2459
- 202: {},
2460
- 204: {},
2461
- default: {
2462
- bodyMapper: CloudError
2463
- }
2464
- },
2465
- serializer: serializer$5
2466
- };
2467
- var listNextOperationSpec$4 = {
2468
- httpMethod: "GET",
2469
- baseUrl: "https://management.azure.com",
2470
- path: "{nextLink}",
2471
- urlParameters: [
2472
- nextPageLink
2473
- ],
2474
- headerParameters: [
2475
- acceptLanguage
2476
- ],
2477
- responses: {
2478
- 200: {
2479
- bodyMapper: ExpressRouteAuthorizationList
2480
- },
2481
- default: {
2482
- bodyMapper: CloudError
2483
- }
2484
- },
2485
- serializer: serializer$5
2486
- };
2487
-
2488
- /*
2489
- * Copyright (c) Microsoft Corporation. All rights reserved.
2490
- * Licensed under the MIT License. See License.txt in the project root for
2491
- * license information.
2492
- *
2493
- * Code generated by Microsoft (R) AutoRest Code Generator.
2494
- * Changes may cause incorrect behavior and will be lost if the code is
2495
- * regenerated.
2496
- */
2497
- var packageName = "@azure/arm-avs";
2498
- var packageVersion = "1.0.0";
2499
- var AvsClientContext = /** @class */ (function (_super) {
2500
- __extends(AvsClientContext, _super);
2501
- /**
2502
- * Initializes a new instance of the AvsClient class.
2503
- * @param credentials Credentials needed for the client to connect to Azure.
2504
- * @param subscriptionId The ID of the target subscription.
2505
- * @param [options] The parameter options
2506
- */
2507
- function AvsClientContext(credentials, subscriptionId, options) {
2508
- var _this = this;
2509
- if (credentials == undefined) {
2510
- throw new Error('\'credentials\' cannot be null.');
2511
- }
2512
- if (subscriptionId == undefined) {
2513
- throw new Error('\'subscriptionId\' cannot be null.');
2514
- }
2515
- if (!options) {
2516
- options = {};
2517
- }
2518
- if (!options.userAgent) {
2519
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
2520
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2521
- }
2522
- _this = _super.call(this, credentials, options) || this;
2523
- _this.apiVersion = '2020-03-20';
2524
- _this.acceptLanguage = 'en-US';
2525
- _this.longRunningOperationRetryTimeout = 30;
2526
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
2527
- _this.requestContentType = "application/json; charset=utf-8";
2528
- _this.credentials = credentials;
2529
- _this.subscriptionId = subscriptionId;
2530
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
2531
- _this.acceptLanguage = options.acceptLanguage;
2532
- }
2533
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
2534
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
2535
- }
2536
- return _this;
2537
- }
2538
- return AvsClientContext;
2539
- }(msRestAzure.AzureServiceClient));
2540
-
2541
- /*
2542
- * Copyright (c) Microsoft Corporation. All rights reserved.
2543
- * Licensed under the MIT License. See License.txt in the project root for
2544
- * license information.
2545
- *
2546
- * Code generated by Microsoft (R) AutoRest Code Generator.
2547
- * Changes may cause incorrect behavior and will be lost if the code is
2548
- * regenerated.
2549
- */
2550
- var AvsClient = /** @class */ (function (_super) {
2551
- __extends(AvsClient, _super);
2552
- /**
2553
- * Initializes a new instance of the AvsClient class.
2554
- * @param credentials Credentials needed for the client to connect to Azure.
2555
- * @param subscriptionId The ID of the target subscription.
2556
- * @param [options] The parameter options
2557
- */
2558
- function AvsClient(credentials, subscriptionId, options) {
2559
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
2560
- _this.operations = new Operations(_this);
2561
- _this.locations = new Locations(_this);
2562
- _this.privateClouds = new PrivateClouds(_this);
2563
- _this.clusters = new Clusters(_this);
2564
- _this.hcxEnterpriseSites = new HcxEnterpriseSites(_this);
2565
- _this.authorizations = new Authorizations(_this);
2566
- return _this;
2567
- }
2568
- return AvsClient;
2569
- }(AvsClientContext));
2570
-
2571
- exports.Authorizations = Authorizations;
2572
- exports.AvsClient = AvsClient;
2573
- exports.AvsClientContext = AvsClientContext;
2574
- exports.AvsMappers = mappers;
2575
- exports.AvsModels = index;
2576
- exports.Clusters = Clusters;
2577
- exports.HcxEnterpriseSites = HcxEnterpriseSites;
2578
- exports.Locations = Locations;
2579
- exports.Operations = Operations;
2580
- exports.PrivateClouds = PrivateClouds;
2581
-
2582
- Object.defineProperty(exports, '__esModule', { value: true });
2583
-
2584
- })));
2585
- //# sourceMappingURL=arm-avs.js.map