@azure/arm-appservice 30.0.0-alpha.20211001.1

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 (238) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +21 -0
  3. package/README.md +96 -0
  4. package/dist/index.js +59024 -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/index.d.ts +6 -0
  9. package/dist-esm/index.d.ts.map +1 -0
  10. package/dist-esm/index.js +13 -0
  11. package/dist-esm/index.js.map +1 -0
  12. package/dist-esm/lroImpl.d.ts +16 -0
  13. package/dist-esm/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/lroImpl.js +29 -0
  15. package/dist-esm/lroImpl.js.map +1 -0
  16. package/dist-esm/models/index.d.ts +12050 -0
  17. package/dist-esm/models/index.d.ts.map +1 -0
  18. package/dist-esm/models/index.js +227 -0
  19. package/dist-esm/models/index.js.map +1 -0
  20. package/dist-esm/models/mappers.d.ts +405 -0
  21. package/dist-esm/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/models/mappers.js +19668 -0
  23. package/dist-esm/models/mappers.js.map +1 -0
  24. package/dist-esm/models/parameters.d.ts +183 -0
  25. package/dist-esm/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/models/parameters.js +1382 -0
  27. package/dist-esm/models/parameters.js.map +1 -0
  28. package/dist-esm/operations/appServiceCertificateOrders.d.ts +233 -0
  29. package/dist-esm/operations/appServiceCertificateOrders.d.ts.map +1 -0
  30. package/dist-esm/operations/appServiceCertificateOrders.js +1024 -0
  31. package/dist-esm/operations/appServiceCertificateOrders.js.map +1 -0
  32. package/dist-esm/operations/appServiceEnvironments.d.ts +780 -0
  33. package/dist-esm/operations/appServiceEnvironments.d.ts.map +1 -0
  34. package/dist-esm/operations/appServiceEnvironments.js +3646 -0
  35. package/dist-esm/operations/appServiceEnvironments.js.map +1 -0
  36. package/dist-esm/operations/appServicePlans.d.ts +339 -0
  37. package/dist-esm/operations/appServicePlans.d.ts.map +1 -0
  38. package/dist-esm/operations/appServicePlans.js +1490 -0
  39. package/dist-esm/operations/appServicePlans.js.map +1 -0
  40. package/dist-esm/operations/certificateOrdersDiagnostics.d.ts +48 -0
  41. package/dist-esm/operations/certificateOrdersDiagnostics.d.ts.map +1 -0
  42. package/dist-esm/operations/certificateOrdersDiagnostics.js +176 -0
  43. package/dist-esm/operations/certificateOrdersDiagnostics.js.map +1 -0
  44. package/dist-esm/operations/certificateRegistrationProvider.d.ts +35 -0
  45. package/dist-esm/operations/certificateRegistrationProvider.d.ts.map +1 -0
  46. package/dist-esm/operations/certificateRegistrationProvider.js +123 -0
  47. package/dist-esm/operations/certificateRegistrationProvider.js.map +1 -0
  48. package/dist-esm/operations/certificates.d.ts +84 -0
  49. package/dist-esm/operations/certificates.d.ts.map +1 -0
  50. package/dist-esm/operations/certificates.js +357 -0
  51. package/dist-esm/operations/certificates.js.map +1 -0
  52. package/dist-esm/operations/deletedWebApps.d.ts +61 -0
  53. package/dist-esm/operations/deletedWebApps.d.ts.map +1 -0
  54. package/dist-esm/operations/deletedWebApps.js +262 -0
  55. package/dist-esm/operations/deletedWebApps.js.map +1 -0
  56. package/dist-esm/operations/diagnostics.d.ts +378 -0
  57. package/dist-esm/operations/diagnostics.d.ts.map +1 -0
  58. package/dist-esm/operations/diagnostics.js +1624 -0
  59. package/dist-esm/operations/diagnostics.js.map +1 -0
  60. package/dist-esm/operations/domainRegistrationProvider.d.ts +35 -0
  61. package/dist-esm/operations/domainRegistrationProvider.d.ts.map +1 -0
  62. package/dist-esm/operations/domainRegistrationProvider.js +123 -0
  63. package/dist-esm/operations/domainRegistrationProvider.js.map +1 -0
  64. package/dist-esm/operations/domains.d.ts +193 -0
  65. package/dist-esm/operations/domains.d.ts.map +1 -0
  66. package/dist-esm/operations/domains.js +856 -0
  67. package/dist-esm/operations/domains.js.map +1 -0
  68. package/dist-esm/operations/global.d.ts +32 -0
  69. package/dist-esm/operations/global.d.ts.map +1 -0
  70. package/dist-esm/operations/global.js +112 -0
  71. package/dist-esm/operations/global.js.map +1 -0
  72. package/dist-esm/operations/index.d.ts +19 -0
  73. package/dist-esm/operations/index.d.ts.map +1 -0
  74. package/dist-esm/operations/index.js +26 -0
  75. package/dist-esm/operations/index.js.map +1 -0
  76. package/dist-esm/operations/kubeEnvironments.d.ts +100 -0
  77. package/dist-esm/operations/kubeEnvironments.d.ts.map +1 -0
  78. package/dist-esm/operations/kubeEnvironments.js +454 -0
  79. package/dist-esm/operations/kubeEnvironments.js.map +1 -0
  80. package/dist-esm/operations/provider.d.ts +152 -0
  81. package/dist-esm/operations/provider.d.ts.map +1 -0
  82. package/dist-esm/operations/provider.js +706 -0
  83. package/dist-esm/operations/provider.js.map +1 -0
  84. package/dist-esm/operations/recommendations.d.ts +206 -0
  85. package/dist-esm/operations/recommendations.d.ts.map +1 -0
  86. package/dist-esm/operations/recommendations.js +912 -0
  87. package/dist-esm/operations/recommendations.js.map +1 -0
  88. package/dist-esm/operations/resourceHealthMetadataOperations.d.ts +126 -0
  89. package/dist-esm/operations/resourceHealthMetadataOperations.d.ts.map +1 -0
  90. package/dist-esm/operations/resourceHealthMetadataOperations.js +529 -0
  91. package/dist-esm/operations/resourceHealthMetadataOperations.js.map +1 -0
  92. package/dist-esm/operations/staticSites.d.ts +702 -0
  93. package/dist-esm/operations/staticSites.d.ts.map +1 -0
  94. package/dist-esm/operations/staticSites.js +3069 -0
  95. package/dist-esm/operations/staticSites.js.map +1 -0
  96. package/dist-esm/operations/topLevelDomains.d.ts +63 -0
  97. package/dist-esm/operations/topLevelDomains.d.ts.map +1 -0
  98. package/dist-esm/operations/topLevelDomains.js +258 -0
  99. package/dist-esm/operations/topLevelDomains.js.map +1 -0
  100. package/dist-esm/operations/webApps.d.ts +5070 -0
  101. package/dist-esm/operations/webApps.d.ts.map +1 -0
  102. package/dist-esm/operations/webApps.js +20820 -0
  103. package/dist-esm/operations/webApps.js.map +1 -0
  104. package/dist-esm/operationsInterfaces/appServiceCertificateOrders.d.ts +180 -0
  105. package/dist-esm/operationsInterfaces/appServiceCertificateOrders.d.ts.map +1 -0
  106. package/dist-esm/operationsInterfaces/appServiceCertificateOrders.js +9 -0
  107. package/dist-esm/operationsInterfaces/appServiceCertificateOrders.js.map +1 -0
  108. package/dist-esm/operationsInterfaces/appServiceEnvironments.d.ts +380 -0
  109. package/dist-esm/operationsInterfaces/appServiceEnvironments.d.ts.map +1 -0
  110. package/dist-esm/operationsInterfaces/appServiceEnvironments.js +9 -0
  111. package/dist-esm/operationsInterfaces/appServiceEnvironments.js.map +1 -0
  112. package/dist-esm/operationsInterfaces/appServicePlans.d.ts +230 -0
  113. package/dist-esm/operationsInterfaces/appServicePlans.d.ts.map +1 -0
  114. package/dist-esm/operationsInterfaces/appServicePlans.js +9 -0
  115. package/dist-esm/operationsInterfaces/appServicePlans.js.map +1 -0
  116. package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.d.ts +22 -0
  117. package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.d.ts.map +1 -0
  118. package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.js +9 -0
  119. package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.js.map +1 -0
  120. package/dist-esm/operationsInterfaces/certificateRegistrationProvider.d.ts +13 -0
  121. package/dist-esm/operationsInterfaces/certificateRegistrationProvider.d.ts.map +1 -0
  122. package/dist-esm/operationsInterfaces/certificateRegistrationProvider.js +9 -0
  123. package/dist-esm/operationsInterfaces/certificateRegistrationProvider.js.map +1 -0
  124. package/dist-esm/operationsInterfaces/certificates.d.ts +48 -0
  125. package/dist-esm/operationsInterfaces/certificates.d.ts.map +1 -0
  126. package/dist-esm/operationsInterfaces/certificates.js +9 -0
  127. package/dist-esm/operationsInterfaces/certificates.js.map +1 -0
  128. package/dist-esm/operationsInterfaces/deletedWebApps.d.ts +25 -0
  129. package/dist-esm/operationsInterfaces/deletedWebApps.d.ts.map +1 -0
  130. package/dist-esm/operationsInterfaces/deletedWebApps.js +9 -0
  131. package/dist-esm/operationsInterfaces/deletedWebApps.js.map +1 -0
  132. package/dist-esm/operationsInterfaces/diagnostics.d.ts +196 -0
  133. package/dist-esm/operationsInterfaces/diagnostics.d.ts.map +1 -0
  134. package/dist-esm/operationsInterfaces/diagnostics.js +9 -0
  135. package/dist-esm/operationsInterfaces/diagnostics.js.map +1 -0
  136. package/dist-esm/operationsInterfaces/domainRegistrationProvider.d.ts +13 -0
  137. package/dist-esm/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
  138. package/dist-esm/operationsInterfaces/domainRegistrationProvider.js +9 -0
  139. package/dist-esm/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
  140. package/dist-esm/operationsInterfaces/domains.d.ts +124 -0
  141. package/dist-esm/operationsInterfaces/domains.d.ts.map +1 -0
  142. package/dist-esm/operationsInterfaces/domains.js +9 -0
  143. package/dist-esm/operationsInterfaces/domains.js.map +1 -0
  144. package/dist-esm/operationsInterfaces/global.d.ts +24 -0
  145. package/dist-esm/operationsInterfaces/global.d.ts.map +1 -0
  146. package/dist-esm/operationsInterfaces/global.js +9 -0
  147. package/dist-esm/operationsInterfaces/global.js.map +1 -0
  148. package/dist-esm/operationsInterfaces/index.d.ts +19 -0
  149. package/dist-esm/operationsInterfaces/index.d.ts.map +1 -0
  150. package/dist-esm/operationsInterfaces/index.js +26 -0
  151. package/dist-esm/operationsInterfaces/index.js.map +1 -0
  152. package/dist-esm/operationsInterfaces/kubeEnvironments.d.ts +64 -0
  153. package/dist-esm/operationsInterfaces/kubeEnvironments.d.ts.map +1 -0
  154. package/dist-esm/operationsInterfaces/kubeEnvironments.js +9 -0
  155. package/dist-esm/operationsInterfaces/kubeEnvironments.js.map +1 -0
  156. package/dist-esm/operationsInterfaces/provider.d.ts +45 -0
  157. package/dist-esm/operationsInterfaces/provider.d.ts.map +1 -0
  158. package/dist-esm/operationsInterfaces/provider.js +9 -0
  159. package/dist-esm/operationsInterfaces/provider.js.map +1 -0
  160. package/dist-esm/operationsInterfaces/recommendations.d.ts +114 -0
  161. package/dist-esm/operationsInterfaces/recommendations.d.ts.map +1 -0
  162. package/dist-esm/operationsInterfaces/recommendations.js +9 -0
  163. package/dist-esm/operationsInterfaces/recommendations.js.map +1 -0
  164. package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.d.ts +51 -0
  165. package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.d.ts.map +1 -0
  166. package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.js +9 -0
  167. package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.js.map +1 -0
  168. package/dist-esm/operationsInterfaces/staticSites.d.ts +516 -0
  169. package/dist-esm/operationsInterfaces/staticSites.d.ts.map +1 -0
  170. package/dist-esm/operationsInterfaces/staticSites.js +9 -0
  171. package/dist-esm/operationsInterfaces/staticSites.js.map +1 -0
  172. package/dist-esm/operationsInterfaces/topLevelDomains.d.ts +25 -0
  173. package/dist-esm/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
  174. package/dist-esm/operationsInterfaces/topLevelDomains.js +9 -0
  175. package/dist-esm/operationsInterfaces/topLevelDomains.js.map +1 -0
  176. package/dist-esm/operationsInterfaces/webApps.d.ts +3798 -0
  177. package/dist-esm/operationsInterfaces/webApps.d.ts.map +1 -0
  178. package/dist-esm/operationsInterfaces/webApps.js +9 -0
  179. package/dist-esm/operationsInterfaces/webApps.js.map +1 -0
  180. package/dist-esm/webSiteManagementClient.d.ts +205 -0
  181. package/dist-esm/webSiteManagementClient.d.ts.map +1 -0
  182. package/dist-esm/webSiteManagementClient.js +892 -0
  183. package/dist-esm/webSiteManagementClient.js.map +1 -0
  184. package/dist-esm/webSiteManagementClientContext.d.ts +17 -0
  185. package/dist-esm/webSiteManagementClientContext.d.ts.map +1 -0
  186. package/dist-esm/webSiteManagementClientContext.js +50 -0
  187. package/dist-esm/webSiteManagementClientContext.js.map +1 -0
  188. package/package.json +99 -0
  189. package/review/arm-appservice.api.md +10633 -0
  190. package/rollup.config.js +188 -0
  191. package/src/index.ts +13 -0
  192. package/src/lroImpl.ts +34 -0
  193. package/src/models/index.ts +14289 -0
  194. package/src/models/mappers.ts +21388 -0
  195. package/src/models/parameters.ts +1647 -0
  196. package/src/operations/appServiceCertificateOrders.ts +1373 -0
  197. package/src/operations/appServiceEnvironments.ts +5073 -0
  198. package/src/operations/appServicePlans.ts +1987 -0
  199. package/src/operations/certificateOrdersDiagnostics.ts +247 -0
  200. package/src/operations/certificateRegistrationProvider.ts +144 -0
  201. package/src/operations/certificates.ts +444 -0
  202. package/src/operations/deletedWebApps.ts +311 -0
  203. package/src/operations/diagnostics.ts +2273 -0
  204. package/src/operations/domainRegistrationProvider.ts +144 -0
  205. package/src/operations/domains.ts +1122 -0
  206. package/src/operations/global.ts +150 -0
  207. package/src/operations/index.ts +26 -0
  208. package/src/operations/kubeEnvironments.ts +594 -0
  209. package/src/operations/provider.ts +829 -0
  210. package/src/operations/recommendations.ts +1210 -0
  211. package/src/operations/resourceHealthMetadataOperations.ts +679 -0
  212. package/src/operations/staticSites.ts +4336 -0
  213. package/src/operations/topLevelDomains.ts +319 -0
  214. package/src/operations/webApps.ts +28925 -0
  215. package/src/operationsInterfaces/appServiceCertificateOrders.ts +340 -0
  216. package/src/operationsInterfaces/appServiceEnvironments.ts +725 -0
  217. package/src/operationsInterfaces/appServicePlans.ts +433 -0
  218. package/src/operationsInterfaces/certificateOrdersDiagnostics.ts +47 -0
  219. package/src/operationsInterfaces/certificateRegistrationProvider.ts +27 -0
  220. package/src/operationsInterfaces/certificates.ts +92 -0
  221. package/src/operationsInterfaces/deletedWebApps.ts +49 -0
  222. package/src/operationsInterfaces/diagnostics.ts +368 -0
  223. package/src/operationsInterfaces/domainRegistrationProvider.ts +27 -0
  224. package/src/operationsInterfaces/domains.ts +231 -0
  225. package/src/operationsInterfaces/global.ts +48 -0
  226. package/src/operationsInterfaces/index.ts +26 -0
  227. package/src/operationsInterfaces/kubeEnvironments.ts +122 -0
  228. package/src/operationsInterfaces/provider.ts +82 -0
  229. package/src/operationsInterfaces/recommendations.ts +204 -0
  230. package/src/operationsInterfaces/resourceHealthMetadataOperations.ts +93 -0
  231. package/src/operationsInterfaces/staticSites.ts +963 -0
  232. package/src/operationsInterfaces/topLevelDomains.ts +51 -0
  233. package/src/operationsInterfaces/webApps.ts +6889 -0
  234. package/src/webSiteManagementClient.ts +1177 -0
  235. package/src/webSiteManagementClientContext.ts +71 -0
  236. package/tsconfig.json +19 -0
  237. package/types/arm-appservice.d.ts +20041 -0
  238. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,3646 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import "@azure/core-paging";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { LroEngine } from "@azure/core-lro";
14
+ import { LroImpl } from "../lroImpl";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class representing a AppServiceEnvironments. */
17
+ export class AppServiceEnvironmentsImpl {
18
+ /**
19
+ * Initialize a new instance of the class AppServiceEnvironments class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Description for Get all App Service Environments for a subscription.
27
+ * @param options The options parameters.
28
+ */
29
+ list(options) {
30
+ const iter = this.listPagingAll(options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listPagingPage(options);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(options) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result = yield __await(this._list(options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listNext(continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listPagingAll(options) {
56
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Description for Get all App Service Environments in a resource group.
75
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
76
+ * @param options The options parameters.
77
+ */
78
+ listByResourceGroup(resourceGroupName, options) {
79
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
89
+ }
90
+ };
91
+ }
92
+ listByResourceGroupPagingPage(resourceGroupName, options) {
93
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
94
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ listByResourceGroupPagingAll(resourceGroupName, options) {
105
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
109
+ const page = _c.value;
110
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
111
+ }
112
+ }
113
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
+ finally {
115
+ try {
116
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
117
+ }
118
+ finally { if (e_2) throw e_2.error; }
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Description for Get the used, available, and total worker capacity an App Service Environment.
124
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
125
+ * @param name Name of the App Service Environment.
126
+ * @param options The options parameters.
127
+ */
128
+ listCapacities(resourceGroupName, name, options) {
129
+ const iter = this.listCapacitiesPagingAll(resourceGroupName, name, options);
130
+ return {
131
+ next() {
132
+ return iter.next();
133
+ },
134
+ [Symbol.asyncIterator]() {
135
+ return this;
136
+ },
137
+ byPage: () => {
138
+ return this.listCapacitiesPagingPage(resourceGroupName, name, options);
139
+ }
140
+ };
141
+ }
142
+ listCapacitiesPagingPage(resourceGroupName, name, options) {
143
+ return __asyncGenerator(this, arguments, function* listCapacitiesPagingPage_1() {
144
+ let result = yield __await(this._listCapacities(resourceGroupName, name, options));
145
+ yield yield __await(result.value || []);
146
+ let continuationToken = result.nextLink;
147
+ while (continuationToken) {
148
+ result = yield __await(this._listCapacitiesNext(resourceGroupName, name, continuationToken, options));
149
+ continuationToken = result.nextLink;
150
+ yield yield __await(result.value || []);
151
+ }
152
+ });
153
+ }
154
+ listCapacitiesPagingAll(resourceGroupName, name, options) {
155
+ return __asyncGenerator(this, arguments, function* listCapacitiesPagingAll_1() {
156
+ var e_3, _a;
157
+ try {
158
+ for (var _b = __asyncValues(this.listCapacitiesPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
159
+ const page = _c.value;
160
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
161
+ }
162
+ }
163
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
164
+ finally {
165
+ try {
166
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
167
+ }
168
+ finally { if (e_3) throw e_3.error; }
169
+ }
170
+ });
171
+ }
172
+ /**
173
+ * Description for Move an App Service Environment to a different VNET.
174
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
175
+ * @param name Name of the App Service Environment.
176
+ * @param vnetInfo Details for the new virtual network.
177
+ * @param options The options parameters.
178
+ */
179
+ beginListChangeVnetAndWait(resourceGroupName, name, vnetInfo, options) {
180
+ const iter = this.changeVnetPagingAll(resourceGroupName, name, vnetInfo, options);
181
+ return {
182
+ next() {
183
+ return iter.next();
184
+ },
185
+ [Symbol.asyncIterator]() {
186
+ return this;
187
+ },
188
+ byPage: () => {
189
+ return this.changeVnetPagingPage(resourceGroupName, name, vnetInfo, options);
190
+ }
191
+ };
192
+ }
193
+ changeVnetPagingPage(resourceGroupName, name, vnetInfo, options) {
194
+ return __asyncGenerator(this, arguments, function* changeVnetPagingPage_1() {
195
+ const poller = yield __await(this._changeVnet(resourceGroupName, name, vnetInfo, options));
196
+ let result = yield __await(poller.pollUntilDone());
197
+ yield yield __await(result.value || []);
198
+ let continuationToken = result.nextLink;
199
+ while (continuationToken) {
200
+ result = yield __await(this._changeVnetNext(resourceGroupName, name, vnetInfo, continuationToken, options));
201
+ continuationToken = result.nextLink;
202
+ yield yield __await(result.value || []);
203
+ }
204
+ });
205
+ }
206
+ changeVnetPagingAll(resourceGroupName, name, vnetInfo, options) {
207
+ return __asyncGenerator(this, arguments, function* changeVnetPagingAll_1() {
208
+ var e_4, _a;
209
+ try {
210
+ for (var _b = __asyncValues(this.changeVnetPagingPage(resourceGroupName, name, vnetInfo, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
211
+ const page = _c.value;
212
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
213
+ }
214
+ }
215
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
216
+ finally {
217
+ try {
218
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
219
+ }
220
+ finally { if (e_4) throw e_4.error; }
221
+ }
222
+ });
223
+ }
224
+ /**
225
+ * Description for Get the network endpoints of all inbound dependencies of an App Service Environment.
226
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
227
+ * @param name Name of the App Service Environment.
228
+ * @param options The options parameters.
229
+ */
230
+ listInboundNetworkDependenciesEndpoints(resourceGroupName, name, options) {
231
+ const iter = this.getInboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, name, options);
232
+ return {
233
+ next() {
234
+ return iter.next();
235
+ },
236
+ [Symbol.asyncIterator]() {
237
+ return this;
238
+ },
239
+ byPage: () => {
240
+ return this.getInboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options);
241
+ }
242
+ };
243
+ }
244
+ getInboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options) {
245
+ return __asyncGenerator(this, arguments, function* getInboundNetworkDependenciesEndpointsPagingPage_1() {
246
+ let result = yield __await(this._getInboundNetworkDependenciesEndpoints(resourceGroupName, name, options));
247
+ yield yield __await(result.value || []);
248
+ let continuationToken = result.nextLink;
249
+ while (continuationToken) {
250
+ result = yield __await(this._getInboundNetworkDependenciesEndpointsNext(resourceGroupName, name, continuationToken, options));
251
+ continuationToken = result.nextLink;
252
+ yield yield __await(result.value || []);
253
+ }
254
+ });
255
+ }
256
+ getInboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, name, options) {
257
+ return __asyncGenerator(this, arguments, function* getInboundNetworkDependenciesEndpointsPagingAll_1() {
258
+ var e_5, _a;
259
+ try {
260
+ for (var _b = __asyncValues(this.getInboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
261
+ const page = _c.value;
262
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
263
+ }
264
+ }
265
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
266
+ finally {
267
+ try {
268
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
269
+ }
270
+ finally { if (e_5) throw e_5.error; }
271
+ }
272
+ });
273
+ }
274
+ /**
275
+ * Description for Get all multi-role pools.
276
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
277
+ * @param name Name of the App Service Environment.
278
+ * @param options The options parameters.
279
+ */
280
+ listMultiRolePools(resourceGroupName, name, options) {
281
+ const iter = this.listMultiRolePoolsPagingAll(resourceGroupName, name, options);
282
+ return {
283
+ next() {
284
+ return iter.next();
285
+ },
286
+ [Symbol.asyncIterator]() {
287
+ return this;
288
+ },
289
+ byPage: () => {
290
+ return this.listMultiRolePoolsPagingPage(resourceGroupName, name, options);
291
+ }
292
+ };
293
+ }
294
+ listMultiRolePoolsPagingPage(resourceGroupName, name, options) {
295
+ return __asyncGenerator(this, arguments, function* listMultiRolePoolsPagingPage_1() {
296
+ let result = yield __await(this._listMultiRolePools(resourceGroupName, name, options));
297
+ yield yield __await(result.value || []);
298
+ let continuationToken = result.nextLink;
299
+ while (continuationToken) {
300
+ result = yield __await(this._listMultiRolePoolsNext(resourceGroupName, name, continuationToken, options));
301
+ continuationToken = result.nextLink;
302
+ yield yield __await(result.value || []);
303
+ }
304
+ });
305
+ }
306
+ listMultiRolePoolsPagingAll(resourceGroupName, name, options) {
307
+ return __asyncGenerator(this, arguments, function* listMultiRolePoolsPagingAll_1() {
308
+ var e_6, _a;
309
+ try {
310
+ for (var _b = __asyncValues(this.listMultiRolePoolsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
311
+ const page = _c.value;
312
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
313
+ }
314
+ }
315
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
316
+ finally {
317
+ try {
318
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
319
+ }
320
+ finally { if (e_6) throw e_6.error; }
321
+ }
322
+ });
323
+ }
324
+ /**
325
+ * Description for Get metric definitions for a specific instance of a multi-role pool of an App
326
+ * Service Environment.
327
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
328
+ * @param name Name of the App Service Environment.
329
+ * @param instance Name of the instance in the multi-role pool.
330
+ * @param options The options parameters.
331
+ */
332
+ listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, instance, options) {
333
+ const iter = this.listMultiRolePoolInstanceMetricDefinitionsPagingAll(resourceGroupName, name, instance, options);
334
+ return {
335
+ next() {
336
+ return iter.next();
337
+ },
338
+ [Symbol.asyncIterator]() {
339
+ return this;
340
+ },
341
+ byPage: () => {
342
+ return this.listMultiRolePoolInstanceMetricDefinitionsPagingPage(resourceGroupName, name, instance, options);
343
+ }
344
+ };
345
+ }
346
+ listMultiRolePoolInstanceMetricDefinitionsPagingPage(resourceGroupName, name, instance, options) {
347
+ return __asyncGenerator(this, arguments, function* listMultiRolePoolInstanceMetricDefinitionsPagingPage_1() {
348
+ let result = yield __await(this._listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, instance, options));
349
+ yield yield __await(result.value || []);
350
+ let continuationToken = result.nextLink;
351
+ while (continuationToken) {
352
+ result = yield __await(this._listMultiRolePoolInstanceMetricDefinitionsNext(resourceGroupName, name, instance, continuationToken, options));
353
+ continuationToken = result.nextLink;
354
+ yield yield __await(result.value || []);
355
+ }
356
+ });
357
+ }
358
+ listMultiRolePoolInstanceMetricDefinitionsPagingAll(resourceGroupName, name, instance, options) {
359
+ return __asyncGenerator(this, arguments, function* listMultiRolePoolInstanceMetricDefinitionsPagingAll_1() {
360
+ var e_7, _a;
361
+ try {
362
+ for (var _b = __asyncValues(this.listMultiRolePoolInstanceMetricDefinitionsPagingPage(resourceGroupName, name, instance, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
363
+ const page = _c.value;
364
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
365
+ }
366
+ }
367
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
368
+ finally {
369
+ try {
370
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
371
+ }
372
+ finally { if (e_7) throw e_7.error; }
373
+ }
374
+ });
375
+ }
376
+ /**
377
+ * Description for Get metric definitions for a multi-role pool of an App Service Environment.
378
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
379
+ * @param name Name of the App Service Environment.
380
+ * @param options The options parameters.
381
+ */
382
+ listMultiRoleMetricDefinitions(resourceGroupName, name, options) {
383
+ const iter = this.listMultiRoleMetricDefinitionsPagingAll(resourceGroupName, name, options);
384
+ return {
385
+ next() {
386
+ return iter.next();
387
+ },
388
+ [Symbol.asyncIterator]() {
389
+ return this;
390
+ },
391
+ byPage: () => {
392
+ return this.listMultiRoleMetricDefinitionsPagingPage(resourceGroupName, name, options);
393
+ }
394
+ };
395
+ }
396
+ listMultiRoleMetricDefinitionsPagingPage(resourceGroupName, name, options) {
397
+ return __asyncGenerator(this, arguments, function* listMultiRoleMetricDefinitionsPagingPage_1() {
398
+ let result = yield __await(this._listMultiRoleMetricDefinitions(resourceGroupName, name, options));
399
+ yield yield __await(result.value || []);
400
+ let continuationToken = result.nextLink;
401
+ while (continuationToken) {
402
+ result = yield __await(this._listMultiRoleMetricDefinitionsNext(resourceGroupName, name, continuationToken, options));
403
+ continuationToken = result.nextLink;
404
+ yield yield __await(result.value || []);
405
+ }
406
+ });
407
+ }
408
+ listMultiRoleMetricDefinitionsPagingAll(resourceGroupName, name, options) {
409
+ return __asyncGenerator(this, arguments, function* listMultiRoleMetricDefinitionsPagingAll_1() {
410
+ var e_8, _a;
411
+ try {
412
+ for (var _b = __asyncValues(this.listMultiRoleMetricDefinitionsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
413
+ const page = _c.value;
414
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
415
+ }
416
+ }
417
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
418
+ finally {
419
+ try {
420
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
421
+ }
422
+ finally { if (e_8) throw e_8.error; }
423
+ }
424
+ });
425
+ }
426
+ /**
427
+ * Description for Get available SKUs for scaling a multi-role pool.
428
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
429
+ * @param name Name of the App Service Environment.
430
+ * @param options The options parameters.
431
+ */
432
+ listMultiRolePoolSkus(resourceGroupName, name, options) {
433
+ const iter = this.listMultiRolePoolSkusPagingAll(resourceGroupName, name, options);
434
+ return {
435
+ next() {
436
+ return iter.next();
437
+ },
438
+ [Symbol.asyncIterator]() {
439
+ return this;
440
+ },
441
+ byPage: () => {
442
+ return this.listMultiRolePoolSkusPagingPage(resourceGroupName, name, options);
443
+ }
444
+ };
445
+ }
446
+ listMultiRolePoolSkusPagingPage(resourceGroupName, name, options) {
447
+ return __asyncGenerator(this, arguments, function* listMultiRolePoolSkusPagingPage_1() {
448
+ let result = yield __await(this._listMultiRolePoolSkus(resourceGroupName, name, options));
449
+ yield yield __await(result.value || []);
450
+ let continuationToken = result.nextLink;
451
+ while (continuationToken) {
452
+ result = yield __await(this._listMultiRolePoolSkusNext(resourceGroupName, name, continuationToken, options));
453
+ continuationToken = result.nextLink;
454
+ yield yield __await(result.value || []);
455
+ }
456
+ });
457
+ }
458
+ listMultiRolePoolSkusPagingAll(resourceGroupName, name, options) {
459
+ return __asyncGenerator(this, arguments, function* listMultiRolePoolSkusPagingAll_1() {
460
+ var e_9, _a;
461
+ try {
462
+ for (var _b = __asyncValues(this.listMultiRolePoolSkusPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
463
+ const page = _c.value;
464
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
465
+ }
466
+ }
467
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
468
+ finally {
469
+ try {
470
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
471
+ }
472
+ finally { if (e_9) throw e_9.error; }
473
+ }
474
+ });
475
+ }
476
+ /**
477
+ * Description for Get usage metrics for a multi-role pool of an App Service Environment.
478
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
479
+ * @param name Name of the App Service Environment.
480
+ * @param options The options parameters.
481
+ */
482
+ listMultiRoleUsages(resourceGroupName, name, options) {
483
+ const iter = this.listMultiRoleUsagesPagingAll(resourceGroupName, name, options);
484
+ return {
485
+ next() {
486
+ return iter.next();
487
+ },
488
+ [Symbol.asyncIterator]() {
489
+ return this;
490
+ },
491
+ byPage: () => {
492
+ return this.listMultiRoleUsagesPagingPage(resourceGroupName, name, options);
493
+ }
494
+ };
495
+ }
496
+ listMultiRoleUsagesPagingPage(resourceGroupName, name, options) {
497
+ return __asyncGenerator(this, arguments, function* listMultiRoleUsagesPagingPage_1() {
498
+ let result = yield __await(this._listMultiRoleUsages(resourceGroupName, name, options));
499
+ yield yield __await(result.value || []);
500
+ let continuationToken = result.nextLink;
501
+ while (continuationToken) {
502
+ result = yield __await(this._listMultiRoleUsagesNext(resourceGroupName, name, continuationToken, options));
503
+ continuationToken = result.nextLink;
504
+ yield yield __await(result.value || []);
505
+ }
506
+ });
507
+ }
508
+ listMultiRoleUsagesPagingAll(resourceGroupName, name, options) {
509
+ return __asyncGenerator(this, arguments, function* listMultiRoleUsagesPagingAll_1() {
510
+ var e_10, _a;
511
+ try {
512
+ for (var _b = __asyncValues(this.listMultiRoleUsagesPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
513
+ const page = _c.value;
514
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
515
+ }
516
+ }
517
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
518
+ finally {
519
+ try {
520
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
521
+ }
522
+ finally { if (e_10) throw e_10.error; }
523
+ }
524
+ });
525
+ }
526
+ /**
527
+ * Description for Get the network endpoints of all outbound dependencies of an App Service
528
+ * Environment.
529
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
530
+ * @param name Name of the App Service Environment.
531
+ * @param options The options parameters.
532
+ */
533
+ listOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options) {
534
+ const iter = this.getOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, name, options);
535
+ return {
536
+ next() {
537
+ return iter.next();
538
+ },
539
+ [Symbol.asyncIterator]() {
540
+ return this;
541
+ },
542
+ byPage: () => {
543
+ return this.getOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options);
544
+ }
545
+ };
546
+ }
547
+ getOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options) {
548
+ return __asyncGenerator(this, arguments, function* getOutboundNetworkDependenciesEndpointsPagingPage_1() {
549
+ let result = yield __await(this._getOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options));
550
+ yield yield __await(result.value || []);
551
+ let continuationToken = result.nextLink;
552
+ while (continuationToken) {
553
+ result = yield __await(this._getOutboundNetworkDependenciesEndpointsNext(resourceGroupName, name, continuationToken, options));
554
+ continuationToken = result.nextLink;
555
+ yield yield __await(result.value || []);
556
+ }
557
+ });
558
+ }
559
+ getOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, name, options) {
560
+ return __asyncGenerator(this, arguments, function* getOutboundNetworkDependenciesEndpointsPagingAll_1() {
561
+ var e_11, _a;
562
+ try {
563
+ for (var _b = __asyncValues(this.getOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
564
+ const page = _c.value;
565
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
566
+ }
567
+ }
568
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
569
+ finally {
570
+ try {
571
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
572
+ }
573
+ finally { if (e_11) throw e_11.error; }
574
+ }
575
+ });
576
+ }
577
+ /**
578
+ * Description for Gets the list of private endpoints associated with a hosting environment
579
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
580
+ * @param name Name of the App Service Environment.
581
+ * @param options The options parameters.
582
+ */
583
+ listPrivateEndpointConnectionList(resourceGroupName, name, options) {
584
+ const iter = this.getPrivateEndpointConnectionListPagingAll(resourceGroupName, name, options);
585
+ return {
586
+ next() {
587
+ return iter.next();
588
+ },
589
+ [Symbol.asyncIterator]() {
590
+ return this;
591
+ },
592
+ byPage: () => {
593
+ return this.getPrivateEndpointConnectionListPagingPage(resourceGroupName, name, options);
594
+ }
595
+ };
596
+ }
597
+ getPrivateEndpointConnectionListPagingPage(resourceGroupName, name, options) {
598
+ return __asyncGenerator(this, arguments, function* getPrivateEndpointConnectionListPagingPage_1() {
599
+ let result = yield __await(this._getPrivateEndpointConnectionList(resourceGroupName, name, options));
600
+ yield yield __await(result.value || []);
601
+ let continuationToken = result.nextLink;
602
+ while (continuationToken) {
603
+ result = yield __await(this._getPrivateEndpointConnectionListNext(resourceGroupName, name, continuationToken, options));
604
+ continuationToken = result.nextLink;
605
+ yield yield __await(result.value || []);
606
+ }
607
+ });
608
+ }
609
+ getPrivateEndpointConnectionListPagingAll(resourceGroupName, name, options) {
610
+ return __asyncGenerator(this, arguments, function* getPrivateEndpointConnectionListPagingAll_1() {
611
+ var e_12, _a;
612
+ try {
613
+ for (var _b = __asyncValues(this.getPrivateEndpointConnectionListPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
614
+ const page = _c.value;
615
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
616
+ }
617
+ }
618
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
619
+ finally {
620
+ try {
621
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
622
+ }
623
+ finally { if (e_12) throw e_12.error; }
624
+ }
625
+ });
626
+ }
627
+ /**
628
+ * Description for Resume an App Service Environment.
629
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
630
+ * @param name Name of the App Service Environment.
631
+ * @param options The options parameters.
632
+ */
633
+ beginListResumeAndWait(resourceGroupName, name, options) {
634
+ const iter = this.resumePagingAll(resourceGroupName, name, options);
635
+ return {
636
+ next() {
637
+ return iter.next();
638
+ },
639
+ [Symbol.asyncIterator]() {
640
+ return this;
641
+ },
642
+ byPage: () => {
643
+ return this.resumePagingPage(resourceGroupName, name, options);
644
+ }
645
+ };
646
+ }
647
+ resumePagingPage(resourceGroupName, name, options) {
648
+ return __asyncGenerator(this, arguments, function* resumePagingPage_1() {
649
+ const poller = yield __await(this._resume(resourceGroupName, name, options));
650
+ let result = yield __await(poller.pollUntilDone());
651
+ yield yield __await(result.value || []);
652
+ let continuationToken = result.nextLink;
653
+ while (continuationToken) {
654
+ result = yield __await(this._resumeNext(resourceGroupName, name, continuationToken, options));
655
+ continuationToken = result.nextLink;
656
+ yield yield __await(result.value || []);
657
+ }
658
+ });
659
+ }
660
+ resumePagingAll(resourceGroupName, name, options) {
661
+ return __asyncGenerator(this, arguments, function* resumePagingAll_1() {
662
+ var e_13, _a;
663
+ try {
664
+ for (var _b = __asyncValues(this.resumePagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
665
+ const page = _c.value;
666
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
667
+ }
668
+ }
669
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
670
+ finally {
671
+ try {
672
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
673
+ }
674
+ finally { if (e_13) throw e_13.error; }
675
+ }
676
+ });
677
+ }
678
+ /**
679
+ * Description for Get all App Service plans in an App Service Environment.
680
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
681
+ * @param name Name of the App Service Environment.
682
+ * @param options The options parameters.
683
+ */
684
+ listAppServicePlans(resourceGroupName, name, options) {
685
+ const iter = this.listAppServicePlansPagingAll(resourceGroupName, name, options);
686
+ return {
687
+ next() {
688
+ return iter.next();
689
+ },
690
+ [Symbol.asyncIterator]() {
691
+ return this;
692
+ },
693
+ byPage: () => {
694
+ return this.listAppServicePlansPagingPage(resourceGroupName, name, options);
695
+ }
696
+ };
697
+ }
698
+ listAppServicePlansPagingPage(resourceGroupName, name, options) {
699
+ return __asyncGenerator(this, arguments, function* listAppServicePlansPagingPage_1() {
700
+ let result = yield __await(this._listAppServicePlans(resourceGroupName, name, options));
701
+ yield yield __await(result.value || []);
702
+ let continuationToken = result.nextLink;
703
+ while (continuationToken) {
704
+ result = yield __await(this._listAppServicePlansNext(resourceGroupName, name, continuationToken, options));
705
+ continuationToken = result.nextLink;
706
+ yield yield __await(result.value || []);
707
+ }
708
+ });
709
+ }
710
+ listAppServicePlansPagingAll(resourceGroupName, name, options) {
711
+ return __asyncGenerator(this, arguments, function* listAppServicePlansPagingAll_1() {
712
+ var e_14, _a;
713
+ try {
714
+ for (var _b = __asyncValues(this.listAppServicePlansPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
715
+ const page = _c.value;
716
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
717
+ }
718
+ }
719
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
720
+ finally {
721
+ try {
722
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
723
+ }
724
+ finally { if (e_14) throw e_14.error; }
725
+ }
726
+ });
727
+ }
728
+ /**
729
+ * Description for Get all apps in an App Service Environment.
730
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
731
+ * @param name Name of the App Service Environment.
732
+ * @param options The options parameters.
733
+ */
734
+ listWebApps(resourceGroupName, name, options) {
735
+ const iter = this.listWebAppsPagingAll(resourceGroupName, name, options);
736
+ return {
737
+ next() {
738
+ return iter.next();
739
+ },
740
+ [Symbol.asyncIterator]() {
741
+ return this;
742
+ },
743
+ byPage: () => {
744
+ return this.listWebAppsPagingPage(resourceGroupName, name, options);
745
+ }
746
+ };
747
+ }
748
+ listWebAppsPagingPage(resourceGroupName, name, options) {
749
+ return __asyncGenerator(this, arguments, function* listWebAppsPagingPage_1() {
750
+ let result = yield __await(this._listWebApps(resourceGroupName, name, options));
751
+ yield yield __await(result.value || []);
752
+ let continuationToken = result.nextLink;
753
+ while (continuationToken) {
754
+ result = yield __await(this._listWebAppsNext(resourceGroupName, name, continuationToken, options));
755
+ continuationToken = result.nextLink;
756
+ yield yield __await(result.value || []);
757
+ }
758
+ });
759
+ }
760
+ listWebAppsPagingAll(resourceGroupName, name, options) {
761
+ return __asyncGenerator(this, arguments, function* listWebAppsPagingAll_1() {
762
+ var e_15, _a;
763
+ try {
764
+ for (var _b = __asyncValues(this.listWebAppsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
765
+ const page = _c.value;
766
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
767
+ }
768
+ }
769
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
770
+ finally {
771
+ try {
772
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
773
+ }
774
+ finally { if (e_15) throw e_15.error; }
775
+ }
776
+ });
777
+ }
778
+ /**
779
+ * Description for Suspend an App Service Environment.
780
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
781
+ * @param name Name of the App Service Environment.
782
+ * @param options The options parameters.
783
+ */
784
+ beginListSuspendAndWait(resourceGroupName, name, options) {
785
+ const iter = this.suspendPagingAll(resourceGroupName, name, options);
786
+ return {
787
+ next() {
788
+ return iter.next();
789
+ },
790
+ [Symbol.asyncIterator]() {
791
+ return this;
792
+ },
793
+ byPage: () => {
794
+ return this.suspendPagingPage(resourceGroupName, name, options);
795
+ }
796
+ };
797
+ }
798
+ suspendPagingPage(resourceGroupName, name, options) {
799
+ return __asyncGenerator(this, arguments, function* suspendPagingPage_1() {
800
+ const poller = yield __await(this._suspend(resourceGroupName, name, options));
801
+ let result = yield __await(poller.pollUntilDone());
802
+ yield yield __await(result.value || []);
803
+ let continuationToken = result.nextLink;
804
+ while (continuationToken) {
805
+ result = yield __await(this._suspendNext(resourceGroupName, name, continuationToken, options));
806
+ continuationToken = result.nextLink;
807
+ yield yield __await(result.value || []);
808
+ }
809
+ });
810
+ }
811
+ suspendPagingAll(resourceGroupName, name, options) {
812
+ return __asyncGenerator(this, arguments, function* suspendPagingAll_1() {
813
+ var e_16, _a;
814
+ try {
815
+ for (var _b = __asyncValues(this.suspendPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
816
+ const page = _c.value;
817
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
818
+ }
819
+ }
820
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
821
+ finally {
822
+ try {
823
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
824
+ }
825
+ finally { if (e_16) throw e_16.error; }
826
+ }
827
+ });
828
+ }
829
+ /**
830
+ * Description for Get global usage metrics of an App Service Environment.
831
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
832
+ * @param name Name of the App Service Environment.
833
+ * @param options The options parameters.
834
+ */
835
+ listUsages(resourceGroupName, name, options) {
836
+ const iter = this.listUsagesPagingAll(resourceGroupName, name, options);
837
+ return {
838
+ next() {
839
+ return iter.next();
840
+ },
841
+ [Symbol.asyncIterator]() {
842
+ return this;
843
+ },
844
+ byPage: () => {
845
+ return this.listUsagesPagingPage(resourceGroupName, name, options);
846
+ }
847
+ };
848
+ }
849
+ listUsagesPagingPage(resourceGroupName, name, options) {
850
+ return __asyncGenerator(this, arguments, function* listUsagesPagingPage_1() {
851
+ let result = yield __await(this._listUsages(resourceGroupName, name, options));
852
+ yield yield __await(result.value || []);
853
+ let continuationToken = result.nextLink;
854
+ while (continuationToken) {
855
+ result = yield __await(this._listUsagesNext(resourceGroupName, name, continuationToken, options));
856
+ continuationToken = result.nextLink;
857
+ yield yield __await(result.value || []);
858
+ }
859
+ });
860
+ }
861
+ listUsagesPagingAll(resourceGroupName, name, options) {
862
+ return __asyncGenerator(this, arguments, function* listUsagesPagingAll_1() {
863
+ var e_17, _a;
864
+ try {
865
+ for (var _b = __asyncValues(this.listUsagesPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
866
+ const page = _c.value;
867
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
868
+ }
869
+ }
870
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
871
+ finally {
872
+ try {
873
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
874
+ }
875
+ finally { if (e_17) throw e_17.error; }
876
+ }
877
+ });
878
+ }
879
+ /**
880
+ * Description for Get all worker pools of an App Service Environment.
881
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
882
+ * @param name Name of the App Service Environment.
883
+ * @param options The options parameters.
884
+ */
885
+ listWorkerPools(resourceGroupName, name, options) {
886
+ const iter = this.listWorkerPoolsPagingAll(resourceGroupName, name, options);
887
+ return {
888
+ next() {
889
+ return iter.next();
890
+ },
891
+ [Symbol.asyncIterator]() {
892
+ return this;
893
+ },
894
+ byPage: () => {
895
+ return this.listWorkerPoolsPagingPage(resourceGroupName, name, options);
896
+ }
897
+ };
898
+ }
899
+ listWorkerPoolsPagingPage(resourceGroupName, name, options) {
900
+ return __asyncGenerator(this, arguments, function* listWorkerPoolsPagingPage_1() {
901
+ let result = yield __await(this._listWorkerPools(resourceGroupName, name, options));
902
+ yield yield __await(result.value || []);
903
+ let continuationToken = result.nextLink;
904
+ while (continuationToken) {
905
+ result = yield __await(this._listWorkerPoolsNext(resourceGroupName, name, continuationToken, options));
906
+ continuationToken = result.nextLink;
907
+ yield yield __await(result.value || []);
908
+ }
909
+ });
910
+ }
911
+ listWorkerPoolsPagingAll(resourceGroupName, name, options) {
912
+ return __asyncGenerator(this, arguments, function* listWorkerPoolsPagingAll_1() {
913
+ var e_18, _a;
914
+ try {
915
+ for (var _b = __asyncValues(this.listWorkerPoolsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
916
+ const page = _c.value;
917
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
918
+ }
919
+ }
920
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
921
+ finally {
922
+ try {
923
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
924
+ }
925
+ finally { if (e_18) throw e_18.error; }
926
+ }
927
+ });
928
+ }
929
+ /**
930
+ * Description for Get metric definitions for a specific instance of a worker pool of an App Service
931
+ * Environment.
932
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
933
+ * @param name Name of the App Service Environment.
934
+ * @param workerPoolName Name of the worker pool.
935
+ * @param instance Name of the instance in the worker pool.
936
+ * @param options The options parameters.
937
+ */
938
+ listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, workerPoolName, instance, options) {
939
+ const iter = this.listWorkerPoolInstanceMetricDefinitionsPagingAll(resourceGroupName, name, workerPoolName, instance, options);
940
+ return {
941
+ next() {
942
+ return iter.next();
943
+ },
944
+ [Symbol.asyncIterator]() {
945
+ return this;
946
+ },
947
+ byPage: () => {
948
+ return this.listWorkerPoolInstanceMetricDefinitionsPagingPage(resourceGroupName, name, workerPoolName, instance, options);
949
+ }
950
+ };
951
+ }
952
+ listWorkerPoolInstanceMetricDefinitionsPagingPage(resourceGroupName, name, workerPoolName, instance, options) {
953
+ return __asyncGenerator(this, arguments, function* listWorkerPoolInstanceMetricDefinitionsPagingPage_1() {
954
+ let result = yield __await(this._listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, workerPoolName, instance, options));
955
+ yield yield __await(result.value || []);
956
+ let continuationToken = result.nextLink;
957
+ while (continuationToken) {
958
+ result = yield __await(this._listWorkerPoolInstanceMetricDefinitionsNext(resourceGroupName, name, workerPoolName, instance, continuationToken, options));
959
+ continuationToken = result.nextLink;
960
+ yield yield __await(result.value || []);
961
+ }
962
+ });
963
+ }
964
+ listWorkerPoolInstanceMetricDefinitionsPagingAll(resourceGroupName, name, workerPoolName, instance, options) {
965
+ return __asyncGenerator(this, arguments, function* listWorkerPoolInstanceMetricDefinitionsPagingAll_1() {
966
+ var e_19, _a;
967
+ try {
968
+ for (var _b = __asyncValues(this.listWorkerPoolInstanceMetricDefinitionsPagingPage(resourceGroupName, name, workerPoolName, instance, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
969
+ const page = _c.value;
970
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
971
+ }
972
+ }
973
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
974
+ finally {
975
+ try {
976
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
977
+ }
978
+ finally { if (e_19) throw e_19.error; }
979
+ }
980
+ });
981
+ }
982
+ /**
983
+ * Description for Get metric definitions for a worker pool of an App Service Environment.
984
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
985
+ * @param name Name of the App Service Environment.
986
+ * @param workerPoolName Name of the worker pool.
987
+ * @param options The options parameters.
988
+ */
989
+ listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName, options) {
990
+ const iter = this.listWebWorkerMetricDefinitionsPagingAll(resourceGroupName, name, workerPoolName, options);
991
+ return {
992
+ next() {
993
+ return iter.next();
994
+ },
995
+ [Symbol.asyncIterator]() {
996
+ return this;
997
+ },
998
+ byPage: () => {
999
+ return this.listWebWorkerMetricDefinitionsPagingPage(resourceGroupName, name, workerPoolName, options);
1000
+ }
1001
+ };
1002
+ }
1003
+ listWebWorkerMetricDefinitionsPagingPage(resourceGroupName, name, workerPoolName, options) {
1004
+ return __asyncGenerator(this, arguments, function* listWebWorkerMetricDefinitionsPagingPage_1() {
1005
+ let result = yield __await(this._listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName, options));
1006
+ yield yield __await(result.value || []);
1007
+ let continuationToken = result.nextLink;
1008
+ while (continuationToken) {
1009
+ result = yield __await(this._listWebWorkerMetricDefinitionsNext(resourceGroupName, name, workerPoolName, continuationToken, options));
1010
+ continuationToken = result.nextLink;
1011
+ yield yield __await(result.value || []);
1012
+ }
1013
+ });
1014
+ }
1015
+ listWebWorkerMetricDefinitionsPagingAll(resourceGroupName, name, workerPoolName, options) {
1016
+ return __asyncGenerator(this, arguments, function* listWebWorkerMetricDefinitionsPagingAll_1() {
1017
+ var e_20, _a;
1018
+ try {
1019
+ for (var _b = __asyncValues(this.listWebWorkerMetricDefinitionsPagingPage(resourceGroupName, name, workerPoolName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
1020
+ const page = _c.value;
1021
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
1022
+ }
1023
+ }
1024
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
1025
+ finally {
1026
+ try {
1027
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
1028
+ }
1029
+ finally { if (e_20) throw e_20.error; }
1030
+ }
1031
+ });
1032
+ }
1033
+ /**
1034
+ * Description for Get available SKUs for scaling a worker pool.
1035
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1036
+ * @param name Name of the App Service Environment.
1037
+ * @param workerPoolName Name of the worker pool.
1038
+ * @param options The options parameters.
1039
+ */
1040
+ listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options) {
1041
+ const iter = this.listWorkerPoolSkusPagingAll(resourceGroupName, name, workerPoolName, options);
1042
+ return {
1043
+ next() {
1044
+ return iter.next();
1045
+ },
1046
+ [Symbol.asyncIterator]() {
1047
+ return this;
1048
+ },
1049
+ byPage: () => {
1050
+ return this.listWorkerPoolSkusPagingPage(resourceGroupName, name, workerPoolName, options);
1051
+ }
1052
+ };
1053
+ }
1054
+ listWorkerPoolSkusPagingPage(resourceGroupName, name, workerPoolName, options) {
1055
+ return __asyncGenerator(this, arguments, function* listWorkerPoolSkusPagingPage_1() {
1056
+ let result = yield __await(this._listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options));
1057
+ yield yield __await(result.value || []);
1058
+ let continuationToken = result.nextLink;
1059
+ while (continuationToken) {
1060
+ result = yield __await(this._listWorkerPoolSkusNext(resourceGroupName, name, workerPoolName, continuationToken, options));
1061
+ continuationToken = result.nextLink;
1062
+ yield yield __await(result.value || []);
1063
+ }
1064
+ });
1065
+ }
1066
+ listWorkerPoolSkusPagingAll(resourceGroupName, name, workerPoolName, options) {
1067
+ return __asyncGenerator(this, arguments, function* listWorkerPoolSkusPagingAll_1() {
1068
+ var e_21, _a;
1069
+ try {
1070
+ for (var _b = __asyncValues(this.listWorkerPoolSkusPagingPage(resourceGroupName, name, workerPoolName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
1071
+ const page = _c.value;
1072
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
1073
+ }
1074
+ }
1075
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
1076
+ finally {
1077
+ try {
1078
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
1079
+ }
1080
+ finally { if (e_21) throw e_21.error; }
1081
+ }
1082
+ });
1083
+ }
1084
+ /**
1085
+ * Description for Get usage metrics for a worker pool of an App Service Environment.
1086
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1087
+ * @param name Name of the App Service Environment.
1088
+ * @param workerPoolName Name of the worker pool.
1089
+ * @param options The options parameters.
1090
+ */
1091
+ listWebWorkerUsages(resourceGroupName, name, workerPoolName, options) {
1092
+ const iter = this.listWebWorkerUsagesPagingAll(resourceGroupName, name, workerPoolName, options);
1093
+ return {
1094
+ next() {
1095
+ return iter.next();
1096
+ },
1097
+ [Symbol.asyncIterator]() {
1098
+ return this;
1099
+ },
1100
+ byPage: () => {
1101
+ return this.listWebWorkerUsagesPagingPage(resourceGroupName, name, workerPoolName, options);
1102
+ }
1103
+ };
1104
+ }
1105
+ listWebWorkerUsagesPagingPage(resourceGroupName, name, workerPoolName, options) {
1106
+ return __asyncGenerator(this, arguments, function* listWebWorkerUsagesPagingPage_1() {
1107
+ let result = yield __await(this._listWebWorkerUsages(resourceGroupName, name, workerPoolName, options));
1108
+ yield yield __await(result.value || []);
1109
+ let continuationToken = result.nextLink;
1110
+ while (continuationToken) {
1111
+ result = yield __await(this._listWebWorkerUsagesNext(resourceGroupName, name, workerPoolName, continuationToken, options));
1112
+ continuationToken = result.nextLink;
1113
+ yield yield __await(result.value || []);
1114
+ }
1115
+ });
1116
+ }
1117
+ listWebWorkerUsagesPagingAll(resourceGroupName, name, workerPoolName, options) {
1118
+ return __asyncGenerator(this, arguments, function* listWebWorkerUsagesPagingAll_1() {
1119
+ var e_22, _a;
1120
+ try {
1121
+ for (var _b = __asyncValues(this.listWebWorkerUsagesPagingPage(resourceGroupName, name, workerPoolName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
1122
+ const page = _c.value;
1123
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
1124
+ }
1125
+ }
1126
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
1127
+ finally {
1128
+ try {
1129
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
1130
+ }
1131
+ finally { if (e_22) throw e_22.error; }
1132
+ }
1133
+ });
1134
+ }
1135
+ /**
1136
+ * Description for Get all App Service Environments for a subscription.
1137
+ * @param options The options parameters.
1138
+ */
1139
+ _list(options) {
1140
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
1141
+ }
1142
+ /**
1143
+ * Description for Get all App Service Environments in a resource group.
1144
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1145
+ * @param options The options parameters.
1146
+ */
1147
+ _listByResourceGroup(resourceGroupName, options) {
1148
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1149
+ }
1150
+ /**
1151
+ * Description for Get the properties of an App Service Environment.
1152
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1153
+ * @param name Name of the App Service Environment.
1154
+ * @param options The options parameters.
1155
+ */
1156
+ get(resourceGroupName, name, options) {
1157
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
1158
+ }
1159
+ /**
1160
+ * Description for Create or update an App Service Environment.
1161
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1162
+ * @param name Name of the App Service Environment.
1163
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
1164
+ * @param options The options parameters.
1165
+ */
1166
+ beginCreateOrUpdate(resourceGroupName, name, hostingEnvironmentEnvelope, options) {
1167
+ return __awaiter(this, void 0, void 0, function* () {
1168
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1169
+ return this.client.sendOperationRequest(args, spec);
1170
+ });
1171
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1172
+ var _a;
1173
+ let currentRawResponse = undefined;
1174
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1175
+ const callback = (rawResponse, flatResponse) => {
1176
+ currentRawResponse = rawResponse;
1177
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1178
+ };
1179
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1180
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1181
+ return {
1182
+ flatResponse,
1183
+ rawResponse: {
1184
+ statusCode: currentRawResponse.status,
1185
+ body: currentRawResponse.parsedBody,
1186
+ headers: currentRawResponse.headers.toJSON()
1187
+ }
1188
+ };
1189
+ });
1190
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, hostingEnvironmentEnvelope, options }, createOrUpdateOperationSpec);
1191
+ return new LroEngine(lro, {
1192
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1193
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1194
+ });
1195
+ });
1196
+ }
1197
+ /**
1198
+ * Description for Create or update an App Service Environment.
1199
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1200
+ * @param name Name of the App Service Environment.
1201
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
1202
+ * @param options The options parameters.
1203
+ */
1204
+ beginCreateOrUpdateAndWait(resourceGroupName, name, hostingEnvironmentEnvelope, options) {
1205
+ return __awaiter(this, void 0, void 0, function* () {
1206
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, hostingEnvironmentEnvelope, options);
1207
+ return poller.pollUntilDone();
1208
+ });
1209
+ }
1210
+ /**
1211
+ * Description for Delete an App Service Environment.
1212
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1213
+ * @param name Name of the App Service Environment.
1214
+ * @param options The options parameters.
1215
+ */
1216
+ beginDelete(resourceGroupName, name, options) {
1217
+ return __awaiter(this, void 0, void 0, function* () {
1218
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1219
+ return this.client.sendOperationRequest(args, spec);
1220
+ });
1221
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1222
+ var _a;
1223
+ let currentRawResponse = undefined;
1224
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1225
+ const callback = (rawResponse, flatResponse) => {
1226
+ currentRawResponse = rawResponse;
1227
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1228
+ };
1229
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1230
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1231
+ return {
1232
+ flatResponse,
1233
+ rawResponse: {
1234
+ statusCode: currentRawResponse.status,
1235
+ body: currentRawResponse.parsedBody,
1236
+ headers: currentRawResponse.headers.toJSON()
1237
+ }
1238
+ };
1239
+ });
1240
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteOperationSpec);
1241
+ return new LroEngine(lro, {
1242
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1243
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1244
+ });
1245
+ });
1246
+ }
1247
+ /**
1248
+ * Description for Delete an App Service Environment.
1249
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1250
+ * @param name Name of the App Service Environment.
1251
+ * @param options The options parameters.
1252
+ */
1253
+ beginDeleteAndWait(resourceGroupName, name, options) {
1254
+ return __awaiter(this, void 0, void 0, function* () {
1255
+ const poller = yield this.beginDelete(resourceGroupName, name, options);
1256
+ return poller.pollUntilDone();
1257
+ });
1258
+ }
1259
+ /**
1260
+ * Description for Create or update an App Service Environment.
1261
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1262
+ * @param name Name of the App Service Environment.
1263
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
1264
+ * @param options The options parameters.
1265
+ */
1266
+ update(resourceGroupName, name, hostingEnvironmentEnvelope, options) {
1267
+ return this.client.sendOperationRequest({ resourceGroupName, name, hostingEnvironmentEnvelope, options }, updateOperationSpec);
1268
+ }
1269
+ /**
1270
+ * Description for Get the used, available, and total worker capacity an App Service Environment.
1271
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1272
+ * @param name Name of the App Service Environment.
1273
+ * @param options The options parameters.
1274
+ */
1275
+ _listCapacities(resourceGroupName, name, options) {
1276
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listCapacitiesOperationSpec);
1277
+ }
1278
+ /**
1279
+ * Description for Get IP addresses assigned to an App Service Environment.
1280
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1281
+ * @param name Name of the App Service Environment.
1282
+ * @param options The options parameters.
1283
+ */
1284
+ getVipInfo(resourceGroupName, name, options) {
1285
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getVipInfoOperationSpec);
1286
+ }
1287
+ /**
1288
+ * Description for Move an App Service Environment to a different VNET.
1289
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1290
+ * @param name Name of the App Service Environment.
1291
+ * @param vnetInfo Details for the new virtual network.
1292
+ * @param options The options parameters.
1293
+ */
1294
+ _changeVnet(resourceGroupName, name, vnetInfo, options) {
1295
+ return __awaiter(this, void 0, void 0, function* () {
1296
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1297
+ return this.client.sendOperationRequest(args, spec);
1298
+ });
1299
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1300
+ var _a;
1301
+ let currentRawResponse = undefined;
1302
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1303
+ const callback = (rawResponse, flatResponse) => {
1304
+ currentRawResponse = rawResponse;
1305
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1306
+ };
1307
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1308
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1309
+ return {
1310
+ flatResponse,
1311
+ rawResponse: {
1312
+ statusCode: currentRawResponse.status,
1313
+ body: currentRawResponse.parsedBody,
1314
+ headers: currentRawResponse.headers.toJSON()
1315
+ }
1316
+ };
1317
+ });
1318
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, vnetInfo, options }, changeVnetOperationSpec);
1319
+ return new LroEngine(lro, {
1320
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1321
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1322
+ });
1323
+ });
1324
+ }
1325
+ /**
1326
+ * Description for Get networking configuration of an App Service Environment
1327
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1328
+ * @param name Name of the App Service Environment.
1329
+ * @param options The options parameters.
1330
+ */
1331
+ getAseV3NetworkingConfiguration(resourceGroupName, name, options) {
1332
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getAseV3NetworkingConfigurationOperationSpec);
1333
+ }
1334
+ /**
1335
+ * Description for Update networking configuration of an App Service Environment
1336
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1337
+ * @param name Name of the App Service Environment.
1338
+ * @param aseNetworkingConfiguration Full view of networking configuration for an ASE.
1339
+ * @param options The options parameters.
1340
+ */
1341
+ updateAseNetworkingConfiguration(resourceGroupName, name, aseNetworkingConfiguration, options) {
1342
+ return this.client.sendOperationRequest({ resourceGroupName, name, aseNetworkingConfiguration, options }, updateAseNetworkingConfigurationOperationSpec);
1343
+ }
1344
+ /**
1345
+ * Description for Get diagnostic information for an App Service Environment.
1346
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1347
+ * @param name Name of the App Service Environment.
1348
+ * @param options The options parameters.
1349
+ */
1350
+ listDiagnostics(resourceGroupName, name, options) {
1351
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listDiagnosticsOperationSpec);
1352
+ }
1353
+ /**
1354
+ * Description for Get a diagnostics item for an App Service Environment.
1355
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1356
+ * @param name Name of the App Service Environment.
1357
+ * @param diagnosticsName Name of the diagnostics item.
1358
+ * @param options The options parameters.
1359
+ */
1360
+ getDiagnosticsItem(resourceGroupName, name, diagnosticsName, options) {
1361
+ return this.client.sendOperationRequest({ resourceGroupName, name, diagnosticsName, options }, getDiagnosticsItemOperationSpec);
1362
+ }
1363
+ /**
1364
+ * Description for Get the network endpoints of all inbound dependencies of an App Service Environment.
1365
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1366
+ * @param name Name of the App Service Environment.
1367
+ * @param options The options parameters.
1368
+ */
1369
+ _getInboundNetworkDependenciesEndpoints(resourceGroupName, name, options) {
1370
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getInboundNetworkDependenciesEndpointsOperationSpec);
1371
+ }
1372
+ /**
1373
+ * Description for Get all multi-role pools.
1374
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1375
+ * @param name Name of the App Service Environment.
1376
+ * @param options The options parameters.
1377
+ */
1378
+ _listMultiRolePools(resourceGroupName, name, options) {
1379
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listMultiRolePoolsOperationSpec);
1380
+ }
1381
+ /**
1382
+ * Description for Get properties of a multi-role pool.
1383
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1384
+ * @param name Name of the App Service Environment.
1385
+ * @param options The options parameters.
1386
+ */
1387
+ getMultiRolePool(resourceGroupName, name, options) {
1388
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getMultiRolePoolOperationSpec);
1389
+ }
1390
+ /**
1391
+ * Description for Create or update a multi-role pool.
1392
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1393
+ * @param name Name of the App Service Environment.
1394
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
1395
+ * @param options The options parameters.
1396
+ */
1397
+ beginCreateOrUpdateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, options) {
1398
+ return __awaiter(this, void 0, void 0, function* () {
1399
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1400
+ return this.client.sendOperationRequest(args, spec);
1401
+ });
1402
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1403
+ var _a;
1404
+ let currentRawResponse = undefined;
1405
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1406
+ const callback = (rawResponse, flatResponse) => {
1407
+ currentRawResponse = rawResponse;
1408
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1409
+ };
1410
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1411
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1412
+ return {
1413
+ flatResponse,
1414
+ rawResponse: {
1415
+ statusCode: currentRawResponse.status,
1416
+ body: currentRawResponse.parsedBody,
1417
+ headers: currentRawResponse.headers.toJSON()
1418
+ }
1419
+ };
1420
+ });
1421
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, multiRolePoolEnvelope, options }, createOrUpdateMultiRolePoolOperationSpec);
1422
+ return new LroEngine(lro, {
1423
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1424
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1425
+ });
1426
+ });
1427
+ }
1428
+ /**
1429
+ * Description for Create or update a multi-role pool.
1430
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1431
+ * @param name Name of the App Service Environment.
1432
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
1433
+ * @param options The options parameters.
1434
+ */
1435
+ beginCreateOrUpdateMultiRolePoolAndWait(resourceGroupName, name, multiRolePoolEnvelope, options) {
1436
+ return __awaiter(this, void 0, void 0, function* () {
1437
+ const poller = yield this.beginCreateOrUpdateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, options);
1438
+ return poller.pollUntilDone();
1439
+ });
1440
+ }
1441
+ /**
1442
+ * Description for Create or update a multi-role pool.
1443
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1444
+ * @param name Name of the App Service Environment.
1445
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
1446
+ * @param options The options parameters.
1447
+ */
1448
+ updateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, options) {
1449
+ return this.client.sendOperationRequest({ resourceGroupName, name, multiRolePoolEnvelope, options }, updateMultiRolePoolOperationSpec);
1450
+ }
1451
+ /**
1452
+ * Description for Get metric definitions for a specific instance of a multi-role pool of an App
1453
+ * Service Environment.
1454
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1455
+ * @param name Name of the App Service Environment.
1456
+ * @param instance Name of the instance in the multi-role pool.
1457
+ * @param options The options parameters.
1458
+ */
1459
+ _listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, instance, options) {
1460
+ return this.client.sendOperationRequest({ resourceGroupName, name, instance, options }, listMultiRolePoolInstanceMetricDefinitionsOperationSpec);
1461
+ }
1462
+ /**
1463
+ * Description for Get metric definitions for a multi-role pool of an App Service Environment.
1464
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1465
+ * @param name Name of the App Service Environment.
1466
+ * @param options The options parameters.
1467
+ */
1468
+ _listMultiRoleMetricDefinitions(resourceGroupName, name, options) {
1469
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listMultiRoleMetricDefinitionsOperationSpec);
1470
+ }
1471
+ /**
1472
+ * Description for Get available SKUs for scaling a multi-role pool.
1473
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1474
+ * @param name Name of the App Service Environment.
1475
+ * @param options The options parameters.
1476
+ */
1477
+ _listMultiRolePoolSkus(resourceGroupName, name, options) {
1478
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listMultiRolePoolSkusOperationSpec);
1479
+ }
1480
+ /**
1481
+ * Description for Get usage metrics for a multi-role pool of an App Service Environment.
1482
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1483
+ * @param name Name of the App Service Environment.
1484
+ * @param options The options parameters.
1485
+ */
1486
+ _listMultiRoleUsages(resourceGroupName, name, options) {
1487
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listMultiRoleUsagesOperationSpec);
1488
+ }
1489
+ /**
1490
+ * Description for List all currently running operations on the App Service Environment.
1491
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1492
+ * @param name Name of the App Service Environment.
1493
+ * @param options The options parameters.
1494
+ */
1495
+ listOperations(resourceGroupName, name, options) {
1496
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listOperationsOperationSpec);
1497
+ }
1498
+ /**
1499
+ * Description for Get the network endpoints of all outbound dependencies of an App Service
1500
+ * Environment.
1501
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1502
+ * @param name Name of the App Service Environment.
1503
+ * @param options The options parameters.
1504
+ */
1505
+ _getOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options) {
1506
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOutboundNetworkDependenciesEndpointsOperationSpec);
1507
+ }
1508
+ /**
1509
+ * Description for Gets the list of private endpoints associated with a hosting environment
1510
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1511
+ * @param name Name of the App Service Environment.
1512
+ * @param options The options parameters.
1513
+ */
1514
+ _getPrivateEndpointConnectionList(resourceGroupName, name, options) {
1515
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getPrivateEndpointConnectionListOperationSpec);
1516
+ }
1517
+ /**
1518
+ * Description for Gets a private endpoint connection
1519
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1520
+ * @param name Name of the App Service Environment.
1521
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
1522
+ * @param options The options parameters.
1523
+ */
1524
+ getPrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, options) {
1525
+ return this.client.sendOperationRequest({ resourceGroupName, name, privateEndpointConnectionName, options }, getPrivateEndpointConnectionOperationSpec);
1526
+ }
1527
+ /**
1528
+ * Description for Approves or rejects a private endpoint connection
1529
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1530
+ * @param name Name of the App Service Environment.
1531
+ * @param privateEndpointConnectionName
1532
+ * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
1533
+ * @param options The options parameters.
1534
+ */
1535
+ beginApproveOrRejectPrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) {
1536
+ return __awaiter(this, void 0, void 0, function* () {
1537
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1538
+ return this.client.sendOperationRequest(args, spec);
1539
+ });
1540
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1541
+ var _a;
1542
+ let currentRawResponse = undefined;
1543
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1544
+ const callback = (rawResponse, flatResponse) => {
1545
+ currentRawResponse = rawResponse;
1546
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1547
+ };
1548
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1549
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1550
+ return {
1551
+ flatResponse,
1552
+ rawResponse: {
1553
+ statusCode: currentRawResponse.status,
1554
+ body: currentRawResponse.parsedBody,
1555
+ headers: currentRawResponse.headers.toJSON()
1556
+ }
1557
+ };
1558
+ });
1559
+ const lro = new LroImpl(sendOperation, {
1560
+ resourceGroupName,
1561
+ name,
1562
+ privateEndpointConnectionName,
1563
+ privateEndpointWrapper,
1564
+ options
1565
+ }, approveOrRejectPrivateEndpointConnectionOperationSpec);
1566
+ return new LroEngine(lro, {
1567
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1568
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1569
+ });
1570
+ });
1571
+ }
1572
+ /**
1573
+ * Description for Approves or rejects a private endpoint connection
1574
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1575
+ * @param name Name of the App Service Environment.
1576
+ * @param privateEndpointConnectionName
1577
+ * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
1578
+ * @param options The options parameters.
1579
+ */
1580
+ beginApproveOrRejectPrivateEndpointConnectionAndWait(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) {
1581
+ return __awaiter(this, void 0, void 0, function* () {
1582
+ const poller = yield this.beginApproveOrRejectPrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options);
1583
+ return poller.pollUntilDone();
1584
+ });
1585
+ }
1586
+ /**
1587
+ * Description for Deletes a private endpoint connection
1588
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1589
+ * @param name Name of the App Service Environment.
1590
+ * @param privateEndpointConnectionName
1591
+ * @param options The options parameters.
1592
+ */
1593
+ beginDeletePrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, options) {
1594
+ return __awaiter(this, void 0, void 0, function* () {
1595
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1596
+ return this.client.sendOperationRequest(args, spec);
1597
+ });
1598
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1599
+ var _a;
1600
+ let currentRawResponse = undefined;
1601
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1602
+ const callback = (rawResponse, flatResponse) => {
1603
+ currentRawResponse = rawResponse;
1604
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1605
+ };
1606
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1607
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1608
+ return {
1609
+ flatResponse,
1610
+ rawResponse: {
1611
+ statusCode: currentRawResponse.status,
1612
+ body: currentRawResponse.parsedBody,
1613
+ headers: currentRawResponse.headers.toJSON()
1614
+ }
1615
+ };
1616
+ });
1617
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, privateEndpointConnectionName, options }, deletePrivateEndpointConnectionOperationSpec);
1618
+ return new LroEngine(lro, {
1619
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1620
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1621
+ });
1622
+ });
1623
+ }
1624
+ /**
1625
+ * Description for Deletes a private endpoint connection
1626
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1627
+ * @param name Name of the App Service Environment.
1628
+ * @param privateEndpointConnectionName
1629
+ * @param options The options parameters.
1630
+ */
1631
+ beginDeletePrivateEndpointConnectionAndWait(resourceGroupName, name, privateEndpointConnectionName, options) {
1632
+ return __awaiter(this, void 0, void 0, function* () {
1633
+ const poller = yield this.beginDeletePrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, options);
1634
+ return poller.pollUntilDone();
1635
+ });
1636
+ }
1637
+ /**
1638
+ * Description for Gets the private link resources
1639
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1640
+ * @param name Name of the App Service Environment.
1641
+ * @param options The options parameters.
1642
+ */
1643
+ getPrivateLinkResources(resourceGroupName, name, options) {
1644
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getPrivateLinkResourcesOperationSpec);
1645
+ }
1646
+ /**
1647
+ * Description for Reboot all machines in an App Service Environment.
1648
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1649
+ * @param name Name of the App Service Environment.
1650
+ * @param options The options parameters.
1651
+ */
1652
+ reboot(resourceGroupName, name, options) {
1653
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, rebootOperationSpec);
1654
+ }
1655
+ /**
1656
+ * Description for Resume an App Service Environment.
1657
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1658
+ * @param name Name of the App Service Environment.
1659
+ * @param options The options parameters.
1660
+ */
1661
+ _resume(resourceGroupName, name, options) {
1662
+ return __awaiter(this, void 0, void 0, function* () {
1663
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1664
+ return this.client.sendOperationRequest(args, spec);
1665
+ });
1666
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1667
+ var _a;
1668
+ let currentRawResponse = undefined;
1669
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1670
+ const callback = (rawResponse, flatResponse) => {
1671
+ currentRawResponse = rawResponse;
1672
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1673
+ };
1674
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1675
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1676
+ return {
1677
+ flatResponse,
1678
+ rawResponse: {
1679
+ statusCode: currentRawResponse.status,
1680
+ body: currentRawResponse.parsedBody,
1681
+ headers: currentRawResponse.headers.toJSON()
1682
+ }
1683
+ };
1684
+ });
1685
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, resumeOperationSpec);
1686
+ return new LroEngine(lro, {
1687
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1688
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1689
+ });
1690
+ });
1691
+ }
1692
+ /**
1693
+ * Description for Get all App Service plans in an App Service Environment.
1694
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1695
+ * @param name Name of the App Service Environment.
1696
+ * @param options The options parameters.
1697
+ */
1698
+ _listAppServicePlans(resourceGroupName, name, options) {
1699
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listAppServicePlansOperationSpec);
1700
+ }
1701
+ /**
1702
+ * Description for Get all apps in an App Service Environment.
1703
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1704
+ * @param name Name of the App Service Environment.
1705
+ * @param options The options parameters.
1706
+ */
1707
+ _listWebApps(resourceGroupName, name, options) {
1708
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listWebAppsOperationSpec);
1709
+ }
1710
+ /**
1711
+ * Description for Suspend an App Service Environment.
1712
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1713
+ * @param name Name of the App Service Environment.
1714
+ * @param options The options parameters.
1715
+ */
1716
+ _suspend(resourceGroupName, name, options) {
1717
+ return __awaiter(this, void 0, void 0, function* () {
1718
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1719
+ return this.client.sendOperationRequest(args, spec);
1720
+ });
1721
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1722
+ var _a;
1723
+ let currentRawResponse = undefined;
1724
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1725
+ const callback = (rawResponse, flatResponse) => {
1726
+ currentRawResponse = rawResponse;
1727
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1728
+ };
1729
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1730
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1731
+ return {
1732
+ flatResponse,
1733
+ rawResponse: {
1734
+ statusCode: currentRawResponse.status,
1735
+ body: currentRawResponse.parsedBody,
1736
+ headers: currentRawResponse.headers.toJSON()
1737
+ }
1738
+ };
1739
+ });
1740
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, suspendOperationSpec);
1741
+ return new LroEngine(lro, {
1742
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1743
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1744
+ });
1745
+ });
1746
+ }
1747
+ /**
1748
+ * Description for Get global usage metrics of an App Service Environment.
1749
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1750
+ * @param name Name of the App Service Environment.
1751
+ * @param options The options parameters.
1752
+ */
1753
+ _listUsages(resourceGroupName, name, options) {
1754
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listUsagesOperationSpec);
1755
+ }
1756
+ /**
1757
+ * Description for Get all worker pools of an App Service Environment.
1758
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1759
+ * @param name Name of the App Service Environment.
1760
+ * @param options The options parameters.
1761
+ */
1762
+ _listWorkerPools(resourceGroupName, name, options) {
1763
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listWorkerPoolsOperationSpec);
1764
+ }
1765
+ /**
1766
+ * Description for Get properties of a worker pool.
1767
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1768
+ * @param name Name of the App Service Environment.
1769
+ * @param workerPoolName Name of the worker pool.
1770
+ * @param options The options parameters.
1771
+ */
1772
+ getWorkerPool(resourceGroupName, name, workerPoolName, options) {
1773
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, options }, getWorkerPoolOperationSpec);
1774
+ }
1775
+ /**
1776
+ * Description for Create or update a worker pool.
1777
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1778
+ * @param name Name of the App Service Environment.
1779
+ * @param workerPoolName Name of the worker pool.
1780
+ * @param workerPoolEnvelope Properties of the worker pool.
1781
+ * @param options The options parameters.
1782
+ */
1783
+ beginCreateOrUpdateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEnvelope, options) {
1784
+ return __awaiter(this, void 0, void 0, function* () {
1785
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1786
+ return this.client.sendOperationRequest(args, spec);
1787
+ });
1788
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1789
+ var _a;
1790
+ let currentRawResponse = undefined;
1791
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1792
+ const callback = (rawResponse, flatResponse) => {
1793
+ currentRawResponse = rawResponse;
1794
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1795
+ };
1796
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1797
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1798
+ return {
1799
+ flatResponse,
1800
+ rawResponse: {
1801
+ statusCode: currentRawResponse.status,
1802
+ body: currentRawResponse.parsedBody,
1803
+ headers: currentRawResponse.headers.toJSON()
1804
+ }
1805
+ };
1806
+ });
1807
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, workerPoolName, workerPoolEnvelope, options }, createOrUpdateWorkerPoolOperationSpec);
1808
+ return new LroEngine(lro, {
1809
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1810
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1811
+ });
1812
+ });
1813
+ }
1814
+ /**
1815
+ * Description for Create or update a worker pool.
1816
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1817
+ * @param name Name of the App Service Environment.
1818
+ * @param workerPoolName Name of the worker pool.
1819
+ * @param workerPoolEnvelope Properties of the worker pool.
1820
+ * @param options The options parameters.
1821
+ */
1822
+ beginCreateOrUpdateWorkerPoolAndWait(resourceGroupName, name, workerPoolName, workerPoolEnvelope, options) {
1823
+ return __awaiter(this, void 0, void 0, function* () {
1824
+ const poller = yield this.beginCreateOrUpdateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEnvelope, options);
1825
+ return poller.pollUntilDone();
1826
+ });
1827
+ }
1828
+ /**
1829
+ * Description for Create or update a worker pool.
1830
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1831
+ * @param name Name of the App Service Environment.
1832
+ * @param workerPoolName Name of the worker pool.
1833
+ * @param workerPoolEnvelope Properties of the worker pool.
1834
+ * @param options The options parameters.
1835
+ */
1836
+ updateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEnvelope, options) {
1837
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, workerPoolEnvelope, options }, updateWorkerPoolOperationSpec);
1838
+ }
1839
+ /**
1840
+ * Description for Get metric definitions for a specific instance of a worker pool of an App Service
1841
+ * Environment.
1842
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1843
+ * @param name Name of the App Service Environment.
1844
+ * @param workerPoolName Name of the worker pool.
1845
+ * @param instance Name of the instance in the worker pool.
1846
+ * @param options The options parameters.
1847
+ */
1848
+ _listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, workerPoolName, instance, options) {
1849
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, instance, options }, listWorkerPoolInstanceMetricDefinitionsOperationSpec);
1850
+ }
1851
+ /**
1852
+ * Description for Get metric definitions for a worker pool of an App Service Environment.
1853
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1854
+ * @param name Name of the App Service Environment.
1855
+ * @param workerPoolName Name of the worker pool.
1856
+ * @param options The options parameters.
1857
+ */
1858
+ _listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName, options) {
1859
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, options }, listWebWorkerMetricDefinitionsOperationSpec);
1860
+ }
1861
+ /**
1862
+ * Description for Get available SKUs for scaling a worker pool.
1863
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1864
+ * @param name Name of the App Service Environment.
1865
+ * @param workerPoolName Name of the worker pool.
1866
+ * @param options The options parameters.
1867
+ */
1868
+ _listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options) {
1869
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, options }, listWorkerPoolSkusOperationSpec);
1870
+ }
1871
+ /**
1872
+ * Description for Get usage metrics for a worker pool of an App Service Environment.
1873
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1874
+ * @param name Name of the App Service Environment.
1875
+ * @param workerPoolName Name of the worker pool.
1876
+ * @param options The options parameters.
1877
+ */
1878
+ _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options) {
1879
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, options }, listWebWorkerUsagesOperationSpec);
1880
+ }
1881
+ /**
1882
+ * ListNext
1883
+ * @param nextLink The nextLink from the previous successful call to the List method.
1884
+ * @param options The options parameters.
1885
+ */
1886
+ _listNext(nextLink, options) {
1887
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1888
+ }
1889
+ /**
1890
+ * ListByResourceGroupNext
1891
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1892
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1893
+ * @param options The options parameters.
1894
+ */
1895
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1896
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1897
+ }
1898
+ /**
1899
+ * ListCapacitiesNext
1900
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1901
+ * @param name Name of the App Service Environment.
1902
+ * @param nextLink The nextLink from the previous successful call to the ListCapacities method.
1903
+ * @param options The options parameters.
1904
+ */
1905
+ _listCapacitiesNext(resourceGroupName, name, nextLink, options) {
1906
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listCapacitiesNextOperationSpec);
1907
+ }
1908
+ /**
1909
+ * ChangeVnetNext
1910
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1911
+ * @param name Name of the App Service Environment.
1912
+ * @param vnetInfo Details for the new virtual network.
1913
+ * @param nextLink The nextLink from the previous successful call to the ChangeVnet method.
1914
+ * @param options The options parameters.
1915
+ */
1916
+ _changeVnetNext(resourceGroupName, name, vnetInfo, nextLink, options) {
1917
+ return this.client.sendOperationRequest({ resourceGroupName, name, vnetInfo, nextLink, options }, changeVnetNextOperationSpec);
1918
+ }
1919
+ /**
1920
+ * GetInboundNetworkDependenciesEndpointsNext
1921
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1922
+ * @param name Name of the App Service Environment.
1923
+ * @param nextLink The nextLink from the previous successful call to the
1924
+ * GetInboundNetworkDependenciesEndpoints method.
1925
+ * @param options The options parameters.
1926
+ */
1927
+ _getInboundNetworkDependenciesEndpointsNext(resourceGroupName, name, nextLink, options) {
1928
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, getInboundNetworkDependenciesEndpointsNextOperationSpec);
1929
+ }
1930
+ /**
1931
+ * ListMultiRolePoolsNext
1932
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1933
+ * @param name Name of the App Service Environment.
1934
+ * @param nextLink The nextLink from the previous successful call to the ListMultiRolePools method.
1935
+ * @param options The options parameters.
1936
+ */
1937
+ _listMultiRolePoolsNext(resourceGroupName, name, nextLink, options) {
1938
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listMultiRolePoolsNextOperationSpec);
1939
+ }
1940
+ /**
1941
+ * ListMultiRolePoolInstanceMetricDefinitionsNext
1942
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1943
+ * @param name Name of the App Service Environment.
1944
+ * @param instance Name of the instance in the multi-role pool.
1945
+ * @param nextLink The nextLink from the previous successful call to the
1946
+ * ListMultiRolePoolInstanceMetricDefinitions method.
1947
+ * @param options The options parameters.
1948
+ */
1949
+ _listMultiRolePoolInstanceMetricDefinitionsNext(resourceGroupName, name, instance, nextLink, options) {
1950
+ return this.client.sendOperationRequest({ resourceGroupName, name, instance, nextLink, options }, listMultiRolePoolInstanceMetricDefinitionsNextOperationSpec);
1951
+ }
1952
+ /**
1953
+ * ListMultiRoleMetricDefinitionsNext
1954
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1955
+ * @param name Name of the App Service Environment.
1956
+ * @param nextLink The nextLink from the previous successful call to the ListMultiRoleMetricDefinitions
1957
+ * method.
1958
+ * @param options The options parameters.
1959
+ */
1960
+ _listMultiRoleMetricDefinitionsNext(resourceGroupName, name, nextLink, options) {
1961
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listMultiRoleMetricDefinitionsNextOperationSpec);
1962
+ }
1963
+ /**
1964
+ * ListMultiRolePoolSkusNext
1965
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1966
+ * @param name Name of the App Service Environment.
1967
+ * @param nextLink The nextLink from the previous successful call to the ListMultiRolePoolSkus method.
1968
+ * @param options The options parameters.
1969
+ */
1970
+ _listMultiRolePoolSkusNext(resourceGroupName, name, nextLink, options) {
1971
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listMultiRolePoolSkusNextOperationSpec);
1972
+ }
1973
+ /**
1974
+ * ListMultiRoleUsagesNext
1975
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1976
+ * @param name Name of the App Service Environment.
1977
+ * @param nextLink The nextLink from the previous successful call to the ListMultiRoleUsages method.
1978
+ * @param options The options parameters.
1979
+ */
1980
+ _listMultiRoleUsagesNext(resourceGroupName, name, nextLink, options) {
1981
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listMultiRoleUsagesNextOperationSpec);
1982
+ }
1983
+ /**
1984
+ * GetOutboundNetworkDependenciesEndpointsNext
1985
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1986
+ * @param name Name of the App Service Environment.
1987
+ * @param nextLink The nextLink from the previous successful call to the
1988
+ * GetOutboundNetworkDependenciesEndpoints method.
1989
+ * @param options The options parameters.
1990
+ */
1991
+ _getOutboundNetworkDependenciesEndpointsNext(resourceGroupName, name, nextLink, options) {
1992
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, getOutboundNetworkDependenciesEndpointsNextOperationSpec);
1993
+ }
1994
+ /**
1995
+ * GetPrivateEndpointConnectionListNext
1996
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1997
+ * @param name Name of the App Service Environment.
1998
+ * @param nextLink The nextLink from the previous successful call to the
1999
+ * GetPrivateEndpointConnectionList method.
2000
+ * @param options The options parameters.
2001
+ */
2002
+ _getPrivateEndpointConnectionListNext(resourceGroupName, name, nextLink, options) {
2003
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, getPrivateEndpointConnectionListNextOperationSpec);
2004
+ }
2005
+ /**
2006
+ * ResumeNext
2007
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2008
+ * @param name Name of the App Service Environment.
2009
+ * @param nextLink The nextLink from the previous successful call to the Resume method.
2010
+ * @param options The options parameters.
2011
+ */
2012
+ _resumeNext(resourceGroupName, name, nextLink, options) {
2013
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, resumeNextOperationSpec);
2014
+ }
2015
+ /**
2016
+ * ListAppServicePlansNext
2017
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2018
+ * @param name Name of the App Service Environment.
2019
+ * @param nextLink The nextLink from the previous successful call to the ListAppServicePlans method.
2020
+ * @param options The options parameters.
2021
+ */
2022
+ _listAppServicePlansNext(resourceGroupName, name, nextLink, options) {
2023
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listAppServicePlansNextOperationSpec);
2024
+ }
2025
+ /**
2026
+ * ListWebAppsNext
2027
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2028
+ * @param name Name of the App Service Environment.
2029
+ * @param nextLink The nextLink from the previous successful call to the ListWebApps method.
2030
+ * @param options The options parameters.
2031
+ */
2032
+ _listWebAppsNext(resourceGroupName, name, nextLink, options) {
2033
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listWebAppsNextOperationSpec);
2034
+ }
2035
+ /**
2036
+ * SuspendNext
2037
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2038
+ * @param name Name of the App Service Environment.
2039
+ * @param nextLink The nextLink from the previous successful call to the Suspend method.
2040
+ * @param options The options parameters.
2041
+ */
2042
+ _suspendNext(resourceGroupName, name, nextLink, options) {
2043
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, suspendNextOperationSpec);
2044
+ }
2045
+ /**
2046
+ * ListUsagesNext
2047
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2048
+ * @param name Name of the App Service Environment.
2049
+ * @param nextLink The nextLink from the previous successful call to the ListUsages method.
2050
+ * @param options The options parameters.
2051
+ */
2052
+ _listUsagesNext(resourceGroupName, name, nextLink, options) {
2053
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listUsagesNextOperationSpec);
2054
+ }
2055
+ /**
2056
+ * ListWorkerPoolsNext
2057
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2058
+ * @param name Name of the App Service Environment.
2059
+ * @param nextLink The nextLink from the previous successful call to the ListWorkerPools method.
2060
+ * @param options The options parameters.
2061
+ */
2062
+ _listWorkerPoolsNext(resourceGroupName, name, nextLink, options) {
2063
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listWorkerPoolsNextOperationSpec);
2064
+ }
2065
+ /**
2066
+ * ListWorkerPoolInstanceMetricDefinitionsNext
2067
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2068
+ * @param name Name of the App Service Environment.
2069
+ * @param workerPoolName Name of the worker pool.
2070
+ * @param instance Name of the instance in the worker pool.
2071
+ * @param nextLink The nextLink from the previous successful call to the
2072
+ * ListWorkerPoolInstanceMetricDefinitions method.
2073
+ * @param options The options parameters.
2074
+ */
2075
+ _listWorkerPoolInstanceMetricDefinitionsNext(resourceGroupName, name, workerPoolName, instance, nextLink, options) {
2076
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, instance, nextLink, options }, listWorkerPoolInstanceMetricDefinitionsNextOperationSpec);
2077
+ }
2078
+ /**
2079
+ * ListWebWorkerMetricDefinitionsNext
2080
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2081
+ * @param name Name of the App Service Environment.
2082
+ * @param workerPoolName Name of the worker pool.
2083
+ * @param nextLink The nextLink from the previous successful call to the ListWebWorkerMetricDefinitions
2084
+ * method.
2085
+ * @param options The options parameters.
2086
+ */
2087
+ _listWebWorkerMetricDefinitionsNext(resourceGroupName, name, workerPoolName, nextLink, options) {
2088
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, nextLink, options }, listWebWorkerMetricDefinitionsNextOperationSpec);
2089
+ }
2090
+ /**
2091
+ * ListWorkerPoolSkusNext
2092
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2093
+ * @param name Name of the App Service Environment.
2094
+ * @param workerPoolName Name of the worker pool.
2095
+ * @param nextLink The nextLink from the previous successful call to the ListWorkerPoolSkus method.
2096
+ * @param options The options parameters.
2097
+ */
2098
+ _listWorkerPoolSkusNext(resourceGroupName, name, workerPoolName, nextLink, options) {
2099
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, nextLink, options }, listWorkerPoolSkusNextOperationSpec);
2100
+ }
2101
+ /**
2102
+ * ListWebWorkerUsagesNext
2103
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2104
+ * @param name Name of the App Service Environment.
2105
+ * @param workerPoolName Name of the worker pool.
2106
+ * @param nextLink The nextLink from the previous successful call to the ListWebWorkerUsages method.
2107
+ * @param options The options parameters.
2108
+ */
2109
+ _listWebWorkerUsagesNext(resourceGroupName, name, workerPoolName, nextLink, options) {
2110
+ return this.client.sendOperationRequest({ resourceGroupName, name, workerPoolName, nextLink, options }, listWebWorkerUsagesNextOperationSpec);
2111
+ }
2112
+ }
2113
+ // Operation Specifications
2114
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2115
+ const listOperationSpec = {
2116
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments",
2117
+ httpMethod: "GET",
2118
+ responses: {
2119
+ 200: {
2120
+ bodyMapper: Mappers.AppServiceEnvironmentCollection
2121
+ },
2122
+ default: {
2123
+ bodyMapper: Mappers.DefaultErrorResponse
2124
+ }
2125
+ },
2126
+ queryParameters: [Parameters.apiVersion],
2127
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
2128
+ headerParameters: [Parameters.accept],
2129
+ serializer
2130
+ };
2131
+ const listByResourceGroupOperationSpec = {
2132
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments",
2133
+ httpMethod: "GET",
2134
+ responses: {
2135
+ 200: {
2136
+ bodyMapper: Mappers.AppServiceEnvironmentCollection
2137
+ },
2138
+ default: {
2139
+ bodyMapper: Mappers.DefaultErrorResponse
2140
+ }
2141
+ },
2142
+ queryParameters: [Parameters.apiVersion],
2143
+ urlParameters: [
2144
+ Parameters.$host,
2145
+ Parameters.subscriptionId,
2146
+ Parameters.resourceGroupName
2147
+ ],
2148
+ headerParameters: [Parameters.accept],
2149
+ serializer
2150
+ };
2151
+ const getOperationSpec = {
2152
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}",
2153
+ httpMethod: "GET",
2154
+ responses: {
2155
+ 200: {
2156
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2157
+ },
2158
+ default: {
2159
+ bodyMapper: Mappers.DefaultErrorResponse
2160
+ }
2161
+ },
2162
+ queryParameters: [Parameters.apiVersion],
2163
+ urlParameters: [
2164
+ Parameters.$host,
2165
+ Parameters.subscriptionId,
2166
+ Parameters.resourceGroupName,
2167
+ Parameters.name
2168
+ ],
2169
+ headerParameters: [Parameters.accept],
2170
+ serializer
2171
+ };
2172
+ const createOrUpdateOperationSpec = {
2173
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}",
2174
+ httpMethod: "PUT",
2175
+ responses: {
2176
+ 200: {
2177
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2178
+ },
2179
+ 201: {
2180
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2181
+ },
2182
+ 202: {
2183
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2184
+ },
2185
+ 204: {
2186
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2187
+ },
2188
+ default: {
2189
+ bodyMapper: Mappers.DefaultErrorResponse
2190
+ }
2191
+ },
2192
+ requestBody: Parameters.hostingEnvironmentEnvelope,
2193
+ queryParameters: [Parameters.apiVersion],
2194
+ urlParameters: [
2195
+ Parameters.$host,
2196
+ Parameters.subscriptionId,
2197
+ Parameters.resourceGroupName,
2198
+ Parameters.name
2199
+ ],
2200
+ headerParameters: [Parameters.accept, Parameters.contentType],
2201
+ mediaType: "json",
2202
+ serializer
2203
+ };
2204
+ const deleteOperationSpec = {
2205
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}",
2206
+ httpMethod: "DELETE",
2207
+ responses: {
2208
+ 200: {},
2209
+ 201: {},
2210
+ 202: {},
2211
+ 204: {},
2212
+ default: {
2213
+ bodyMapper: Mappers.DefaultErrorResponse
2214
+ }
2215
+ },
2216
+ queryParameters: [Parameters.apiVersion, Parameters.forceDelete],
2217
+ urlParameters: [
2218
+ Parameters.$host,
2219
+ Parameters.subscriptionId,
2220
+ Parameters.resourceGroupName,
2221
+ Parameters.name
2222
+ ],
2223
+ headerParameters: [Parameters.accept],
2224
+ serializer
2225
+ };
2226
+ const updateOperationSpec = {
2227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}",
2228
+ httpMethod: "PATCH",
2229
+ responses: {
2230
+ 200: {
2231
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2232
+ },
2233
+ 201: {
2234
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2235
+ },
2236
+ 202: {
2237
+ bodyMapper: Mappers.AppServiceEnvironmentResource
2238
+ },
2239
+ default: {
2240
+ bodyMapper: Mappers.DefaultErrorResponse
2241
+ }
2242
+ },
2243
+ requestBody: Parameters.hostingEnvironmentEnvelope1,
2244
+ queryParameters: [Parameters.apiVersion],
2245
+ urlParameters: [
2246
+ Parameters.$host,
2247
+ Parameters.subscriptionId,
2248
+ Parameters.resourceGroupName,
2249
+ Parameters.name
2250
+ ],
2251
+ headerParameters: [Parameters.accept, Parameters.contentType],
2252
+ mediaType: "json",
2253
+ serializer
2254
+ };
2255
+ const listCapacitiesOperationSpec = {
2256
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute",
2257
+ httpMethod: "GET",
2258
+ responses: {
2259
+ 200: {
2260
+ bodyMapper: Mappers.StampCapacityCollection
2261
+ },
2262
+ default: {
2263
+ bodyMapper: Mappers.DefaultErrorResponse
2264
+ }
2265
+ },
2266
+ queryParameters: [Parameters.apiVersion],
2267
+ urlParameters: [
2268
+ Parameters.$host,
2269
+ Parameters.subscriptionId,
2270
+ Parameters.resourceGroupName,
2271
+ Parameters.name
2272
+ ],
2273
+ headerParameters: [Parameters.accept],
2274
+ serializer
2275
+ };
2276
+ const getVipInfoOperationSpec = {
2277
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip",
2278
+ httpMethod: "GET",
2279
+ responses: {
2280
+ 200: {
2281
+ bodyMapper: Mappers.AddressResponse
2282
+ },
2283
+ default: {
2284
+ bodyMapper: Mappers.DefaultErrorResponse
2285
+ }
2286
+ },
2287
+ queryParameters: [Parameters.apiVersion],
2288
+ urlParameters: [
2289
+ Parameters.$host,
2290
+ Parameters.subscriptionId,
2291
+ Parameters.resourceGroupName,
2292
+ Parameters.name
2293
+ ],
2294
+ headerParameters: [Parameters.accept],
2295
+ serializer
2296
+ };
2297
+ const changeVnetOperationSpec = {
2298
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/changeVirtualNetwork",
2299
+ httpMethod: "POST",
2300
+ responses: {
2301
+ 200: {
2302
+ bodyMapper: Mappers.WebAppCollection
2303
+ },
2304
+ 201: {
2305
+ bodyMapper: Mappers.WebAppCollection
2306
+ },
2307
+ 202: {
2308
+ bodyMapper: Mappers.WebAppCollection
2309
+ },
2310
+ 204: {
2311
+ bodyMapper: Mappers.WebAppCollection
2312
+ },
2313
+ default: {
2314
+ bodyMapper: Mappers.DefaultErrorResponse
2315
+ }
2316
+ },
2317
+ requestBody: Parameters.vnetInfo,
2318
+ queryParameters: [Parameters.apiVersion],
2319
+ urlParameters: [
2320
+ Parameters.$host,
2321
+ Parameters.subscriptionId,
2322
+ Parameters.resourceGroupName,
2323
+ Parameters.name
2324
+ ],
2325
+ headerParameters: [Parameters.accept, Parameters.contentType],
2326
+ mediaType: "json",
2327
+ serializer
2328
+ };
2329
+ const getAseV3NetworkingConfigurationOperationSpec = {
2330
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking",
2331
+ httpMethod: "GET",
2332
+ responses: {
2333
+ 200: {
2334
+ bodyMapper: Mappers.AseV3NetworkingConfiguration
2335
+ },
2336
+ default: {
2337
+ bodyMapper: Mappers.DefaultErrorResponse
2338
+ }
2339
+ },
2340
+ queryParameters: [Parameters.apiVersion],
2341
+ urlParameters: [
2342
+ Parameters.$host,
2343
+ Parameters.subscriptionId,
2344
+ Parameters.resourceGroupName,
2345
+ Parameters.name
2346
+ ],
2347
+ headerParameters: [Parameters.accept],
2348
+ serializer
2349
+ };
2350
+ const updateAseNetworkingConfigurationOperationSpec = {
2351
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking",
2352
+ httpMethod: "PUT",
2353
+ responses: {
2354
+ 200: {
2355
+ bodyMapper: Mappers.AseV3NetworkingConfiguration
2356
+ },
2357
+ default: {
2358
+ bodyMapper: Mappers.DefaultErrorResponse
2359
+ }
2360
+ },
2361
+ requestBody: Parameters.aseNetworkingConfiguration,
2362
+ queryParameters: [Parameters.apiVersion],
2363
+ urlParameters: [
2364
+ Parameters.$host,
2365
+ Parameters.subscriptionId,
2366
+ Parameters.resourceGroupName,
2367
+ Parameters.name
2368
+ ],
2369
+ headerParameters: [Parameters.accept, Parameters.contentType],
2370
+ mediaType: "json",
2371
+ serializer
2372
+ };
2373
+ const listDiagnosticsOperationSpec = {
2374
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics",
2375
+ httpMethod: "GET",
2376
+ responses: {
2377
+ 200: {
2378
+ bodyMapper: {
2379
+ type: {
2380
+ name: "Sequence",
2381
+ element: {
2382
+ type: {
2383
+ name: "Composite",
2384
+ className: "HostingEnvironmentDiagnostics"
2385
+ }
2386
+ }
2387
+ }
2388
+ }
2389
+ },
2390
+ default: {
2391
+ bodyMapper: Mappers.DefaultErrorResponse
2392
+ }
2393
+ },
2394
+ queryParameters: [Parameters.apiVersion],
2395
+ urlParameters: [
2396
+ Parameters.$host,
2397
+ Parameters.subscriptionId,
2398
+ Parameters.resourceGroupName,
2399
+ Parameters.name
2400
+ ],
2401
+ headerParameters: [Parameters.accept],
2402
+ serializer
2403
+ };
2404
+ const getDiagnosticsItemOperationSpec = {
2405
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}",
2406
+ httpMethod: "GET",
2407
+ responses: {
2408
+ 200: {
2409
+ bodyMapper: Mappers.HostingEnvironmentDiagnostics
2410
+ },
2411
+ default: {
2412
+ bodyMapper: Mappers.DefaultErrorResponse
2413
+ }
2414
+ },
2415
+ queryParameters: [Parameters.apiVersion],
2416
+ urlParameters: [
2417
+ Parameters.$host,
2418
+ Parameters.subscriptionId,
2419
+ Parameters.resourceGroupName,
2420
+ Parameters.name,
2421
+ Parameters.diagnosticsName
2422
+ ],
2423
+ headerParameters: [Parameters.accept],
2424
+ serializer
2425
+ };
2426
+ const getInboundNetworkDependenciesEndpointsOperationSpec = {
2427
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints",
2428
+ httpMethod: "GET",
2429
+ responses: {
2430
+ 200: {
2431
+ bodyMapper: Mappers.InboundEnvironmentEndpointCollection
2432
+ },
2433
+ default: {
2434
+ bodyMapper: Mappers.DefaultErrorResponse
2435
+ }
2436
+ },
2437
+ queryParameters: [Parameters.apiVersion],
2438
+ urlParameters: [
2439
+ Parameters.$host,
2440
+ Parameters.subscriptionId,
2441
+ Parameters.resourceGroupName,
2442
+ Parameters.name
2443
+ ],
2444
+ headerParameters: [Parameters.accept],
2445
+ serializer
2446
+ };
2447
+ const listMultiRolePoolsOperationSpec = {
2448
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools",
2449
+ httpMethod: "GET",
2450
+ responses: {
2451
+ 200: {
2452
+ bodyMapper: Mappers.WorkerPoolCollection
2453
+ },
2454
+ default: {
2455
+ bodyMapper: Mappers.DefaultErrorResponse
2456
+ }
2457
+ },
2458
+ queryParameters: [Parameters.apiVersion],
2459
+ urlParameters: [
2460
+ Parameters.$host,
2461
+ Parameters.subscriptionId,
2462
+ Parameters.resourceGroupName,
2463
+ Parameters.name
2464
+ ],
2465
+ headerParameters: [Parameters.accept],
2466
+ serializer
2467
+ };
2468
+ const getMultiRolePoolOperationSpec = {
2469
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default",
2470
+ httpMethod: "GET",
2471
+ responses: {
2472
+ 200: {
2473
+ bodyMapper: Mappers.WorkerPoolResource
2474
+ },
2475
+ default: {
2476
+ bodyMapper: Mappers.DefaultErrorResponse
2477
+ }
2478
+ },
2479
+ queryParameters: [Parameters.apiVersion],
2480
+ urlParameters: [
2481
+ Parameters.$host,
2482
+ Parameters.subscriptionId,
2483
+ Parameters.resourceGroupName,
2484
+ Parameters.name
2485
+ ],
2486
+ headerParameters: [Parameters.accept],
2487
+ serializer
2488
+ };
2489
+ const createOrUpdateMultiRolePoolOperationSpec = {
2490
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default",
2491
+ httpMethod: "PUT",
2492
+ responses: {
2493
+ 200: {
2494
+ bodyMapper: Mappers.WorkerPoolResource
2495
+ },
2496
+ 201: {
2497
+ bodyMapper: Mappers.WorkerPoolResource
2498
+ },
2499
+ 202: {
2500
+ bodyMapper: Mappers.WorkerPoolResource
2501
+ },
2502
+ 204: {
2503
+ bodyMapper: Mappers.WorkerPoolResource
2504
+ },
2505
+ default: {
2506
+ bodyMapper: Mappers.DefaultErrorResponse
2507
+ }
2508
+ },
2509
+ requestBody: Parameters.multiRolePoolEnvelope,
2510
+ queryParameters: [Parameters.apiVersion],
2511
+ urlParameters: [
2512
+ Parameters.$host,
2513
+ Parameters.subscriptionId,
2514
+ Parameters.resourceGroupName,
2515
+ Parameters.name
2516
+ ],
2517
+ headerParameters: [Parameters.accept, Parameters.contentType],
2518
+ mediaType: "json",
2519
+ serializer
2520
+ };
2521
+ const updateMultiRolePoolOperationSpec = {
2522
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default",
2523
+ httpMethod: "PATCH",
2524
+ responses: {
2525
+ 200: {
2526
+ bodyMapper: Mappers.WorkerPoolResource
2527
+ },
2528
+ 202: {
2529
+ bodyMapper: Mappers.WorkerPoolResource
2530
+ },
2531
+ default: {
2532
+ bodyMapper: Mappers.DefaultErrorResponse
2533
+ }
2534
+ },
2535
+ requestBody: Parameters.multiRolePoolEnvelope,
2536
+ queryParameters: [Parameters.apiVersion],
2537
+ urlParameters: [
2538
+ Parameters.$host,
2539
+ Parameters.subscriptionId,
2540
+ Parameters.resourceGroupName,
2541
+ Parameters.name
2542
+ ],
2543
+ headerParameters: [Parameters.accept, Parameters.contentType],
2544
+ mediaType: "json",
2545
+ serializer
2546
+ };
2547
+ const listMultiRolePoolInstanceMetricDefinitionsOperationSpec = {
2548
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions",
2549
+ httpMethod: "GET",
2550
+ responses: {
2551
+ 200: {
2552
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
2553
+ },
2554
+ default: {
2555
+ bodyMapper: Mappers.DefaultErrorResponse
2556
+ }
2557
+ },
2558
+ queryParameters: [Parameters.apiVersion],
2559
+ urlParameters: [
2560
+ Parameters.$host,
2561
+ Parameters.subscriptionId,
2562
+ Parameters.resourceGroupName,
2563
+ Parameters.name,
2564
+ Parameters.instance
2565
+ ],
2566
+ headerParameters: [Parameters.accept],
2567
+ serializer
2568
+ };
2569
+ const listMultiRoleMetricDefinitionsOperationSpec = {
2570
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions",
2571
+ httpMethod: "GET",
2572
+ responses: {
2573
+ 200: {
2574
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
2575
+ },
2576
+ default: {
2577
+ bodyMapper: Mappers.DefaultErrorResponse
2578
+ }
2579
+ },
2580
+ queryParameters: [Parameters.apiVersion],
2581
+ urlParameters: [
2582
+ Parameters.$host,
2583
+ Parameters.subscriptionId,
2584
+ Parameters.resourceGroupName,
2585
+ Parameters.name
2586
+ ],
2587
+ headerParameters: [Parameters.accept],
2588
+ serializer
2589
+ };
2590
+ const listMultiRolePoolSkusOperationSpec = {
2591
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus",
2592
+ httpMethod: "GET",
2593
+ responses: {
2594
+ 200: {
2595
+ bodyMapper: Mappers.SkuInfoCollection
2596
+ },
2597
+ default: {
2598
+ bodyMapper: Mappers.DefaultErrorResponse
2599
+ }
2600
+ },
2601
+ queryParameters: [Parameters.apiVersion],
2602
+ urlParameters: [
2603
+ Parameters.$host,
2604
+ Parameters.subscriptionId,
2605
+ Parameters.resourceGroupName,
2606
+ Parameters.name
2607
+ ],
2608
+ headerParameters: [Parameters.accept],
2609
+ serializer
2610
+ };
2611
+ const listMultiRoleUsagesOperationSpec = {
2612
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/usages",
2613
+ httpMethod: "GET",
2614
+ responses: {
2615
+ 200: {
2616
+ bodyMapper: Mappers.UsageCollection
2617
+ },
2618
+ default: {
2619
+ bodyMapper: Mappers.DefaultErrorResponse
2620
+ }
2621
+ },
2622
+ queryParameters: [Parameters.apiVersion],
2623
+ urlParameters: [
2624
+ Parameters.$host,
2625
+ Parameters.subscriptionId,
2626
+ Parameters.resourceGroupName,
2627
+ Parameters.name
2628
+ ],
2629
+ headerParameters: [Parameters.accept],
2630
+ serializer
2631
+ };
2632
+ const listOperationsOperationSpec = {
2633
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations",
2634
+ httpMethod: "GET",
2635
+ responses: {
2636
+ 200: {
2637
+ bodyMapper: {
2638
+ type: {
2639
+ name: "Sequence",
2640
+ element: { type: { name: "Composite", className: "Operation" } }
2641
+ }
2642
+ }
2643
+ },
2644
+ default: {
2645
+ bodyMapper: Mappers.DefaultErrorResponse
2646
+ }
2647
+ },
2648
+ queryParameters: [Parameters.apiVersion],
2649
+ urlParameters: [
2650
+ Parameters.$host,
2651
+ Parameters.subscriptionId,
2652
+ Parameters.resourceGroupName,
2653
+ Parameters.name
2654
+ ],
2655
+ headerParameters: [Parameters.accept],
2656
+ serializer
2657
+ };
2658
+ const getOutboundNetworkDependenciesEndpointsOperationSpec = {
2659
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints",
2660
+ httpMethod: "GET",
2661
+ responses: {
2662
+ 200: {
2663
+ bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
2664
+ },
2665
+ default: {
2666
+ bodyMapper: Mappers.DefaultErrorResponse
2667
+ }
2668
+ },
2669
+ queryParameters: [Parameters.apiVersion],
2670
+ urlParameters: [
2671
+ Parameters.$host,
2672
+ Parameters.subscriptionId,
2673
+ Parameters.resourceGroupName,
2674
+ Parameters.name
2675
+ ],
2676
+ headerParameters: [Parameters.accept],
2677
+ serializer
2678
+ };
2679
+ const getPrivateEndpointConnectionListOperationSpec = {
2680
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections",
2681
+ httpMethod: "GET",
2682
+ responses: {
2683
+ 200: {
2684
+ bodyMapper: Mappers.PrivateEndpointConnectionCollection
2685
+ },
2686
+ default: {
2687
+ bodyMapper: Mappers.DefaultErrorResponse
2688
+ }
2689
+ },
2690
+ queryParameters: [Parameters.apiVersion],
2691
+ urlParameters: [
2692
+ Parameters.$host,
2693
+ Parameters.subscriptionId,
2694
+ Parameters.resourceGroupName,
2695
+ Parameters.name
2696
+ ],
2697
+ headerParameters: [Parameters.accept],
2698
+ serializer
2699
+ };
2700
+ const getPrivateEndpointConnectionOperationSpec = {
2701
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
2702
+ httpMethod: "GET",
2703
+ responses: {
2704
+ 200: {
2705
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2706
+ },
2707
+ default: {
2708
+ bodyMapper: Mappers.DefaultErrorResponse
2709
+ }
2710
+ },
2711
+ queryParameters: [Parameters.apiVersion],
2712
+ urlParameters: [
2713
+ Parameters.$host,
2714
+ Parameters.subscriptionId,
2715
+ Parameters.resourceGroupName,
2716
+ Parameters.name,
2717
+ Parameters.privateEndpointConnectionName
2718
+ ],
2719
+ headerParameters: [Parameters.accept],
2720
+ serializer
2721
+ };
2722
+ const approveOrRejectPrivateEndpointConnectionOperationSpec = {
2723
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
2724
+ httpMethod: "PUT",
2725
+ responses: {
2726
+ 200: {
2727
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2728
+ },
2729
+ 201: {
2730
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2731
+ },
2732
+ 202: {
2733
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2734
+ },
2735
+ 204: {
2736
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2737
+ },
2738
+ default: {
2739
+ bodyMapper: Mappers.DefaultErrorResponse
2740
+ }
2741
+ },
2742
+ requestBody: Parameters.privateEndpointWrapper,
2743
+ queryParameters: [Parameters.apiVersion],
2744
+ urlParameters: [
2745
+ Parameters.$host,
2746
+ Parameters.subscriptionId,
2747
+ Parameters.resourceGroupName,
2748
+ Parameters.name,
2749
+ Parameters.privateEndpointConnectionName
2750
+ ],
2751
+ headerParameters: [Parameters.accept, Parameters.contentType],
2752
+ mediaType: "json",
2753
+ serializer
2754
+ };
2755
+ const deletePrivateEndpointConnectionOperationSpec = {
2756
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
2757
+ httpMethod: "DELETE",
2758
+ responses: {
2759
+ 200: {
2760
+ bodyMapper: {
2761
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2762
+ }
2763
+ },
2764
+ 201: {
2765
+ bodyMapper: {
2766
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2767
+ }
2768
+ },
2769
+ 202: {
2770
+ bodyMapper: {
2771
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2772
+ }
2773
+ },
2774
+ 204: {
2775
+ bodyMapper: {
2776
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2777
+ }
2778
+ },
2779
+ default: {
2780
+ bodyMapper: Mappers.DefaultErrorResponse
2781
+ }
2782
+ },
2783
+ queryParameters: [Parameters.apiVersion],
2784
+ urlParameters: [
2785
+ Parameters.$host,
2786
+ Parameters.subscriptionId,
2787
+ Parameters.resourceGroupName,
2788
+ Parameters.name,
2789
+ Parameters.privateEndpointConnectionName
2790
+ ],
2791
+ headerParameters: [Parameters.accept],
2792
+ serializer
2793
+ };
2794
+ const getPrivateLinkResourcesOperationSpec = {
2795
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateLinkResources",
2796
+ httpMethod: "GET",
2797
+ responses: {
2798
+ 200: {
2799
+ bodyMapper: Mappers.PrivateLinkResourcesWrapper
2800
+ },
2801
+ default: {
2802
+ bodyMapper: Mappers.DefaultErrorResponse
2803
+ }
2804
+ },
2805
+ queryParameters: [Parameters.apiVersion],
2806
+ urlParameters: [
2807
+ Parameters.$host,
2808
+ Parameters.subscriptionId,
2809
+ Parameters.resourceGroupName,
2810
+ Parameters.name
2811
+ ],
2812
+ headerParameters: [Parameters.accept],
2813
+ serializer
2814
+ };
2815
+ const rebootOperationSpec = {
2816
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/reboot",
2817
+ httpMethod: "POST",
2818
+ responses: {
2819
+ 202: {},
2820
+ default: {
2821
+ bodyMapper: Mappers.DefaultErrorResponse
2822
+ }
2823
+ },
2824
+ queryParameters: [Parameters.apiVersion],
2825
+ urlParameters: [
2826
+ Parameters.$host,
2827
+ Parameters.subscriptionId,
2828
+ Parameters.resourceGroupName,
2829
+ Parameters.name
2830
+ ],
2831
+ headerParameters: [Parameters.accept],
2832
+ serializer
2833
+ };
2834
+ const resumeOperationSpec = {
2835
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/resume",
2836
+ httpMethod: "POST",
2837
+ responses: {
2838
+ 200: {
2839
+ bodyMapper: Mappers.WebAppCollection
2840
+ },
2841
+ 201: {
2842
+ bodyMapper: Mappers.WebAppCollection
2843
+ },
2844
+ 202: {
2845
+ bodyMapper: Mappers.WebAppCollection
2846
+ },
2847
+ 204: {
2848
+ bodyMapper: Mappers.WebAppCollection
2849
+ },
2850
+ default: {
2851
+ bodyMapper: Mappers.DefaultErrorResponse
2852
+ }
2853
+ },
2854
+ queryParameters: [Parameters.apiVersion],
2855
+ urlParameters: [
2856
+ Parameters.$host,
2857
+ Parameters.subscriptionId,
2858
+ Parameters.resourceGroupName,
2859
+ Parameters.name
2860
+ ],
2861
+ headerParameters: [Parameters.accept],
2862
+ serializer
2863
+ };
2864
+ const listAppServicePlansOperationSpec = {
2865
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/serverfarms",
2866
+ httpMethod: "GET",
2867
+ responses: {
2868
+ 200: {
2869
+ bodyMapper: Mappers.AppServicePlanCollection
2870
+ },
2871
+ default: {
2872
+ bodyMapper: Mappers.DefaultErrorResponse
2873
+ }
2874
+ },
2875
+ queryParameters: [Parameters.apiVersion],
2876
+ urlParameters: [
2877
+ Parameters.$host,
2878
+ Parameters.subscriptionId,
2879
+ Parameters.resourceGroupName,
2880
+ Parameters.name
2881
+ ],
2882
+ headerParameters: [Parameters.accept],
2883
+ serializer
2884
+ };
2885
+ const listWebAppsOperationSpec = {
2886
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/sites",
2887
+ httpMethod: "GET",
2888
+ responses: {
2889
+ 200: {
2890
+ bodyMapper: Mappers.WebAppCollection
2891
+ },
2892
+ default: {
2893
+ bodyMapper: Mappers.DefaultErrorResponse
2894
+ }
2895
+ },
2896
+ queryParameters: [Parameters.apiVersion, Parameters.propertiesToInclude],
2897
+ urlParameters: [
2898
+ Parameters.$host,
2899
+ Parameters.subscriptionId,
2900
+ Parameters.resourceGroupName,
2901
+ Parameters.name
2902
+ ],
2903
+ headerParameters: [Parameters.accept],
2904
+ serializer
2905
+ };
2906
+ const suspendOperationSpec = {
2907
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/suspend",
2908
+ httpMethod: "POST",
2909
+ responses: {
2910
+ 200: {
2911
+ bodyMapper: Mappers.WebAppCollection
2912
+ },
2913
+ 201: {
2914
+ bodyMapper: Mappers.WebAppCollection
2915
+ },
2916
+ 202: {
2917
+ bodyMapper: Mappers.WebAppCollection
2918
+ },
2919
+ 204: {
2920
+ bodyMapper: Mappers.WebAppCollection
2921
+ },
2922
+ default: {
2923
+ bodyMapper: Mappers.DefaultErrorResponse
2924
+ }
2925
+ },
2926
+ queryParameters: [Parameters.apiVersion],
2927
+ urlParameters: [
2928
+ Parameters.$host,
2929
+ Parameters.subscriptionId,
2930
+ Parameters.resourceGroupName,
2931
+ Parameters.name
2932
+ ],
2933
+ headerParameters: [Parameters.accept],
2934
+ serializer
2935
+ };
2936
+ const listUsagesOperationSpec = {
2937
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages",
2938
+ httpMethod: "GET",
2939
+ responses: {
2940
+ 200: {
2941
+ bodyMapper: Mappers.CsmUsageQuotaCollection
2942
+ },
2943
+ default: {
2944
+ bodyMapper: Mappers.DefaultErrorResponse
2945
+ }
2946
+ },
2947
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
2948
+ urlParameters: [
2949
+ Parameters.$host,
2950
+ Parameters.subscriptionId,
2951
+ Parameters.resourceGroupName,
2952
+ Parameters.name
2953
+ ],
2954
+ headerParameters: [Parameters.accept],
2955
+ serializer
2956
+ };
2957
+ const listWorkerPoolsOperationSpec = {
2958
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools",
2959
+ httpMethod: "GET",
2960
+ responses: {
2961
+ 200: {
2962
+ bodyMapper: Mappers.WorkerPoolCollection
2963
+ },
2964
+ default: {
2965
+ bodyMapper: Mappers.DefaultErrorResponse
2966
+ }
2967
+ },
2968
+ queryParameters: [Parameters.apiVersion],
2969
+ urlParameters: [
2970
+ Parameters.$host,
2971
+ Parameters.subscriptionId,
2972
+ Parameters.resourceGroupName,
2973
+ Parameters.name
2974
+ ],
2975
+ headerParameters: [Parameters.accept],
2976
+ serializer
2977
+ };
2978
+ const getWorkerPoolOperationSpec = {
2979
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}",
2980
+ httpMethod: "GET",
2981
+ responses: {
2982
+ 200: {
2983
+ bodyMapper: Mappers.WorkerPoolResource
2984
+ },
2985
+ default: {
2986
+ bodyMapper: Mappers.DefaultErrorResponse
2987
+ }
2988
+ },
2989
+ queryParameters: [Parameters.apiVersion],
2990
+ urlParameters: [
2991
+ Parameters.$host,
2992
+ Parameters.subscriptionId,
2993
+ Parameters.resourceGroupName,
2994
+ Parameters.name,
2995
+ Parameters.workerPoolName
2996
+ ],
2997
+ headerParameters: [Parameters.accept],
2998
+ serializer
2999
+ };
3000
+ const createOrUpdateWorkerPoolOperationSpec = {
3001
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}",
3002
+ httpMethod: "PUT",
3003
+ responses: {
3004
+ 200: {
3005
+ bodyMapper: Mappers.WorkerPoolResource
3006
+ },
3007
+ 201: {
3008
+ bodyMapper: Mappers.WorkerPoolResource
3009
+ },
3010
+ 202: {
3011
+ bodyMapper: Mappers.WorkerPoolResource
3012
+ },
3013
+ 204: {
3014
+ bodyMapper: Mappers.WorkerPoolResource
3015
+ },
3016
+ default: {
3017
+ bodyMapper: Mappers.DefaultErrorResponse
3018
+ }
3019
+ },
3020
+ requestBody: Parameters.workerPoolEnvelope,
3021
+ queryParameters: [Parameters.apiVersion],
3022
+ urlParameters: [
3023
+ Parameters.$host,
3024
+ Parameters.subscriptionId,
3025
+ Parameters.resourceGroupName,
3026
+ Parameters.name,
3027
+ Parameters.workerPoolName
3028
+ ],
3029
+ headerParameters: [Parameters.accept, Parameters.contentType],
3030
+ mediaType: "json",
3031
+ serializer
3032
+ };
3033
+ const updateWorkerPoolOperationSpec = {
3034
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}",
3035
+ httpMethod: "PATCH",
3036
+ responses: {
3037
+ 200: {
3038
+ bodyMapper: Mappers.WorkerPoolResource
3039
+ },
3040
+ 202: {
3041
+ bodyMapper: Mappers.WorkerPoolResource
3042
+ },
3043
+ default: {
3044
+ bodyMapper: Mappers.DefaultErrorResponse
3045
+ }
3046
+ },
3047
+ requestBody: Parameters.workerPoolEnvelope,
3048
+ queryParameters: [Parameters.apiVersion],
3049
+ urlParameters: [
3050
+ Parameters.$host,
3051
+ Parameters.subscriptionId,
3052
+ Parameters.resourceGroupName,
3053
+ Parameters.name,
3054
+ Parameters.workerPoolName
3055
+ ],
3056
+ headerParameters: [Parameters.accept, Parameters.contentType],
3057
+ mediaType: "json",
3058
+ serializer
3059
+ };
3060
+ const listWorkerPoolInstanceMetricDefinitionsOperationSpec = {
3061
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metricdefinitions",
3062
+ httpMethod: "GET",
3063
+ responses: {
3064
+ 200: {
3065
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
3066
+ },
3067
+ default: {
3068
+ bodyMapper: Mappers.DefaultErrorResponse
3069
+ }
3070
+ },
3071
+ queryParameters: [Parameters.apiVersion],
3072
+ urlParameters: [
3073
+ Parameters.$host,
3074
+ Parameters.subscriptionId,
3075
+ Parameters.resourceGroupName,
3076
+ Parameters.name,
3077
+ Parameters.instance,
3078
+ Parameters.workerPoolName
3079
+ ],
3080
+ headerParameters: [Parameters.accept],
3081
+ serializer
3082
+ };
3083
+ const listWebWorkerMetricDefinitionsOperationSpec = {
3084
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metricdefinitions",
3085
+ httpMethod: "GET",
3086
+ responses: {
3087
+ 200: {
3088
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
3089
+ },
3090
+ default: {
3091
+ bodyMapper: Mappers.DefaultErrorResponse
3092
+ }
3093
+ },
3094
+ queryParameters: [Parameters.apiVersion],
3095
+ urlParameters: [
3096
+ Parameters.$host,
3097
+ Parameters.subscriptionId,
3098
+ Parameters.resourceGroupName,
3099
+ Parameters.name,
3100
+ Parameters.workerPoolName
3101
+ ],
3102
+ headerParameters: [Parameters.accept],
3103
+ serializer
3104
+ };
3105
+ const listWorkerPoolSkusOperationSpec = {
3106
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/skus",
3107
+ httpMethod: "GET",
3108
+ responses: {
3109
+ 200: {
3110
+ bodyMapper: Mappers.SkuInfoCollection
3111
+ },
3112
+ default: {
3113
+ bodyMapper: Mappers.DefaultErrorResponse
3114
+ }
3115
+ },
3116
+ queryParameters: [Parameters.apiVersion],
3117
+ urlParameters: [
3118
+ Parameters.$host,
3119
+ Parameters.subscriptionId,
3120
+ Parameters.resourceGroupName,
3121
+ Parameters.name,
3122
+ Parameters.workerPoolName
3123
+ ],
3124
+ headerParameters: [Parameters.accept],
3125
+ serializer
3126
+ };
3127
+ const listWebWorkerUsagesOperationSpec = {
3128
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/usages",
3129
+ httpMethod: "GET",
3130
+ responses: {
3131
+ 200: {
3132
+ bodyMapper: Mappers.UsageCollection
3133
+ },
3134
+ default: {
3135
+ bodyMapper: Mappers.DefaultErrorResponse
3136
+ }
3137
+ },
3138
+ queryParameters: [Parameters.apiVersion],
3139
+ urlParameters: [
3140
+ Parameters.$host,
3141
+ Parameters.subscriptionId,
3142
+ Parameters.resourceGroupName,
3143
+ Parameters.name,
3144
+ Parameters.workerPoolName
3145
+ ],
3146
+ headerParameters: [Parameters.accept],
3147
+ serializer
3148
+ };
3149
+ const listNextOperationSpec = {
3150
+ path: "{nextLink}",
3151
+ httpMethod: "GET",
3152
+ responses: {
3153
+ 200: {
3154
+ bodyMapper: Mappers.AppServiceEnvironmentCollection
3155
+ },
3156
+ default: {
3157
+ bodyMapper: Mappers.DefaultErrorResponse
3158
+ }
3159
+ },
3160
+ queryParameters: [Parameters.apiVersion],
3161
+ urlParameters: [
3162
+ Parameters.$host,
3163
+ Parameters.subscriptionId,
3164
+ Parameters.nextLink
3165
+ ],
3166
+ headerParameters: [Parameters.accept],
3167
+ serializer
3168
+ };
3169
+ const listByResourceGroupNextOperationSpec = {
3170
+ path: "{nextLink}",
3171
+ httpMethod: "GET",
3172
+ responses: {
3173
+ 200: {
3174
+ bodyMapper: Mappers.AppServiceEnvironmentCollection
3175
+ },
3176
+ default: {
3177
+ bodyMapper: Mappers.DefaultErrorResponse
3178
+ }
3179
+ },
3180
+ queryParameters: [Parameters.apiVersion],
3181
+ urlParameters: [
3182
+ Parameters.$host,
3183
+ Parameters.subscriptionId,
3184
+ Parameters.resourceGroupName,
3185
+ Parameters.nextLink
3186
+ ],
3187
+ headerParameters: [Parameters.accept],
3188
+ serializer
3189
+ };
3190
+ const listCapacitiesNextOperationSpec = {
3191
+ path: "{nextLink}",
3192
+ httpMethod: "GET",
3193
+ responses: {
3194
+ 200: {
3195
+ bodyMapper: Mappers.StampCapacityCollection
3196
+ },
3197
+ default: {
3198
+ bodyMapper: Mappers.DefaultErrorResponse
3199
+ }
3200
+ },
3201
+ queryParameters: [Parameters.apiVersion],
3202
+ urlParameters: [
3203
+ Parameters.$host,
3204
+ Parameters.subscriptionId,
3205
+ Parameters.resourceGroupName,
3206
+ Parameters.name,
3207
+ Parameters.nextLink
3208
+ ],
3209
+ headerParameters: [Parameters.accept],
3210
+ serializer
3211
+ };
3212
+ const changeVnetNextOperationSpec = {
3213
+ path: "{nextLink}",
3214
+ httpMethod: "GET",
3215
+ responses: {
3216
+ 200: {
3217
+ bodyMapper: Mappers.WebAppCollection
3218
+ },
3219
+ 202: {
3220
+ bodyMapper: Mappers.WebAppCollection
3221
+ },
3222
+ default: {
3223
+ bodyMapper: Mappers.DefaultErrorResponse
3224
+ }
3225
+ },
3226
+ queryParameters: [Parameters.apiVersion],
3227
+ urlParameters: [
3228
+ Parameters.$host,
3229
+ Parameters.subscriptionId,
3230
+ Parameters.resourceGroupName,
3231
+ Parameters.name,
3232
+ Parameters.nextLink
3233
+ ],
3234
+ headerParameters: [Parameters.accept, Parameters.contentType],
3235
+ mediaType: "json",
3236
+ serializer
3237
+ };
3238
+ const getInboundNetworkDependenciesEndpointsNextOperationSpec = {
3239
+ path: "{nextLink}",
3240
+ httpMethod: "GET",
3241
+ responses: {
3242
+ 200: {
3243
+ bodyMapper: Mappers.InboundEnvironmentEndpointCollection
3244
+ },
3245
+ default: {
3246
+ bodyMapper: Mappers.DefaultErrorResponse
3247
+ }
3248
+ },
3249
+ queryParameters: [Parameters.apiVersion],
3250
+ urlParameters: [
3251
+ Parameters.$host,
3252
+ Parameters.subscriptionId,
3253
+ Parameters.resourceGroupName,
3254
+ Parameters.name,
3255
+ Parameters.nextLink
3256
+ ],
3257
+ headerParameters: [Parameters.accept],
3258
+ serializer
3259
+ };
3260
+ const listMultiRolePoolsNextOperationSpec = {
3261
+ path: "{nextLink}",
3262
+ httpMethod: "GET",
3263
+ responses: {
3264
+ 200: {
3265
+ bodyMapper: Mappers.WorkerPoolCollection
3266
+ },
3267
+ default: {
3268
+ bodyMapper: Mappers.DefaultErrorResponse
3269
+ }
3270
+ },
3271
+ queryParameters: [Parameters.apiVersion],
3272
+ urlParameters: [
3273
+ Parameters.$host,
3274
+ Parameters.subscriptionId,
3275
+ Parameters.resourceGroupName,
3276
+ Parameters.name,
3277
+ Parameters.nextLink
3278
+ ],
3279
+ headerParameters: [Parameters.accept],
3280
+ serializer
3281
+ };
3282
+ const listMultiRolePoolInstanceMetricDefinitionsNextOperationSpec = {
3283
+ path: "{nextLink}",
3284
+ httpMethod: "GET",
3285
+ responses: {
3286
+ 200: {
3287
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
3288
+ },
3289
+ default: {
3290
+ bodyMapper: Mappers.DefaultErrorResponse
3291
+ }
3292
+ },
3293
+ queryParameters: [Parameters.apiVersion],
3294
+ urlParameters: [
3295
+ Parameters.$host,
3296
+ Parameters.subscriptionId,
3297
+ Parameters.resourceGroupName,
3298
+ Parameters.name,
3299
+ Parameters.nextLink,
3300
+ Parameters.instance
3301
+ ],
3302
+ headerParameters: [Parameters.accept],
3303
+ serializer
3304
+ };
3305
+ const listMultiRoleMetricDefinitionsNextOperationSpec = {
3306
+ path: "{nextLink}",
3307
+ httpMethod: "GET",
3308
+ responses: {
3309
+ 200: {
3310
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
3311
+ },
3312
+ default: {
3313
+ bodyMapper: Mappers.DefaultErrorResponse
3314
+ }
3315
+ },
3316
+ queryParameters: [Parameters.apiVersion],
3317
+ urlParameters: [
3318
+ Parameters.$host,
3319
+ Parameters.subscriptionId,
3320
+ Parameters.resourceGroupName,
3321
+ Parameters.name,
3322
+ Parameters.nextLink
3323
+ ],
3324
+ headerParameters: [Parameters.accept],
3325
+ serializer
3326
+ };
3327
+ const listMultiRolePoolSkusNextOperationSpec = {
3328
+ path: "{nextLink}",
3329
+ httpMethod: "GET",
3330
+ responses: {
3331
+ 200: {
3332
+ bodyMapper: Mappers.SkuInfoCollection
3333
+ },
3334
+ default: {
3335
+ bodyMapper: Mappers.DefaultErrorResponse
3336
+ }
3337
+ },
3338
+ queryParameters: [Parameters.apiVersion],
3339
+ urlParameters: [
3340
+ Parameters.$host,
3341
+ Parameters.subscriptionId,
3342
+ Parameters.resourceGroupName,
3343
+ Parameters.name,
3344
+ Parameters.nextLink
3345
+ ],
3346
+ headerParameters: [Parameters.accept],
3347
+ serializer
3348
+ };
3349
+ const listMultiRoleUsagesNextOperationSpec = {
3350
+ path: "{nextLink}",
3351
+ httpMethod: "GET",
3352
+ responses: {
3353
+ 200: {
3354
+ bodyMapper: Mappers.UsageCollection
3355
+ },
3356
+ default: {
3357
+ bodyMapper: Mappers.DefaultErrorResponse
3358
+ }
3359
+ },
3360
+ queryParameters: [Parameters.apiVersion],
3361
+ urlParameters: [
3362
+ Parameters.$host,
3363
+ Parameters.subscriptionId,
3364
+ Parameters.resourceGroupName,
3365
+ Parameters.name,
3366
+ Parameters.nextLink
3367
+ ],
3368
+ headerParameters: [Parameters.accept],
3369
+ serializer
3370
+ };
3371
+ const getOutboundNetworkDependenciesEndpointsNextOperationSpec = {
3372
+ path: "{nextLink}",
3373
+ httpMethod: "GET",
3374
+ responses: {
3375
+ 200: {
3376
+ bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
3377
+ },
3378
+ default: {
3379
+ bodyMapper: Mappers.DefaultErrorResponse
3380
+ }
3381
+ },
3382
+ queryParameters: [Parameters.apiVersion],
3383
+ urlParameters: [
3384
+ Parameters.$host,
3385
+ Parameters.subscriptionId,
3386
+ Parameters.resourceGroupName,
3387
+ Parameters.name,
3388
+ Parameters.nextLink
3389
+ ],
3390
+ headerParameters: [Parameters.accept],
3391
+ serializer
3392
+ };
3393
+ const getPrivateEndpointConnectionListNextOperationSpec = {
3394
+ path: "{nextLink}",
3395
+ httpMethod: "GET",
3396
+ responses: {
3397
+ 200: {
3398
+ bodyMapper: Mappers.PrivateEndpointConnectionCollection
3399
+ },
3400
+ default: {
3401
+ bodyMapper: Mappers.DefaultErrorResponse
3402
+ }
3403
+ },
3404
+ queryParameters: [Parameters.apiVersion],
3405
+ urlParameters: [
3406
+ Parameters.$host,
3407
+ Parameters.subscriptionId,
3408
+ Parameters.resourceGroupName,
3409
+ Parameters.name,
3410
+ Parameters.nextLink
3411
+ ],
3412
+ headerParameters: [Parameters.accept],
3413
+ serializer
3414
+ };
3415
+ const resumeNextOperationSpec = {
3416
+ path: "{nextLink}",
3417
+ httpMethod: "GET",
3418
+ responses: {
3419
+ 200: {
3420
+ bodyMapper: Mappers.WebAppCollection
3421
+ },
3422
+ 202: {
3423
+ bodyMapper: Mappers.WebAppCollection
3424
+ },
3425
+ default: {
3426
+ bodyMapper: Mappers.DefaultErrorResponse
3427
+ }
3428
+ },
3429
+ queryParameters: [Parameters.apiVersion],
3430
+ urlParameters: [
3431
+ Parameters.$host,
3432
+ Parameters.subscriptionId,
3433
+ Parameters.resourceGroupName,
3434
+ Parameters.name,
3435
+ Parameters.nextLink
3436
+ ],
3437
+ headerParameters: [Parameters.accept],
3438
+ serializer
3439
+ };
3440
+ const listAppServicePlansNextOperationSpec = {
3441
+ path: "{nextLink}",
3442
+ httpMethod: "GET",
3443
+ responses: {
3444
+ 200: {
3445
+ bodyMapper: Mappers.AppServicePlanCollection
3446
+ },
3447
+ default: {
3448
+ bodyMapper: Mappers.DefaultErrorResponse
3449
+ }
3450
+ },
3451
+ queryParameters: [Parameters.apiVersion],
3452
+ urlParameters: [
3453
+ Parameters.$host,
3454
+ Parameters.subscriptionId,
3455
+ Parameters.resourceGroupName,
3456
+ Parameters.name,
3457
+ Parameters.nextLink
3458
+ ],
3459
+ headerParameters: [Parameters.accept],
3460
+ serializer
3461
+ };
3462
+ const listWebAppsNextOperationSpec = {
3463
+ path: "{nextLink}",
3464
+ httpMethod: "GET",
3465
+ responses: {
3466
+ 200: {
3467
+ bodyMapper: Mappers.WebAppCollection
3468
+ },
3469
+ default: {
3470
+ bodyMapper: Mappers.DefaultErrorResponse
3471
+ }
3472
+ },
3473
+ queryParameters: [Parameters.apiVersion, Parameters.propertiesToInclude],
3474
+ urlParameters: [
3475
+ Parameters.$host,
3476
+ Parameters.subscriptionId,
3477
+ Parameters.resourceGroupName,
3478
+ Parameters.name,
3479
+ Parameters.nextLink
3480
+ ],
3481
+ headerParameters: [Parameters.accept],
3482
+ serializer
3483
+ };
3484
+ const suspendNextOperationSpec = {
3485
+ path: "{nextLink}",
3486
+ httpMethod: "GET",
3487
+ responses: {
3488
+ 200: {
3489
+ bodyMapper: Mappers.WebAppCollection
3490
+ },
3491
+ 202: {
3492
+ bodyMapper: Mappers.WebAppCollection
3493
+ },
3494
+ default: {
3495
+ bodyMapper: Mappers.DefaultErrorResponse
3496
+ }
3497
+ },
3498
+ queryParameters: [Parameters.apiVersion],
3499
+ urlParameters: [
3500
+ Parameters.$host,
3501
+ Parameters.subscriptionId,
3502
+ Parameters.resourceGroupName,
3503
+ Parameters.name,
3504
+ Parameters.nextLink
3505
+ ],
3506
+ headerParameters: [Parameters.accept],
3507
+ serializer
3508
+ };
3509
+ const listUsagesNextOperationSpec = {
3510
+ path: "{nextLink}",
3511
+ httpMethod: "GET",
3512
+ responses: {
3513
+ 200: {
3514
+ bodyMapper: Mappers.CsmUsageQuotaCollection
3515
+ },
3516
+ default: {
3517
+ bodyMapper: Mappers.DefaultErrorResponse
3518
+ }
3519
+ },
3520
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
3521
+ urlParameters: [
3522
+ Parameters.$host,
3523
+ Parameters.subscriptionId,
3524
+ Parameters.resourceGroupName,
3525
+ Parameters.name,
3526
+ Parameters.nextLink
3527
+ ],
3528
+ headerParameters: [Parameters.accept],
3529
+ serializer
3530
+ };
3531
+ const listWorkerPoolsNextOperationSpec = {
3532
+ path: "{nextLink}",
3533
+ httpMethod: "GET",
3534
+ responses: {
3535
+ 200: {
3536
+ bodyMapper: Mappers.WorkerPoolCollection
3537
+ },
3538
+ default: {
3539
+ bodyMapper: Mappers.DefaultErrorResponse
3540
+ }
3541
+ },
3542
+ queryParameters: [Parameters.apiVersion],
3543
+ urlParameters: [
3544
+ Parameters.$host,
3545
+ Parameters.subscriptionId,
3546
+ Parameters.resourceGroupName,
3547
+ Parameters.name,
3548
+ Parameters.nextLink
3549
+ ],
3550
+ headerParameters: [Parameters.accept],
3551
+ serializer
3552
+ };
3553
+ const listWorkerPoolInstanceMetricDefinitionsNextOperationSpec = {
3554
+ path: "{nextLink}",
3555
+ httpMethod: "GET",
3556
+ responses: {
3557
+ 200: {
3558
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
3559
+ },
3560
+ default: {
3561
+ bodyMapper: Mappers.DefaultErrorResponse
3562
+ }
3563
+ },
3564
+ queryParameters: [Parameters.apiVersion],
3565
+ urlParameters: [
3566
+ Parameters.$host,
3567
+ Parameters.subscriptionId,
3568
+ Parameters.resourceGroupName,
3569
+ Parameters.name,
3570
+ Parameters.nextLink,
3571
+ Parameters.instance,
3572
+ Parameters.workerPoolName
3573
+ ],
3574
+ headerParameters: [Parameters.accept],
3575
+ serializer
3576
+ };
3577
+ const listWebWorkerMetricDefinitionsNextOperationSpec = {
3578
+ path: "{nextLink}",
3579
+ httpMethod: "GET",
3580
+ responses: {
3581
+ 200: {
3582
+ bodyMapper: Mappers.ResourceMetricDefinitionCollection
3583
+ },
3584
+ default: {
3585
+ bodyMapper: Mappers.DefaultErrorResponse
3586
+ }
3587
+ },
3588
+ queryParameters: [Parameters.apiVersion],
3589
+ urlParameters: [
3590
+ Parameters.$host,
3591
+ Parameters.subscriptionId,
3592
+ Parameters.resourceGroupName,
3593
+ Parameters.name,
3594
+ Parameters.nextLink,
3595
+ Parameters.workerPoolName
3596
+ ],
3597
+ headerParameters: [Parameters.accept],
3598
+ serializer
3599
+ };
3600
+ const listWorkerPoolSkusNextOperationSpec = {
3601
+ path: "{nextLink}",
3602
+ httpMethod: "GET",
3603
+ responses: {
3604
+ 200: {
3605
+ bodyMapper: Mappers.SkuInfoCollection
3606
+ },
3607
+ default: {
3608
+ bodyMapper: Mappers.DefaultErrorResponse
3609
+ }
3610
+ },
3611
+ queryParameters: [Parameters.apiVersion],
3612
+ urlParameters: [
3613
+ Parameters.$host,
3614
+ Parameters.subscriptionId,
3615
+ Parameters.resourceGroupName,
3616
+ Parameters.name,
3617
+ Parameters.nextLink,
3618
+ Parameters.workerPoolName
3619
+ ],
3620
+ headerParameters: [Parameters.accept],
3621
+ serializer
3622
+ };
3623
+ const listWebWorkerUsagesNextOperationSpec = {
3624
+ path: "{nextLink}",
3625
+ httpMethod: "GET",
3626
+ responses: {
3627
+ 200: {
3628
+ bodyMapper: Mappers.UsageCollection
3629
+ },
3630
+ default: {
3631
+ bodyMapper: Mappers.DefaultErrorResponse
3632
+ }
3633
+ },
3634
+ queryParameters: [Parameters.apiVersion],
3635
+ urlParameters: [
3636
+ Parameters.$host,
3637
+ Parameters.subscriptionId,
3638
+ Parameters.resourceGroupName,
3639
+ Parameters.name,
3640
+ Parameters.nextLink,
3641
+ Parameters.workerPoolName
3642
+ ],
3643
+ headerParameters: [Parameters.accept],
3644
+ serializer
3645
+ };
3646
+ //# sourceMappingURL=appServiceEnvironments.js.map