@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,1987 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import "@azure/core-paging";
10
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
+ import { AppServicePlans } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { WebSiteManagementClientContext } from "../webSiteManagementClientContext";
16
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
+ import { LroImpl } from "../lroImpl";
18
+ import {
19
+ AppServicePlan,
20
+ AppServicePlansListNextOptionalParams,
21
+ AppServicePlansListOptionalParams,
22
+ AppServicePlansListByResourceGroupNextOptionalParams,
23
+ AppServicePlansListByResourceGroupOptionalParams,
24
+ AppServicePlansListWebAppsByHybridConnectionNextOptionalParams,
25
+ AppServicePlansListWebAppsByHybridConnectionOptionalParams,
26
+ HybridConnection,
27
+ AppServicePlansListHybridConnectionsNextOptionalParams,
28
+ AppServicePlansListHybridConnectionsOptionalParams,
29
+ Site,
30
+ AppServicePlansListWebAppsNextOptionalParams,
31
+ AppServicePlansListWebAppsOptionalParams,
32
+ CsmUsageQuota,
33
+ AppServicePlansListUsagesNextOptionalParams,
34
+ AppServicePlansListUsagesOptionalParams,
35
+ AppServicePlansListResponse,
36
+ AppServicePlansListByResourceGroupResponse,
37
+ AppServicePlansGetOptionalParams,
38
+ AppServicePlansGetResponse,
39
+ AppServicePlansCreateOrUpdateOptionalParams,
40
+ AppServicePlansCreateOrUpdateResponse,
41
+ AppServicePlansDeleteOptionalParams,
42
+ AppServicePlanPatchResource,
43
+ AppServicePlansUpdateOptionalParams,
44
+ AppServicePlansUpdateResponse,
45
+ AppServicePlansListCapabilitiesOptionalParams,
46
+ AppServicePlansListCapabilitiesResponse,
47
+ AppServicePlansGetHybridConnectionOptionalParams,
48
+ AppServicePlansGetHybridConnectionResponse,
49
+ AppServicePlansDeleteHybridConnectionOptionalParams,
50
+ AppServicePlansListHybridConnectionKeysOptionalParams,
51
+ AppServicePlansListHybridConnectionKeysResponse,
52
+ AppServicePlansListWebAppsByHybridConnectionResponse,
53
+ AppServicePlansGetHybridConnectionPlanLimitOptionalParams,
54
+ AppServicePlansGetHybridConnectionPlanLimitResponse,
55
+ AppServicePlansListHybridConnectionsResponse,
56
+ AppServicePlansRestartWebAppsOptionalParams,
57
+ AppServicePlansListWebAppsResponse,
58
+ AppServicePlansGetServerFarmSkusOptionalParams,
59
+ AppServicePlansGetServerFarmSkusResponse,
60
+ AppServicePlansListUsagesResponse,
61
+ AppServicePlansListVnetsOptionalParams,
62
+ AppServicePlansListVnetsResponse,
63
+ AppServicePlansGetVnetFromServerFarmOptionalParams,
64
+ AppServicePlansGetVnetFromServerFarmResponse,
65
+ AppServicePlansGetVnetGatewayOptionalParams,
66
+ AppServicePlansGetVnetGatewayResponse,
67
+ VnetGateway,
68
+ AppServicePlansUpdateVnetGatewayOptionalParams,
69
+ AppServicePlansUpdateVnetGatewayResponse,
70
+ AppServicePlansListRoutesForVnetOptionalParams,
71
+ AppServicePlansListRoutesForVnetResponse,
72
+ AppServicePlansGetRouteForVnetOptionalParams,
73
+ AppServicePlansGetRouteForVnetResponse,
74
+ VnetRoute,
75
+ AppServicePlansCreateOrUpdateVnetRouteOptionalParams,
76
+ AppServicePlansCreateOrUpdateVnetRouteResponse,
77
+ AppServicePlansDeleteVnetRouteOptionalParams,
78
+ AppServicePlansUpdateVnetRouteOptionalParams,
79
+ AppServicePlansUpdateVnetRouteResponse,
80
+ AppServicePlansRebootWorkerOptionalParams,
81
+ AppServicePlansListNextResponse,
82
+ AppServicePlansListByResourceGroupNextResponse,
83
+ AppServicePlansListWebAppsByHybridConnectionNextResponse,
84
+ AppServicePlansListHybridConnectionsNextResponse,
85
+ AppServicePlansListWebAppsNextResponse,
86
+ AppServicePlansListUsagesNextResponse
87
+ } from "../models";
88
+
89
+ /// <reference lib="esnext.asynciterable" />
90
+ /** Class representing a AppServicePlans. */
91
+ export class AppServicePlansImpl implements AppServicePlans {
92
+ private readonly client: WebSiteManagementClientContext;
93
+
94
+ /**
95
+ * Initialize a new instance of the class AppServicePlans class.
96
+ * @param client Reference to the service client
97
+ */
98
+ constructor(client: WebSiteManagementClientContext) {
99
+ this.client = client;
100
+ }
101
+
102
+ /**
103
+ * Description for Get all App Service plans for a subscription.
104
+ * @param options The options parameters.
105
+ */
106
+ public list(
107
+ options?: AppServicePlansListOptionalParams
108
+ ): PagedAsyncIterableIterator<AppServicePlan> {
109
+ const iter = this.listPagingAll(options);
110
+ return {
111
+ next() {
112
+ return iter.next();
113
+ },
114
+ [Symbol.asyncIterator]() {
115
+ return this;
116
+ },
117
+ byPage: () => {
118
+ return this.listPagingPage(options);
119
+ }
120
+ };
121
+ }
122
+
123
+ private async *listPagingPage(
124
+ options?: AppServicePlansListOptionalParams
125
+ ): AsyncIterableIterator<AppServicePlan[]> {
126
+ let result = await this._list(options);
127
+ yield result.value || [];
128
+ let continuationToken = result.nextLink;
129
+ while (continuationToken) {
130
+ result = await this._listNext(continuationToken, options);
131
+ continuationToken = result.nextLink;
132
+ yield result.value || [];
133
+ }
134
+ }
135
+
136
+ private async *listPagingAll(
137
+ options?: AppServicePlansListOptionalParams
138
+ ): AsyncIterableIterator<AppServicePlan> {
139
+ for await (const page of this.listPagingPage(options)) {
140
+ yield* page;
141
+ }
142
+ }
143
+
144
+ /**
145
+ * Description for Get all App Service plans in a resource group.
146
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
147
+ * @param options The options parameters.
148
+ */
149
+ public listByResourceGroup(
150
+ resourceGroupName: string,
151
+ options?: AppServicePlansListByResourceGroupOptionalParams
152
+ ): PagedAsyncIterableIterator<AppServicePlan> {
153
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
154
+ return {
155
+ next() {
156
+ return iter.next();
157
+ },
158
+ [Symbol.asyncIterator]() {
159
+ return this;
160
+ },
161
+ byPage: () => {
162
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
163
+ }
164
+ };
165
+ }
166
+
167
+ private async *listByResourceGroupPagingPage(
168
+ resourceGroupName: string,
169
+ options?: AppServicePlansListByResourceGroupOptionalParams
170
+ ): AsyncIterableIterator<AppServicePlan[]> {
171
+ let result = await this._listByResourceGroup(resourceGroupName, options);
172
+ yield result.value || [];
173
+ let continuationToken = result.nextLink;
174
+ while (continuationToken) {
175
+ result = await this._listByResourceGroupNext(
176
+ resourceGroupName,
177
+ continuationToken,
178
+ options
179
+ );
180
+ continuationToken = result.nextLink;
181
+ yield result.value || [];
182
+ }
183
+ }
184
+
185
+ private async *listByResourceGroupPagingAll(
186
+ resourceGroupName: string,
187
+ options?: AppServicePlansListByResourceGroupOptionalParams
188
+ ): AsyncIterableIterator<AppServicePlan> {
189
+ for await (const page of this.listByResourceGroupPagingPage(
190
+ resourceGroupName,
191
+ options
192
+ )) {
193
+ yield* page;
194
+ }
195
+ }
196
+
197
+ /**
198
+ * Description for Get all apps that use a Hybrid Connection in an App Service Plan.
199
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
200
+ * @param name Name of the App Service plan.
201
+ * @param namespaceName Name of the Hybrid Connection namespace.
202
+ * @param relayName Name of the Hybrid Connection relay.
203
+ * @param options The options parameters.
204
+ */
205
+ public listWebAppsByHybridConnection(
206
+ resourceGroupName: string,
207
+ name: string,
208
+ namespaceName: string,
209
+ relayName: string,
210
+ options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams
211
+ ): PagedAsyncIterableIterator<string> {
212
+ const iter = this.listWebAppsByHybridConnectionPagingAll(
213
+ resourceGroupName,
214
+ name,
215
+ namespaceName,
216
+ relayName,
217
+ options
218
+ );
219
+ return {
220
+ next() {
221
+ return iter.next();
222
+ },
223
+ [Symbol.asyncIterator]() {
224
+ return this;
225
+ },
226
+ byPage: () => {
227
+ return this.listWebAppsByHybridConnectionPagingPage(
228
+ resourceGroupName,
229
+ name,
230
+ namespaceName,
231
+ relayName,
232
+ options
233
+ );
234
+ }
235
+ };
236
+ }
237
+
238
+ private async *listWebAppsByHybridConnectionPagingPage(
239
+ resourceGroupName: string,
240
+ name: string,
241
+ namespaceName: string,
242
+ relayName: string,
243
+ options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams
244
+ ): AsyncIterableIterator<string[]> {
245
+ let result = await this._listWebAppsByHybridConnection(
246
+ resourceGroupName,
247
+ name,
248
+ namespaceName,
249
+ relayName,
250
+ options
251
+ );
252
+ yield result.value || [];
253
+ let continuationToken = result.nextLink;
254
+ while (continuationToken) {
255
+ result = await this._listWebAppsByHybridConnectionNext(
256
+ resourceGroupName,
257
+ name,
258
+ namespaceName,
259
+ relayName,
260
+ continuationToken,
261
+ options
262
+ );
263
+ continuationToken = result.nextLink;
264
+ yield result.value || [];
265
+ }
266
+ }
267
+
268
+ private async *listWebAppsByHybridConnectionPagingAll(
269
+ resourceGroupName: string,
270
+ name: string,
271
+ namespaceName: string,
272
+ relayName: string,
273
+ options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams
274
+ ): AsyncIterableIterator<string> {
275
+ for await (const page of this.listWebAppsByHybridConnectionPagingPage(
276
+ resourceGroupName,
277
+ name,
278
+ namespaceName,
279
+ relayName,
280
+ options
281
+ )) {
282
+ yield* page;
283
+ }
284
+ }
285
+
286
+ /**
287
+ * Description for Retrieve all Hybrid Connections in use in an App Service plan.
288
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
289
+ * @param name Name of the App Service plan.
290
+ * @param options The options parameters.
291
+ */
292
+ public listHybridConnections(
293
+ resourceGroupName: string,
294
+ name: string,
295
+ options?: AppServicePlansListHybridConnectionsOptionalParams
296
+ ): PagedAsyncIterableIterator<HybridConnection> {
297
+ const iter = this.listHybridConnectionsPagingAll(
298
+ resourceGroupName,
299
+ name,
300
+ options
301
+ );
302
+ return {
303
+ next() {
304
+ return iter.next();
305
+ },
306
+ [Symbol.asyncIterator]() {
307
+ return this;
308
+ },
309
+ byPage: () => {
310
+ return this.listHybridConnectionsPagingPage(
311
+ resourceGroupName,
312
+ name,
313
+ options
314
+ );
315
+ }
316
+ };
317
+ }
318
+
319
+ private async *listHybridConnectionsPagingPage(
320
+ resourceGroupName: string,
321
+ name: string,
322
+ options?: AppServicePlansListHybridConnectionsOptionalParams
323
+ ): AsyncIterableIterator<HybridConnection[]> {
324
+ let result = await this._listHybridConnections(
325
+ resourceGroupName,
326
+ name,
327
+ options
328
+ );
329
+ yield result.value || [];
330
+ let continuationToken = result.nextLink;
331
+ while (continuationToken) {
332
+ result = await this._listHybridConnectionsNext(
333
+ resourceGroupName,
334
+ name,
335
+ continuationToken,
336
+ options
337
+ );
338
+ continuationToken = result.nextLink;
339
+ yield result.value || [];
340
+ }
341
+ }
342
+
343
+ private async *listHybridConnectionsPagingAll(
344
+ resourceGroupName: string,
345
+ name: string,
346
+ options?: AppServicePlansListHybridConnectionsOptionalParams
347
+ ): AsyncIterableIterator<HybridConnection> {
348
+ for await (const page of this.listHybridConnectionsPagingPage(
349
+ resourceGroupName,
350
+ name,
351
+ options
352
+ )) {
353
+ yield* page;
354
+ }
355
+ }
356
+
357
+ /**
358
+ * Description for Get all apps associated with an App Service plan.
359
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
360
+ * @param name Name of the App Service plan.
361
+ * @param options The options parameters.
362
+ */
363
+ public listWebApps(
364
+ resourceGroupName: string,
365
+ name: string,
366
+ options?: AppServicePlansListWebAppsOptionalParams
367
+ ): PagedAsyncIterableIterator<Site> {
368
+ const iter = this.listWebAppsPagingAll(resourceGroupName, name, options);
369
+ return {
370
+ next() {
371
+ return iter.next();
372
+ },
373
+ [Symbol.asyncIterator]() {
374
+ return this;
375
+ },
376
+ byPage: () => {
377
+ return this.listWebAppsPagingPage(resourceGroupName, name, options);
378
+ }
379
+ };
380
+ }
381
+
382
+ private async *listWebAppsPagingPage(
383
+ resourceGroupName: string,
384
+ name: string,
385
+ options?: AppServicePlansListWebAppsOptionalParams
386
+ ): AsyncIterableIterator<Site[]> {
387
+ let result = await this._listWebApps(resourceGroupName, name, options);
388
+ yield result.value || [];
389
+ let continuationToken = result.nextLink;
390
+ while (continuationToken) {
391
+ result = await this._listWebAppsNext(
392
+ resourceGroupName,
393
+ name,
394
+ continuationToken,
395
+ options
396
+ );
397
+ continuationToken = result.nextLink;
398
+ yield result.value || [];
399
+ }
400
+ }
401
+
402
+ private async *listWebAppsPagingAll(
403
+ resourceGroupName: string,
404
+ name: string,
405
+ options?: AppServicePlansListWebAppsOptionalParams
406
+ ): AsyncIterableIterator<Site> {
407
+ for await (const page of this.listWebAppsPagingPage(
408
+ resourceGroupName,
409
+ name,
410
+ options
411
+ )) {
412
+ yield* page;
413
+ }
414
+ }
415
+
416
+ /**
417
+ * Description for Gets server farm usage information
418
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
419
+ * @param name Name of App Service Plan
420
+ * @param options The options parameters.
421
+ */
422
+ public listUsages(
423
+ resourceGroupName: string,
424
+ name: string,
425
+ options?: AppServicePlansListUsagesOptionalParams
426
+ ): PagedAsyncIterableIterator<CsmUsageQuota> {
427
+ const iter = this.listUsagesPagingAll(resourceGroupName, name, options);
428
+ return {
429
+ next() {
430
+ return iter.next();
431
+ },
432
+ [Symbol.asyncIterator]() {
433
+ return this;
434
+ },
435
+ byPage: () => {
436
+ return this.listUsagesPagingPage(resourceGroupName, name, options);
437
+ }
438
+ };
439
+ }
440
+
441
+ private async *listUsagesPagingPage(
442
+ resourceGroupName: string,
443
+ name: string,
444
+ options?: AppServicePlansListUsagesOptionalParams
445
+ ): AsyncIterableIterator<CsmUsageQuota[]> {
446
+ let result = await this._listUsages(resourceGroupName, name, options);
447
+ yield result.value || [];
448
+ let continuationToken = result.nextLink;
449
+ while (continuationToken) {
450
+ result = await this._listUsagesNext(
451
+ resourceGroupName,
452
+ name,
453
+ continuationToken,
454
+ options
455
+ );
456
+ continuationToken = result.nextLink;
457
+ yield result.value || [];
458
+ }
459
+ }
460
+
461
+ private async *listUsagesPagingAll(
462
+ resourceGroupName: string,
463
+ name: string,
464
+ options?: AppServicePlansListUsagesOptionalParams
465
+ ): AsyncIterableIterator<CsmUsageQuota> {
466
+ for await (const page of this.listUsagesPagingPage(
467
+ resourceGroupName,
468
+ name,
469
+ options
470
+ )) {
471
+ yield* page;
472
+ }
473
+ }
474
+
475
+ /**
476
+ * Description for Get all App Service plans for a subscription.
477
+ * @param options The options parameters.
478
+ */
479
+ private _list(
480
+ options?: AppServicePlansListOptionalParams
481
+ ): Promise<AppServicePlansListResponse> {
482
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
483
+ }
484
+
485
+ /**
486
+ * Description for Get all App Service plans in a resource group.
487
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
488
+ * @param options The options parameters.
489
+ */
490
+ private _listByResourceGroup(
491
+ resourceGroupName: string,
492
+ options?: AppServicePlansListByResourceGroupOptionalParams
493
+ ): Promise<AppServicePlansListByResourceGroupResponse> {
494
+ return this.client.sendOperationRequest(
495
+ { resourceGroupName, options },
496
+ listByResourceGroupOperationSpec
497
+ );
498
+ }
499
+
500
+ /**
501
+ * Description for Get an App Service plan.
502
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
503
+ * @param name Name of the App Service plan.
504
+ * @param options The options parameters.
505
+ */
506
+ get(
507
+ resourceGroupName: string,
508
+ name: string,
509
+ options?: AppServicePlansGetOptionalParams
510
+ ): Promise<AppServicePlansGetResponse> {
511
+ return this.client.sendOperationRequest(
512
+ { resourceGroupName, name, options },
513
+ getOperationSpec
514
+ );
515
+ }
516
+
517
+ /**
518
+ * Description for Creates or updates an App Service Plan.
519
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
520
+ * @param name Name of the App Service plan.
521
+ * @param appServicePlan Details of the App Service plan.
522
+ * @param options The options parameters.
523
+ */
524
+ async beginCreateOrUpdate(
525
+ resourceGroupName: string,
526
+ name: string,
527
+ appServicePlan: AppServicePlan,
528
+ options?: AppServicePlansCreateOrUpdateOptionalParams
529
+ ): Promise<
530
+ PollerLike<
531
+ PollOperationState<AppServicePlansCreateOrUpdateResponse>,
532
+ AppServicePlansCreateOrUpdateResponse
533
+ >
534
+ > {
535
+ const directSendOperation = async (
536
+ args: coreClient.OperationArguments,
537
+ spec: coreClient.OperationSpec
538
+ ): Promise<AppServicePlansCreateOrUpdateResponse> => {
539
+ return this.client.sendOperationRequest(args, spec);
540
+ };
541
+ const sendOperation = async (
542
+ args: coreClient.OperationArguments,
543
+ spec: coreClient.OperationSpec
544
+ ) => {
545
+ let currentRawResponse:
546
+ | coreClient.FullOperationResponse
547
+ | undefined = undefined;
548
+ const providedCallback = args.options?.onResponse;
549
+ const callback: coreClient.RawResponseCallback = (
550
+ rawResponse: coreClient.FullOperationResponse,
551
+ flatResponse: unknown
552
+ ) => {
553
+ currentRawResponse = rawResponse;
554
+ providedCallback?.(rawResponse, flatResponse);
555
+ };
556
+ const updatedArgs = {
557
+ ...args,
558
+ options: {
559
+ ...args.options,
560
+ onResponse: callback
561
+ }
562
+ };
563
+ const flatResponse = await directSendOperation(updatedArgs, spec);
564
+ return {
565
+ flatResponse,
566
+ rawResponse: {
567
+ statusCode: currentRawResponse!.status,
568
+ body: currentRawResponse!.parsedBody,
569
+ headers: currentRawResponse!.headers.toJSON()
570
+ }
571
+ };
572
+ };
573
+
574
+ const lro = new LroImpl(
575
+ sendOperation,
576
+ { resourceGroupName, name, appServicePlan, options },
577
+ createOrUpdateOperationSpec
578
+ );
579
+ return new LroEngine(lro, {
580
+ resumeFrom: options?.resumeFrom,
581
+ intervalInMs: options?.updateIntervalInMs
582
+ });
583
+ }
584
+
585
+ /**
586
+ * Description for Creates or updates an App Service Plan.
587
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
588
+ * @param name Name of the App Service plan.
589
+ * @param appServicePlan Details of the App Service plan.
590
+ * @param options The options parameters.
591
+ */
592
+ async beginCreateOrUpdateAndWait(
593
+ resourceGroupName: string,
594
+ name: string,
595
+ appServicePlan: AppServicePlan,
596
+ options?: AppServicePlansCreateOrUpdateOptionalParams
597
+ ): Promise<AppServicePlansCreateOrUpdateResponse> {
598
+ const poller = await this.beginCreateOrUpdate(
599
+ resourceGroupName,
600
+ name,
601
+ appServicePlan,
602
+ options
603
+ );
604
+ return poller.pollUntilDone();
605
+ }
606
+
607
+ /**
608
+ * Description for Delete an App Service plan.
609
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
610
+ * @param name Name of the App Service plan.
611
+ * @param options The options parameters.
612
+ */
613
+ delete(
614
+ resourceGroupName: string,
615
+ name: string,
616
+ options?: AppServicePlansDeleteOptionalParams
617
+ ): Promise<void> {
618
+ return this.client.sendOperationRequest(
619
+ { resourceGroupName, name, options },
620
+ deleteOperationSpec
621
+ );
622
+ }
623
+
624
+ /**
625
+ * Description for Creates or updates an App Service Plan.
626
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
627
+ * @param name Name of the App Service plan.
628
+ * @param appServicePlan Details of the App Service plan.
629
+ * @param options The options parameters.
630
+ */
631
+ update(
632
+ resourceGroupName: string,
633
+ name: string,
634
+ appServicePlan: AppServicePlanPatchResource,
635
+ options?: AppServicePlansUpdateOptionalParams
636
+ ): Promise<AppServicePlansUpdateResponse> {
637
+ return this.client.sendOperationRequest(
638
+ { resourceGroupName, name, appServicePlan, options },
639
+ updateOperationSpec
640
+ );
641
+ }
642
+
643
+ /**
644
+ * Description for List all capabilities of an App Service plan.
645
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
646
+ * @param name Name of the App Service plan.
647
+ * @param options The options parameters.
648
+ */
649
+ listCapabilities(
650
+ resourceGroupName: string,
651
+ name: string,
652
+ options?: AppServicePlansListCapabilitiesOptionalParams
653
+ ): Promise<AppServicePlansListCapabilitiesResponse> {
654
+ return this.client.sendOperationRequest(
655
+ { resourceGroupName, name, options },
656
+ listCapabilitiesOperationSpec
657
+ );
658
+ }
659
+
660
+ /**
661
+ * Description for Retrieve a Hybrid Connection in use in an App Service plan.
662
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
663
+ * @param name Name of the App Service plan.
664
+ * @param namespaceName Name of the Service Bus namespace.
665
+ * @param relayName Name of the Service Bus relay.
666
+ * @param options The options parameters.
667
+ */
668
+ getHybridConnection(
669
+ resourceGroupName: string,
670
+ name: string,
671
+ namespaceName: string,
672
+ relayName: string,
673
+ options?: AppServicePlansGetHybridConnectionOptionalParams
674
+ ): Promise<AppServicePlansGetHybridConnectionResponse> {
675
+ return this.client.sendOperationRequest(
676
+ { resourceGroupName, name, namespaceName, relayName, options },
677
+ getHybridConnectionOperationSpec
678
+ );
679
+ }
680
+
681
+ /**
682
+ * Description for Delete a Hybrid Connection in use in an App Service plan.
683
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
684
+ * @param name Name of the App Service plan.
685
+ * @param namespaceName Name of the Service Bus namespace.
686
+ * @param relayName Name of the Service Bus relay.
687
+ * @param options The options parameters.
688
+ */
689
+ deleteHybridConnection(
690
+ resourceGroupName: string,
691
+ name: string,
692
+ namespaceName: string,
693
+ relayName: string,
694
+ options?: AppServicePlansDeleteHybridConnectionOptionalParams
695
+ ): Promise<void> {
696
+ return this.client.sendOperationRequest(
697
+ { resourceGroupName, name, namespaceName, relayName, options },
698
+ deleteHybridConnectionOperationSpec
699
+ );
700
+ }
701
+
702
+ /**
703
+ * Description for Get the send key name and value of a Hybrid Connection.
704
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
705
+ * @param name Name of the App Service plan.
706
+ * @param namespaceName The name of the Service Bus namespace.
707
+ * @param relayName The name of the Service Bus relay.
708
+ * @param options The options parameters.
709
+ */
710
+ listHybridConnectionKeys(
711
+ resourceGroupName: string,
712
+ name: string,
713
+ namespaceName: string,
714
+ relayName: string,
715
+ options?: AppServicePlansListHybridConnectionKeysOptionalParams
716
+ ): Promise<AppServicePlansListHybridConnectionKeysResponse> {
717
+ return this.client.sendOperationRequest(
718
+ { resourceGroupName, name, namespaceName, relayName, options },
719
+ listHybridConnectionKeysOperationSpec
720
+ );
721
+ }
722
+
723
+ /**
724
+ * Description for Get all apps that use a Hybrid Connection in an App Service Plan.
725
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
726
+ * @param name Name of the App Service plan.
727
+ * @param namespaceName Name of the Hybrid Connection namespace.
728
+ * @param relayName Name of the Hybrid Connection relay.
729
+ * @param options The options parameters.
730
+ */
731
+ private _listWebAppsByHybridConnection(
732
+ resourceGroupName: string,
733
+ name: string,
734
+ namespaceName: string,
735
+ relayName: string,
736
+ options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams
737
+ ): Promise<AppServicePlansListWebAppsByHybridConnectionResponse> {
738
+ return this.client.sendOperationRequest(
739
+ { resourceGroupName, name, namespaceName, relayName, options },
740
+ listWebAppsByHybridConnectionOperationSpec
741
+ );
742
+ }
743
+
744
+ /**
745
+ * Description for Get the maximum number of Hybrid Connections allowed in an App Service plan.
746
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
747
+ * @param name Name of the App Service plan.
748
+ * @param options The options parameters.
749
+ */
750
+ getHybridConnectionPlanLimit(
751
+ resourceGroupName: string,
752
+ name: string,
753
+ options?: AppServicePlansGetHybridConnectionPlanLimitOptionalParams
754
+ ): Promise<AppServicePlansGetHybridConnectionPlanLimitResponse> {
755
+ return this.client.sendOperationRequest(
756
+ { resourceGroupName, name, options },
757
+ getHybridConnectionPlanLimitOperationSpec
758
+ );
759
+ }
760
+
761
+ /**
762
+ * Description for Retrieve all Hybrid Connections in use in an App Service plan.
763
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
764
+ * @param name Name of the App Service plan.
765
+ * @param options The options parameters.
766
+ */
767
+ private _listHybridConnections(
768
+ resourceGroupName: string,
769
+ name: string,
770
+ options?: AppServicePlansListHybridConnectionsOptionalParams
771
+ ): Promise<AppServicePlansListHybridConnectionsResponse> {
772
+ return this.client.sendOperationRequest(
773
+ { resourceGroupName, name, options },
774
+ listHybridConnectionsOperationSpec
775
+ );
776
+ }
777
+
778
+ /**
779
+ * Description for Restart all apps in an App Service plan.
780
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
781
+ * @param name Name of the App Service plan.
782
+ * @param options The options parameters.
783
+ */
784
+ restartWebApps(
785
+ resourceGroupName: string,
786
+ name: string,
787
+ options?: AppServicePlansRestartWebAppsOptionalParams
788
+ ): Promise<void> {
789
+ return this.client.sendOperationRequest(
790
+ { resourceGroupName, name, options },
791
+ restartWebAppsOperationSpec
792
+ );
793
+ }
794
+
795
+ /**
796
+ * Description for Get all apps associated with an App Service plan.
797
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
798
+ * @param name Name of the App Service plan.
799
+ * @param options The options parameters.
800
+ */
801
+ private _listWebApps(
802
+ resourceGroupName: string,
803
+ name: string,
804
+ options?: AppServicePlansListWebAppsOptionalParams
805
+ ): Promise<AppServicePlansListWebAppsResponse> {
806
+ return this.client.sendOperationRequest(
807
+ { resourceGroupName, name, options },
808
+ listWebAppsOperationSpec
809
+ );
810
+ }
811
+
812
+ /**
813
+ * Description for Gets all selectable SKUs for a given App Service Plan
814
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
815
+ * @param name Name of App Service Plan
816
+ * @param options The options parameters.
817
+ */
818
+ getServerFarmSkus(
819
+ resourceGroupName: string,
820
+ name: string,
821
+ options?: AppServicePlansGetServerFarmSkusOptionalParams
822
+ ): Promise<AppServicePlansGetServerFarmSkusResponse> {
823
+ return this.client.sendOperationRequest(
824
+ { resourceGroupName, name, options },
825
+ getServerFarmSkusOperationSpec
826
+ );
827
+ }
828
+
829
+ /**
830
+ * Description for Gets server farm usage information
831
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
832
+ * @param name Name of App Service Plan
833
+ * @param options The options parameters.
834
+ */
835
+ private _listUsages(
836
+ resourceGroupName: string,
837
+ name: string,
838
+ options?: AppServicePlansListUsagesOptionalParams
839
+ ): Promise<AppServicePlansListUsagesResponse> {
840
+ return this.client.sendOperationRequest(
841
+ { resourceGroupName, name, options },
842
+ listUsagesOperationSpec
843
+ );
844
+ }
845
+
846
+ /**
847
+ * Description for Get all Virtual Networks associated with an App Service plan.
848
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
849
+ * @param name Name of the App Service plan.
850
+ * @param options The options parameters.
851
+ */
852
+ listVnets(
853
+ resourceGroupName: string,
854
+ name: string,
855
+ options?: AppServicePlansListVnetsOptionalParams
856
+ ): Promise<AppServicePlansListVnetsResponse> {
857
+ return this.client.sendOperationRequest(
858
+ { resourceGroupName, name, options },
859
+ listVnetsOperationSpec
860
+ );
861
+ }
862
+
863
+ /**
864
+ * Description for Get a Virtual Network associated with an App Service plan.
865
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
866
+ * @param name Name of the App Service plan.
867
+ * @param vnetName Name of the Virtual Network.
868
+ * @param options The options parameters.
869
+ */
870
+ getVnetFromServerFarm(
871
+ resourceGroupName: string,
872
+ name: string,
873
+ vnetName: string,
874
+ options?: AppServicePlansGetVnetFromServerFarmOptionalParams
875
+ ): Promise<AppServicePlansGetVnetFromServerFarmResponse> {
876
+ return this.client.sendOperationRequest(
877
+ { resourceGroupName, name, vnetName, options },
878
+ getVnetFromServerFarmOperationSpec
879
+ );
880
+ }
881
+
882
+ /**
883
+ * Description for Get a Virtual Network gateway.
884
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
885
+ * @param name Name of the App Service plan.
886
+ * @param vnetName Name of the Virtual Network.
887
+ * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported.
888
+ * @param options The options parameters.
889
+ */
890
+ getVnetGateway(
891
+ resourceGroupName: string,
892
+ name: string,
893
+ vnetName: string,
894
+ gatewayName: string,
895
+ options?: AppServicePlansGetVnetGatewayOptionalParams
896
+ ): Promise<AppServicePlansGetVnetGatewayResponse> {
897
+ return this.client.sendOperationRequest(
898
+ { resourceGroupName, name, vnetName, gatewayName, options },
899
+ getVnetGatewayOperationSpec
900
+ );
901
+ }
902
+
903
+ /**
904
+ * Description for Update a Virtual Network gateway.
905
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
906
+ * @param name Name of the App Service plan.
907
+ * @param vnetName Name of the Virtual Network.
908
+ * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported.
909
+ * @param connectionEnvelope Definition of the gateway.
910
+ * @param options The options parameters.
911
+ */
912
+ updateVnetGateway(
913
+ resourceGroupName: string,
914
+ name: string,
915
+ vnetName: string,
916
+ gatewayName: string,
917
+ connectionEnvelope: VnetGateway,
918
+ options?: AppServicePlansUpdateVnetGatewayOptionalParams
919
+ ): Promise<AppServicePlansUpdateVnetGatewayResponse> {
920
+ return this.client.sendOperationRequest(
921
+ {
922
+ resourceGroupName,
923
+ name,
924
+ vnetName,
925
+ gatewayName,
926
+ connectionEnvelope,
927
+ options
928
+ },
929
+ updateVnetGatewayOperationSpec
930
+ );
931
+ }
932
+
933
+ /**
934
+ * Description for Get all routes that are associated with a Virtual Network in an App Service plan.
935
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
936
+ * @param name Name of the App Service plan.
937
+ * @param vnetName Name of the Virtual Network.
938
+ * @param options The options parameters.
939
+ */
940
+ listRoutesForVnet(
941
+ resourceGroupName: string,
942
+ name: string,
943
+ vnetName: string,
944
+ options?: AppServicePlansListRoutesForVnetOptionalParams
945
+ ): Promise<AppServicePlansListRoutesForVnetResponse> {
946
+ return this.client.sendOperationRequest(
947
+ { resourceGroupName, name, vnetName, options },
948
+ listRoutesForVnetOperationSpec
949
+ );
950
+ }
951
+
952
+ /**
953
+ * Description for Get a Virtual Network route in an App Service plan.
954
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
955
+ * @param name Name of the App Service plan.
956
+ * @param vnetName Name of the Virtual Network.
957
+ * @param routeName Name of the Virtual Network route.
958
+ * @param options The options parameters.
959
+ */
960
+ getRouteForVnet(
961
+ resourceGroupName: string,
962
+ name: string,
963
+ vnetName: string,
964
+ routeName: string,
965
+ options?: AppServicePlansGetRouteForVnetOptionalParams
966
+ ): Promise<AppServicePlansGetRouteForVnetResponse> {
967
+ return this.client.sendOperationRequest(
968
+ { resourceGroupName, name, vnetName, routeName, options },
969
+ getRouteForVnetOperationSpec
970
+ );
971
+ }
972
+
973
+ /**
974
+ * Description for Create or update a Virtual Network route in an App Service plan.
975
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
976
+ * @param name Name of the App Service plan.
977
+ * @param vnetName Name of the Virtual Network.
978
+ * @param routeName Name of the Virtual Network route.
979
+ * @param route Definition of the Virtual Network route.
980
+ * @param options The options parameters.
981
+ */
982
+ createOrUpdateVnetRoute(
983
+ resourceGroupName: string,
984
+ name: string,
985
+ vnetName: string,
986
+ routeName: string,
987
+ route: VnetRoute,
988
+ options?: AppServicePlansCreateOrUpdateVnetRouteOptionalParams
989
+ ): Promise<AppServicePlansCreateOrUpdateVnetRouteResponse> {
990
+ return this.client.sendOperationRequest(
991
+ { resourceGroupName, name, vnetName, routeName, route, options },
992
+ createOrUpdateVnetRouteOperationSpec
993
+ );
994
+ }
995
+
996
+ /**
997
+ * Description for Delete a Virtual Network route in an App Service plan.
998
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
999
+ * @param name Name of the App Service plan.
1000
+ * @param vnetName Name of the Virtual Network.
1001
+ * @param routeName Name of the Virtual Network route.
1002
+ * @param options The options parameters.
1003
+ */
1004
+ deleteVnetRoute(
1005
+ resourceGroupName: string,
1006
+ name: string,
1007
+ vnetName: string,
1008
+ routeName: string,
1009
+ options?: AppServicePlansDeleteVnetRouteOptionalParams
1010
+ ): Promise<void> {
1011
+ return this.client.sendOperationRequest(
1012
+ { resourceGroupName, name, vnetName, routeName, options },
1013
+ deleteVnetRouteOperationSpec
1014
+ );
1015
+ }
1016
+
1017
+ /**
1018
+ * Description for Create or update a Virtual Network route in an App Service plan.
1019
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1020
+ * @param name Name of the App Service plan.
1021
+ * @param vnetName Name of the Virtual Network.
1022
+ * @param routeName Name of the Virtual Network route.
1023
+ * @param route Definition of the Virtual Network route.
1024
+ * @param options The options parameters.
1025
+ */
1026
+ updateVnetRoute(
1027
+ resourceGroupName: string,
1028
+ name: string,
1029
+ vnetName: string,
1030
+ routeName: string,
1031
+ route: VnetRoute,
1032
+ options?: AppServicePlansUpdateVnetRouteOptionalParams
1033
+ ): Promise<AppServicePlansUpdateVnetRouteResponse> {
1034
+ return this.client.sendOperationRequest(
1035
+ { resourceGroupName, name, vnetName, routeName, route, options },
1036
+ updateVnetRouteOperationSpec
1037
+ );
1038
+ }
1039
+
1040
+ /**
1041
+ * Description for Reboot a worker machine in an App Service plan.
1042
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1043
+ * @param name Name of the App Service plan.
1044
+ * @param workerName Name of worker machine, which typically starts with RD.
1045
+ * @param options The options parameters.
1046
+ */
1047
+ rebootWorker(
1048
+ resourceGroupName: string,
1049
+ name: string,
1050
+ workerName: string,
1051
+ options?: AppServicePlansRebootWorkerOptionalParams
1052
+ ): Promise<void> {
1053
+ return this.client.sendOperationRequest(
1054
+ { resourceGroupName, name, workerName, options },
1055
+ rebootWorkerOperationSpec
1056
+ );
1057
+ }
1058
+
1059
+ /**
1060
+ * ListNext
1061
+ * @param nextLink The nextLink from the previous successful call to the List method.
1062
+ * @param options The options parameters.
1063
+ */
1064
+ private _listNext(
1065
+ nextLink: string,
1066
+ options?: AppServicePlansListNextOptionalParams
1067
+ ): Promise<AppServicePlansListNextResponse> {
1068
+ return this.client.sendOperationRequest(
1069
+ { nextLink, options },
1070
+ listNextOperationSpec
1071
+ );
1072
+ }
1073
+
1074
+ /**
1075
+ * ListByResourceGroupNext
1076
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1077
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1078
+ * @param options The options parameters.
1079
+ */
1080
+ private _listByResourceGroupNext(
1081
+ resourceGroupName: string,
1082
+ nextLink: string,
1083
+ options?: AppServicePlansListByResourceGroupNextOptionalParams
1084
+ ): Promise<AppServicePlansListByResourceGroupNextResponse> {
1085
+ return this.client.sendOperationRequest(
1086
+ { resourceGroupName, nextLink, options },
1087
+ listByResourceGroupNextOperationSpec
1088
+ );
1089
+ }
1090
+
1091
+ /**
1092
+ * ListWebAppsByHybridConnectionNext
1093
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1094
+ * @param name Name of the App Service plan.
1095
+ * @param namespaceName Name of the Hybrid Connection namespace.
1096
+ * @param relayName Name of the Hybrid Connection relay.
1097
+ * @param nextLink The nextLink from the previous successful call to the ListWebAppsByHybridConnection
1098
+ * method.
1099
+ * @param options The options parameters.
1100
+ */
1101
+ private _listWebAppsByHybridConnectionNext(
1102
+ resourceGroupName: string,
1103
+ name: string,
1104
+ namespaceName: string,
1105
+ relayName: string,
1106
+ nextLink: string,
1107
+ options?: AppServicePlansListWebAppsByHybridConnectionNextOptionalParams
1108
+ ): Promise<AppServicePlansListWebAppsByHybridConnectionNextResponse> {
1109
+ return this.client.sendOperationRequest(
1110
+ { resourceGroupName, name, namespaceName, relayName, nextLink, options },
1111
+ listWebAppsByHybridConnectionNextOperationSpec
1112
+ );
1113
+ }
1114
+
1115
+ /**
1116
+ * ListHybridConnectionsNext
1117
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1118
+ * @param name Name of the App Service plan.
1119
+ * @param nextLink The nextLink from the previous successful call to the ListHybridConnections method.
1120
+ * @param options The options parameters.
1121
+ */
1122
+ private _listHybridConnectionsNext(
1123
+ resourceGroupName: string,
1124
+ name: string,
1125
+ nextLink: string,
1126
+ options?: AppServicePlansListHybridConnectionsNextOptionalParams
1127
+ ): Promise<AppServicePlansListHybridConnectionsNextResponse> {
1128
+ return this.client.sendOperationRequest(
1129
+ { resourceGroupName, name, nextLink, options },
1130
+ listHybridConnectionsNextOperationSpec
1131
+ );
1132
+ }
1133
+
1134
+ /**
1135
+ * ListWebAppsNext
1136
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1137
+ * @param name Name of the App Service plan.
1138
+ * @param nextLink The nextLink from the previous successful call to the ListWebApps method.
1139
+ * @param options The options parameters.
1140
+ */
1141
+ private _listWebAppsNext(
1142
+ resourceGroupName: string,
1143
+ name: string,
1144
+ nextLink: string,
1145
+ options?: AppServicePlansListWebAppsNextOptionalParams
1146
+ ): Promise<AppServicePlansListWebAppsNextResponse> {
1147
+ return this.client.sendOperationRequest(
1148
+ { resourceGroupName, name, nextLink, options },
1149
+ listWebAppsNextOperationSpec
1150
+ );
1151
+ }
1152
+
1153
+ /**
1154
+ * ListUsagesNext
1155
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1156
+ * @param name Name of App Service Plan
1157
+ * @param nextLink The nextLink from the previous successful call to the ListUsages method.
1158
+ * @param options The options parameters.
1159
+ */
1160
+ private _listUsagesNext(
1161
+ resourceGroupName: string,
1162
+ name: string,
1163
+ nextLink: string,
1164
+ options?: AppServicePlansListUsagesNextOptionalParams
1165
+ ): Promise<AppServicePlansListUsagesNextResponse> {
1166
+ return this.client.sendOperationRequest(
1167
+ { resourceGroupName, name, nextLink, options },
1168
+ listUsagesNextOperationSpec
1169
+ );
1170
+ }
1171
+ }
1172
+ // Operation Specifications
1173
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1174
+
1175
+ const listOperationSpec: coreClient.OperationSpec = {
1176
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/serverfarms",
1177
+ httpMethod: "GET",
1178
+ responses: {
1179
+ 200: {
1180
+ bodyMapper: Mappers.AppServicePlanCollection
1181
+ },
1182
+ default: {
1183
+ bodyMapper: Mappers.DefaultErrorResponse
1184
+ }
1185
+ },
1186
+ queryParameters: [Parameters.apiVersion, Parameters.detailed],
1187
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1188
+ headerParameters: [Parameters.accept],
1189
+ serializer
1190
+ };
1191
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
1192
+ path:
1193
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms",
1194
+ httpMethod: "GET",
1195
+ responses: {
1196
+ 200: {
1197
+ bodyMapper: Mappers.AppServicePlanCollection
1198
+ },
1199
+ default: {
1200
+ bodyMapper: Mappers.DefaultErrorResponse
1201
+ }
1202
+ },
1203
+ queryParameters: [Parameters.apiVersion],
1204
+ urlParameters: [
1205
+ Parameters.$host,
1206
+ Parameters.subscriptionId,
1207
+ Parameters.resourceGroupName
1208
+ ],
1209
+ headerParameters: [Parameters.accept],
1210
+ serializer
1211
+ };
1212
+ const getOperationSpec: coreClient.OperationSpec = {
1213
+ path:
1214
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}",
1215
+ httpMethod: "GET",
1216
+ responses: {
1217
+ 200: {
1218
+ bodyMapper: Mappers.AppServicePlan
1219
+ },
1220
+ 404: {
1221
+ isError: true
1222
+ },
1223
+ default: {
1224
+ bodyMapper: Mappers.DefaultErrorResponse
1225
+ }
1226
+ },
1227
+ queryParameters: [Parameters.apiVersion],
1228
+ urlParameters: [
1229
+ Parameters.$host,
1230
+ Parameters.subscriptionId,
1231
+ Parameters.resourceGroupName,
1232
+ Parameters.name
1233
+ ],
1234
+ headerParameters: [Parameters.accept],
1235
+ serializer
1236
+ };
1237
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
1238
+ path:
1239
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}",
1240
+ httpMethod: "PUT",
1241
+ responses: {
1242
+ 200: {
1243
+ bodyMapper: Mappers.AppServicePlan
1244
+ },
1245
+ 201: {
1246
+ bodyMapper: Mappers.AppServicePlan
1247
+ },
1248
+ 202: {
1249
+ bodyMapper: Mappers.AppServicePlan
1250
+ },
1251
+ 204: {
1252
+ bodyMapper: Mappers.AppServicePlan
1253
+ },
1254
+ default: {
1255
+ bodyMapper: Mappers.DefaultErrorResponse
1256
+ }
1257
+ },
1258
+ requestBody: Parameters.appServicePlan,
1259
+ queryParameters: [Parameters.apiVersion],
1260
+ urlParameters: [
1261
+ Parameters.$host,
1262
+ Parameters.subscriptionId,
1263
+ Parameters.resourceGroupName,
1264
+ Parameters.name
1265
+ ],
1266
+ headerParameters: [Parameters.accept, Parameters.contentType],
1267
+ mediaType: "json",
1268
+ serializer
1269
+ };
1270
+ const deleteOperationSpec: coreClient.OperationSpec = {
1271
+ path:
1272
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}",
1273
+ httpMethod: "DELETE",
1274
+ responses: {
1275
+ 200: {},
1276
+ 204: {},
1277
+ default: {
1278
+ bodyMapper: Mappers.DefaultErrorResponse
1279
+ }
1280
+ },
1281
+ queryParameters: [Parameters.apiVersion],
1282
+ urlParameters: [
1283
+ Parameters.$host,
1284
+ Parameters.subscriptionId,
1285
+ Parameters.resourceGroupName,
1286
+ Parameters.name
1287
+ ],
1288
+ headerParameters: [Parameters.accept],
1289
+ serializer
1290
+ };
1291
+ const updateOperationSpec: coreClient.OperationSpec = {
1292
+ path:
1293
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}",
1294
+ httpMethod: "PATCH",
1295
+ responses: {
1296
+ 200: {
1297
+ bodyMapper: Mappers.AppServicePlan
1298
+ },
1299
+ 202: {
1300
+ bodyMapper: Mappers.AppServicePlan
1301
+ },
1302
+ default: {
1303
+ bodyMapper: Mappers.DefaultErrorResponse
1304
+ }
1305
+ },
1306
+ requestBody: Parameters.appServicePlan1,
1307
+ queryParameters: [Parameters.apiVersion],
1308
+ urlParameters: [
1309
+ Parameters.$host,
1310
+ Parameters.subscriptionId,
1311
+ Parameters.resourceGroupName,
1312
+ Parameters.name
1313
+ ],
1314
+ headerParameters: [Parameters.accept, Parameters.contentType],
1315
+ mediaType: "json",
1316
+ serializer
1317
+ };
1318
+ const listCapabilitiesOperationSpec: coreClient.OperationSpec = {
1319
+ path:
1320
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/capabilities",
1321
+ httpMethod: "GET",
1322
+ responses: {
1323
+ 200: {
1324
+ bodyMapper: {
1325
+ type: {
1326
+ name: "Sequence",
1327
+ element: { type: { name: "Composite", className: "Capability" } }
1328
+ }
1329
+ }
1330
+ },
1331
+ default: {
1332
+ bodyMapper: Mappers.DefaultErrorResponse
1333
+ }
1334
+ },
1335
+ queryParameters: [Parameters.apiVersion],
1336
+ urlParameters: [
1337
+ Parameters.$host,
1338
+ Parameters.subscriptionId,
1339
+ Parameters.resourceGroupName,
1340
+ Parameters.name
1341
+ ],
1342
+ headerParameters: [Parameters.accept],
1343
+ serializer
1344
+ };
1345
+ const getHybridConnectionOperationSpec: coreClient.OperationSpec = {
1346
+ path:
1347
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}",
1348
+ httpMethod: "GET",
1349
+ responses: {
1350
+ 200: {
1351
+ bodyMapper: Mappers.HybridConnection
1352
+ },
1353
+ default: {
1354
+ bodyMapper: Mappers.DefaultErrorResponse
1355
+ }
1356
+ },
1357
+ queryParameters: [Parameters.apiVersion],
1358
+ urlParameters: [
1359
+ Parameters.$host,
1360
+ Parameters.subscriptionId,
1361
+ Parameters.resourceGroupName,
1362
+ Parameters.name,
1363
+ Parameters.namespaceName,
1364
+ Parameters.relayName
1365
+ ],
1366
+ headerParameters: [Parameters.accept],
1367
+ serializer
1368
+ };
1369
+ const deleteHybridConnectionOperationSpec: coreClient.OperationSpec = {
1370
+ path:
1371
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}",
1372
+ httpMethod: "DELETE",
1373
+ responses: {
1374
+ 200: {},
1375
+ 204: {},
1376
+ default: {
1377
+ bodyMapper: Mappers.DefaultErrorResponse
1378
+ }
1379
+ },
1380
+ queryParameters: [Parameters.apiVersion],
1381
+ urlParameters: [
1382
+ Parameters.$host,
1383
+ Parameters.subscriptionId,
1384
+ Parameters.resourceGroupName,
1385
+ Parameters.name,
1386
+ Parameters.namespaceName,
1387
+ Parameters.relayName
1388
+ ],
1389
+ headerParameters: [Parameters.accept],
1390
+ serializer
1391
+ };
1392
+ const listHybridConnectionKeysOperationSpec: coreClient.OperationSpec = {
1393
+ path:
1394
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys",
1395
+ httpMethod: "POST",
1396
+ responses: {
1397
+ 200: {
1398
+ bodyMapper: Mappers.HybridConnectionKey
1399
+ },
1400
+ default: {
1401
+ bodyMapper: Mappers.DefaultErrorResponse
1402
+ }
1403
+ },
1404
+ queryParameters: [Parameters.apiVersion],
1405
+ urlParameters: [
1406
+ Parameters.$host,
1407
+ Parameters.subscriptionId,
1408
+ Parameters.resourceGroupName,
1409
+ Parameters.name,
1410
+ Parameters.namespaceName,
1411
+ Parameters.relayName
1412
+ ],
1413
+ headerParameters: [Parameters.accept],
1414
+ serializer
1415
+ };
1416
+ const listWebAppsByHybridConnectionOperationSpec: coreClient.OperationSpec = {
1417
+ path:
1418
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/sites",
1419
+ httpMethod: "GET",
1420
+ responses: {
1421
+ 200: {
1422
+ bodyMapper: Mappers.ResourceCollection
1423
+ },
1424
+ default: {
1425
+ bodyMapper: Mappers.DefaultErrorResponse
1426
+ }
1427
+ },
1428
+ queryParameters: [Parameters.apiVersion],
1429
+ urlParameters: [
1430
+ Parameters.$host,
1431
+ Parameters.subscriptionId,
1432
+ Parameters.resourceGroupName,
1433
+ Parameters.name,
1434
+ Parameters.namespaceName,
1435
+ Parameters.relayName
1436
+ ],
1437
+ headerParameters: [Parameters.accept],
1438
+ serializer
1439
+ };
1440
+ const getHybridConnectionPlanLimitOperationSpec: coreClient.OperationSpec = {
1441
+ path:
1442
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionPlanLimits/limit",
1443
+ httpMethod: "GET",
1444
+ responses: {
1445
+ 200: {
1446
+ bodyMapper: Mappers.HybridConnectionLimits
1447
+ },
1448
+ default: {
1449
+ bodyMapper: Mappers.DefaultErrorResponse
1450
+ }
1451
+ },
1452
+ queryParameters: [Parameters.apiVersion],
1453
+ urlParameters: [
1454
+ Parameters.$host,
1455
+ Parameters.subscriptionId,
1456
+ Parameters.resourceGroupName,
1457
+ Parameters.name
1458
+ ],
1459
+ headerParameters: [Parameters.accept],
1460
+ serializer
1461
+ };
1462
+ const listHybridConnectionsOperationSpec: coreClient.OperationSpec = {
1463
+ path:
1464
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionRelays",
1465
+ httpMethod: "GET",
1466
+ responses: {
1467
+ 200: {
1468
+ bodyMapper: Mappers.HybridConnectionCollection
1469
+ },
1470
+ default: {
1471
+ bodyMapper: Mappers.DefaultErrorResponse
1472
+ }
1473
+ },
1474
+ queryParameters: [Parameters.apiVersion],
1475
+ urlParameters: [
1476
+ Parameters.$host,
1477
+ Parameters.subscriptionId,
1478
+ Parameters.resourceGroupName,
1479
+ Parameters.name
1480
+ ],
1481
+ headerParameters: [Parameters.accept],
1482
+ serializer
1483
+ };
1484
+ const restartWebAppsOperationSpec: coreClient.OperationSpec = {
1485
+ path:
1486
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites",
1487
+ httpMethod: "POST",
1488
+ responses: {
1489
+ 204: {},
1490
+ default: {
1491
+ bodyMapper: Mappers.DefaultErrorResponse
1492
+ }
1493
+ },
1494
+ queryParameters: [Parameters.apiVersion, Parameters.softRestart],
1495
+ urlParameters: [
1496
+ Parameters.$host,
1497
+ Parameters.subscriptionId,
1498
+ Parameters.resourceGroupName,
1499
+ Parameters.name
1500
+ ],
1501
+ headerParameters: [Parameters.accept],
1502
+ serializer
1503
+ };
1504
+ const listWebAppsOperationSpec: coreClient.OperationSpec = {
1505
+ path:
1506
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/sites",
1507
+ httpMethod: "GET",
1508
+ responses: {
1509
+ 200: {
1510
+ bodyMapper: Mappers.WebAppCollection
1511
+ },
1512
+ default: {
1513
+ bodyMapper: Mappers.DefaultErrorResponse
1514
+ }
1515
+ },
1516
+ queryParameters: [
1517
+ Parameters.apiVersion,
1518
+ Parameters.filter,
1519
+ Parameters.skipToken,
1520
+ Parameters.top
1521
+ ],
1522
+ urlParameters: [
1523
+ Parameters.$host,
1524
+ Parameters.subscriptionId,
1525
+ Parameters.resourceGroupName,
1526
+ Parameters.name
1527
+ ],
1528
+ headerParameters: [Parameters.accept],
1529
+ serializer
1530
+ };
1531
+ const getServerFarmSkusOperationSpec: coreClient.OperationSpec = {
1532
+ path:
1533
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus",
1534
+ httpMethod: "GET",
1535
+ responses: {
1536
+ 200: {
1537
+ bodyMapper: {
1538
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
1539
+ }
1540
+ },
1541
+ default: {
1542
+ bodyMapper: Mappers.DefaultErrorResponse
1543
+ }
1544
+ },
1545
+ queryParameters: [Parameters.apiVersion],
1546
+ urlParameters: [
1547
+ Parameters.$host,
1548
+ Parameters.subscriptionId,
1549
+ Parameters.resourceGroupName,
1550
+ Parameters.name
1551
+ ],
1552
+ headerParameters: [Parameters.accept],
1553
+ serializer
1554
+ };
1555
+ const listUsagesOperationSpec: coreClient.OperationSpec = {
1556
+ path:
1557
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/usages",
1558
+ httpMethod: "GET",
1559
+ responses: {
1560
+ 200: {
1561
+ bodyMapper: Mappers.CsmUsageQuotaCollection
1562
+ },
1563
+ default: {
1564
+ bodyMapper: Mappers.DefaultErrorResponse
1565
+ }
1566
+ },
1567
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
1568
+ urlParameters: [
1569
+ Parameters.$host,
1570
+ Parameters.subscriptionId,
1571
+ Parameters.resourceGroupName,
1572
+ Parameters.name
1573
+ ],
1574
+ headerParameters: [Parameters.accept],
1575
+ serializer
1576
+ };
1577
+ const listVnetsOperationSpec: coreClient.OperationSpec = {
1578
+ path:
1579
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections",
1580
+ httpMethod: "GET",
1581
+ responses: {
1582
+ 200: {
1583
+ bodyMapper: {
1584
+ type: {
1585
+ name: "Sequence",
1586
+ element: {
1587
+ type: { name: "Composite", className: "VnetInfoResource" }
1588
+ }
1589
+ }
1590
+ }
1591
+ },
1592
+ default: {
1593
+ bodyMapper: Mappers.DefaultErrorResponse
1594
+ }
1595
+ },
1596
+ queryParameters: [Parameters.apiVersion],
1597
+ urlParameters: [
1598
+ Parameters.$host,
1599
+ Parameters.subscriptionId,
1600
+ Parameters.resourceGroupName,
1601
+ Parameters.name
1602
+ ],
1603
+ headerParameters: [Parameters.accept],
1604
+ serializer
1605
+ };
1606
+ const getVnetFromServerFarmOperationSpec: coreClient.OperationSpec = {
1607
+ path:
1608
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}",
1609
+ httpMethod: "GET",
1610
+ responses: {
1611
+ 200: {
1612
+ bodyMapper: Mappers.VnetInfoResource
1613
+ },
1614
+ 404: {
1615
+ isError: true
1616
+ },
1617
+ default: {
1618
+ bodyMapper: Mappers.DefaultErrorResponse
1619
+ }
1620
+ },
1621
+ queryParameters: [Parameters.apiVersion],
1622
+ urlParameters: [
1623
+ Parameters.$host,
1624
+ Parameters.subscriptionId,
1625
+ Parameters.resourceGroupName,
1626
+ Parameters.name,
1627
+ Parameters.vnetName
1628
+ ],
1629
+ headerParameters: [Parameters.accept],
1630
+ serializer
1631
+ };
1632
+ const getVnetGatewayOperationSpec: coreClient.OperationSpec = {
1633
+ path:
1634
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}",
1635
+ httpMethod: "GET",
1636
+ responses: {
1637
+ 200: {
1638
+ bodyMapper: Mappers.VnetGateway
1639
+ },
1640
+ default: {
1641
+ bodyMapper: Mappers.DefaultErrorResponse
1642
+ }
1643
+ },
1644
+ queryParameters: [Parameters.apiVersion],
1645
+ urlParameters: [
1646
+ Parameters.$host,
1647
+ Parameters.subscriptionId,
1648
+ Parameters.resourceGroupName,
1649
+ Parameters.name,
1650
+ Parameters.vnetName,
1651
+ Parameters.gatewayName
1652
+ ],
1653
+ headerParameters: [Parameters.accept],
1654
+ serializer
1655
+ };
1656
+ const updateVnetGatewayOperationSpec: coreClient.OperationSpec = {
1657
+ path:
1658
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}",
1659
+ httpMethod: "PUT",
1660
+ responses: {
1661
+ 200: {
1662
+ bodyMapper: Mappers.VnetGateway
1663
+ },
1664
+ default: {
1665
+ bodyMapper: Mappers.DefaultErrorResponse
1666
+ }
1667
+ },
1668
+ requestBody: Parameters.connectionEnvelope,
1669
+ queryParameters: [Parameters.apiVersion],
1670
+ urlParameters: [
1671
+ Parameters.$host,
1672
+ Parameters.subscriptionId,
1673
+ Parameters.resourceGroupName,
1674
+ Parameters.name,
1675
+ Parameters.vnetName,
1676
+ Parameters.gatewayName
1677
+ ],
1678
+ headerParameters: [Parameters.accept, Parameters.contentType],
1679
+ mediaType: "json",
1680
+ serializer
1681
+ };
1682
+ const listRoutesForVnetOperationSpec: coreClient.OperationSpec = {
1683
+ path:
1684
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes",
1685
+ httpMethod: "GET",
1686
+ responses: {
1687
+ 200: {
1688
+ bodyMapper: {
1689
+ type: {
1690
+ name: "Sequence",
1691
+ element: { type: { name: "Composite", className: "VnetRoute" } }
1692
+ }
1693
+ }
1694
+ },
1695
+ default: {
1696
+ bodyMapper: Mappers.DefaultErrorResponse
1697
+ }
1698
+ },
1699
+ queryParameters: [Parameters.apiVersion],
1700
+ urlParameters: [
1701
+ Parameters.$host,
1702
+ Parameters.subscriptionId,
1703
+ Parameters.resourceGroupName,
1704
+ Parameters.name,
1705
+ Parameters.vnetName
1706
+ ],
1707
+ headerParameters: [Parameters.accept],
1708
+ serializer
1709
+ };
1710
+ const getRouteForVnetOperationSpec: coreClient.OperationSpec = {
1711
+ path:
1712
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}",
1713
+ httpMethod: "GET",
1714
+ responses: {
1715
+ 200: {
1716
+ bodyMapper: {
1717
+ type: {
1718
+ name: "Sequence",
1719
+ element: { type: { name: "Composite", className: "VnetRoute" } }
1720
+ }
1721
+ }
1722
+ },
1723
+ 404: {
1724
+ isError: true
1725
+ },
1726
+ default: {
1727
+ bodyMapper: Mappers.DefaultErrorResponse
1728
+ }
1729
+ },
1730
+ queryParameters: [Parameters.apiVersion],
1731
+ urlParameters: [
1732
+ Parameters.$host,
1733
+ Parameters.subscriptionId,
1734
+ Parameters.resourceGroupName,
1735
+ Parameters.name,
1736
+ Parameters.vnetName,
1737
+ Parameters.routeName
1738
+ ],
1739
+ headerParameters: [Parameters.accept],
1740
+ serializer
1741
+ };
1742
+ const createOrUpdateVnetRouteOperationSpec: coreClient.OperationSpec = {
1743
+ path:
1744
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}",
1745
+ httpMethod: "PUT",
1746
+ responses: {
1747
+ 200: {
1748
+ bodyMapper: Mappers.VnetRoute
1749
+ },
1750
+ 400: {
1751
+ isError: true
1752
+ },
1753
+ 404: {
1754
+ isError: true
1755
+ },
1756
+ default: {
1757
+ bodyMapper: Mappers.DefaultErrorResponse
1758
+ }
1759
+ },
1760
+ requestBody: Parameters.route,
1761
+ queryParameters: [Parameters.apiVersion],
1762
+ urlParameters: [
1763
+ Parameters.$host,
1764
+ Parameters.subscriptionId,
1765
+ Parameters.resourceGroupName,
1766
+ Parameters.name,
1767
+ Parameters.vnetName,
1768
+ Parameters.routeName
1769
+ ],
1770
+ headerParameters: [Parameters.accept, Parameters.contentType],
1771
+ mediaType: "json",
1772
+ serializer
1773
+ };
1774
+ const deleteVnetRouteOperationSpec: coreClient.OperationSpec = {
1775
+ path:
1776
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}",
1777
+ httpMethod: "DELETE",
1778
+ responses: {
1779
+ 200: {},
1780
+ 404: {
1781
+ isError: true
1782
+ },
1783
+ default: {
1784
+ bodyMapper: Mappers.DefaultErrorResponse
1785
+ }
1786
+ },
1787
+ queryParameters: [Parameters.apiVersion],
1788
+ urlParameters: [
1789
+ Parameters.$host,
1790
+ Parameters.subscriptionId,
1791
+ Parameters.resourceGroupName,
1792
+ Parameters.name,
1793
+ Parameters.vnetName,
1794
+ Parameters.routeName
1795
+ ],
1796
+ headerParameters: [Parameters.accept],
1797
+ serializer
1798
+ };
1799
+ const updateVnetRouteOperationSpec: coreClient.OperationSpec = {
1800
+ path:
1801
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}",
1802
+ httpMethod: "PATCH",
1803
+ responses: {
1804
+ 200: {
1805
+ bodyMapper: Mappers.VnetRoute
1806
+ },
1807
+ 400: {
1808
+ isError: true
1809
+ },
1810
+ 404: {
1811
+ isError: true
1812
+ },
1813
+ default: {
1814
+ bodyMapper: Mappers.DefaultErrorResponse
1815
+ }
1816
+ },
1817
+ requestBody: Parameters.route,
1818
+ queryParameters: [Parameters.apiVersion],
1819
+ urlParameters: [
1820
+ Parameters.$host,
1821
+ Parameters.subscriptionId,
1822
+ Parameters.resourceGroupName,
1823
+ Parameters.name,
1824
+ Parameters.vnetName,
1825
+ Parameters.routeName
1826
+ ],
1827
+ headerParameters: [Parameters.accept, Parameters.contentType],
1828
+ mediaType: "json",
1829
+ serializer
1830
+ };
1831
+ const rebootWorkerOperationSpec: coreClient.OperationSpec = {
1832
+ path:
1833
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot",
1834
+ httpMethod: "POST",
1835
+ responses: {
1836
+ 204: {},
1837
+ default: {
1838
+ bodyMapper: Mappers.DefaultErrorResponse
1839
+ }
1840
+ },
1841
+ queryParameters: [Parameters.apiVersion],
1842
+ urlParameters: [
1843
+ Parameters.$host,
1844
+ Parameters.subscriptionId,
1845
+ Parameters.resourceGroupName,
1846
+ Parameters.name,
1847
+ Parameters.workerName
1848
+ ],
1849
+ headerParameters: [Parameters.accept],
1850
+ serializer
1851
+ };
1852
+ const listNextOperationSpec: coreClient.OperationSpec = {
1853
+ path: "{nextLink}",
1854
+ httpMethod: "GET",
1855
+ responses: {
1856
+ 200: {
1857
+ bodyMapper: Mappers.AppServicePlanCollection
1858
+ },
1859
+ default: {
1860
+ bodyMapper: Mappers.DefaultErrorResponse
1861
+ }
1862
+ },
1863
+ queryParameters: [Parameters.apiVersion, Parameters.detailed],
1864
+ urlParameters: [
1865
+ Parameters.$host,
1866
+ Parameters.subscriptionId,
1867
+ Parameters.nextLink
1868
+ ],
1869
+ headerParameters: [Parameters.accept],
1870
+ serializer
1871
+ };
1872
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1873
+ path: "{nextLink}",
1874
+ httpMethod: "GET",
1875
+ responses: {
1876
+ 200: {
1877
+ bodyMapper: Mappers.AppServicePlanCollection
1878
+ },
1879
+ default: {
1880
+ bodyMapper: Mappers.DefaultErrorResponse
1881
+ }
1882
+ },
1883
+ queryParameters: [Parameters.apiVersion],
1884
+ urlParameters: [
1885
+ Parameters.$host,
1886
+ Parameters.subscriptionId,
1887
+ Parameters.resourceGroupName,
1888
+ Parameters.nextLink
1889
+ ],
1890
+ headerParameters: [Parameters.accept],
1891
+ serializer
1892
+ };
1893
+ const listWebAppsByHybridConnectionNextOperationSpec: coreClient.OperationSpec = {
1894
+ path: "{nextLink}",
1895
+ httpMethod: "GET",
1896
+ responses: {
1897
+ 200: {
1898
+ bodyMapper: Mappers.ResourceCollection
1899
+ },
1900
+ default: {
1901
+ bodyMapper: Mappers.DefaultErrorResponse
1902
+ }
1903
+ },
1904
+ queryParameters: [Parameters.apiVersion],
1905
+ urlParameters: [
1906
+ Parameters.$host,
1907
+ Parameters.subscriptionId,
1908
+ Parameters.resourceGroupName,
1909
+ Parameters.name,
1910
+ Parameters.nextLink,
1911
+ Parameters.namespaceName,
1912
+ Parameters.relayName
1913
+ ],
1914
+ headerParameters: [Parameters.accept],
1915
+ serializer
1916
+ };
1917
+ const listHybridConnectionsNextOperationSpec: coreClient.OperationSpec = {
1918
+ path: "{nextLink}",
1919
+ httpMethod: "GET",
1920
+ responses: {
1921
+ 200: {
1922
+ bodyMapper: Mappers.HybridConnectionCollection
1923
+ },
1924
+ default: {
1925
+ bodyMapper: Mappers.DefaultErrorResponse
1926
+ }
1927
+ },
1928
+ queryParameters: [Parameters.apiVersion],
1929
+ urlParameters: [
1930
+ Parameters.$host,
1931
+ Parameters.subscriptionId,
1932
+ Parameters.resourceGroupName,
1933
+ Parameters.name,
1934
+ Parameters.nextLink
1935
+ ],
1936
+ headerParameters: [Parameters.accept],
1937
+ serializer
1938
+ };
1939
+ const listWebAppsNextOperationSpec: coreClient.OperationSpec = {
1940
+ path: "{nextLink}",
1941
+ httpMethod: "GET",
1942
+ responses: {
1943
+ 200: {
1944
+ bodyMapper: Mappers.WebAppCollection
1945
+ },
1946
+ default: {
1947
+ bodyMapper: Mappers.DefaultErrorResponse
1948
+ }
1949
+ },
1950
+ queryParameters: [
1951
+ Parameters.apiVersion,
1952
+ Parameters.filter,
1953
+ Parameters.skipToken,
1954
+ Parameters.top
1955
+ ],
1956
+ urlParameters: [
1957
+ Parameters.$host,
1958
+ Parameters.subscriptionId,
1959
+ Parameters.resourceGroupName,
1960
+ Parameters.name,
1961
+ Parameters.nextLink
1962
+ ],
1963
+ headerParameters: [Parameters.accept],
1964
+ serializer
1965
+ };
1966
+ const listUsagesNextOperationSpec: coreClient.OperationSpec = {
1967
+ path: "{nextLink}",
1968
+ httpMethod: "GET",
1969
+ responses: {
1970
+ 200: {
1971
+ bodyMapper: Mappers.CsmUsageQuotaCollection
1972
+ },
1973
+ default: {
1974
+ bodyMapper: Mappers.DefaultErrorResponse
1975
+ }
1976
+ },
1977
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
1978
+ urlParameters: [
1979
+ Parameters.$host,
1980
+ Parameters.subscriptionId,
1981
+ Parameters.resourceGroupName,
1982
+ Parameters.name,
1983
+ Parameters.nextLink
1984
+ ],
1985
+ headerParameters: [Parameters.accept],
1986
+ serializer
1987
+ };