@azure/arm-avs 1.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -73
  4. package/dist/index.js +11681 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureVMwareSolutionAPI.d.ts +33 -0
  9. package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -0
  10. package/dist-esm/src/azureVMwareSolutionAPI.js +66 -0
  11. package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2962 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +363 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +115 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +3114 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +53 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +409 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/addons.d.ts +81 -0
  33. package/dist-esm/src/operations/addons.d.ts.map +1 -0
  34. package/dist-esm/src/operations/addons.js +331 -0
  35. package/dist-esm/src/operations/addons.js.map +1 -0
  36. package/dist-esm/src/operations/authorizations.d.ts +81 -0
  37. package/dist-esm/src/operations/authorizations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/authorizations.js +337 -0
  39. package/dist-esm/src/operations/authorizations.js.map +1 -0
  40. package/dist-esm/src/operations/cloudLinks.d.ts +81 -0
  41. package/dist-esm/src/operations/cloudLinks.d.ts.map +1 -0
  42. package/dist-esm/src/operations/cloudLinks.js +337 -0
  43. package/dist-esm/src/operations/cloudLinks.js.map +1 -0
  44. package/dist-esm/src/operations/clusters.d.ts +99 -0
  45. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  46. package/dist-esm/src/operations/clusters.js +423 -0
  47. package/dist-esm/src/operations/clusters.js.map +1 -0
  48. package/dist-esm/src/operations/datastores.d.ts +89 -0
  49. package/dist-esm/src/operations/datastores.d.ts.map +1 -0
  50. package/dist-esm/src/operations/datastores.js +363 -0
  51. package/dist-esm/src/operations/datastores.js.map +1 -0
  52. package/dist-esm/src/operations/globalReachConnections.d.ts +81 -0
  53. package/dist-esm/src/operations/globalReachConnections.d.ts.map +1 -0
  54. package/dist-esm/src/operations/globalReachConnections.js +347 -0
  55. package/dist-esm/src/operations/globalReachConnections.js.map +1 -0
  56. package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +63 -0
  57. package/dist-esm/src/operations/hcxEnterpriseSites.d.ts.map +1 -0
  58. package/dist-esm/src/operations/hcxEnterpriseSites.js +244 -0
  59. package/dist-esm/src/operations/hcxEnterpriseSites.js.map +1 -0
  60. package/dist-esm/src/operations/index.d.ts +17 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +24 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/locations.d.ts +25 -0
  65. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/locations.js +79 -0
  67. package/dist-esm/src/operations/locations.js.map +1 -0
  68. package/dist-esm/src/operations/operations.d.ts +32 -0
  69. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operations.js +120 -0
  71. package/dist-esm/src/operations/operations.js.map +1 -0
  72. package/dist-esm/src/operations/placementPolicies.d.ts +116 -0
  73. package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -0
  74. package/dist-esm/src/operations/placementPolicies.js +466 -0
  75. package/dist-esm/src/operations/placementPolicies.js.map +1 -0
  76. package/dist-esm/src/operations/privateClouds.d.ts +142 -0
  77. package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
  78. package/dist-esm/src/operations/privateClouds.js +672 -0
  79. package/dist-esm/src/operations/privateClouds.js.map +1 -0
  80. package/dist-esm/src/operations/scriptCmdlets.d.ts +53 -0
  81. package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -0
  82. package/dist-esm/src/operations/scriptCmdlets.js +191 -0
  83. package/dist-esm/src/operations/scriptCmdlets.js.map +1 -0
  84. package/dist-esm/src/operations/scriptExecutions.d.ts +89 -0
  85. package/dist-esm/src/operations/scriptExecutions.d.ts.map +1 -0
  86. package/dist-esm/src/operations/scriptExecutions.js +371 -0
  87. package/dist-esm/src/operations/scriptExecutions.js.map +1 -0
  88. package/dist-esm/src/operations/scriptPackages.d.ts +46 -0
  89. package/dist-esm/src/operations/scriptPackages.d.ts.map +1 -0
  90. package/dist-esm/src/operations/scriptPackages.js +169 -0
  91. package/dist-esm/src/operations/scriptPackages.js.map +1 -0
  92. package/dist-esm/src/operations/virtualMachines.d.ts +71 -0
  93. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
  94. package/dist-esm/src/operations/virtualMachines.js +272 -0
  95. package/dist-esm/src/operations/virtualMachines.js.map +1 -0
  96. package/dist-esm/src/operations/workloadNetworks.d.ts +661 -0
  97. package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -0
  98. package/dist-esm/src/operations/workloadNetworks.js +3049 -0
  99. package/dist-esm/src/operations/workloadNetworks.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/addons.d.ts +56 -0
  101. package/dist-esm/src/operationsInterfaces/addons.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/addons.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/addons.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/authorizations.d.ts +56 -0
  105. package/dist-esm/src/operationsInterfaces/authorizations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/authorizations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/authorizations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +56 -0
  109. package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/cloudLinks.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/cloudLinks.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/clusters.d.ts +74 -0
  113. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/datastores.d.ts +62 -0
  117. package/dist-esm/src/operationsInterfaces/datastores.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/datastores.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/datastores.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +56 -0
  121. package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/globalReachConnections.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/globalReachConnections.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +38 -0
  125. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
  129. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/index.js +24 -0
  131. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/locations.d.ts +17 -0
  133. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  137. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts +89 -0
  141. package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/placementPolicies.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/placementPolicies.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +106 -0
  145. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +25 -0
  149. package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/scriptCmdlets.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/scriptCmdlets.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +64 -0
  153. package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/scriptExecutions.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/scriptExecutions.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +21 -0
  157. package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/scriptPackages.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/scriptPackages.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +44 -0
  161. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +500 -0
  165. package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/workloadNetworks.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/workloadNetworks.js.map +1 -0
  168. package/dist-esm/test/sampleTest.d.ts +2 -0
  169. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  170. package/dist-esm/test/sampleTest.js +40 -0
  171. package/dist-esm/test/sampleTest.js.map +1 -0
  172. package/package.json +65 -31
  173. package/review/arm-avs.api.md +2534 -0
  174. package/rollup.config.js +181 -30
  175. package/src/azureVMwareSolutionAPI.ts +139 -0
  176. package/src/index.ts +12 -0
  177. package/src/lroImpl.ts +34 -0
  178. package/src/models/index.ts +3101 -931
  179. package/src/models/mappers.ts +2874 -387
  180. package/src/models/parameters.ts +407 -44
  181. package/src/operations/addons.ts +472 -0
  182. package/src/operations/authorizations.ts +341 -196
  183. package/src/operations/cloudLinks.ts +478 -0
  184. package/src/operations/clusters.ts +444 -238
  185. package/src/operations/datastores.ts +525 -0
  186. package/src/operations/globalReachConnections.ts +488 -0
  187. package/src/operations/hcxEnterpriseSites.ts +200 -210
  188. package/src/operations/index.ts +13 -5
  189. package/src/operations/locations.ts +56 -83
  190. package/src/operations/operations.ts +87 -73
  191. package/src/operations/placementPolicies.ts +677 -0
  192. package/src/operations/privateClouds.ts +705 -319
  193. package/src/operations/scriptCmdlets.ts +266 -0
  194. package/src/operations/scriptExecutions.ts +524 -0
  195. package/src/operations/scriptPackages.ts +229 -0
  196. package/src/operations/virtualMachines.ts +390 -0
  197. package/src/operations/workloadNetworks.ts +4398 -0
  198. package/src/operationsInterfaces/addons.ts +109 -0
  199. package/src/operationsInterfaces/authorizations.ts +109 -0
  200. package/src/operationsInterfaces/cloudLinks.ts +109 -0
  201. package/src/operationsInterfaces/clusters.ts +147 -0
  202. package/src/operationsInterfaces/datastores.ts +121 -0
  203. package/src/operationsInterfaces/globalReachConnections.ts +109 -0
  204. package/src/operationsInterfaces/hcxEnterpriseSites.ts +75 -0
  205. package/src/operationsInterfaces/index.ts +24 -0
  206. package/src/operationsInterfaces/locations.ts +36 -0
  207. package/src/operationsInterfaces/operations.ts +22 -0
  208. package/src/operationsInterfaces/placementPolicies.ts +170 -0
  209. package/src/operationsInterfaces/privateClouds.ts +198 -0
  210. package/src/operationsInterfaces/scriptCmdlets.ts +50 -0
  211. package/src/operationsInterfaces/scriptExecutions.ts +124 -0
  212. package/src/operationsInterfaces/scriptPackages.ts +44 -0
  213. package/src/operationsInterfaces/virtualMachines.ts +85 -0
  214. package/src/operationsInterfaces/workloadNetworks.ts +951 -0
  215. package/tsconfig.json +3 -3
  216. package/types/arm-avs.d.ts +4645 -0
  217. package/types/tsdoc-metadata.json +11 -0
  218. package/dist/arm-avs.js +0 -2585
  219. package/dist/arm-avs.js.map +0 -1
  220. package/dist/arm-avs.min.js +0 -1
  221. package/dist/arm-avs.min.js.map +0 -1
  222. package/esm/avsClient.d.ts +0 -23
  223. package/esm/avsClient.d.ts.map +0 -1
  224. package/esm/avsClient.js +0 -38
  225. package/esm/avsClient.js.map +0 -1
  226. package/esm/avsClientContext.d.ts +0 -16
  227. package/esm/avsClientContext.d.ts.map +0 -1
  228. package/esm/avsClientContext.js +0 -56
  229. package/esm/avsClientContext.js.map +0 -1
  230. package/esm/models/authorizationsMappers.d.ts +0 -2
  231. package/esm/models/authorizationsMappers.d.ts.map +0 -1
  232. package/esm/models/authorizationsMappers.js +0 -9
  233. package/esm/models/authorizationsMappers.js.map +0 -1
  234. package/esm/models/clustersMappers.d.ts +0 -2
  235. package/esm/models/clustersMappers.d.ts.map +0 -1
  236. package/esm/models/clustersMappers.js +0 -9
  237. package/esm/models/clustersMappers.js.map +0 -1
  238. package/esm/models/hcxEnterpriseSitesMappers.d.ts +0 -2
  239. package/esm/models/hcxEnterpriseSitesMappers.d.ts.map +0 -1
  240. package/esm/models/hcxEnterpriseSitesMappers.js +0 -9
  241. package/esm/models/hcxEnterpriseSitesMappers.js.map +0 -1
  242. package/esm/models/index.d.ts +0 -1163
  243. package/esm/models/index.d.ts.map +0 -1
  244. package/esm/models/index.js +0 -8
  245. package/esm/models/index.js.map +0 -1
  246. package/esm/models/locationsMappers.d.ts +0 -2
  247. package/esm/models/locationsMappers.d.ts.map +0 -1
  248. package/esm/models/locationsMappers.js +0 -9
  249. package/esm/models/locationsMappers.js.map +0 -1
  250. package/esm/models/mappers.d.ts +0 -30
  251. package/esm/models/mappers.d.ts.map +0 -1
  252. package/esm/models/mappers.js +0 -881
  253. package/esm/models/mappers.js.map +0 -1
  254. package/esm/models/operationsMappers.d.ts +0 -2
  255. package/esm/models/operationsMappers.d.ts.map +0 -1
  256. package/esm/models/operationsMappers.js +0 -9
  257. package/esm/models/operationsMappers.js.map +0 -1
  258. package/esm/models/parameters.d.ts +0 -12
  259. package/esm/models/parameters.d.ts.map +0 -1
  260. package/esm/models/parameters.js +0 -122
  261. package/esm/models/parameters.js.map +0 -1
  262. package/esm/models/privateCloudsMappers.d.ts +0 -2
  263. package/esm/models/privateCloudsMappers.d.ts.map +0 -1
  264. package/esm/models/privateCloudsMappers.js +0 -9
  265. package/esm/models/privateCloudsMappers.js.map +0 -1
  266. package/esm/operations/authorizations.d.ts +0 -115
  267. package/esm/operations/authorizations.d.ts.map +0 -1
  268. package/esm/operations/authorizations.js +0 -239
  269. package/esm/operations/authorizations.js.map +0 -1
  270. package/esm/operations/clusters.d.ts +0 -133
  271. package/esm/operations/clusters.d.ts.map +0 -1
  272. package/esm/operations/clusters.js +0 -299
  273. package/esm/operations/clusters.js.map +0 -1
  274. package/esm/operations/hcxEnterpriseSites.d.ts +0 -127
  275. package/esm/operations/hcxEnterpriseSites.d.ts.map +0 -1
  276. package/esm/operations/hcxEnterpriseSites.js +0 -196
  277. package/esm/operations/hcxEnterpriseSites.js.map +0 -1
  278. package/esm/operations/index.d.ts +0 -7
  279. package/esm/operations/index.d.ts.map +0 -1
  280. package/esm/operations/index.js +0 -16
  281. package/esm/operations/index.js.map +0 -1
  282. package/esm/operations/locations.d.ts +0 -49
  283. package/esm/operations/locations.d.ts.map +0 -1
  284. package/esm/operations/locations.js +0 -85
  285. package/esm/operations/locations.js.map +0 -1
  286. package/esm/operations/operations.d.ts +0 -46
  287. package/esm/operations/operations.d.ts.map +0 -1
  288. package/esm/operations/operations.js +0 -77
  289. package/esm/operations/operations.js.map +0 -1
  290. package/esm/operations/privateClouds.d.ts +0 -177
  291. package/esm/operations/privateClouds.d.ts.map +0 -1
  292. package/esm/operations/privateClouds.js +0 -365
  293. package/esm/operations/privateClouds.js.map +0 -1
  294. package/src/avsClient.ts +0 -52
  295. package/src/avsClientContext.ts +0 -62
  296. package/src/models/authorizationsMappers.ts +0 -27
  297. package/src/models/clustersMappers.ts +0 -28
  298. package/src/models/hcxEnterpriseSitesMappers.ts +0 -27
  299. package/src/models/locationsMappers.ts +0 -15
  300. package/src/models/operationsMappers.ts +0 -16
  301. package/src/models/privateCloudsMappers.ts +0 -29
@@ -1,214 +1,360 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/authorizationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Authorizations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
15
13
  import * as Parameters from "../models/parameters";
16
- import { AvsClientContext } from "../avsClientContext";
14
+ import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ ExpressRouteAuthorization,
19
+ AuthorizationsListNextOptionalParams,
20
+ AuthorizationsListOptionalParams,
21
+ AuthorizationsListResponse,
22
+ AuthorizationsGetOptionalParams,
23
+ AuthorizationsGetResponse,
24
+ AuthorizationsCreateOrUpdateOptionalParams,
25
+ AuthorizationsCreateOrUpdateResponse,
26
+ AuthorizationsDeleteOptionalParams,
27
+ AuthorizationsListNextResponse
28
+ } from "../models";
17
29
 
18
- /** Class representing a Authorizations. */
19
- export class Authorizations {
20
- private readonly client: AvsClientContext;
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing Authorizations operations. */
32
+ export class AuthorizationsImpl implements Authorizations {
33
+ private readonly client: AzureVMwareSolutionAPI;
21
34
 
22
35
  /**
23
- * Create a Authorizations.
24
- * @param {AvsClientContext} client Reference to the service client.
36
+ * Initialize a new instance of the class Authorizations class.
37
+ * @param client Reference to the service client
25
38
  */
26
- constructor(client: AvsClientContext) {
39
+ constructor(client: AzureVMwareSolutionAPI) {
27
40
  this.client = client;
28
41
  }
29
42
 
30
43
  /**
31
- * @summary List ExpressRoute Circuit Authorizations in a private cloud
44
+ * List ExpressRoute Circuit Authorizations in a private cloud
32
45
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
46
  * @param privateCloudName Name of the private cloud
34
- * @param [options] The optional parameters
35
- * @returns Promise<Models.AuthorizationsListResponse>
47
+ * @param options The options parameters.
36
48
  */
37
- list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise<Models.AuthorizationsListResponse>;
38
- /**
39
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
- * @param privateCloudName Name of the private cloud
41
- * @param callback The callback
42
- */
43
- list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>): void;
44
- /**
45
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
- * @param privateCloudName Name of the private cloud
47
- * @param options The optional parameters
48
- * @param callback The callback
49
- */
50
- list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>): void;
51
- list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>, callback?: msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>): Promise<Models.AuthorizationsListResponse> {
52
- return this.client.sendOperationRequest(
53
- {
49
+ public list(
50
+ resourceGroupName: string,
51
+ privateCloudName: string,
52
+ options?: AuthorizationsListOptionalParams
53
+ ): PagedAsyncIterableIterator<ExpressRouteAuthorization> {
54
+ const iter = this.listPagingAll(
55
+ resourceGroupName,
56
+ privateCloudName,
57
+ options
58
+ );
59
+ return {
60
+ next() {
61
+ return iter.next();
62
+ },
63
+ [Symbol.asyncIterator]() {
64
+ return this;
65
+ },
66
+ byPage: () => {
67
+ return this.listPagingPage(
68
+ resourceGroupName,
69
+ privateCloudName,
70
+ options
71
+ );
72
+ }
73
+ };
74
+ }
75
+
76
+ private async *listPagingPage(
77
+ resourceGroupName: string,
78
+ privateCloudName: string,
79
+ options?: AuthorizationsListOptionalParams
80
+ ): AsyncIterableIterator<ExpressRouteAuthorization[]> {
81
+ let result = await this._list(resourceGroupName, privateCloudName, options);
82
+ yield result.value || [];
83
+ let continuationToken = result.nextLink;
84
+ while (continuationToken) {
85
+ result = await this._listNext(
54
86
  resourceGroupName,
55
87
  privateCloudName,
88
+ continuationToken,
56
89
  options
57
- },
58
- listOperationSpec,
59
- callback) as Promise<Models.AuthorizationsListResponse>;
90
+ );
91
+ continuationToken = result.nextLink;
92
+ yield result.value || [];
93
+ }
94
+ }
95
+
96
+ private async *listPagingAll(
97
+ resourceGroupName: string,
98
+ privateCloudName: string,
99
+ options?: AuthorizationsListOptionalParams
100
+ ): AsyncIterableIterator<ExpressRouteAuthorization> {
101
+ for await (const page of this.listPagingPage(
102
+ resourceGroupName,
103
+ privateCloudName,
104
+ options
105
+ )) {
106
+ yield* page;
107
+ }
60
108
  }
61
109
 
62
110
  /**
63
- * @summary Get an ExpressRoute Circuit Authorization by name in a private cloud
111
+ * List ExpressRoute Circuit Authorizations in a private cloud
64
112
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
113
  * @param privateCloudName Name of the private cloud
66
- * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
67
- * @param [options] The optional parameters
68
- * @returns Promise<Models.AuthorizationsGetResponse>
114
+ * @param options The options parameters.
69
115
  */
70
- get(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise<Models.AuthorizationsGetResponse>;
116
+ private _list(
117
+ resourceGroupName: string,
118
+ privateCloudName: string,
119
+ options?: AuthorizationsListOptionalParams
120
+ ): Promise<AuthorizationsListResponse> {
121
+ return this.client.sendOperationRequest(
122
+ { resourceGroupName, privateCloudName, options },
123
+ listOperationSpec
124
+ );
125
+ }
126
+
71
127
  /**
128
+ * Get an ExpressRoute Circuit Authorization by name in a private cloud
72
129
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
130
  * @param privateCloudName Name of the private cloud
74
131
  * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
75
- * @param callback The callback
132
+ * @param options The options parameters.
76
133
  */
77
- get(resourceGroupName: string, privateCloudName: string, authorizationName: string, callback: msRest.ServiceCallback<Models.ExpressRouteAuthorization>): void;
134
+ get(
135
+ resourceGroupName: string,
136
+ privateCloudName: string,
137
+ authorizationName: string,
138
+ options?: AuthorizationsGetOptionalParams
139
+ ): Promise<AuthorizationsGetResponse> {
140
+ return this.client.sendOperationRequest(
141
+ { resourceGroupName, privateCloudName, authorizationName, options },
142
+ getOperationSpec
143
+ );
144
+ }
145
+
78
146
  /**
147
+ * Create or update an ExpressRoute Circuit Authorization in a private cloud
79
148
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
- * @param privateCloudName Name of the private cloud
149
+ * @param privateCloudName The name of the private cloud.
81
150
  * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
82
- * @param options The optional parameters
83
- * @param callback The callback
151
+ * @param authorization An ExpressRoute Circuit Authorization
152
+ * @param options The options parameters.
84
153
  */
85
- get(resourceGroupName: string, privateCloudName: string, authorizationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ExpressRouteAuthorization>): void;
86
- get(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ExpressRouteAuthorization>, callback?: msRest.ServiceCallback<Models.ExpressRouteAuthorization>): Promise<Models.AuthorizationsGetResponse> {
87
- return this.client.sendOperationRequest(
154
+ async beginCreateOrUpdate(
155
+ resourceGroupName: string,
156
+ privateCloudName: string,
157
+ authorizationName: string,
158
+ authorization: ExpressRouteAuthorization,
159
+ options?: AuthorizationsCreateOrUpdateOptionalParams
160
+ ): Promise<
161
+ PollerLike<
162
+ PollOperationState<AuthorizationsCreateOrUpdateResponse>,
163
+ AuthorizationsCreateOrUpdateResponse
164
+ >
165
+ > {
166
+ const directSendOperation = async (
167
+ args: coreClient.OperationArguments,
168
+ spec: coreClient.OperationSpec
169
+ ): Promise<AuthorizationsCreateOrUpdateResponse> => {
170
+ return this.client.sendOperationRequest(args, spec);
171
+ };
172
+ const sendOperation = async (
173
+ args: coreClient.OperationArguments,
174
+ spec: coreClient.OperationSpec
175
+ ) => {
176
+ let currentRawResponse:
177
+ | coreClient.FullOperationResponse
178
+ | undefined = undefined;
179
+ const providedCallback = args.options?.onResponse;
180
+ const callback: coreClient.RawResponseCallback = (
181
+ rawResponse: coreClient.FullOperationResponse,
182
+ flatResponse: unknown
183
+ ) => {
184
+ currentRawResponse = rawResponse;
185
+ providedCallback?.(rawResponse, flatResponse);
186
+ };
187
+ const updatedArgs = {
188
+ ...args,
189
+ options: {
190
+ ...args.options,
191
+ onResponse: callback
192
+ }
193
+ };
194
+ const flatResponse = await directSendOperation(updatedArgs, spec);
195
+ return {
196
+ flatResponse,
197
+ rawResponse: {
198
+ statusCode: currentRawResponse!.status,
199
+ body: currentRawResponse!.parsedBody,
200
+ headers: currentRawResponse!.headers.toJSON()
201
+ }
202
+ };
203
+ };
204
+
205
+ const lro = new LroImpl(
206
+ sendOperation,
88
207
  {
89
208
  resourceGroupName,
90
209
  privateCloudName,
91
210
  authorizationName,
211
+ authorization,
92
212
  options
93
213
  },
94
- getOperationSpec,
95
- callback) as Promise<Models.AuthorizationsGetResponse>;
214
+ createOrUpdateOperationSpec
215
+ );
216
+ return new LroEngine(lro, {
217
+ resumeFrom: options?.resumeFrom,
218
+ intervalInMs: options?.updateIntervalInMs
219
+ });
96
220
  }
97
221
 
98
222
  /**
99
- * @summary Create or update an ExpressRoute Circuit Authorization in a private cloud
223
+ * Create or update an ExpressRoute Circuit Authorization in a private cloud
100
224
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
101
225
  * @param privateCloudName The name of the private cloud.
102
226
  * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
103
227
  * @param authorization An ExpressRoute Circuit Authorization
104
- * @param [options] The optional parameters
105
- * @returns Promise<Models.AuthorizationsCreateOrUpdateResponse>
228
+ * @param options The options parameters.
106
229
  */
107
- createOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, authorization: any, options?: msRest.RequestOptionsBase): Promise<Models.AuthorizationsCreateOrUpdateResponse> {
108
- return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,authorizationName,authorization,options)
109
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AuthorizationsCreateOrUpdateResponse>;
230
+ async beginCreateOrUpdateAndWait(
231
+ resourceGroupName: string,
232
+ privateCloudName: string,
233
+ authorizationName: string,
234
+ authorization: ExpressRouteAuthorization,
235
+ options?: AuthorizationsCreateOrUpdateOptionalParams
236
+ ): Promise<AuthorizationsCreateOrUpdateResponse> {
237
+ const poller = await this.beginCreateOrUpdate(
238
+ resourceGroupName,
239
+ privateCloudName,
240
+ authorizationName,
241
+ authorization,
242
+ options
243
+ );
244
+ return poller.pollUntilDone();
110
245
  }
111
246
 
112
247
  /**
113
- * @summary Delete an ExpressRoute Circuit Authorization in a private cloud
248
+ * Delete an ExpressRoute Circuit Authorization in a private cloud
114
249
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
115
250
  * @param privateCloudName Name of the private cloud
116
251
  * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
117
- * @param [options] The optional parameters
118
- * @returns Promise<msRest.RestResponse>
252
+ * @param options The options parameters.
119
253
  */
120
- deleteMethod(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
121
- return this.beginDeleteMethod(resourceGroupName,privateCloudName,authorizationName,options)
122
- .then(lroPoller => lroPoller.pollUntilFinished());
123
- }
254
+ async beginDelete(
255
+ resourceGroupName: string,
256
+ privateCloudName: string,
257
+ authorizationName: string,
258
+ options?: AuthorizationsDeleteOptionalParams
259
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
260
+ const directSendOperation = async (
261
+ args: coreClient.OperationArguments,
262
+ spec: coreClient.OperationSpec
263
+ ): Promise<void> => {
264
+ return this.client.sendOperationRequest(args, spec);
265
+ };
266
+ const sendOperation = async (
267
+ args: coreClient.OperationArguments,
268
+ spec: coreClient.OperationSpec
269
+ ) => {
270
+ let currentRawResponse:
271
+ | coreClient.FullOperationResponse
272
+ | undefined = undefined;
273
+ const providedCallback = args.options?.onResponse;
274
+ const callback: coreClient.RawResponseCallback = (
275
+ rawResponse: coreClient.FullOperationResponse,
276
+ flatResponse: unknown
277
+ ) => {
278
+ currentRawResponse = rawResponse;
279
+ providedCallback?.(rawResponse, flatResponse);
280
+ };
281
+ const updatedArgs = {
282
+ ...args,
283
+ options: {
284
+ ...args.options,
285
+ onResponse: callback
286
+ }
287
+ };
288
+ const flatResponse = await directSendOperation(updatedArgs, spec);
289
+ return {
290
+ flatResponse,
291
+ rawResponse: {
292
+ statusCode: currentRawResponse!.status,
293
+ body: currentRawResponse!.parsedBody,
294
+ headers: currentRawResponse!.headers.toJSON()
295
+ }
296
+ };
297
+ };
124
298
 
125
- /**
126
- * @summary Create or update an ExpressRoute Circuit Authorization in a private cloud
127
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
128
- * @param privateCloudName The name of the private cloud.
129
- * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
130
- * @param authorization An ExpressRoute Circuit Authorization
131
- * @param [options] The optional parameters
132
- * @returns Promise<msRestAzure.LROPoller>
133
- */
134
- beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, authorization: any, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
135
- return this.client.sendLRORequest(
136
- {
137
- resourceGroupName,
138
- privateCloudName,
139
- authorizationName,
140
- authorization,
141
- options
142
- },
143
- beginCreateOrUpdateOperationSpec,
144
- options);
299
+ const lro = new LroImpl(
300
+ sendOperation,
301
+ { resourceGroupName, privateCloudName, authorizationName, options },
302
+ deleteOperationSpec
303
+ );
304
+ return new LroEngine(lro, {
305
+ resumeFrom: options?.resumeFrom,
306
+ intervalInMs: options?.updateIntervalInMs
307
+ });
145
308
  }
146
309
 
147
310
  /**
148
- * @summary Delete an ExpressRoute Circuit Authorization in a private cloud
311
+ * Delete an ExpressRoute Circuit Authorization in a private cloud
149
312
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
150
313
  * @param privateCloudName Name of the private cloud
151
314
  * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud
152
- * @param [options] The optional parameters
153
- * @returns Promise<msRestAzure.LROPoller>
315
+ * @param options The options parameters.
154
316
  */
155
- beginDeleteMethod(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
156
- return this.client.sendLRORequest(
157
- {
158
- resourceGroupName,
159
- privateCloudName,
160
- authorizationName,
161
- options
162
- },
163
- beginDeleteMethodOperationSpec,
164
- options);
317
+ async beginDeleteAndWait(
318
+ resourceGroupName: string,
319
+ privateCloudName: string,
320
+ authorizationName: string,
321
+ options?: AuthorizationsDeleteOptionalParams
322
+ ): Promise<void> {
323
+ const poller = await this.beginDelete(
324
+ resourceGroupName,
325
+ privateCloudName,
326
+ authorizationName,
327
+ options
328
+ );
329
+ return poller.pollUntilDone();
165
330
  }
166
331
 
167
332
  /**
168
- * @summary List ExpressRoute Circuit Authorizations in a private cloud
169
- * @param nextPageLink The NextLink from the previous successful call to List operation.
170
- * @param [options] The optional parameters
171
- * @returns Promise<Models.AuthorizationsListNextResponse>
172
- */
173
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AuthorizationsListNextResponse>;
174
- /**
175
- * @param nextPageLink The NextLink from the previous successful call to List operation.
176
- * @param callback The callback
177
- */
178
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>): void;
179
- /**
180
- * @param nextPageLink The NextLink from the previous successful call to List operation.
181
- * @param options The optional parameters
182
- * @param callback The callback
333
+ * ListNext
334
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
335
+ * @param privateCloudName Name of the private cloud
336
+ * @param nextLink The nextLink from the previous successful call to the List method.
337
+ * @param options The options parameters.
183
338
  */
184
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>): void;
185
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>, callback?: msRest.ServiceCallback<Models.ExpressRouteAuthorizationList>): Promise<Models.AuthorizationsListNextResponse> {
339
+ private _listNext(
340
+ resourceGroupName: string,
341
+ privateCloudName: string,
342
+ nextLink: string,
343
+ options?: AuthorizationsListNextOptionalParams
344
+ ): Promise<AuthorizationsListNextResponse> {
186
345
  return this.client.sendOperationRequest(
187
- {
188
- nextPageLink,
189
- options
190
- },
191
- listNextOperationSpec,
192
- callback) as Promise<Models.AuthorizationsListNextResponse>;
346
+ { resourceGroupName, privateCloudName, nextLink, options },
347
+ listNextOperationSpec
348
+ );
193
349
  }
194
350
  }
195
-
196
351
  // Operation Specifications
197
- const serializer = new msRest.Serializer(Mappers);
198
- const listOperationSpec: msRest.OperationSpec = {
352
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
353
+
354
+ const listOperationSpec: coreClient.OperationSpec = {
355
+ path:
356
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations",
199
357
  httpMethod: "GET",
200
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations",
201
- urlParameters: [
202
- Parameters.subscriptionId,
203
- Parameters.resourceGroupName,
204
- Parameters.privateCloudName
205
- ],
206
- queryParameters: [
207
- Parameters.apiVersion
208
- ],
209
- headerParameters: [
210
- Parameters.acceptLanguage
211
- ],
212
358
  responses: {
213
359
  200: {
214
360
  bodyMapper: Mappers.ExpressRouteAuthorizationList
@@ -217,24 +363,20 @@ const listOperationSpec: msRest.OperationSpec = {
217
363
  bodyMapper: Mappers.CloudError
218
364
  }
219
365
  },
220
- serializer
221
- };
222
-
223
- const getOperationSpec: msRest.OperationSpec = {
224
- httpMethod: "GET",
225
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
366
+ queryParameters: [Parameters.apiVersion],
226
367
  urlParameters: [
368
+ Parameters.$host,
227
369
  Parameters.subscriptionId,
228
370
  Parameters.resourceGroupName,
229
- Parameters.privateCloudName,
230
- Parameters.authorizationName
231
- ],
232
- queryParameters: [
233
- Parameters.apiVersion
234
- ],
235
- headerParameters: [
236
- Parameters.acceptLanguage
371
+ Parameters.privateCloudName
237
372
  ],
373
+ headerParameters: [Parameters.accept],
374
+ serializer
375
+ };
376
+ const getOperationSpec: coreClient.OperationSpec = {
377
+ path:
378
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
379
+ httpMethod: "GET",
238
380
  responses: {
239
381
  200: {
240
382
  bodyMapper: Mappers.ExpressRouteAuthorization
@@ -243,34 +385,21 @@ const getOperationSpec: msRest.OperationSpec = {
243
385
  bodyMapper: Mappers.CloudError
244
386
  }
245
387
  },
246
- serializer
247
- };
248
-
249
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
250
- httpMethod: "PUT",
251
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
388
+ queryParameters: [Parameters.apiVersion],
252
389
  urlParameters: [
390
+ Parameters.$host,
253
391
  Parameters.subscriptionId,
254
392
  Parameters.resourceGroupName,
255
393
  Parameters.privateCloudName,
256
394
  Parameters.authorizationName
257
395
  ],
258
- queryParameters: [
259
- Parameters.apiVersion
260
- ],
261
- headerParameters: [
262
- Parameters.acceptLanguage
263
- ],
264
- requestBody: {
265
- parameterPath: "authorization",
266
- mapper: {
267
- required: true,
268
- serializedName: "authorization",
269
- type: {
270
- name: "Object"
271
- }
272
- }
273
- },
396
+ headerParameters: [Parameters.accept],
397
+ serializer
398
+ };
399
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
400
+ path:
401
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
402
+ httpMethod: "PUT",
274
403
  responses: {
275
404
  200: {
276
405
  bodyMapper: Mappers.ExpressRouteAuthorization
@@ -278,49 +407,56 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
278
407
  201: {
279
408
  bodyMapper: Mappers.ExpressRouteAuthorization
280
409
  },
410
+ 202: {
411
+ bodyMapper: Mappers.ExpressRouteAuthorization
412
+ },
413
+ 204: {
414
+ bodyMapper: Mappers.ExpressRouteAuthorization
415
+ },
281
416
  default: {
282
417
  bodyMapper: Mappers.CloudError
283
418
  }
284
419
  },
285
- serializer
286
- };
287
-
288
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
289
- httpMethod: "DELETE",
290
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
420
+ requestBody: Parameters.authorization,
421
+ queryParameters: [Parameters.apiVersion],
291
422
  urlParameters: [
423
+ Parameters.$host,
292
424
  Parameters.subscriptionId,
293
425
  Parameters.resourceGroupName,
294
426
  Parameters.privateCloudName,
295
427
  Parameters.authorizationName
296
428
  ],
297
- queryParameters: [
298
- Parameters.apiVersion
299
- ],
300
- headerParameters: [
301
- Parameters.acceptLanguage
302
- ],
429
+ headerParameters: [Parameters.accept, Parameters.contentType],
430
+ mediaType: "json",
431
+ serializer
432
+ };
433
+ const deleteOperationSpec: coreClient.OperationSpec = {
434
+ path:
435
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
436
+ httpMethod: "DELETE",
303
437
  responses: {
304
438
  200: {},
439
+ 201: {},
305
440
  202: {},
306
441
  204: {},
307
442
  default: {
308
443
  bodyMapper: Mappers.CloudError
309
444
  }
310
445
  },
446
+ queryParameters: [Parameters.apiVersion],
447
+ urlParameters: [
448
+ Parameters.$host,
449
+ Parameters.subscriptionId,
450
+ Parameters.resourceGroupName,
451
+ Parameters.privateCloudName,
452
+ Parameters.authorizationName
453
+ ],
454
+ headerParameters: [Parameters.accept],
311
455
  serializer
312
456
  };
313
-
314
- const listNextOperationSpec: msRest.OperationSpec = {
315
- httpMethod: "GET",
316
- baseUrl: "https://management.azure.com",
457
+ const listNextOperationSpec: coreClient.OperationSpec = {
317
458
  path: "{nextLink}",
318
- urlParameters: [
319
- Parameters.nextPageLink
320
- ],
321
- headerParameters: [
322
- Parameters.acceptLanguage
323
- ],
459
+ httpMethod: "GET",
324
460
  responses: {
325
461
  200: {
326
462
  bodyMapper: Mappers.ExpressRouteAuthorizationList
@@ -329,5 +465,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
329
465
  bodyMapper: Mappers.CloudError
330
466
  }
331
467
  },
468
+ queryParameters: [Parameters.apiVersion],
469
+ urlParameters: [
470
+ Parameters.$host,
471
+ Parameters.nextLink,
472
+ Parameters.subscriptionId,
473
+ Parameters.resourceGroupName,
474
+ Parameters.privateCloudName
475
+ ],
476
+ headerParameters: [Parameters.accept],
332
477
  serializer
333
478
  };