@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,706 @@
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 } 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
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class representing a Provider. */
15
+ export class ProviderImpl {
16
+ /**
17
+ * Initialize a new instance of the class Provider class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Description for Get available application frameworks and their versions
25
+ * @param options The options parameters.
26
+ */
27
+ listAvailableStacks(options) {
28
+ const iter = this.getAvailableStacksPagingAll(options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: () => {
37
+ return this.getAvailableStacksPagingPage(options);
38
+ }
39
+ };
40
+ }
41
+ getAvailableStacksPagingPage(options) {
42
+ return __asyncGenerator(this, arguments, function* getAvailableStacksPagingPage_1() {
43
+ let result = yield __await(this._getAvailableStacks(options));
44
+ yield yield __await(result.value || []);
45
+ let continuationToken = result.nextLink;
46
+ while (continuationToken) {
47
+ result = yield __await(this._getAvailableStacksNext(continuationToken, options));
48
+ continuationToken = result.nextLink;
49
+ yield yield __await(result.value || []);
50
+ }
51
+ });
52
+ }
53
+ getAvailableStacksPagingAll(options) {
54
+ return __asyncGenerator(this, arguments, function* getAvailableStacksPagingAll_1() {
55
+ var e_1, _a;
56
+ try {
57
+ for (var _b = __asyncValues(this.getAvailableStacksPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
58
+ const page = _c.value;
59
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
+ }
61
+ }
62
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
+ finally {
64
+ try {
65
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ });
70
+ }
71
+ /**
72
+ * Description for Get available Function app frameworks and their versions
73
+ * @param options The options parameters.
74
+ */
75
+ listFunctionAppStacks(options) {
76
+ const iter = this.getFunctionAppStacksPagingAll(options);
77
+ return {
78
+ next() {
79
+ return iter.next();
80
+ },
81
+ [Symbol.asyncIterator]() {
82
+ return this;
83
+ },
84
+ byPage: () => {
85
+ return this.getFunctionAppStacksPagingPage(options);
86
+ }
87
+ };
88
+ }
89
+ getFunctionAppStacksPagingPage(options) {
90
+ return __asyncGenerator(this, arguments, function* getFunctionAppStacksPagingPage_1() {
91
+ let result = yield __await(this._getFunctionAppStacks(options));
92
+ yield yield __await(result.value || []);
93
+ let continuationToken = result.nextLink;
94
+ while (continuationToken) {
95
+ result = yield __await(this._getFunctionAppStacksNext(continuationToken, options));
96
+ continuationToken = result.nextLink;
97
+ yield yield __await(result.value || []);
98
+ }
99
+ });
100
+ }
101
+ getFunctionAppStacksPagingAll(options) {
102
+ return __asyncGenerator(this, arguments, function* getFunctionAppStacksPagingAll_1() {
103
+ var e_2, _a;
104
+ try {
105
+ for (var _b = __asyncValues(this.getFunctionAppStacksPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
106
+ const page = _c.value;
107
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
108
+ }
109
+ }
110
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
111
+ finally {
112
+ try {
113
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
114
+ }
115
+ finally { if (e_2) throw e_2.error; }
116
+ }
117
+ });
118
+ }
119
+ /**
120
+ * Description for Get available Function app frameworks and their versions for location
121
+ * @param location Function App stack location.
122
+ * @param options The options parameters.
123
+ */
124
+ listFunctionAppStacksForLocation(location, options) {
125
+ const iter = this.getFunctionAppStacksForLocationPagingAll(location, options);
126
+ return {
127
+ next() {
128
+ return iter.next();
129
+ },
130
+ [Symbol.asyncIterator]() {
131
+ return this;
132
+ },
133
+ byPage: () => {
134
+ return this.getFunctionAppStacksForLocationPagingPage(location, options);
135
+ }
136
+ };
137
+ }
138
+ getFunctionAppStacksForLocationPagingPage(location, options) {
139
+ return __asyncGenerator(this, arguments, function* getFunctionAppStacksForLocationPagingPage_1() {
140
+ let result = yield __await(this._getFunctionAppStacksForLocation(location, options));
141
+ yield yield __await(result.value || []);
142
+ let continuationToken = result.nextLink;
143
+ while (continuationToken) {
144
+ result = yield __await(this._getFunctionAppStacksForLocationNext(location, continuationToken, options));
145
+ continuationToken = result.nextLink;
146
+ yield yield __await(result.value || []);
147
+ }
148
+ });
149
+ }
150
+ getFunctionAppStacksForLocationPagingAll(location, options) {
151
+ return __asyncGenerator(this, arguments, function* getFunctionAppStacksForLocationPagingAll_1() {
152
+ var e_3, _a;
153
+ try {
154
+ for (var _b = __asyncValues(this.getFunctionAppStacksForLocationPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
155
+ const page = _c.value;
156
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
157
+ }
158
+ }
159
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
160
+ finally {
161
+ try {
162
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
163
+ }
164
+ finally { if (e_3) throw e_3.error; }
165
+ }
166
+ });
167
+ }
168
+ /**
169
+ * Description for Get available Web app frameworks and their versions for location
170
+ * @param location Web App stack location.
171
+ * @param options The options parameters.
172
+ */
173
+ listWebAppStacksForLocation(location, options) {
174
+ const iter = this.getWebAppStacksForLocationPagingAll(location, options);
175
+ return {
176
+ next() {
177
+ return iter.next();
178
+ },
179
+ [Symbol.asyncIterator]() {
180
+ return this;
181
+ },
182
+ byPage: () => {
183
+ return this.getWebAppStacksForLocationPagingPage(location, options);
184
+ }
185
+ };
186
+ }
187
+ getWebAppStacksForLocationPagingPage(location, options) {
188
+ return __asyncGenerator(this, arguments, function* getWebAppStacksForLocationPagingPage_1() {
189
+ let result = yield __await(this._getWebAppStacksForLocation(location, options));
190
+ yield yield __await(result.value || []);
191
+ let continuationToken = result.nextLink;
192
+ while (continuationToken) {
193
+ result = yield __await(this._getWebAppStacksForLocationNext(location, continuationToken, options));
194
+ continuationToken = result.nextLink;
195
+ yield yield __await(result.value || []);
196
+ }
197
+ });
198
+ }
199
+ getWebAppStacksForLocationPagingAll(location, options) {
200
+ return __asyncGenerator(this, arguments, function* getWebAppStacksForLocationPagingAll_1() {
201
+ var e_4, _a;
202
+ try {
203
+ for (var _b = __asyncValues(this.getWebAppStacksForLocationPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
204
+ const page = _c.value;
205
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
206
+ }
207
+ }
208
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
209
+ finally {
210
+ try {
211
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
212
+ }
213
+ finally { if (e_4) throw e_4.error; }
214
+ }
215
+ });
216
+ }
217
+ /**
218
+ * Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
219
+ * resource metric definitions
220
+ * @param options The options parameters.
221
+ */
222
+ listOperations(options) {
223
+ const iter = this.listOperationsPagingAll(options);
224
+ return {
225
+ next() {
226
+ return iter.next();
227
+ },
228
+ [Symbol.asyncIterator]() {
229
+ return this;
230
+ },
231
+ byPage: () => {
232
+ return this.listOperationsPagingPage(options);
233
+ }
234
+ };
235
+ }
236
+ listOperationsPagingPage(options) {
237
+ return __asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
238
+ let result = yield __await(this._listOperations(options));
239
+ yield yield __await(result.value || []);
240
+ let continuationToken = result.nextLink;
241
+ while (continuationToken) {
242
+ result = yield __await(this._listOperationsNext(continuationToken, options));
243
+ continuationToken = result.nextLink;
244
+ yield yield __await(result.value || []);
245
+ }
246
+ });
247
+ }
248
+ listOperationsPagingAll(options) {
249
+ return __asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
250
+ var e_5, _a;
251
+ try {
252
+ for (var _b = __asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
253
+ const page = _c.value;
254
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
255
+ }
256
+ }
257
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
258
+ finally {
259
+ try {
260
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
261
+ }
262
+ finally { if (e_5) throw e_5.error; }
263
+ }
264
+ });
265
+ }
266
+ /**
267
+ * Description for Get available Web app frameworks and their versions
268
+ * @param options The options parameters.
269
+ */
270
+ listWebAppStacks(options) {
271
+ const iter = this.getWebAppStacksPagingAll(options);
272
+ return {
273
+ next() {
274
+ return iter.next();
275
+ },
276
+ [Symbol.asyncIterator]() {
277
+ return this;
278
+ },
279
+ byPage: () => {
280
+ return this.getWebAppStacksPagingPage(options);
281
+ }
282
+ };
283
+ }
284
+ getWebAppStacksPagingPage(options) {
285
+ return __asyncGenerator(this, arguments, function* getWebAppStacksPagingPage_1() {
286
+ let result = yield __await(this._getWebAppStacks(options));
287
+ yield yield __await(result.value || []);
288
+ let continuationToken = result.nextLink;
289
+ while (continuationToken) {
290
+ result = yield __await(this._getWebAppStacksNext(continuationToken, options));
291
+ continuationToken = result.nextLink;
292
+ yield yield __await(result.value || []);
293
+ }
294
+ });
295
+ }
296
+ getWebAppStacksPagingAll(options) {
297
+ return __asyncGenerator(this, arguments, function* getWebAppStacksPagingAll_1() {
298
+ var e_6, _a;
299
+ try {
300
+ for (var _b = __asyncValues(this.getWebAppStacksPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
301
+ const page = _c.value;
302
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
303
+ }
304
+ }
305
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
306
+ finally {
307
+ try {
308
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
309
+ }
310
+ finally { if (e_6) throw e_6.error; }
311
+ }
312
+ });
313
+ }
314
+ /**
315
+ * Description for Get available application frameworks and their versions
316
+ * @param options The options parameters.
317
+ */
318
+ listAvailableStacksOnPrem(options) {
319
+ const iter = this.getAvailableStacksOnPremPagingAll(options);
320
+ return {
321
+ next() {
322
+ return iter.next();
323
+ },
324
+ [Symbol.asyncIterator]() {
325
+ return this;
326
+ },
327
+ byPage: () => {
328
+ return this.getAvailableStacksOnPremPagingPage(options);
329
+ }
330
+ };
331
+ }
332
+ getAvailableStacksOnPremPagingPage(options) {
333
+ return __asyncGenerator(this, arguments, function* getAvailableStacksOnPremPagingPage_1() {
334
+ let result = yield __await(this._getAvailableStacksOnPrem(options));
335
+ yield yield __await(result.value || []);
336
+ let continuationToken = result.nextLink;
337
+ while (continuationToken) {
338
+ result = yield __await(this._getAvailableStacksOnPremNext(continuationToken, options));
339
+ continuationToken = result.nextLink;
340
+ yield yield __await(result.value || []);
341
+ }
342
+ });
343
+ }
344
+ getAvailableStacksOnPremPagingAll(options) {
345
+ return __asyncGenerator(this, arguments, function* getAvailableStacksOnPremPagingAll_1() {
346
+ var e_7, _a;
347
+ try {
348
+ for (var _b = __asyncValues(this.getAvailableStacksOnPremPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
349
+ const page = _c.value;
350
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
351
+ }
352
+ }
353
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
354
+ finally {
355
+ try {
356
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
357
+ }
358
+ finally { if (e_7) throw e_7.error; }
359
+ }
360
+ });
361
+ }
362
+ /**
363
+ * Description for Get available application frameworks and their versions
364
+ * @param options The options parameters.
365
+ */
366
+ _getAvailableStacks(options) {
367
+ return this.client.sendOperationRequest({ options }, getAvailableStacksOperationSpec);
368
+ }
369
+ /**
370
+ * Description for Get available Function app frameworks and their versions
371
+ * @param options The options parameters.
372
+ */
373
+ _getFunctionAppStacks(options) {
374
+ return this.client.sendOperationRequest({ options }, getFunctionAppStacksOperationSpec);
375
+ }
376
+ /**
377
+ * Description for Get available Function app frameworks and their versions for location
378
+ * @param location Function App stack location.
379
+ * @param options The options parameters.
380
+ */
381
+ _getFunctionAppStacksForLocation(location, options) {
382
+ return this.client.sendOperationRequest({ location, options }, getFunctionAppStacksForLocationOperationSpec);
383
+ }
384
+ /**
385
+ * Description for Get available Web app frameworks and their versions for location
386
+ * @param location Web App stack location.
387
+ * @param options The options parameters.
388
+ */
389
+ _getWebAppStacksForLocation(location, options) {
390
+ return this.client.sendOperationRequest({ location, options }, getWebAppStacksForLocationOperationSpec);
391
+ }
392
+ /**
393
+ * Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
394
+ * resource metric definitions
395
+ * @param options The options parameters.
396
+ */
397
+ _listOperations(options) {
398
+ return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
399
+ }
400
+ /**
401
+ * Description for Get available Web app frameworks and their versions
402
+ * @param options The options parameters.
403
+ */
404
+ _getWebAppStacks(options) {
405
+ return this.client.sendOperationRequest({ options }, getWebAppStacksOperationSpec);
406
+ }
407
+ /**
408
+ * Description for Get available application frameworks and their versions
409
+ * @param options The options parameters.
410
+ */
411
+ _getAvailableStacksOnPrem(options) {
412
+ return this.client.sendOperationRequest({ options }, getAvailableStacksOnPremOperationSpec);
413
+ }
414
+ /**
415
+ * GetAvailableStacksNext
416
+ * @param nextLink The nextLink from the previous successful call to the GetAvailableStacks method.
417
+ * @param options The options parameters.
418
+ */
419
+ _getAvailableStacksNext(nextLink, options) {
420
+ return this.client.sendOperationRequest({ nextLink, options }, getAvailableStacksNextOperationSpec);
421
+ }
422
+ /**
423
+ * GetFunctionAppStacksNext
424
+ * @param nextLink The nextLink from the previous successful call to the GetFunctionAppStacks method.
425
+ * @param options The options parameters.
426
+ */
427
+ _getFunctionAppStacksNext(nextLink, options) {
428
+ return this.client.sendOperationRequest({ nextLink, options }, getFunctionAppStacksNextOperationSpec);
429
+ }
430
+ /**
431
+ * GetFunctionAppStacksForLocationNext
432
+ * @param location Function App stack location.
433
+ * @param nextLink The nextLink from the previous successful call to the
434
+ * GetFunctionAppStacksForLocation method.
435
+ * @param options The options parameters.
436
+ */
437
+ _getFunctionAppStacksForLocationNext(location, nextLink, options) {
438
+ return this.client.sendOperationRequest({ location, nextLink, options }, getFunctionAppStacksForLocationNextOperationSpec);
439
+ }
440
+ /**
441
+ * GetWebAppStacksForLocationNext
442
+ * @param location Web App stack location.
443
+ * @param nextLink The nextLink from the previous successful call to the GetWebAppStacksForLocation
444
+ * method.
445
+ * @param options The options parameters.
446
+ */
447
+ _getWebAppStacksForLocationNext(location, nextLink, options) {
448
+ return this.client.sendOperationRequest({ location, nextLink, options }, getWebAppStacksForLocationNextOperationSpec);
449
+ }
450
+ /**
451
+ * ListOperationsNext
452
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
453
+ * @param options The options parameters.
454
+ */
455
+ _listOperationsNext(nextLink, options) {
456
+ return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
457
+ }
458
+ /**
459
+ * GetWebAppStacksNext
460
+ * @param nextLink The nextLink from the previous successful call to the GetWebAppStacks method.
461
+ * @param options The options parameters.
462
+ */
463
+ _getWebAppStacksNext(nextLink, options) {
464
+ return this.client.sendOperationRequest({ nextLink, options }, getWebAppStacksNextOperationSpec);
465
+ }
466
+ /**
467
+ * GetAvailableStacksOnPremNext
468
+ * @param nextLink The nextLink from the previous successful call to the GetAvailableStacksOnPrem
469
+ * method.
470
+ * @param options The options parameters.
471
+ */
472
+ _getAvailableStacksOnPremNext(nextLink, options) {
473
+ return this.client.sendOperationRequest({ nextLink, options }, getAvailableStacksOnPremNextOperationSpec);
474
+ }
475
+ }
476
+ // Operation Specifications
477
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
478
+ const getAvailableStacksOperationSpec = {
479
+ path: "/providers/Microsoft.Web/availableStacks",
480
+ httpMethod: "GET",
481
+ responses: {
482
+ 200: {
483
+ bodyMapper: Mappers.ApplicationStackCollection
484
+ },
485
+ default: {
486
+ bodyMapper: Mappers.DefaultErrorResponse
487
+ }
488
+ },
489
+ queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected],
490
+ urlParameters: [Parameters.$host],
491
+ headerParameters: [Parameters.accept],
492
+ serializer
493
+ };
494
+ const getFunctionAppStacksOperationSpec = {
495
+ path: "/providers/Microsoft.Web/functionAppStacks",
496
+ httpMethod: "GET",
497
+ responses: {
498
+ 200: {
499
+ bodyMapper: Mappers.FunctionAppStackCollection
500
+ },
501
+ default: {
502
+ bodyMapper: Mappers.DefaultErrorResponse
503
+ }
504
+ },
505
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType],
506
+ urlParameters: [Parameters.$host],
507
+ headerParameters: [Parameters.accept],
508
+ serializer
509
+ };
510
+ const getFunctionAppStacksForLocationOperationSpec = {
511
+ path: "/providers/Microsoft.Web/locations/{location}/functionAppStacks",
512
+ httpMethod: "GET",
513
+ responses: {
514
+ 200: {
515
+ bodyMapper: Mappers.FunctionAppStackCollection
516
+ },
517
+ default: {
518
+ bodyMapper: Mappers.DefaultErrorResponse
519
+ }
520
+ },
521
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType1],
522
+ urlParameters: [Parameters.$host, Parameters.location],
523
+ headerParameters: [Parameters.accept],
524
+ serializer
525
+ };
526
+ const getWebAppStacksForLocationOperationSpec = {
527
+ path: "/providers/Microsoft.Web/locations/{location}/webAppStacks",
528
+ httpMethod: "GET",
529
+ responses: {
530
+ 200: {
531
+ bodyMapper: Mappers.WebAppStackCollection
532
+ },
533
+ default: {
534
+ bodyMapper: Mappers.DefaultErrorResponse
535
+ }
536
+ },
537
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType2],
538
+ urlParameters: [Parameters.$host, Parameters.location],
539
+ headerParameters: [Parameters.accept],
540
+ serializer
541
+ };
542
+ const listOperationsOperationSpec = {
543
+ path: "/providers/Microsoft.Web/operations",
544
+ httpMethod: "GET",
545
+ responses: {
546
+ 200: {
547
+ bodyMapper: Mappers.CsmOperationCollection
548
+ },
549
+ default: {
550
+ bodyMapper: Mappers.DefaultErrorResponse
551
+ }
552
+ },
553
+ queryParameters: [Parameters.apiVersion],
554
+ urlParameters: [Parameters.$host],
555
+ headerParameters: [Parameters.accept],
556
+ serializer
557
+ };
558
+ const getWebAppStacksOperationSpec = {
559
+ path: "/providers/Microsoft.Web/webAppStacks",
560
+ httpMethod: "GET",
561
+ responses: {
562
+ 200: {
563
+ bodyMapper: Mappers.WebAppStackCollection
564
+ },
565
+ default: {
566
+ bodyMapper: Mappers.DefaultErrorResponse
567
+ }
568
+ },
569
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType3],
570
+ urlParameters: [Parameters.$host],
571
+ headerParameters: [Parameters.accept],
572
+ serializer
573
+ };
574
+ const getAvailableStacksOnPremOperationSpec = {
575
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/availableStacks",
576
+ httpMethod: "GET",
577
+ responses: {
578
+ 200: {
579
+ bodyMapper: Mappers.ApplicationStackCollection
580
+ },
581
+ default: {
582
+ bodyMapper: Mappers.DefaultErrorResponse
583
+ }
584
+ },
585
+ queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected1],
586
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
587
+ headerParameters: [Parameters.accept],
588
+ serializer
589
+ };
590
+ const getAvailableStacksNextOperationSpec = {
591
+ path: "{nextLink}",
592
+ httpMethod: "GET",
593
+ responses: {
594
+ 200: {
595
+ bodyMapper: Mappers.ApplicationStackCollection
596
+ },
597
+ default: {
598
+ bodyMapper: Mappers.DefaultErrorResponse
599
+ }
600
+ },
601
+ queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected],
602
+ urlParameters: [Parameters.$host, Parameters.nextLink],
603
+ headerParameters: [Parameters.accept],
604
+ serializer
605
+ };
606
+ const getFunctionAppStacksNextOperationSpec = {
607
+ path: "{nextLink}",
608
+ httpMethod: "GET",
609
+ responses: {
610
+ 200: {
611
+ bodyMapper: Mappers.FunctionAppStackCollection
612
+ },
613
+ default: {
614
+ bodyMapper: Mappers.DefaultErrorResponse
615
+ }
616
+ },
617
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType],
618
+ urlParameters: [Parameters.$host, Parameters.nextLink],
619
+ headerParameters: [Parameters.accept],
620
+ serializer
621
+ };
622
+ const getFunctionAppStacksForLocationNextOperationSpec = {
623
+ path: "{nextLink}",
624
+ httpMethod: "GET",
625
+ responses: {
626
+ 200: {
627
+ bodyMapper: Mappers.FunctionAppStackCollection
628
+ },
629
+ default: {
630
+ bodyMapper: Mappers.DefaultErrorResponse
631
+ }
632
+ },
633
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType1],
634
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.location],
635
+ headerParameters: [Parameters.accept],
636
+ serializer
637
+ };
638
+ const getWebAppStacksForLocationNextOperationSpec = {
639
+ path: "{nextLink}",
640
+ httpMethod: "GET",
641
+ responses: {
642
+ 200: {
643
+ bodyMapper: Mappers.WebAppStackCollection
644
+ },
645
+ default: {
646
+ bodyMapper: Mappers.DefaultErrorResponse
647
+ }
648
+ },
649
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType2],
650
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.location],
651
+ headerParameters: [Parameters.accept],
652
+ serializer
653
+ };
654
+ const listOperationsNextOperationSpec = {
655
+ path: "{nextLink}",
656
+ httpMethod: "GET",
657
+ responses: {
658
+ 200: {
659
+ bodyMapper: Mappers.CsmOperationCollection
660
+ },
661
+ default: {
662
+ bodyMapper: Mappers.DefaultErrorResponse
663
+ }
664
+ },
665
+ queryParameters: [Parameters.apiVersion],
666
+ urlParameters: [Parameters.$host, Parameters.nextLink],
667
+ headerParameters: [Parameters.accept],
668
+ serializer
669
+ };
670
+ const getWebAppStacksNextOperationSpec = {
671
+ path: "{nextLink}",
672
+ httpMethod: "GET",
673
+ responses: {
674
+ 200: {
675
+ bodyMapper: Mappers.WebAppStackCollection
676
+ },
677
+ default: {
678
+ bodyMapper: Mappers.DefaultErrorResponse
679
+ }
680
+ },
681
+ queryParameters: [Parameters.apiVersion, Parameters.stackOsType3],
682
+ urlParameters: [Parameters.$host, Parameters.nextLink],
683
+ headerParameters: [Parameters.accept],
684
+ serializer
685
+ };
686
+ const getAvailableStacksOnPremNextOperationSpec = {
687
+ path: "{nextLink}",
688
+ httpMethod: "GET",
689
+ responses: {
690
+ 200: {
691
+ bodyMapper: Mappers.ApplicationStackCollection
692
+ },
693
+ default: {
694
+ bodyMapper: Mappers.DefaultErrorResponse
695
+ }
696
+ },
697
+ queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected1],
698
+ urlParameters: [
699
+ Parameters.$host,
700
+ Parameters.subscriptionId,
701
+ Parameters.nextLink
702
+ ],
703
+ headerParameters: [Parameters.accept],
704
+ serializer
705
+ };
706
+ //# sourceMappingURL=provider.js.map