@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,679 @@
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 { ResourceHealthMetadataOperations } 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 {
17
+ ResourceHealthMetadata,
18
+ ResourceHealthMetadataOperationsListNextOptionalParams,
19
+ ResourceHealthMetadataOperationsListOptionalParams,
20
+ ResourceHealthMetadataOperationsListByResourceGroupNextOptionalParams,
21
+ ResourceHealthMetadataOperationsListByResourceGroupOptionalParams,
22
+ ResourceHealthMetadataOperationsListBySiteNextOptionalParams,
23
+ ResourceHealthMetadataOperationsListBySiteOptionalParams,
24
+ ResourceHealthMetadataOperationsListBySiteSlotNextOptionalParams,
25
+ ResourceHealthMetadataOperationsListBySiteSlotOptionalParams,
26
+ ResourceHealthMetadataOperationsListResponse,
27
+ ResourceHealthMetadataOperationsListByResourceGroupResponse,
28
+ ResourceHealthMetadataOperationsListBySiteResponse,
29
+ ResourceHealthMetadataOperationsGetBySiteOptionalParams,
30
+ ResourceHealthMetadataOperationsGetBySiteResponse,
31
+ ResourceHealthMetadataOperationsListBySiteSlotResponse,
32
+ ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams,
33
+ ResourceHealthMetadataOperationsGetBySiteSlotResponse,
34
+ ResourceHealthMetadataOperationsListNextResponse,
35
+ ResourceHealthMetadataOperationsListByResourceGroupNextResponse,
36
+ ResourceHealthMetadataOperationsListBySiteNextResponse,
37
+ ResourceHealthMetadataOperationsListBySiteSlotNextResponse
38
+ } from "../models";
39
+
40
+ /// <reference lib="esnext.asynciterable" />
41
+ /** Class representing a ResourceHealthMetadataOperations. */
42
+ export class ResourceHealthMetadataOperationsImpl
43
+ implements ResourceHealthMetadataOperations {
44
+ private readonly client: WebSiteManagementClientContext;
45
+
46
+ /**
47
+ * Initialize a new instance of the class ResourceHealthMetadataOperations class.
48
+ * @param client Reference to the service client
49
+ */
50
+ constructor(client: WebSiteManagementClientContext) {
51
+ this.client = client;
52
+ }
53
+
54
+ /**
55
+ * Description for List all ResourceHealthMetadata for all sites in the subscription.
56
+ * @param options The options parameters.
57
+ */
58
+ public list(
59
+ options?: ResourceHealthMetadataOperationsListOptionalParams
60
+ ): PagedAsyncIterableIterator<ResourceHealthMetadata> {
61
+ const iter = this.listPagingAll(options);
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
68
+ },
69
+ byPage: () => {
70
+ return this.listPagingPage(options);
71
+ }
72
+ };
73
+ }
74
+
75
+ private async *listPagingPage(
76
+ options?: ResourceHealthMetadataOperationsListOptionalParams
77
+ ): AsyncIterableIterator<ResourceHealthMetadata[]> {
78
+ let result = await this._list(options);
79
+ yield result.value || [];
80
+ let continuationToken = result.nextLink;
81
+ while (continuationToken) {
82
+ result = await this._listNext(continuationToken, options);
83
+ continuationToken = result.nextLink;
84
+ yield result.value || [];
85
+ }
86
+ }
87
+
88
+ private async *listPagingAll(
89
+ options?: ResourceHealthMetadataOperationsListOptionalParams
90
+ ): AsyncIterableIterator<ResourceHealthMetadata> {
91
+ for await (const page of this.listPagingPage(options)) {
92
+ yield* page;
93
+ }
94
+ }
95
+
96
+ /**
97
+ * Description for List all ResourceHealthMetadata for all sites in the resource group in the
98
+ * subscription.
99
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
100
+ * @param options The options parameters.
101
+ */
102
+ public listByResourceGroup(
103
+ resourceGroupName: string,
104
+ options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams
105
+ ): PagedAsyncIterableIterator<ResourceHealthMetadata> {
106
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
107
+ return {
108
+ next() {
109
+ return iter.next();
110
+ },
111
+ [Symbol.asyncIterator]() {
112
+ return this;
113
+ },
114
+ byPage: () => {
115
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
116
+ }
117
+ };
118
+ }
119
+
120
+ private async *listByResourceGroupPagingPage(
121
+ resourceGroupName: string,
122
+ options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams
123
+ ): AsyncIterableIterator<ResourceHealthMetadata[]> {
124
+ let result = await this._listByResourceGroup(resourceGroupName, options);
125
+ yield result.value || [];
126
+ let continuationToken = result.nextLink;
127
+ while (continuationToken) {
128
+ result = await this._listByResourceGroupNext(
129
+ resourceGroupName,
130
+ continuationToken,
131
+ options
132
+ );
133
+ continuationToken = result.nextLink;
134
+ yield result.value || [];
135
+ }
136
+ }
137
+
138
+ private async *listByResourceGroupPagingAll(
139
+ resourceGroupName: string,
140
+ options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams
141
+ ): AsyncIterableIterator<ResourceHealthMetadata> {
142
+ for await (const page of this.listByResourceGroupPagingPage(
143
+ resourceGroupName,
144
+ options
145
+ )) {
146
+ yield* page;
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Description for Gets the category of ResourceHealthMetadata to use for the given site as a
152
+ * collection
153
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
154
+ * @param name Name of web app.
155
+ * @param options The options parameters.
156
+ */
157
+ public listBySite(
158
+ resourceGroupName: string,
159
+ name: string,
160
+ options?: ResourceHealthMetadataOperationsListBySiteOptionalParams
161
+ ): PagedAsyncIterableIterator<ResourceHealthMetadata> {
162
+ const iter = this.listBySitePagingAll(resourceGroupName, name, options);
163
+ return {
164
+ next() {
165
+ return iter.next();
166
+ },
167
+ [Symbol.asyncIterator]() {
168
+ return this;
169
+ },
170
+ byPage: () => {
171
+ return this.listBySitePagingPage(resourceGroupName, name, options);
172
+ }
173
+ };
174
+ }
175
+
176
+ private async *listBySitePagingPage(
177
+ resourceGroupName: string,
178
+ name: string,
179
+ options?: ResourceHealthMetadataOperationsListBySiteOptionalParams
180
+ ): AsyncIterableIterator<ResourceHealthMetadata[]> {
181
+ let result = await this._listBySite(resourceGroupName, name, options);
182
+ yield result.value || [];
183
+ let continuationToken = result.nextLink;
184
+ while (continuationToken) {
185
+ result = await this._listBySiteNext(
186
+ resourceGroupName,
187
+ name,
188
+ continuationToken,
189
+ options
190
+ );
191
+ continuationToken = result.nextLink;
192
+ yield result.value || [];
193
+ }
194
+ }
195
+
196
+ private async *listBySitePagingAll(
197
+ resourceGroupName: string,
198
+ name: string,
199
+ options?: ResourceHealthMetadataOperationsListBySiteOptionalParams
200
+ ): AsyncIterableIterator<ResourceHealthMetadata> {
201
+ for await (const page of this.listBySitePagingPage(
202
+ resourceGroupName,
203
+ name,
204
+ options
205
+ )) {
206
+ yield* page;
207
+ }
208
+ }
209
+
210
+ /**
211
+ * Description for Gets the category of ResourceHealthMetadata to use for the given site as a
212
+ * collection
213
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
214
+ * @param name Name of web app.
215
+ * @param slot Name of web app slot. If not specified then will default to production slot.
216
+ * @param options The options parameters.
217
+ */
218
+ public listBySiteSlot(
219
+ resourceGroupName: string,
220
+ name: string,
221
+ slot: string,
222
+ options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams
223
+ ): PagedAsyncIterableIterator<ResourceHealthMetadata> {
224
+ const iter = this.listBySiteSlotPagingAll(
225
+ resourceGroupName,
226
+ name,
227
+ slot,
228
+ options
229
+ );
230
+ return {
231
+ next() {
232
+ return iter.next();
233
+ },
234
+ [Symbol.asyncIterator]() {
235
+ return this;
236
+ },
237
+ byPage: () => {
238
+ return this.listBySiteSlotPagingPage(
239
+ resourceGroupName,
240
+ name,
241
+ slot,
242
+ options
243
+ );
244
+ }
245
+ };
246
+ }
247
+
248
+ private async *listBySiteSlotPagingPage(
249
+ resourceGroupName: string,
250
+ name: string,
251
+ slot: string,
252
+ options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams
253
+ ): AsyncIterableIterator<ResourceHealthMetadata[]> {
254
+ let result = await this._listBySiteSlot(
255
+ resourceGroupName,
256
+ name,
257
+ slot,
258
+ options
259
+ );
260
+ yield result.value || [];
261
+ let continuationToken = result.nextLink;
262
+ while (continuationToken) {
263
+ result = await this._listBySiteSlotNext(
264
+ resourceGroupName,
265
+ name,
266
+ slot,
267
+ continuationToken,
268
+ options
269
+ );
270
+ continuationToken = result.nextLink;
271
+ yield result.value || [];
272
+ }
273
+ }
274
+
275
+ private async *listBySiteSlotPagingAll(
276
+ resourceGroupName: string,
277
+ name: string,
278
+ slot: string,
279
+ options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams
280
+ ): AsyncIterableIterator<ResourceHealthMetadata> {
281
+ for await (const page of this.listBySiteSlotPagingPage(
282
+ resourceGroupName,
283
+ name,
284
+ slot,
285
+ options
286
+ )) {
287
+ yield* page;
288
+ }
289
+ }
290
+
291
+ /**
292
+ * Description for List all ResourceHealthMetadata for all sites in the subscription.
293
+ * @param options The options parameters.
294
+ */
295
+ private _list(
296
+ options?: ResourceHealthMetadataOperationsListOptionalParams
297
+ ): Promise<ResourceHealthMetadataOperationsListResponse> {
298
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
299
+ }
300
+
301
+ /**
302
+ * Description for List all ResourceHealthMetadata for all sites in the resource group in the
303
+ * subscription.
304
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
305
+ * @param options The options parameters.
306
+ */
307
+ private _listByResourceGroup(
308
+ resourceGroupName: string,
309
+ options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams
310
+ ): Promise<ResourceHealthMetadataOperationsListByResourceGroupResponse> {
311
+ return this.client.sendOperationRequest(
312
+ { resourceGroupName, options },
313
+ listByResourceGroupOperationSpec
314
+ );
315
+ }
316
+
317
+ /**
318
+ * Description for Gets the category of ResourceHealthMetadata to use for the given site as a
319
+ * collection
320
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
321
+ * @param name Name of web app.
322
+ * @param options The options parameters.
323
+ */
324
+ private _listBySite(
325
+ resourceGroupName: string,
326
+ name: string,
327
+ options?: ResourceHealthMetadataOperationsListBySiteOptionalParams
328
+ ): Promise<ResourceHealthMetadataOperationsListBySiteResponse> {
329
+ return this.client.sendOperationRequest(
330
+ { resourceGroupName, name, options },
331
+ listBySiteOperationSpec
332
+ );
333
+ }
334
+
335
+ /**
336
+ * Description for Gets the category of ResourceHealthMetadata to use for the given site
337
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
338
+ * @param name Name of web app
339
+ * @param options The options parameters.
340
+ */
341
+ getBySite(
342
+ resourceGroupName: string,
343
+ name: string,
344
+ options?: ResourceHealthMetadataOperationsGetBySiteOptionalParams
345
+ ): Promise<ResourceHealthMetadataOperationsGetBySiteResponse> {
346
+ return this.client.sendOperationRequest(
347
+ { resourceGroupName, name, options },
348
+ getBySiteOperationSpec
349
+ );
350
+ }
351
+
352
+ /**
353
+ * Description for Gets the category of ResourceHealthMetadata to use for the given site as a
354
+ * collection
355
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
356
+ * @param name Name of web app.
357
+ * @param slot Name of web app slot. If not specified then will default to production slot.
358
+ * @param options The options parameters.
359
+ */
360
+ private _listBySiteSlot(
361
+ resourceGroupName: string,
362
+ name: string,
363
+ slot: string,
364
+ options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams
365
+ ): Promise<ResourceHealthMetadataOperationsListBySiteSlotResponse> {
366
+ return this.client.sendOperationRequest(
367
+ { resourceGroupName, name, slot, options },
368
+ listBySiteSlotOperationSpec
369
+ );
370
+ }
371
+
372
+ /**
373
+ * Description for Gets the category of ResourceHealthMetadata to use for the given site
374
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
375
+ * @param name Name of web app
376
+ * @param slot Name of web app slot. If not specified then will default to production slot.
377
+ * @param options The options parameters.
378
+ */
379
+ getBySiteSlot(
380
+ resourceGroupName: string,
381
+ name: string,
382
+ slot: string,
383
+ options?: ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams
384
+ ): Promise<ResourceHealthMetadataOperationsGetBySiteSlotResponse> {
385
+ return this.client.sendOperationRequest(
386
+ { resourceGroupName, name, slot, options },
387
+ getBySiteSlotOperationSpec
388
+ );
389
+ }
390
+
391
+ /**
392
+ * ListNext
393
+ * @param nextLink The nextLink from the previous successful call to the List method.
394
+ * @param options The options parameters.
395
+ */
396
+ private _listNext(
397
+ nextLink: string,
398
+ options?: ResourceHealthMetadataOperationsListNextOptionalParams
399
+ ): Promise<ResourceHealthMetadataOperationsListNextResponse> {
400
+ return this.client.sendOperationRequest(
401
+ { nextLink, options },
402
+ listNextOperationSpec
403
+ );
404
+ }
405
+
406
+ /**
407
+ * ListByResourceGroupNext
408
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
409
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
410
+ * @param options The options parameters.
411
+ */
412
+ private _listByResourceGroupNext(
413
+ resourceGroupName: string,
414
+ nextLink: string,
415
+ options?: ResourceHealthMetadataOperationsListByResourceGroupNextOptionalParams
416
+ ): Promise<ResourceHealthMetadataOperationsListByResourceGroupNextResponse> {
417
+ return this.client.sendOperationRequest(
418
+ { resourceGroupName, nextLink, options },
419
+ listByResourceGroupNextOperationSpec
420
+ );
421
+ }
422
+
423
+ /**
424
+ * ListBySiteNext
425
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
426
+ * @param name Name of web app.
427
+ * @param nextLink The nextLink from the previous successful call to the ListBySite method.
428
+ * @param options The options parameters.
429
+ */
430
+ private _listBySiteNext(
431
+ resourceGroupName: string,
432
+ name: string,
433
+ nextLink: string,
434
+ options?: ResourceHealthMetadataOperationsListBySiteNextOptionalParams
435
+ ): Promise<ResourceHealthMetadataOperationsListBySiteNextResponse> {
436
+ return this.client.sendOperationRequest(
437
+ { resourceGroupName, name, nextLink, options },
438
+ listBySiteNextOperationSpec
439
+ );
440
+ }
441
+
442
+ /**
443
+ * ListBySiteSlotNext
444
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
445
+ * @param name Name of web app.
446
+ * @param slot Name of web app slot. If not specified then will default to production slot.
447
+ * @param nextLink The nextLink from the previous successful call to the ListBySiteSlot method.
448
+ * @param options The options parameters.
449
+ */
450
+ private _listBySiteSlotNext(
451
+ resourceGroupName: string,
452
+ name: string,
453
+ slot: string,
454
+ nextLink: string,
455
+ options?: ResourceHealthMetadataOperationsListBySiteSlotNextOptionalParams
456
+ ): Promise<ResourceHealthMetadataOperationsListBySiteSlotNextResponse> {
457
+ return this.client.sendOperationRequest(
458
+ { resourceGroupName, name, slot, nextLink, options },
459
+ listBySiteSlotNextOperationSpec
460
+ );
461
+ }
462
+ }
463
+ // Operation Specifications
464
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
465
+
466
+ const listOperationSpec: coreClient.OperationSpec = {
467
+ path:
468
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Web/resourceHealthMetadata",
469
+ httpMethod: "GET",
470
+ responses: {
471
+ 200: {
472
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
473
+ },
474
+ default: {
475
+ bodyMapper: Mappers.DefaultErrorResponse
476
+ }
477
+ },
478
+ queryParameters: [Parameters.apiVersion],
479
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
480
+ headerParameters: [Parameters.accept],
481
+ serializer
482
+ };
483
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
484
+ path:
485
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata",
486
+ httpMethod: "GET",
487
+ responses: {
488
+ 200: {
489
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
490
+ },
491
+ default: {
492
+ bodyMapper: Mappers.DefaultErrorResponse
493
+ }
494
+ },
495
+ queryParameters: [Parameters.apiVersion],
496
+ urlParameters: [
497
+ Parameters.$host,
498
+ Parameters.subscriptionId,
499
+ Parameters.resourceGroupName
500
+ ],
501
+ headerParameters: [Parameters.accept],
502
+ serializer
503
+ };
504
+ const listBySiteOperationSpec: coreClient.OperationSpec = {
505
+ path:
506
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata",
507
+ httpMethod: "GET",
508
+ responses: {
509
+ 200: {
510
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
511
+ },
512
+ default: {
513
+ bodyMapper: Mappers.DefaultErrorResponse
514
+ }
515
+ },
516
+ queryParameters: [Parameters.apiVersion],
517
+ urlParameters: [
518
+ Parameters.$host,
519
+ Parameters.subscriptionId,
520
+ Parameters.resourceGroupName,
521
+ Parameters.name
522
+ ],
523
+ headerParameters: [Parameters.accept],
524
+ serializer
525
+ };
526
+ const getBySiteOperationSpec: coreClient.OperationSpec = {
527
+ path:
528
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default",
529
+ httpMethod: "GET",
530
+ responses: {
531
+ 200: {
532
+ bodyMapper: Mappers.ResourceHealthMetadata
533
+ },
534
+ default: {
535
+ bodyMapper: Mappers.DefaultErrorResponse
536
+ }
537
+ },
538
+ queryParameters: [Parameters.apiVersion],
539
+ urlParameters: [
540
+ Parameters.$host,
541
+ Parameters.subscriptionId,
542
+ Parameters.resourceGroupName,
543
+ Parameters.name
544
+ ],
545
+ headerParameters: [Parameters.accept],
546
+ serializer
547
+ };
548
+ const listBySiteSlotOperationSpec: coreClient.OperationSpec = {
549
+ path:
550
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata",
551
+ httpMethod: "GET",
552
+ responses: {
553
+ 200: {
554
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
555
+ },
556
+ default: {
557
+ bodyMapper: Mappers.DefaultErrorResponse
558
+ }
559
+ },
560
+ queryParameters: [Parameters.apiVersion],
561
+ urlParameters: [
562
+ Parameters.$host,
563
+ Parameters.subscriptionId,
564
+ Parameters.resourceGroupName,
565
+ Parameters.name,
566
+ Parameters.slot
567
+ ],
568
+ headerParameters: [Parameters.accept],
569
+ serializer
570
+ };
571
+ const getBySiteSlotOperationSpec: coreClient.OperationSpec = {
572
+ path:
573
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default",
574
+ httpMethod: "GET",
575
+ responses: {
576
+ 200: {
577
+ bodyMapper: Mappers.ResourceHealthMetadata
578
+ },
579
+ default: {
580
+ bodyMapper: Mappers.DefaultErrorResponse
581
+ }
582
+ },
583
+ queryParameters: [Parameters.apiVersion],
584
+ urlParameters: [
585
+ Parameters.$host,
586
+ Parameters.subscriptionId,
587
+ Parameters.resourceGroupName,
588
+ Parameters.name,
589
+ Parameters.slot
590
+ ],
591
+ headerParameters: [Parameters.accept],
592
+ serializer
593
+ };
594
+ const listNextOperationSpec: coreClient.OperationSpec = {
595
+ path: "{nextLink}",
596
+ httpMethod: "GET",
597
+ responses: {
598
+ 200: {
599
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
600
+ },
601
+ default: {
602
+ bodyMapper: Mappers.DefaultErrorResponse
603
+ }
604
+ },
605
+ queryParameters: [Parameters.apiVersion],
606
+ urlParameters: [
607
+ Parameters.$host,
608
+ Parameters.subscriptionId,
609
+ Parameters.nextLink
610
+ ],
611
+ headerParameters: [Parameters.accept],
612
+ serializer
613
+ };
614
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
615
+ path: "{nextLink}",
616
+ httpMethod: "GET",
617
+ responses: {
618
+ 200: {
619
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
620
+ },
621
+ default: {
622
+ bodyMapper: Mappers.DefaultErrorResponse
623
+ }
624
+ },
625
+ queryParameters: [Parameters.apiVersion],
626
+ urlParameters: [
627
+ Parameters.$host,
628
+ Parameters.subscriptionId,
629
+ Parameters.resourceGroupName,
630
+ Parameters.nextLink
631
+ ],
632
+ headerParameters: [Parameters.accept],
633
+ serializer
634
+ };
635
+ const listBySiteNextOperationSpec: coreClient.OperationSpec = {
636
+ path: "{nextLink}",
637
+ httpMethod: "GET",
638
+ responses: {
639
+ 200: {
640
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
641
+ },
642
+ default: {
643
+ bodyMapper: Mappers.DefaultErrorResponse
644
+ }
645
+ },
646
+ queryParameters: [Parameters.apiVersion],
647
+ urlParameters: [
648
+ Parameters.$host,
649
+ Parameters.subscriptionId,
650
+ Parameters.resourceGroupName,
651
+ Parameters.name,
652
+ Parameters.nextLink
653
+ ],
654
+ headerParameters: [Parameters.accept],
655
+ serializer
656
+ };
657
+ const listBySiteSlotNextOperationSpec: coreClient.OperationSpec = {
658
+ path: "{nextLink}",
659
+ httpMethod: "GET",
660
+ responses: {
661
+ 200: {
662
+ bodyMapper: Mappers.ResourceHealthMetadataCollection
663
+ },
664
+ default: {
665
+ bodyMapper: Mappers.DefaultErrorResponse
666
+ }
667
+ },
668
+ queryParameters: [Parameters.apiVersion],
669
+ urlParameters: [
670
+ Parameters.$host,
671
+ Parameters.subscriptionId,
672
+ Parameters.resourceGroupName,
673
+ Parameters.name,
674
+ Parameters.nextLink,
675
+ Parameters.slot
676
+ ],
677
+ headerParameters: [Parameters.accept],
678
+ serializer
679
+ };