@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,4336 @@
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 { StaticSites } 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
+ StaticSiteARMResource,
20
+ StaticSitesListNextOptionalParams,
21
+ StaticSitesListOptionalParams,
22
+ StaticSitesGetStaticSitesByResourceGroupNextOptionalParams,
23
+ StaticSitesGetStaticSitesByResourceGroupOptionalParams,
24
+ StaticSiteUserARMResource,
25
+ StaticSitesListStaticSiteUsersNextOptionalParams,
26
+ StaticSitesListStaticSiteUsersOptionalParams,
27
+ StaticSiteBuildARMResource,
28
+ StaticSitesGetStaticSiteBuildsNextOptionalParams,
29
+ StaticSitesGetStaticSiteBuildsOptionalParams,
30
+ StaticSiteFunctionOverviewARMResource,
31
+ StaticSitesListStaticSiteBuildFunctionsNextOptionalParams,
32
+ StaticSitesListStaticSiteBuildFunctionsOptionalParams,
33
+ StaticSiteUserProvidedFunctionAppARMResource,
34
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextOptionalParams,
35
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams,
36
+ StaticSiteCustomDomainOverviewARMResource,
37
+ StaticSitesListStaticSiteCustomDomainsNextOptionalParams,
38
+ StaticSitesListStaticSiteCustomDomainsOptionalParams,
39
+ StaticSitesListStaticSiteFunctionsNextOptionalParams,
40
+ StaticSitesListStaticSiteFunctionsOptionalParams,
41
+ RemotePrivateEndpointConnectionARMResource,
42
+ StaticSitesGetPrivateEndpointConnectionListNextOptionalParams,
43
+ StaticSitesGetPrivateEndpointConnectionListOptionalParams,
44
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextOptionalParams,
45
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams,
46
+ StaticSitesWorkflowPreviewRequest,
47
+ StaticSitesPreviewWorkflowOptionalParams,
48
+ StaticSitesPreviewWorkflowResponse,
49
+ StaticSitesListResponse,
50
+ StaticSitesGetStaticSitesByResourceGroupResponse,
51
+ StaticSitesGetStaticSiteOptionalParams,
52
+ StaticSitesGetStaticSiteResponse,
53
+ StaticSitesCreateOrUpdateStaticSiteOptionalParams,
54
+ StaticSitesCreateOrUpdateStaticSiteResponse,
55
+ StaticSitesDeleteStaticSiteOptionalParams,
56
+ StaticSitePatchResource,
57
+ StaticSitesUpdateStaticSiteOptionalParams,
58
+ StaticSitesUpdateStaticSiteResponse,
59
+ StaticSitesListStaticSiteUsersResponse,
60
+ StaticSitesDeleteStaticSiteUserOptionalParams,
61
+ StaticSitesUpdateStaticSiteUserOptionalParams,
62
+ StaticSitesUpdateStaticSiteUserResponse,
63
+ StaticSitesGetStaticSiteBuildsResponse,
64
+ StaticSitesGetStaticSiteBuildOptionalParams,
65
+ StaticSitesGetStaticSiteBuildResponse,
66
+ StaticSitesDeleteStaticSiteBuildOptionalParams,
67
+ StringDictionary,
68
+ StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsOptionalParams,
69
+ StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsResponse,
70
+ StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptionalParams,
71
+ StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsResponse,
72
+ StaticSitesListStaticSiteBuildFunctionsResponse,
73
+ StaticSitesListStaticSiteBuildAppSettingsOptionalParams,
74
+ StaticSitesListStaticSiteBuildAppSettingsResponse,
75
+ StaticSitesListStaticSiteBuildFunctionAppSettingsOptionalParams,
76
+ StaticSitesListStaticSiteBuildFunctionAppSettingsResponse,
77
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildResponse,
78
+ StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildOptionalParams,
79
+ StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildResponse,
80
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildOptionalParams,
81
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse,
82
+ StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildOptionalParams,
83
+ StaticSiteZipDeploymentARMResource,
84
+ StaticSitesCreateZipDeploymentForStaticSiteBuildOptionalParams,
85
+ StaticSitesCreateOrUpdateStaticSiteAppSettingsOptionalParams,
86
+ StaticSitesCreateOrUpdateStaticSiteAppSettingsResponse,
87
+ StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsOptionalParams,
88
+ StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsResponse,
89
+ StaticSiteUserInvitationRequestResource,
90
+ StaticSitesCreateUserRolesInvitationLinkOptionalParams,
91
+ StaticSitesCreateUserRolesInvitationLinkResponse,
92
+ StaticSitesListStaticSiteCustomDomainsResponse,
93
+ StaticSitesGetStaticSiteCustomDomainOptionalParams,
94
+ StaticSitesGetStaticSiteCustomDomainResponse,
95
+ StaticSiteCustomDomainRequestPropertiesARMResource,
96
+ StaticSitesCreateOrUpdateStaticSiteCustomDomainOptionalParams,
97
+ StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse,
98
+ StaticSitesDeleteStaticSiteCustomDomainOptionalParams,
99
+ StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams,
100
+ StaticSitesDetachStaticSiteOptionalParams,
101
+ StaticSitesListStaticSiteFunctionsResponse,
102
+ StaticSitesListStaticSiteAppSettingsOptionalParams,
103
+ StaticSitesListStaticSiteAppSettingsResponse,
104
+ StaticSitesListStaticSiteConfiguredRolesOptionalParams,
105
+ StaticSitesListStaticSiteConfiguredRolesResponse,
106
+ StaticSitesListStaticSiteFunctionAppSettingsOptionalParams,
107
+ StaticSitesListStaticSiteFunctionAppSettingsResponse,
108
+ StaticSitesListStaticSiteSecretsOptionalParams,
109
+ StaticSitesListStaticSiteSecretsResponse,
110
+ StaticSitesGetPrivateEndpointConnectionListResponse,
111
+ StaticSitesGetPrivateEndpointConnectionOptionalParams,
112
+ StaticSitesGetPrivateEndpointConnectionResponse,
113
+ PrivateLinkConnectionApprovalRequestResource,
114
+ StaticSitesApproveOrRejectPrivateEndpointConnectionOptionalParams,
115
+ StaticSitesApproveOrRejectPrivateEndpointConnectionResponse,
116
+ StaticSitesDeletePrivateEndpointConnectionOptionalParams,
117
+ StaticSitesDeletePrivateEndpointConnectionResponse,
118
+ StaticSitesGetPrivateLinkResourcesOptionalParams,
119
+ StaticSitesGetPrivateLinkResourcesResponse,
120
+ StaticSiteResetPropertiesARMResource,
121
+ StaticSitesResetStaticSiteApiKeyOptionalParams,
122
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteResponse,
123
+ StaticSitesGetUserProvidedFunctionAppForStaticSiteOptionalParams,
124
+ StaticSitesGetUserProvidedFunctionAppForStaticSiteResponse,
125
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams,
126
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse,
127
+ StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams,
128
+ StaticSitesCreateZipDeploymentForStaticSiteOptionalParams,
129
+ StaticSitesListNextResponse,
130
+ StaticSitesGetStaticSitesByResourceGroupNextResponse,
131
+ StaticSitesListStaticSiteUsersNextResponse,
132
+ StaticSitesGetStaticSiteBuildsNextResponse,
133
+ StaticSitesListStaticSiteBuildFunctionsNextResponse,
134
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextResponse,
135
+ StaticSitesListStaticSiteCustomDomainsNextResponse,
136
+ StaticSitesListStaticSiteFunctionsNextResponse,
137
+ StaticSitesGetPrivateEndpointConnectionListNextResponse,
138
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextResponse
139
+ } from "../models";
140
+
141
+ /// <reference lib="esnext.asynciterable" />
142
+ /** Class representing a StaticSites. */
143
+ export class StaticSitesImpl implements StaticSites {
144
+ private readonly client: WebSiteManagementClientContext;
145
+
146
+ /**
147
+ * Initialize a new instance of the class StaticSites class.
148
+ * @param client Reference to the service client
149
+ */
150
+ constructor(client: WebSiteManagementClientContext) {
151
+ this.client = client;
152
+ }
153
+
154
+ /**
155
+ * Description for Get all Static Sites for a subscription.
156
+ * @param options The options parameters.
157
+ */
158
+ public list(
159
+ options?: StaticSitesListOptionalParams
160
+ ): PagedAsyncIterableIterator<StaticSiteARMResource> {
161
+ const iter = this.listPagingAll(options);
162
+ return {
163
+ next() {
164
+ return iter.next();
165
+ },
166
+ [Symbol.asyncIterator]() {
167
+ return this;
168
+ },
169
+ byPage: () => {
170
+ return this.listPagingPage(options);
171
+ }
172
+ };
173
+ }
174
+
175
+ private async *listPagingPage(
176
+ options?: StaticSitesListOptionalParams
177
+ ): AsyncIterableIterator<StaticSiteARMResource[]> {
178
+ let result = await this._list(options);
179
+ yield result.value || [];
180
+ let continuationToken = result.nextLink;
181
+ while (continuationToken) {
182
+ result = await this._listNext(continuationToken, options);
183
+ continuationToken = result.nextLink;
184
+ yield result.value || [];
185
+ }
186
+ }
187
+
188
+ private async *listPagingAll(
189
+ options?: StaticSitesListOptionalParams
190
+ ): AsyncIterableIterator<StaticSiteARMResource> {
191
+ for await (const page of this.listPagingPage(options)) {
192
+ yield* page;
193
+ }
194
+ }
195
+
196
+ /**
197
+ * Description for Gets all static sites in the specified resource group.
198
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
199
+ * @param options The options parameters.
200
+ */
201
+ public listStaticSitesByResourceGroup(
202
+ resourceGroupName: string,
203
+ options?: StaticSitesGetStaticSitesByResourceGroupOptionalParams
204
+ ): PagedAsyncIterableIterator<StaticSiteARMResource> {
205
+ const iter = this.getStaticSitesByResourceGroupPagingAll(
206
+ resourceGroupName,
207
+ options
208
+ );
209
+ return {
210
+ next() {
211
+ return iter.next();
212
+ },
213
+ [Symbol.asyncIterator]() {
214
+ return this;
215
+ },
216
+ byPage: () => {
217
+ return this.getStaticSitesByResourceGroupPagingPage(
218
+ resourceGroupName,
219
+ options
220
+ );
221
+ }
222
+ };
223
+ }
224
+
225
+ private async *getStaticSitesByResourceGroupPagingPage(
226
+ resourceGroupName: string,
227
+ options?: StaticSitesGetStaticSitesByResourceGroupOptionalParams
228
+ ): AsyncIterableIterator<StaticSiteARMResource[]> {
229
+ let result = await this._getStaticSitesByResourceGroup(
230
+ resourceGroupName,
231
+ options
232
+ );
233
+ yield result.value || [];
234
+ let continuationToken = result.nextLink;
235
+ while (continuationToken) {
236
+ result = await this._getStaticSitesByResourceGroupNext(
237
+ resourceGroupName,
238
+ continuationToken,
239
+ options
240
+ );
241
+ continuationToken = result.nextLink;
242
+ yield result.value || [];
243
+ }
244
+ }
245
+
246
+ private async *getStaticSitesByResourceGroupPagingAll(
247
+ resourceGroupName: string,
248
+ options?: StaticSitesGetStaticSitesByResourceGroupOptionalParams
249
+ ): AsyncIterableIterator<StaticSiteARMResource> {
250
+ for await (const page of this.getStaticSitesByResourceGroupPagingPage(
251
+ resourceGroupName,
252
+ options
253
+ )) {
254
+ yield* page;
255
+ }
256
+ }
257
+
258
+ /**
259
+ * Description for Gets the list of users of a static site.
260
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
261
+ * @param name Name of the static site.
262
+ * @param authprovider The auth provider for the users.
263
+ * @param options The options parameters.
264
+ */
265
+ public listStaticSiteUsers(
266
+ resourceGroupName: string,
267
+ name: string,
268
+ authprovider: string,
269
+ options?: StaticSitesListStaticSiteUsersOptionalParams
270
+ ): PagedAsyncIterableIterator<StaticSiteUserARMResource> {
271
+ const iter = this.listStaticSiteUsersPagingAll(
272
+ resourceGroupName,
273
+ name,
274
+ authprovider,
275
+ options
276
+ );
277
+ return {
278
+ next() {
279
+ return iter.next();
280
+ },
281
+ [Symbol.asyncIterator]() {
282
+ return this;
283
+ },
284
+ byPage: () => {
285
+ return this.listStaticSiteUsersPagingPage(
286
+ resourceGroupName,
287
+ name,
288
+ authprovider,
289
+ options
290
+ );
291
+ }
292
+ };
293
+ }
294
+
295
+ private async *listStaticSiteUsersPagingPage(
296
+ resourceGroupName: string,
297
+ name: string,
298
+ authprovider: string,
299
+ options?: StaticSitesListStaticSiteUsersOptionalParams
300
+ ): AsyncIterableIterator<StaticSiteUserARMResource[]> {
301
+ let result = await this._listStaticSiteUsers(
302
+ resourceGroupName,
303
+ name,
304
+ authprovider,
305
+ options
306
+ );
307
+ yield result.value || [];
308
+ let continuationToken = result.nextLink;
309
+ while (continuationToken) {
310
+ result = await this._listStaticSiteUsersNext(
311
+ resourceGroupName,
312
+ name,
313
+ authprovider,
314
+ continuationToken,
315
+ options
316
+ );
317
+ continuationToken = result.nextLink;
318
+ yield result.value || [];
319
+ }
320
+ }
321
+
322
+ private async *listStaticSiteUsersPagingAll(
323
+ resourceGroupName: string,
324
+ name: string,
325
+ authprovider: string,
326
+ options?: StaticSitesListStaticSiteUsersOptionalParams
327
+ ): AsyncIterableIterator<StaticSiteUserARMResource> {
328
+ for await (const page of this.listStaticSiteUsersPagingPage(
329
+ resourceGroupName,
330
+ name,
331
+ authprovider,
332
+ options
333
+ )) {
334
+ yield* page;
335
+ }
336
+ }
337
+
338
+ /**
339
+ * Description for Gets all static site builds for a particular static site.
340
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
341
+ * @param name Name of the static site.
342
+ * @param options The options parameters.
343
+ */
344
+ public listStaticSiteBuilds(
345
+ resourceGroupName: string,
346
+ name: string,
347
+ options?: StaticSitesGetStaticSiteBuildsOptionalParams
348
+ ): PagedAsyncIterableIterator<StaticSiteBuildARMResource> {
349
+ const iter = this.getStaticSiteBuildsPagingAll(
350
+ resourceGroupName,
351
+ name,
352
+ options
353
+ );
354
+ return {
355
+ next() {
356
+ return iter.next();
357
+ },
358
+ [Symbol.asyncIterator]() {
359
+ return this;
360
+ },
361
+ byPage: () => {
362
+ return this.getStaticSiteBuildsPagingPage(
363
+ resourceGroupName,
364
+ name,
365
+ options
366
+ );
367
+ }
368
+ };
369
+ }
370
+
371
+ private async *getStaticSiteBuildsPagingPage(
372
+ resourceGroupName: string,
373
+ name: string,
374
+ options?: StaticSitesGetStaticSiteBuildsOptionalParams
375
+ ): AsyncIterableIterator<StaticSiteBuildARMResource[]> {
376
+ let result = await this._getStaticSiteBuilds(
377
+ resourceGroupName,
378
+ name,
379
+ options
380
+ );
381
+ yield result.value || [];
382
+ let continuationToken = result.nextLink;
383
+ while (continuationToken) {
384
+ result = await this._getStaticSiteBuildsNext(
385
+ resourceGroupName,
386
+ name,
387
+ continuationToken,
388
+ options
389
+ );
390
+ continuationToken = result.nextLink;
391
+ yield result.value || [];
392
+ }
393
+ }
394
+
395
+ private async *getStaticSiteBuildsPagingAll(
396
+ resourceGroupName: string,
397
+ name: string,
398
+ options?: StaticSitesGetStaticSiteBuildsOptionalParams
399
+ ): AsyncIterableIterator<StaticSiteBuildARMResource> {
400
+ for await (const page of this.getStaticSiteBuildsPagingPage(
401
+ resourceGroupName,
402
+ name,
403
+ options
404
+ )) {
405
+ yield* page;
406
+ }
407
+ }
408
+
409
+ /**
410
+ * Description for Gets the functions of a particular static site build.
411
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
412
+ * @param name Name of the static site.
413
+ * @param environmentName The stage site identifier.
414
+ * @param options The options parameters.
415
+ */
416
+ public listStaticSiteBuildFunctions(
417
+ resourceGroupName: string,
418
+ name: string,
419
+ environmentName: string,
420
+ options?: StaticSitesListStaticSiteBuildFunctionsOptionalParams
421
+ ): PagedAsyncIterableIterator<StaticSiteFunctionOverviewARMResource> {
422
+ const iter = this.listStaticSiteBuildFunctionsPagingAll(
423
+ resourceGroupName,
424
+ name,
425
+ environmentName,
426
+ options
427
+ );
428
+ return {
429
+ next() {
430
+ return iter.next();
431
+ },
432
+ [Symbol.asyncIterator]() {
433
+ return this;
434
+ },
435
+ byPage: () => {
436
+ return this.listStaticSiteBuildFunctionsPagingPage(
437
+ resourceGroupName,
438
+ name,
439
+ environmentName,
440
+ options
441
+ );
442
+ }
443
+ };
444
+ }
445
+
446
+ private async *listStaticSiteBuildFunctionsPagingPage(
447
+ resourceGroupName: string,
448
+ name: string,
449
+ environmentName: string,
450
+ options?: StaticSitesListStaticSiteBuildFunctionsOptionalParams
451
+ ): AsyncIterableIterator<StaticSiteFunctionOverviewARMResource[]> {
452
+ let result = await this._listStaticSiteBuildFunctions(
453
+ resourceGroupName,
454
+ name,
455
+ environmentName,
456
+ options
457
+ );
458
+ yield result.value || [];
459
+ let continuationToken = result.nextLink;
460
+ while (continuationToken) {
461
+ result = await this._listStaticSiteBuildFunctionsNext(
462
+ resourceGroupName,
463
+ name,
464
+ environmentName,
465
+ continuationToken,
466
+ options
467
+ );
468
+ continuationToken = result.nextLink;
469
+ yield result.value || [];
470
+ }
471
+ }
472
+
473
+ private async *listStaticSiteBuildFunctionsPagingAll(
474
+ resourceGroupName: string,
475
+ name: string,
476
+ environmentName: string,
477
+ options?: StaticSitesListStaticSiteBuildFunctionsOptionalParams
478
+ ): AsyncIterableIterator<StaticSiteFunctionOverviewARMResource> {
479
+ for await (const page of this.listStaticSiteBuildFunctionsPagingPage(
480
+ resourceGroupName,
481
+ name,
482
+ environmentName,
483
+ options
484
+ )) {
485
+ yield* page;
486
+ }
487
+ }
488
+
489
+ /**
490
+ * Description for Gets the details of the user provided function apps registered with a static site
491
+ * build
492
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
493
+ * @param name Name of the static site.
494
+ * @param environmentName The stage site identifier.
495
+ * @param options The options parameters.
496
+ */
497
+ public listUserProvidedFunctionAppsForStaticSiteBuild(
498
+ resourceGroupName: string,
499
+ name: string,
500
+ environmentName: string,
501
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams
502
+ ): PagedAsyncIterableIterator<StaticSiteUserProvidedFunctionAppARMResource> {
503
+ const iter = this.getUserProvidedFunctionAppsForStaticSiteBuildPagingAll(
504
+ resourceGroupName,
505
+ name,
506
+ environmentName,
507
+ options
508
+ );
509
+ return {
510
+ next() {
511
+ return iter.next();
512
+ },
513
+ [Symbol.asyncIterator]() {
514
+ return this;
515
+ },
516
+ byPage: () => {
517
+ return this.getUserProvidedFunctionAppsForStaticSiteBuildPagingPage(
518
+ resourceGroupName,
519
+ name,
520
+ environmentName,
521
+ options
522
+ );
523
+ }
524
+ };
525
+ }
526
+
527
+ private async *getUserProvidedFunctionAppsForStaticSiteBuildPagingPage(
528
+ resourceGroupName: string,
529
+ name: string,
530
+ environmentName: string,
531
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams
532
+ ): AsyncIterableIterator<StaticSiteUserProvidedFunctionAppARMResource[]> {
533
+ let result = await this._getUserProvidedFunctionAppsForStaticSiteBuild(
534
+ resourceGroupName,
535
+ name,
536
+ environmentName,
537
+ options
538
+ );
539
+ yield result.value || [];
540
+ let continuationToken = result.nextLink;
541
+ while (continuationToken) {
542
+ result = await this._getUserProvidedFunctionAppsForStaticSiteBuildNext(
543
+ resourceGroupName,
544
+ name,
545
+ environmentName,
546
+ continuationToken,
547
+ options
548
+ );
549
+ continuationToken = result.nextLink;
550
+ yield result.value || [];
551
+ }
552
+ }
553
+
554
+ private async *getUserProvidedFunctionAppsForStaticSiteBuildPagingAll(
555
+ resourceGroupName: string,
556
+ name: string,
557
+ environmentName: string,
558
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams
559
+ ): AsyncIterableIterator<StaticSiteUserProvidedFunctionAppARMResource> {
560
+ for await (const page of this.getUserProvidedFunctionAppsForStaticSiteBuildPagingPage(
561
+ resourceGroupName,
562
+ name,
563
+ environmentName,
564
+ options
565
+ )) {
566
+ yield* page;
567
+ }
568
+ }
569
+
570
+ /**
571
+ * Description for Gets all static site custom domains for a particular static site.
572
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
573
+ * @param name Name of the static site resource to search in.
574
+ * @param options The options parameters.
575
+ */
576
+ public listStaticSiteCustomDomains(
577
+ resourceGroupName: string,
578
+ name: string,
579
+ options?: StaticSitesListStaticSiteCustomDomainsOptionalParams
580
+ ): PagedAsyncIterableIterator<StaticSiteCustomDomainOverviewARMResource> {
581
+ const iter = this.listStaticSiteCustomDomainsPagingAll(
582
+ resourceGroupName,
583
+ name,
584
+ options
585
+ );
586
+ return {
587
+ next() {
588
+ return iter.next();
589
+ },
590
+ [Symbol.asyncIterator]() {
591
+ return this;
592
+ },
593
+ byPage: () => {
594
+ return this.listStaticSiteCustomDomainsPagingPage(
595
+ resourceGroupName,
596
+ name,
597
+ options
598
+ );
599
+ }
600
+ };
601
+ }
602
+
603
+ private async *listStaticSiteCustomDomainsPagingPage(
604
+ resourceGroupName: string,
605
+ name: string,
606
+ options?: StaticSitesListStaticSiteCustomDomainsOptionalParams
607
+ ): AsyncIterableIterator<StaticSiteCustomDomainOverviewARMResource[]> {
608
+ let result = await this._listStaticSiteCustomDomains(
609
+ resourceGroupName,
610
+ name,
611
+ options
612
+ );
613
+ yield result.value || [];
614
+ let continuationToken = result.nextLink;
615
+ while (continuationToken) {
616
+ result = await this._listStaticSiteCustomDomainsNext(
617
+ resourceGroupName,
618
+ name,
619
+ continuationToken,
620
+ options
621
+ );
622
+ continuationToken = result.nextLink;
623
+ yield result.value || [];
624
+ }
625
+ }
626
+
627
+ private async *listStaticSiteCustomDomainsPagingAll(
628
+ resourceGroupName: string,
629
+ name: string,
630
+ options?: StaticSitesListStaticSiteCustomDomainsOptionalParams
631
+ ): AsyncIterableIterator<StaticSiteCustomDomainOverviewARMResource> {
632
+ for await (const page of this.listStaticSiteCustomDomainsPagingPage(
633
+ resourceGroupName,
634
+ name,
635
+ options
636
+ )) {
637
+ yield* page;
638
+ }
639
+ }
640
+
641
+ /**
642
+ * Description for Gets the functions of a static site.
643
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
644
+ * @param name Name of the static site.
645
+ * @param options The options parameters.
646
+ */
647
+ public listStaticSiteFunctions(
648
+ resourceGroupName: string,
649
+ name: string,
650
+ options?: StaticSitesListStaticSiteFunctionsOptionalParams
651
+ ): PagedAsyncIterableIterator<StaticSiteFunctionOverviewARMResource> {
652
+ const iter = this.listStaticSiteFunctionsPagingAll(
653
+ resourceGroupName,
654
+ name,
655
+ options
656
+ );
657
+ return {
658
+ next() {
659
+ return iter.next();
660
+ },
661
+ [Symbol.asyncIterator]() {
662
+ return this;
663
+ },
664
+ byPage: () => {
665
+ return this.listStaticSiteFunctionsPagingPage(
666
+ resourceGroupName,
667
+ name,
668
+ options
669
+ );
670
+ }
671
+ };
672
+ }
673
+
674
+ private async *listStaticSiteFunctionsPagingPage(
675
+ resourceGroupName: string,
676
+ name: string,
677
+ options?: StaticSitesListStaticSiteFunctionsOptionalParams
678
+ ): AsyncIterableIterator<StaticSiteFunctionOverviewARMResource[]> {
679
+ let result = await this._listStaticSiteFunctions(
680
+ resourceGroupName,
681
+ name,
682
+ options
683
+ );
684
+ yield result.value || [];
685
+ let continuationToken = result.nextLink;
686
+ while (continuationToken) {
687
+ result = await this._listStaticSiteFunctionsNext(
688
+ resourceGroupName,
689
+ name,
690
+ continuationToken,
691
+ options
692
+ );
693
+ continuationToken = result.nextLink;
694
+ yield result.value || [];
695
+ }
696
+ }
697
+
698
+ private async *listStaticSiteFunctionsPagingAll(
699
+ resourceGroupName: string,
700
+ name: string,
701
+ options?: StaticSitesListStaticSiteFunctionsOptionalParams
702
+ ): AsyncIterableIterator<StaticSiteFunctionOverviewARMResource> {
703
+ for await (const page of this.listStaticSiteFunctionsPagingPage(
704
+ resourceGroupName,
705
+ name,
706
+ options
707
+ )) {
708
+ yield* page;
709
+ }
710
+ }
711
+
712
+ /**
713
+ * Description for Gets the list of private endpoint connections associated with a static site
714
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
715
+ * @param name Name of the static site.
716
+ * @param options The options parameters.
717
+ */
718
+ public listPrivateEndpointConnectionList(
719
+ resourceGroupName: string,
720
+ name: string,
721
+ options?: StaticSitesGetPrivateEndpointConnectionListOptionalParams
722
+ ): PagedAsyncIterableIterator<RemotePrivateEndpointConnectionARMResource> {
723
+ const iter = this.getPrivateEndpointConnectionListPagingAll(
724
+ resourceGroupName,
725
+ name,
726
+ options
727
+ );
728
+ return {
729
+ next() {
730
+ return iter.next();
731
+ },
732
+ [Symbol.asyncIterator]() {
733
+ return this;
734
+ },
735
+ byPage: () => {
736
+ return this.getPrivateEndpointConnectionListPagingPage(
737
+ resourceGroupName,
738
+ name,
739
+ options
740
+ );
741
+ }
742
+ };
743
+ }
744
+
745
+ private async *getPrivateEndpointConnectionListPagingPage(
746
+ resourceGroupName: string,
747
+ name: string,
748
+ options?: StaticSitesGetPrivateEndpointConnectionListOptionalParams
749
+ ): AsyncIterableIterator<RemotePrivateEndpointConnectionARMResource[]> {
750
+ let result = await this._getPrivateEndpointConnectionList(
751
+ resourceGroupName,
752
+ name,
753
+ options
754
+ );
755
+ yield result.value || [];
756
+ let continuationToken = result.nextLink;
757
+ while (continuationToken) {
758
+ result = await this._getPrivateEndpointConnectionListNext(
759
+ resourceGroupName,
760
+ name,
761
+ continuationToken,
762
+ options
763
+ );
764
+ continuationToken = result.nextLink;
765
+ yield result.value || [];
766
+ }
767
+ }
768
+
769
+ private async *getPrivateEndpointConnectionListPagingAll(
770
+ resourceGroupName: string,
771
+ name: string,
772
+ options?: StaticSitesGetPrivateEndpointConnectionListOptionalParams
773
+ ): AsyncIterableIterator<RemotePrivateEndpointConnectionARMResource> {
774
+ for await (const page of this.getPrivateEndpointConnectionListPagingPage(
775
+ resourceGroupName,
776
+ name,
777
+ options
778
+ )) {
779
+ yield* page;
780
+ }
781
+ }
782
+
783
+ /**
784
+ * Description for Gets the details of the user provided function apps registered with a static site
785
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
786
+ * @param name Name of the static site.
787
+ * @param options The options parameters.
788
+ */
789
+ public listUserProvidedFunctionAppsForStaticSite(
790
+ resourceGroupName: string,
791
+ name: string,
792
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams
793
+ ): PagedAsyncIterableIterator<StaticSiteUserProvidedFunctionAppARMResource> {
794
+ const iter = this.getUserProvidedFunctionAppsForStaticSitePagingAll(
795
+ resourceGroupName,
796
+ name,
797
+ options
798
+ );
799
+ return {
800
+ next() {
801
+ return iter.next();
802
+ },
803
+ [Symbol.asyncIterator]() {
804
+ return this;
805
+ },
806
+ byPage: () => {
807
+ return this.getUserProvidedFunctionAppsForStaticSitePagingPage(
808
+ resourceGroupName,
809
+ name,
810
+ options
811
+ );
812
+ }
813
+ };
814
+ }
815
+
816
+ private async *getUserProvidedFunctionAppsForStaticSitePagingPage(
817
+ resourceGroupName: string,
818
+ name: string,
819
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams
820
+ ): AsyncIterableIterator<StaticSiteUserProvidedFunctionAppARMResource[]> {
821
+ let result = await this._getUserProvidedFunctionAppsForStaticSite(
822
+ resourceGroupName,
823
+ name,
824
+ options
825
+ );
826
+ yield result.value || [];
827
+ let continuationToken = result.nextLink;
828
+ while (continuationToken) {
829
+ result = await this._getUserProvidedFunctionAppsForStaticSiteNext(
830
+ resourceGroupName,
831
+ name,
832
+ continuationToken,
833
+ options
834
+ );
835
+ continuationToken = result.nextLink;
836
+ yield result.value || [];
837
+ }
838
+ }
839
+
840
+ private async *getUserProvidedFunctionAppsForStaticSitePagingAll(
841
+ resourceGroupName: string,
842
+ name: string,
843
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams
844
+ ): AsyncIterableIterator<StaticSiteUserProvidedFunctionAppARMResource> {
845
+ for await (const page of this.getUserProvidedFunctionAppsForStaticSitePagingPage(
846
+ resourceGroupName,
847
+ name,
848
+ options
849
+ )) {
850
+ yield* page;
851
+ }
852
+ }
853
+
854
+ /**
855
+ * Description for Generates a preview workflow file for the static site
856
+ * @param location Location where you plan to create the static site.
857
+ * @param staticSitesWorkflowPreviewRequest A JSON representation of the
858
+ * StaticSitesWorkflowPreviewRequest properties. See example.
859
+ * @param options The options parameters.
860
+ */
861
+ previewWorkflow(
862
+ location: string,
863
+ staticSitesWorkflowPreviewRequest: StaticSitesWorkflowPreviewRequest,
864
+ options?: StaticSitesPreviewWorkflowOptionalParams
865
+ ): Promise<StaticSitesPreviewWorkflowResponse> {
866
+ return this.client.sendOperationRequest(
867
+ { location, staticSitesWorkflowPreviewRequest, options },
868
+ previewWorkflowOperationSpec
869
+ );
870
+ }
871
+
872
+ /**
873
+ * Description for Get all Static Sites for a subscription.
874
+ * @param options The options parameters.
875
+ */
876
+ private _list(
877
+ options?: StaticSitesListOptionalParams
878
+ ): Promise<StaticSitesListResponse> {
879
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
880
+ }
881
+
882
+ /**
883
+ * Description for Gets all static sites in the specified resource group.
884
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
885
+ * @param options The options parameters.
886
+ */
887
+ private _getStaticSitesByResourceGroup(
888
+ resourceGroupName: string,
889
+ options?: StaticSitesGetStaticSitesByResourceGroupOptionalParams
890
+ ): Promise<StaticSitesGetStaticSitesByResourceGroupResponse> {
891
+ return this.client.sendOperationRequest(
892
+ { resourceGroupName, options },
893
+ getStaticSitesByResourceGroupOperationSpec
894
+ );
895
+ }
896
+
897
+ /**
898
+ * Description for Gets the details of a static site.
899
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
900
+ * @param name Name of the static site.
901
+ * @param options The options parameters.
902
+ */
903
+ getStaticSite(
904
+ resourceGroupName: string,
905
+ name: string,
906
+ options?: StaticSitesGetStaticSiteOptionalParams
907
+ ): Promise<StaticSitesGetStaticSiteResponse> {
908
+ return this.client.sendOperationRequest(
909
+ { resourceGroupName, name, options },
910
+ getStaticSiteOperationSpec
911
+ );
912
+ }
913
+
914
+ /**
915
+ * Description for Creates a new static site in an existing resource group, or updates an existing
916
+ * static site.
917
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
918
+ * @param name Name of the static site to create or update.
919
+ * @param staticSiteEnvelope A JSON representation of the staticsite properties. See example.
920
+ * @param options The options parameters.
921
+ */
922
+ async beginCreateOrUpdateStaticSite(
923
+ resourceGroupName: string,
924
+ name: string,
925
+ staticSiteEnvelope: StaticSiteARMResource,
926
+ options?: StaticSitesCreateOrUpdateStaticSiteOptionalParams
927
+ ): Promise<
928
+ PollerLike<
929
+ PollOperationState<StaticSitesCreateOrUpdateStaticSiteResponse>,
930
+ StaticSitesCreateOrUpdateStaticSiteResponse
931
+ >
932
+ > {
933
+ const directSendOperation = async (
934
+ args: coreClient.OperationArguments,
935
+ spec: coreClient.OperationSpec
936
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteResponse> => {
937
+ return this.client.sendOperationRequest(args, spec);
938
+ };
939
+ const sendOperation = async (
940
+ args: coreClient.OperationArguments,
941
+ spec: coreClient.OperationSpec
942
+ ) => {
943
+ let currentRawResponse:
944
+ | coreClient.FullOperationResponse
945
+ | undefined = undefined;
946
+ const providedCallback = args.options?.onResponse;
947
+ const callback: coreClient.RawResponseCallback = (
948
+ rawResponse: coreClient.FullOperationResponse,
949
+ flatResponse: unknown
950
+ ) => {
951
+ currentRawResponse = rawResponse;
952
+ providedCallback?.(rawResponse, flatResponse);
953
+ };
954
+ const updatedArgs = {
955
+ ...args,
956
+ options: {
957
+ ...args.options,
958
+ onResponse: callback
959
+ }
960
+ };
961
+ const flatResponse = await directSendOperation(updatedArgs, spec);
962
+ return {
963
+ flatResponse,
964
+ rawResponse: {
965
+ statusCode: currentRawResponse!.status,
966
+ body: currentRawResponse!.parsedBody,
967
+ headers: currentRawResponse!.headers.toJSON()
968
+ }
969
+ };
970
+ };
971
+
972
+ const lro = new LroImpl(
973
+ sendOperation,
974
+ { resourceGroupName, name, staticSiteEnvelope, options },
975
+ createOrUpdateStaticSiteOperationSpec
976
+ );
977
+ return new LroEngine(lro, {
978
+ resumeFrom: options?.resumeFrom,
979
+ intervalInMs: options?.updateIntervalInMs
980
+ });
981
+ }
982
+
983
+ /**
984
+ * Description for Creates a new static site in an existing resource group, or updates an existing
985
+ * static site.
986
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
987
+ * @param name Name of the static site to create or update.
988
+ * @param staticSiteEnvelope A JSON representation of the staticsite properties. See example.
989
+ * @param options The options parameters.
990
+ */
991
+ async beginCreateOrUpdateStaticSiteAndWait(
992
+ resourceGroupName: string,
993
+ name: string,
994
+ staticSiteEnvelope: StaticSiteARMResource,
995
+ options?: StaticSitesCreateOrUpdateStaticSiteOptionalParams
996
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteResponse> {
997
+ const poller = await this.beginCreateOrUpdateStaticSite(
998
+ resourceGroupName,
999
+ name,
1000
+ staticSiteEnvelope,
1001
+ options
1002
+ );
1003
+ return poller.pollUntilDone();
1004
+ }
1005
+
1006
+ /**
1007
+ * Description for Deletes a static site.
1008
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1009
+ * @param name Name of the static site to delete.
1010
+ * @param options The options parameters.
1011
+ */
1012
+ async beginDeleteStaticSite(
1013
+ resourceGroupName: string,
1014
+ name: string,
1015
+ options?: StaticSitesDeleteStaticSiteOptionalParams
1016
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1017
+ const directSendOperation = async (
1018
+ args: coreClient.OperationArguments,
1019
+ spec: coreClient.OperationSpec
1020
+ ): Promise<void> => {
1021
+ return this.client.sendOperationRequest(args, spec);
1022
+ };
1023
+ const sendOperation = async (
1024
+ args: coreClient.OperationArguments,
1025
+ spec: coreClient.OperationSpec
1026
+ ) => {
1027
+ let currentRawResponse:
1028
+ | coreClient.FullOperationResponse
1029
+ | undefined = undefined;
1030
+ const providedCallback = args.options?.onResponse;
1031
+ const callback: coreClient.RawResponseCallback = (
1032
+ rawResponse: coreClient.FullOperationResponse,
1033
+ flatResponse: unknown
1034
+ ) => {
1035
+ currentRawResponse = rawResponse;
1036
+ providedCallback?.(rawResponse, flatResponse);
1037
+ };
1038
+ const updatedArgs = {
1039
+ ...args,
1040
+ options: {
1041
+ ...args.options,
1042
+ onResponse: callback
1043
+ }
1044
+ };
1045
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1046
+ return {
1047
+ flatResponse,
1048
+ rawResponse: {
1049
+ statusCode: currentRawResponse!.status,
1050
+ body: currentRawResponse!.parsedBody,
1051
+ headers: currentRawResponse!.headers.toJSON()
1052
+ }
1053
+ };
1054
+ };
1055
+
1056
+ const lro = new LroImpl(
1057
+ sendOperation,
1058
+ { resourceGroupName, name, options },
1059
+ deleteStaticSiteOperationSpec
1060
+ );
1061
+ return new LroEngine(lro, {
1062
+ resumeFrom: options?.resumeFrom,
1063
+ intervalInMs: options?.updateIntervalInMs
1064
+ });
1065
+ }
1066
+
1067
+ /**
1068
+ * Description for Deletes a static site.
1069
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1070
+ * @param name Name of the static site to delete.
1071
+ * @param options The options parameters.
1072
+ */
1073
+ async beginDeleteStaticSiteAndWait(
1074
+ resourceGroupName: string,
1075
+ name: string,
1076
+ options?: StaticSitesDeleteStaticSiteOptionalParams
1077
+ ): Promise<void> {
1078
+ const poller = await this.beginDeleteStaticSite(
1079
+ resourceGroupName,
1080
+ name,
1081
+ options
1082
+ );
1083
+ return poller.pollUntilDone();
1084
+ }
1085
+
1086
+ /**
1087
+ * Description for Creates a new static site in an existing resource group, or updates an existing
1088
+ * static site.
1089
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1090
+ * @param name Name of the static site to create or update.
1091
+ * @param staticSiteEnvelope A JSON representation of the staticsite properties. See example.
1092
+ * @param options The options parameters.
1093
+ */
1094
+ updateStaticSite(
1095
+ resourceGroupName: string,
1096
+ name: string,
1097
+ staticSiteEnvelope: StaticSitePatchResource,
1098
+ options?: StaticSitesUpdateStaticSiteOptionalParams
1099
+ ): Promise<StaticSitesUpdateStaticSiteResponse> {
1100
+ return this.client.sendOperationRequest(
1101
+ { resourceGroupName, name, staticSiteEnvelope, options },
1102
+ updateStaticSiteOperationSpec
1103
+ );
1104
+ }
1105
+
1106
+ /**
1107
+ * Description for Gets the list of users of a static site.
1108
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1109
+ * @param name Name of the static site.
1110
+ * @param authprovider The auth provider for the users.
1111
+ * @param options The options parameters.
1112
+ */
1113
+ private _listStaticSiteUsers(
1114
+ resourceGroupName: string,
1115
+ name: string,
1116
+ authprovider: string,
1117
+ options?: StaticSitesListStaticSiteUsersOptionalParams
1118
+ ): Promise<StaticSitesListStaticSiteUsersResponse> {
1119
+ return this.client.sendOperationRequest(
1120
+ { resourceGroupName, name, authprovider, options },
1121
+ listStaticSiteUsersOperationSpec
1122
+ );
1123
+ }
1124
+
1125
+ /**
1126
+ * Description for Deletes the user entry from the static site.
1127
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1128
+ * @param name Name of the staticsite.
1129
+ * @param authprovider The auth provider for this user.
1130
+ * @param userid The user id of the user.
1131
+ * @param options The options parameters.
1132
+ */
1133
+ deleteStaticSiteUser(
1134
+ resourceGroupName: string,
1135
+ name: string,
1136
+ authprovider: string,
1137
+ userid: string,
1138
+ options?: StaticSitesDeleteStaticSiteUserOptionalParams
1139
+ ): Promise<void> {
1140
+ return this.client.sendOperationRequest(
1141
+ { resourceGroupName, name, authprovider, userid, options },
1142
+ deleteStaticSiteUserOperationSpec
1143
+ );
1144
+ }
1145
+
1146
+ /**
1147
+ * Description for Updates a user entry with the listed roles
1148
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1149
+ * @param name Name of the static site.
1150
+ * @param authprovider The auth provider for this user.
1151
+ * @param userid The user id of the user.
1152
+ * @param staticSiteUserEnvelope A JSON representation of the StaticSiteUser properties. See example.
1153
+ * @param options The options parameters.
1154
+ */
1155
+ updateStaticSiteUser(
1156
+ resourceGroupName: string,
1157
+ name: string,
1158
+ authprovider: string,
1159
+ userid: string,
1160
+ staticSiteUserEnvelope: StaticSiteUserARMResource,
1161
+ options?: StaticSitesUpdateStaticSiteUserOptionalParams
1162
+ ): Promise<StaticSitesUpdateStaticSiteUserResponse> {
1163
+ return this.client.sendOperationRequest(
1164
+ {
1165
+ resourceGroupName,
1166
+ name,
1167
+ authprovider,
1168
+ userid,
1169
+ staticSiteUserEnvelope,
1170
+ options
1171
+ },
1172
+ updateStaticSiteUserOperationSpec
1173
+ );
1174
+ }
1175
+
1176
+ /**
1177
+ * Description for Gets all static site builds for a particular static site.
1178
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1179
+ * @param name Name of the static site.
1180
+ * @param options The options parameters.
1181
+ */
1182
+ private _getStaticSiteBuilds(
1183
+ resourceGroupName: string,
1184
+ name: string,
1185
+ options?: StaticSitesGetStaticSiteBuildsOptionalParams
1186
+ ): Promise<StaticSitesGetStaticSiteBuildsResponse> {
1187
+ return this.client.sendOperationRequest(
1188
+ { resourceGroupName, name, options },
1189
+ getStaticSiteBuildsOperationSpec
1190
+ );
1191
+ }
1192
+
1193
+ /**
1194
+ * Description for Gets the details of a static site build.
1195
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1196
+ * @param name Name of the static site.
1197
+ * @param environmentName The stage site identifier.
1198
+ * @param options The options parameters.
1199
+ */
1200
+ getStaticSiteBuild(
1201
+ resourceGroupName: string,
1202
+ name: string,
1203
+ environmentName: string,
1204
+ options?: StaticSitesGetStaticSiteBuildOptionalParams
1205
+ ): Promise<StaticSitesGetStaticSiteBuildResponse> {
1206
+ return this.client.sendOperationRequest(
1207
+ { resourceGroupName, name, environmentName, options },
1208
+ getStaticSiteBuildOperationSpec
1209
+ );
1210
+ }
1211
+
1212
+ /**
1213
+ * Description for Deletes a static site build.
1214
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1215
+ * @param name Name of the static site.
1216
+ * @param environmentName The stage site identifier.
1217
+ * @param options The options parameters.
1218
+ */
1219
+ async beginDeleteStaticSiteBuild(
1220
+ resourceGroupName: string,
1221
+ name: string,
1222
+ environmentName: string,
1223
+ options?: StaticSitesDeleteStaticSiteBuildOptionalParams
1224
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1225
+ const directSendOperation = async (
1226
+ args: coreClient.OperationArguments,
1227
+ spec: coreClient.OperationSpec
1228
+ ): Promise<void> => {
1229
+ return this.client.sendOperationRequest(args, spec);
1230
+ };
1231
+ const sendOperation = async (
1232
+ args: coreClient.OperationArguments,
1233
+ spec: coreClient.OperationSpec
1234
+ ) => {
1235
+ let currentRawResponse:
1236
+ | coreClient.FullOperationResponse
1237
+ | undefined = undefined;
1238
+ const providedCallback = args.options?.onResponse;
1239
+ const callback: coreClient.RawResponseCallback = (
1240
+ rawResponse: coreClient.FullOperationResponse,
1241
+ flatResponse: unknown
1242
+ ) => {
1243
+ currentRawResponse = rawResponse;
1244
+ providedCallback?.(rawResponse, flatResponse);
1245
+ };
1246
+ const updatedArgs = {
1247
+ ...args,
1248
+ options: {
1249
+ ...args.options,
1250
+ onResponse: callback
1251
+ }
1252
+ };
1253
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1254
+ return {
1255
+ flatResponse,
1256
+ rawResponse: {
1257
+ statusCode: currentRawResponse!.status,
1258
+ body: currentRawResponse!.parsedBody,
1259
+ headers: currentRawResponse!.headers.toJSON()
1260
+ }
1261
+ };
1262
+ };
1263
+
1264
+ const lro = new LroImpl(
1265
+ sendOperation,
1266
+ { resourceGroupName, name, environmentName, options },
1267
+ deleteStaticSiteBuildOperationSpec
1268
+ );
1269
+ return new LroEngine(lro, {
1270
+ resumeFrom: options?.resumeFrom,
1271
+ intervalInMs: options?.updateIntervalInMs
1272
+ });
1273
+ }
1274
+
1275
+ /**
1276
+ * Description for Deletes a static site build.
1277
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1278
+ * @param name Name of the static site.
1279
+ * @param environmentName The stage site identifier.
1280
+ * @param options The options parameters.
1281
+ */
1282
+ async beginDeleteStaticSiteBuildAndWait(
1283
+ resourceGroupName: string,
1284
+ name: string,
1285
+ environmentName: string,
1286
+ options?: StaticSitesDeleteStaticSiteBuildOptionalParams
1287
+ ): Promise<void> {
1288
+ const poller = await this.beginDeleteStaticSiteBuild(
1289
+ resourceGroupName,
1290
+ name,
1291
+ environmentName,
1292
+ options
1293
+ );
1294
+ return poller.pollUntilDone();
1295
+ }
1296
+
1297
+ /**
1298
+ * Description for Creates or updates the app settings of a static site build.
1299
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1300
+ * @param name Name of the static site.
1301
+ * @param environmentName The stage site identifier.
1302
+ * @param appSettings The dictionary containing the static site app settings to update.
1303
+ * @param options The options parameters.
1304
+ */
1305
+ createOrUpdateStaticSiteBuildAppSettings(
1306
+ resourceGroupName: string,
1307
+ name: string,
1308
+ environmentName: string,
1309
+ appSettings: StringDictionary,
1310
+ options?: StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsOptionalParams
1311
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsResponse> {
1312
+ return this.client.sendOperationRequest(
1313
+ { resourceGroupName, name, environmentName, appSettings, options },
1314
+ createOrUpdateStaticSiteBuildAppSettingsOperationSpec
1315
+ );
1316
+ }
1317
+
1318
+ /**
1319
+ * Description for Creates or updates the function app settings of a static site build.
1320
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1321
+ * @param name Name of the static site.
1322
+ * @param environmentName The stage site identifier.
1323
+ * @param appSettings The dictionary containing the static site function app settings to update.
1324
+ * @param options The options parameters.
1325
+ */
1326
+ createOrUpdateStaticSiteBuildFunctionAppSettings(
1327
+ resourceGroupName: string,
1328
+ name: string,
1329
+ environmentName: string,
1330
+ appSettings: StringDictionary,
1331
+ options?: StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptionalParams
1332
+ ): Promise<
1333
+ StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsResponse
1334
+ > {
1335
+ return this.client.sendOperationRequest(
1336
+ { resourceGroupName, name, environmentName, appSettings, options },
1337
+ createOrUpdateStaticSiteBuildFunctionAppSettingsOperationSpec
1338
+ );
1339
+ }
1340
+
1341
+ /**
1342
+ * Description for Gets the functions of a particular static site build.
1343
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1344
+ * @param name Name of the static site.
1345
+ * @param environmentName The stage site identifier.
1346
+ * @param options The options parameters.
1347
+ */
1348
+ private _listStaticSiteBuildFunctions(
1349
+ resourceGroupName: string,
1350
+ name: string,
1351
+ environmentName: string,
1352
+ options?: StaticSitesListStaticSiteBuildFunctionsOptionalParams
1353
+ ): Promise<StaticSitesListStaticSiteBuildFunctionsResponse> {
1354
+ return this.client.sendOperationRequest(
1355
+ { resourceGroupName, name, environmentName, options },
1356
+ listStaticSiteBuildFunctionsOperationSpec
1357
+ );
1358
+ }
1359
+
1360
+ /**
1361
+ * Description for Gets the application settings of a static site build.
1362
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1363
+ * @param name Name of the static site.
1364
+ * @param environmentName The stage site identifier.
1365
+ * @param options The options parameters.
1366
+ */
1367
+ listStaticSiteBuildAppSettings(
1368
+ resourceGroupName: string,
1369
+ name: string,
1370
+ environmentName: string,
1371
+ options?: StaticSitesListStaticSiteBuildAppSettingsOptionalParams
1372
+ ): Promise<StaticSitesListStaticSiteBuildAppSettingsResponse> {
1373
+ return this.client.sendOperationRequest(
1374
+ { resourceGroupName, name, environmentName, options },
1375
+ listStaticSiteBuildAppSettingsOperationSpec
1376
+ );
1377
+ }
1378
+
1379
+ /**
1380
+ * Description for Gets the application settings of a static site build.
1381
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1382
+ * @param name Name of the static site.
1383
+ * @param environmentName The stage site identifier.
1384
+ * @param options The options parameters.
1385
+ */
1386
+ listStaticSiteBuildFunctionAppSettings(
1387
+ resourceGroupName: string,
1388
+ name: string,
1389
+ environmentName: string,
1390
+ options?: StaticSitesListStaticSiteBuildFunctionAppSettingsOptionalParams
1391
+ ): Promise<StaticSitesListStaticSiteBuildFunctionAppSettingsResponse> {
1392
+ return this.client.sendOperationRequest(
1393
+ { resourceGroupName, name, environmentName, options },
1394
+ listStaticSiteBuildFunctionAppSettingsOperationSpec
1395
+ );
1396
+ }
1397
+
1398
+ /**
1399
+ * Description for Gets the details of the user provided function apps registered with a static site
1400
+ * build
1401
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1402
+ * @param name Name of the static site.
1403
+ * @param environmentName The stage site identifier.
1404
+ * @param options The options parameters.
1405
+ */
1406
+ private _getUserProvidedFunctionAppsForStaticSiteBuild(
1407
+ resourceGroupName: string,
1408
+ name: string,
1409
+ environmentName: string,
1410
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams
1411
+ ): Promise<StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildResponse> {
1412
+ return this.client.sendOperationRequest(
1413
+ { resourceGroupName, name, environmentName, options },
1414
+ getUserProvidedFunctionAppsForStaticSiteBuildOperationSpec
1415
+ );
1416
+ }
1417
+
1418
+ /**
1419
+ * Description for Gets the details of the user provided function app registered with a static site
1420
+ * build
1421
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1422
+ * @param name Name of the static site.
1423
+ * @param environmentName The stage site identifier.
1424
+ * @param functionAppName Name of the function app registered with the static site build.
1425
+ * @param options The options parameters.
1426
+ */
1427
+ getUserProvidedFunctionAppForStaticSiteBuild(
1428
+ resourceGroupName: string,
1429
+ name: string,
1430
+ environmentName: string,
1431
+ functionAppName: string,
1432
+ options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildOptionalParams
1433
+ ): Promise<StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildResponse> {
1434
+ return this.client.sendOperationRequest(
1435
+ { resourceGroupName, name, environmentName, functionAppName, options },
1436
+ getUserProvidedFunctionAppForStaticSiteBuildOperationSpec
1437
+ );
1438
+ }
1439
+
1440
+ /**
1441
+ * Description for Register a user provided function app with a static site build
1442
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1443
+ * @param name Name of the static site.
1444
+ * @param environmentName The stage site identifier.
1445
+ * @param functionAppName Name of the function app to register with the static site build.
1446
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
1447
+ * app properties. See example.
1448
+ * @param options The options parameters.
1449
+ */
1450
+ async beginRegisterUserProvidedFunctionAppWithStaticSiteBuild(
1451
+ resourceGroupName: string,
1452
+ name: string,
1453
+ environmentName: string,
1454
+ functionAppName: string,
1455
+ staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource,
1456
+ options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildOptionalParams
1457
+ ): Promise<
1458
+ PollerLike<
1459
+ PollOperationState<
1460
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse
1461
+ >,
1462
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse
1463
+ >
1464
+ > {
1465
+ const directSendOperation = async (
1466
+ args: coreClient.OperationArguments,
1467
+ spec: coreClient.OperationSpec
1468
+ ): Promise<StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse> => {
1469
+ return this.client.sendOperationRequest(args, spec);
1470
+ };
1471
+ const sendOperation = async (
1472
+ args: coreClient.OperationArguments,
1473
+ spec: coreClient.OperationSpec
1474
+ ) => {
1475
+ let currentRawResponse:
1476
+ | coreClient.FullOperationResponse
1477
+ | undefined = undefined;
1478
+ const providedCallback = args.options?.onResponse;
1479
+ const callback: coreClient.RawResponseCallback = (
1480
+ rawResponse: coreClient.FullOperationResponse,
1481
+ flatResponse: unknown
1482
+ ) => {
1483
+ currentRawResponse = rawResponse;
1484
+ providedCallback?.(rawResponse, flatResponse);
1485
+ };
1486
+ const updatedArgs = {
1487
+ ...args,
1488
+ options: {
1489
+ ...args.options,
1490
+ onResponse: callback
1491
+ }
1492
+ };
1493
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1494
+ return {
1495
+ flatResponse,
1496
+ rawResponse: {
1497
+ statusCode: currentRawResponse!.status,
1498
+ body: currentRawResponse!.parsedBody,
1499
+ headers: currentRawResponse!.headers.toJSON()
1500
+ }
1501
+ };
1502
+ };
1503
+
1504
+ const lro = new LroImpl(
1505
+ sendOperation,
1506
+ {
1507
+ resourceGroupName,
1508
+ name,
1509
+ environmentName,
1510
+ functionAppName,
1511
+ staticSiteUserProvidedFunctionEnvelope,
1512
+ options
1513
+ },
1514
+ registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec
1515
+ );
1516
+ return new LroEngine(lro, {
1517
+ resumeFrom: options?.resumeFrom,
1518
+ intervalInMs: options?.updateIntervalInMs
1519
+ });
1520
+ }
1521
+
1522
+ /**
1523
+ * Description for Register a user provided function app with a static site build
1524
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1525
+ * @param name Name of the static site.
1526
+ * @param environmentName The stage site identifier.
1527
+ * @param functionAppName Name of the function app to register with the static site build.
1528
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
1529
+ * app properties. See example.
1530
+ * @param options The options parameters.
1531
+ */
1532
+ async beginRegisterUserProvidedFunctionAppWithStaticSiteBuildAndWait(
1533
+ resourceGroupName: string,
1534
+ name: string,
1535
+ environmentName: string,
1536
+ functionAppName: string,
1537
+ staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource,
1538
+ options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildOptionalParams
1539
+ ): Promise<
1540
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse
1541
+ > {
1542
+ const poller = await this.beginRegisterUserProvidedFunctionAppWithStaticSiteBuild(
1543
+ resourceGroupName,
1544
+ name,
1545
+ environmentName,
1546
+ functionAppName,
1547
+ staticSiteUserProvidedFunctionEnvelope,
1548
+ options
1549
+ );
1550
+ return poller.pollUntilDone();
1551
+ }
1552
+
1553
+ /**
1554
+ * Description for Detach the user provided function app from the static site build
1555
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1556
+ * @param name Name of the static site.
1557
+ * @param environmentName The stage site identifier.
1558
+ * @param functionAppName Name of the function app registered with the static site build.
1559
+ * @param options The options parameters.
1560
+ */
1561
+ detachUserProvidedFunctionAppFromStaticSiteBuild(
1562
+ resourceGroupName: string,
1563
+ name: string,
1564
+ environmentName: string,
1565
+ functionAppName: string,
1566
+ options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildOptionalParams
1567
+ ): Promise<void> {
1568
+ return this.client.sendOperationRequest(
1569
+ { resourceGroupName, name, environmentName, functionAppName, options },
1570
+ detachUserProvidedFunctionAppFromStaticSiteBuildOperationSpec
1571
+ );
1572
+ }
1573
+
1574
+ /**
1575
+ * Description for Deploys zipped content to a specific environment of a static site.
1576
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1577
+ * @param name Name of the static site.
1578
+ * @param environmentName Name of the environment.
1579
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
1580
+ * properties. See example.
1581
+ * @param options The options parameters.
1582
+ */
1583
+ async beginCreateZipDeploymentForStaticSiteBuild(
1584
+ resourceGroupName: string,
1585
+ name: string,
1586
+ environmentName: string,
1587
+ staticSiteZipDeploymentEnvelope: StaticSiteZipDeploymentARMResource,
1588
+ options?: StaticSitesCreateZipDeploymentForStaticSiteBuildOptionalParams
1589
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1590
+ const directSendOperation = async (
1591
+ args: coreClient.OperationArguments,
1592
+ spec: coreClient.OperationSpec
1593
+ ): Promise<void> => {
1594
+ return this.client.sendOperationRequest(args, spec);
1595
+ };
1596
+ const sendOperation = async (
1597
+ args: coreClient.OperationArguments,
1598
+ spec: coreClient.OperationSpec
1599
+ ) => {
1600
+ let currentRawResponse:
1601
+ | coreClient.FullOperationResponse
1602
+ | undefined = undefined;
1603
+ const providedCallback = args.options?.onResponse;
1604
+ const callback: coreClient.RawResponseCallback = (
1605
+ rawResponse: coreClient.FullOperationResponse,
1606
+ flatResponse: unknown
1607
+ ) => {
1608
+ currentRawResponse = rawResponse;
1609
+ providedCallback?.(rawResponse, flatResponse);
1610
+ };
1611
+ const updatedArgs = {
1612
+ ...args,
1613
+ options: {
1614
+ ...args.options,
1615
+ onResponse: callback
1616
+ }
1617
+ };
1618
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1619
+ return {
1620
+ flatResponse,
1621
+ rawResponse: {
1622
+ statusCode: currentRawResponse!.status,
1623
+ body: currentRawResponse!.parsedBody,
1624
+ headers: currentRawResponse!.headers.toJSON()
1625
+ }
1626
+ };
1627
+ };
1628
+
1629
+ const lro = new LroImpl(
1630
+ sendOperation,
1631
+ {
1632
+ resourceGroupName,
1633
+ name,
1634
+ environmentName,
1635
+ staticSiteZipDeploymentEnvelope,
1636
+ options
1637
+ },
1638
+ createZipDeploymentForStaticSiteBuildOperationSpec
1639
+ );
1640
+ return new LroEngine(lro, {
1641
+ resumeFrom: options?.resumeFrom,
1642
+ intervalInMs: options?.updateIntervalInMs
1643
+ });
1644
+ }
1645
+
1646
+ /**
1647
+ * Description for Deploys zipped content to a specific environment of a static site.
1648
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1649
+ * @param name Name of the static site.
1650
+ * @param environmentName Name of the environment.
1651
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
1652
+ * properties. See example.
1653
+ * @param options The options parameters.
1654
+ */
1655
+ async beginCreateZipDeploymentForStaticSiteBuildAndWait(
1656
+ resourceGroupName: string,
1657
+ name: string,
1658
+ environmentName: string,
1659
+ staticSiteZipDeploymentEnvelope: StaticSiteZipDeploymentARMResource,
1660
+ options?: StaticSitesCreateZipDeploymentForStaticSiteBuildOptionalParams
1661
+ ): Promise<void> {
1662
+ const poller = await this.beginCreateZipDeploymentForStaticSiteBuild(
1663
+ resourceGroupName,
1664
+ name,
1665
+ environmentName,
1666
+ staticSiteZipDeploymentEnvelope,
1667
+ options
1668
+ );
1669
+ return poller.pollUntilDone();
1670
+ }
1671
+
1672
+ /**
1673
+ * Description for Creates or updates the app settings of a static site.
1674
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1675
+ * @param name Name of the static site.
1676
+ * @param appSettings The dictionary containing the static site app settings to update.
1677
+ * @param options The options parameters.
1678
+ */
1679
+ createOrUpdateStaticSiteAppSettings(
1680
+ resourceGroupName: string,
1681
+ name: string,
1682
+ appSettings: StringDictionary,
1683
+ options?: StaticSitesCreateOrUpdateStaticSiteAppSettingsOptionalParams
1684
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteAppSettingsResponse> {
1685
+ return this.client.sendOperationRequest(
1686
+ { resourceGroupName, name, appSettings, options },
1687
+ createOrUpdateStaticSiteAppSettingsOperationSpec
1688
+ );
1689
+ }
1690
+
1691
+ /**
1692
+ * Description for Creates or updates the function app settings of a static site.
1693
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1694
+ * @param name Name of the static site.
1695
+ * @param appSettings The dictionary containing the static site function app settings to update.
1696
+ * @param options The options parameters.
1697
+ */
1698
+ createOrUpdateStaticSiteFunctionAppSettings(
1699
+ resourceGroupName: string,
1700
+ name: string,
1701
+ appSettings: StringDictionary,
1702
+ options?: StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsOptionalParams
1703
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsResponse> {
1704
+ return this.client.sendOperationRequest(
1705
+ { resourceGroupName, name, appSettings, options },
1706
+ createOrUpdateStaticSiteFunctionAppSettingsOperationSpec
1707
+ );
1708
+ }
1709
+
1710
+ /**
1711
+ * Description for Creates an invitation link for a user with the role
1712
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1713
+ * @param name Name of the static site.
1714
+ * @param staticSiteUserRolesInvitationEnvelope Static sites user roles invitation resource.
1715
+ * @param options The options parameters.
1716
+ */
1717
+ createUserRolesInvitationLink(
1718
+ resourceGroupName: string,
1719
+ name: string,
1720
+ staticSiteUserRolesInvitationEnvelope: StaticSiteUserInvitationRequestResource,
1721
+ options?: StaticSitesCreateUserRolesInvitationLinkOptionalParams
1722
+ ): Promise<StaticSitesCreateUserRolesInvitationLinkResponse> {
1723
+ return this.client.sendOperationRequest(
1724
+ {
1725
+ resourceGroupName,
1726
+ name,
1727
+ staticSiteUserRolesInvitationEnvelope,
1728
+ options
1729
+ },
1730
+ createUserRolesInvitationLinkOperationSpec
1731
+ );
1732
+ }
1733
+
1734
+ /**
1735
+ * Description for Gets all static site custom domains for a particular static site.
1736
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1737
+ * @param name Name of the static site resource to search in.
1738
+ * @param options The options parameters.
1739
+ */
1740
+ private _listStaticSiteCustomDomains(
1741
+ resourceGroupName: string,
1742
+ name: string,
1743
+ options?: StaticSitesListStaticSiteCustomDomainsOptionalParams
1744
+ ): Promise<StaticSitesListStaticSiteCustomDomainsResponse> {
1745
+ return this.client.sendOperationRequest(
1746
+ { resourceGroupName, name, options },
1747
+ listStaticSiteCustomDomainsOperationSpec
1748
+ );
1749
+ }
1750
+
1751
+ /**
1752
+ * Description for Gets an existing custom domain for a particular static site.
1753
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1754
+ * @param name Name of the static site resource to search in.
1755
+ * @param domainName The custom domain name.
1756
+ * @param options The options parameters.
1757
+ */
1758
+ getStaticSiteCustomDomain(
1759
+ resourceGroupName: string,
1760
+ name: string,
1761
+ domainName: string,
1762
+ options?: StaticSitesGetStaticSiteCustomDomainOptionalParams
1763
+ ): Promise<StaticSitesGetStaticSiteCustomDomainResponse> {
1764
+ return this.client.sendOperationRequest(
1765
+ { resourceGroupName, name, domainName, options },
1766
+ getStaticSiteCustomDomainOperationSpec
1767
+ );
1768
+ }
1769
+
1770
+ /**
1771
+ * Description for Creates a new static site custom domain in an existing resource group and static
1772
+ * site.
1773
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1774
+ * @param name Name of the static site.
1775
+ * @param domainName The custom domain to create.
1776
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1777
+ * custom domain request properties. See example.
1778
+ * @param options The options parameters.
1779
+ */
1780
+ async beginCreateOrUpdateStaticSiteCustomDomain(
1781
+ resourceGroupName: string,
1782
+ name: string,
1783
+ domainName: string,
1784
+ staticSiteCustomDomainRequestPropertiesEnvelope: StaticSiteCustomDomainRequestPropertiesARMResource,
1785
+ options?: StaticSitesCreateOrUpdateStaticSiteCustomDomainOptionalParams
1786
+ ): Promise<
1787
+ PollerLike<
1788
+ PollOperationState<
1789
+ StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse
1790
+ >,
1791
+ StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse
1792
+ >
1793
+ > {
1794
+ const directSendOperation = async (
1795
+ args: coreClient.OperationArguments,
1796
+ spec: coreClient.OperationSpec
1797
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse> => {
1798
+ return this.client.sendOperationRequest(args, spec);
1799
+ };
1800
+ const sendOperation = async (
1801
+ args: coreClient.OperationArguments,
1802
+ spec: coreClient.OperationSpec
1803
+ ) => {
1804
+ let currentRawResponse:
1805
+ | coreClient.FullOperationResponse
1806
+ | undefined = undefined;
1807
+ const providedCallback = args.options?.onResponse;
1808
+ const callback: coreClient.RawResponseCallback = (
1809
+ rawResponse: coreClient.FullOperationResponse,
1810
+ flatResponse: unknown
1811
+ ) => {
1812
+ currentRawResponse = rawResponse;
1813
+ providedCallback?.(rawResponse, flatResponse);
1814
+ };
1815
+ const updatedArgs = {
1816
+ ...args,
1817
+ options: {
1818
+ ...args.options,
1819
+ onResponse: callback
1820
+ }
1821
+ };
1822
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1823
+ return {
1824
+ flatResponse,
1825
+ rawResponse: {
1826
+ statusCode: currentRawResponse!.status,
1827
+ body: currentRawResponse!.parsedBody,
1828
+ headers: currentRawResponse!.headers.toJSON()
1829
+ }
1830
+ };
1831
+ };
1832
+
1833
+ const lro = new LroImpl(
1834
+ sendOperation,
1835
+ {
1836
+ resourceGroupName,
1837
+ name,
1838
+ domainName,
1839
+ staticSiteCustomDomainRequestPropertiesEnvelope,
1840
+ options
1841
+ },
1842
+ createOrUpdateStaticSiteCustomDomainOperationSpec
1843
+ );
1844
+ return new LroEngine(lro, {
1845
+ resumeFrom: options?.resumeFrom,
1846
+ intervalInMs: options?.updateIntervalInMs
1847
+ });
1848
+ }
1849
+
1850
+ /**
1851
+ * Description for Creates a new static site custom domain in an existing resource group and static
1852
+ * site.
1853
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1854
+ * @param name Name of the static site.
1855
+ * @param domainName The custom domain to create.
1856
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1857
+ * custom domain request properties. See example.
1858
+ * @param options The options parameters.
1859
+ */
1860
+ async beginCreateOrUpdateStaticSiteCustomDomainAndWait(
1861
+ resourceGroupName: string,
1862
+ name: string,
1863
+ domainName: string,
1864
+ staticSiteCustomDomainRequestPropertiesEnvelope: StaticSiteCustomDomainRequestPropertiesARMResource,
1865
+ options?: StaticSitesCreateOrUpdateStaticSiteCustomDomainOptionalParams
1866
+ ): Promise<StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse> {
1867
+ const poller = await this.beginCreateOrUpdateStaticSiteCustomDomain(
1868
+ resourceGroupName,
1869
+ name,
1870
+ domainName,
1871
+ staticSiteCustomDomainRequestPropertiesEnvelope,
1872
+ options
1873
+ );
1874
+ return poller.pollUntilDone();
1875
+ }
1876
+
1877
+ /**
1878
+ * Description for Deletes a custom domain.
1879
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1880
+ * @param name Name of the static site.
1881
+ * @param domainName The custom domain to delete.
1882
+ * @param options The options parameters.
1883
+ */
1884
+ async beginDeleteStaticSiteCustomDomain(
1885
+ resourceGroupName: string,
1886
+ name: string,
1887
+ domainName: string,
1888
+ options?: StaticSitesDeleteStaticSiteCustomDomainOptionalParams
1889
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1890
+ const directSendOperation = async (
1891
+ args: coreClient.OperationArguments,
1892
+ spec: coreClient.OperationSpec
1893
+ ): Promise<void> => {
1894
+ return this.client.sendOperationRequest(args, spec);
1895
+ };
1896
+ const sendOperation = async (
1897
+ args: coreClient.OperationArguments,
1898
+ spec: coreClient.OperationSpec
1899
+ ) => {
1900
+ let currentRawResponse:
1901
+ | coreClient.FullOperationResponse
1902
+ | undefined = undefined;
1903
+ const providedCallback = args.options?.onResponse;
1904
+ const callback: coreClient.RawResponseCallback = (
1905
+ rawResponse: coreClient.FullOperationResponse,
1906
+ flatResponse: unknown
1907
+ ) => {
1908
+ currentRawResponse = rawResponse;
1909
+ providedCallback?.(rawResponse, flatResponse);
1910
+ };
1911
+ const updatedArgs = {
1912
+ ...args,
1913
+ options: {
1914
+ ...args.options,
1915
+ onResponse: callback
1916
+ }
1917
+ };
1918
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1919
+ return {
1920
+ flatResponse,
1921
+ rawResponse: {
1922
+ statusCode: currentRawResponse!.status,
1923
+ body: currentRawResponse!.parsedBody,
1924
+ headers: currentRawResponse!.headers.toJSON()
1925
+ }
1926
+ };
1927
+ };
1928
+
1929
+ const lro = new LroImpl(
1930
+ sendOperation,
1931
+ { resourceGroupName, name, domainName, options },
1932
+ deleteStaticSiteCustomDomainOperationSpec
1933
+ );
1934
+ return new LroEngine(lro, {
1935
+ resumeFrom: options?.resumeFrom,
1936
+ intervalInMs: options?.updateIntervalInMs
1937
+ });
1938
+ }
1939
+
1940
+ /**
1941
+ * Description for Deletes a custom domain.
1942
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1943
+ * @param name Name of the static site.
1944
+ * @param domainName The custom domain to delete.
1945
+ * @param options The options parameters.
1946
+ */
1947
+ async beginDeleteStaticSiteCustomDomainAndWait(
1948
+ resourceGroupName: string,
1949
+ name: string,
1950
+ domainName: string,
1951
+ options?: StaticSitesDeleteStaticSiteCustomDomainOptionalParams
1952
+ ): Promise<void> {
1953
+ const poller = await this.beginDeleteStaticSiteCustomDomain(
1954
+ resourceGroupName,
1955
+ name,
1956
+ domainName,
1957
+ options
1958
+ );
1959
+ return poller.pollUntilDone();
1960
+ }
1961
+
1962
+ /**
1963
+ * Description for Validates a particular custom domain can be added to a static site.
1964
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1965
+ * @param name Name of the static site.
1966
+ * @param domainName The custom domain to validate.
1967
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1968
+ * custom domain request properties. See example.
1969
+ * @param options The options parameters.
1970
+ */
1971
+ async beginValidateCustomDomainCanBeAddedToStaticSite(
1972
+ resourceGroupName: string,
1973
+ name: string,
1974
+ domainName: string,
1975
+ staticSiteCustomDomainRequestPropertiesEnvelope: StaticSiteCustomDomainRequestPropertiesARMResource,
1976
+ options?: StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams
1977
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1978
+ const directSendOperation = async (
1979
+ args: coreClient.OperationArguments,
1980
+ spec: coreClient.OperationSpec
1981
+ ): Promise<void> => {
1982
+ return this.client.sendOperationRequest(args, spec);
1983
+ };
1984
+ const sendOperation = async (
1985
+ args: coreClient.OperationArguments,
1986
+ spec: coreClient.OperationSpec
1987
+ ) => {
1988
+ let currentRawResponse:
1989
+ | coreClient.FullOperationResponse
1990
+ | undefined = undefined;
1991
+ const providedCallback = args.options?.onResponse;
1992
+ const callback: coreClient.RawResponseCallback = (
1993
+ rawResponse: coreClient.FullOperationResponse,
1994
+ flatResponse: unknown
1995
+ ) => {
1996
+ currentRawResponse = rawResponse;
1997
+ providedCallback?.(rawResponse, flatResponse);
1998
+ };
1999
+ const updatedArgs = {
2000
+ ...args,
2001
+ options: {
2002
+ ...args.options,
2003
+ onResponse: callback
2004
+ }
2005
+ };
2006
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2007
+ return {
2008
+ flatResponse,
2009
+ rawResponse: {
2010
+ statusCode: currentRawResponse!.status,
2011
+ body: currentRawResponse!.parsedBody,
2012
+ headers: currentRawResponse!.headers.toJSON()
2013
+ }
2014
+ };
2015
+ };
2016
+
2017
+ const lro = new LroImpl(
2018
+ sendOperation,
2019
+ {
2020
+ resourceGroupName,
2021
+ name,
2022
+ domainName,
2023
+ staticSiteCustomDomainRequestPropertiesEnvelope,
2024
+ options
2025
+ },
2026
+ validateCustomDomainCanBeAddedToStaticSiteOperationSpec
2027
+ );
2028
+ return new LroEngine(lro, {
2029
+ resumeFrom: options?.resumeFrom,
2030
+ intervalInMs: options?.updateIntervalInMs
2031
+ });
2032
+ }
2033
+
2034
+ /**
2035
+ * Description for Validates a particular custom domain can be added to a static site.
2036
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2037
+ * @param name Name of the static site.
2038
+ * @param domainName The custom domain to validate.
2039
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
2040
+ * custom domain request properties. See example.
2041
+ * @param options The options parameters.
2042
+ */
2043
+ async beginValidateCustomDomainCanBeAddedToStaticSiteAndWait(
2044
+ resourceGroupName: string,
2045
+ name: string,
2046
+ domainName: string,
2047
+ staticSiteCustomDomainRequestPropertiesEnvelope: StaticSiteCustomDomainRequestPropertiesARMResource,
2048
+ options?: StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams
2049
+ ): Promise<void> {
2050
+ const poller = await this.beginValidateCustomDomainCanBeAddedToStaticSite(
2051
+ resourceGroupName,
2052
+ name,
2053
+ domainName,
2054
+ staticSiteCustomDomainRequestPropertiesEnvelope,
2055
+ options
2056
+ );
2057
+ return poller.pollUntilDone();
2058
+ }
2059
+
2060
+ /**
2061
+ * Description for Detaches a static site.
2062
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2063
+ * @param name Name of the static site to detach.
2064
+ * @param options The options parameters.
2065
+ */
2066
+ async beginDetachStaticSite(
2067
+ resourceGroupName: string,
2068
+ name: string,
2069
+ options?: StaticSitesDetachStaticSiteOptionalParams
2070
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
2071
+ const directSendOperation = async (
2072
+ args: coreClient.OperationArguments,
2073
+ spec: coreClient.OperationSpec
2074
+ ): Promise<void> => {
2075
+ return this.client.sendOperationRequest(args, spec);
2076
+ };
2077
+ const sendOperation = async (
2078
+ args: coreClient.OperationArguments,
2079
+ spec: coreClient.OperationSpec
2080
+ ) => {
2081
+ let currentRawResponse:
2082
+ | coreClient.FullOperationResponse
2083
+ | undefined = undefined;
2084
+ const providedCallback = args.options?.onResponse;
2085
+ const callback: coreClient.RawResponseCallback = (
2086
+ rawResponse: coreClient.FullOperationResponse,
2087
+ flatResponse: unknown
2088
+ ) => {
2089
+ currentRawResponse = rawResponse;
2090
+ providedCallback?.(rawResponse, flatResponse);
2091
+ };
2092
+ const updatedArgs = {
2093
+ ...args,
2094
+ options: {
2095
+ ...args.options,
2096
+ onResponse: callback
2097
+ }
2098
+ };
2099
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2100
+ return {
2101
+ flatResponse,
2102
+ rawResponse: {
2103
+ statusCode: currentRawResponse!.status,
2104
+ body: currentRawResponse!.parsedBody,
2105
+ headers: currentRawResponse!.headers.toJSON()
2106
+ }
2107
+ };
2108
+ };
2109
+
2110
+ const lro = new LroImpl(
2111
+ sendOperation,
2112
+ { resourceGroupName, name, options },
2113
+ detachStaticSiteOperationSpec
2114
+ );
2115
+ return new LroEngine(lro, {
2116
+ resumeFrom: options?.resumeFrom,
2117
+ intervalInMs: options?.updateIntervalInMs
2118
+ });
2119
+ }
2120
+
2121
+ /**
2122
+ * Description for Detaches a static site.
2123
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2124
+ * @param name Name of the static site to detach.
2125
+ * @param options The options parameters.
2126
+ */
2127
+ async beginDetachStaticSiteAndWait(
2128
+ resourceGroupName: string,
2129
+ name: string,
2130
+ options?: StaticSitesDetachStaticSiteOptionalParams
2131
+ ): Promise<void> {
2132
+ const poller = await this.beginDetachStaticSite(
2133
+ resourceGroupName,
2134
+ name,
2135
+ options
2136
+ );
2137
+ return poller.pollUntilDone();
2138
+ }
2139
+
2140
+ /**
2141
+ * Description for Gets the functions of a static site.
2142
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2143
+ * @param name Name of the static site.
2144
+ * @param options The options parameters.
2145
+ */
2146
+ private _listStaticSiteFunctions(
2147
+ resourceGroupName: string,
2148
+ name: string,
2149
+ options?: StaticSitesListStaticSiteFunctionsOptionalParams
2150
+ ): Promise<StaticSitesListStaticSiteFunctionsResponse> {
2151
+ return this.client.sendOperationRequest(
2152
+ { resourceGroupName, name, options },
2153
+ listStaticSiteFunctionsOperationSpec
2154
+ );
2155
+ }
2156
+
2157
+ /**
2158
+ * Description for Gets the application settings of a static site.
2159
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2160
+ * @param name Name of the static site.
2161
+ * @param options The options parameters.
2162
+ */
2163
+ listStaticSiteAppSettings(
2164
+ resourceGroupName: string,
2165
+ name: string,
2166
+ options?: StaticSitesListStaticSiteAppSettingsOptionalParams
2167
+ ): Promise<StaticSitesListStaticSiteAppSettingsResponse> {
2168
+ return this.client.sendOperationRequest(
2169
+ { resourceGroupName, name, options },
2170
+ listStaticSiteAppSettingsOperationSpec
2171
+ );
2172
+ }
2173
+
2174
+ /**
2175
+ * Description for Lists the roles configured for the static site.
2176
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2177
+ * @param name Name of the static site.
2178
+ * @param options The options parameters.
2179
+ */
2180
+ listStaticSiteConfiguredRoles(
2181
+ resourceGroupName: string,
2182
+ name: string,
2183
+ options?: StaticSitesListStaticSiteConfiguredRolesOptionalParams
2184
+ ): Promise<StaticSitesListStaticSiteConfiguredRolesResponse> {
2185
+ return this.client.sendOperationRequest(
2186
+ { resourceGroupName, name, options },
2187
+ listStaticSiteConfiguredRolesOperationSpec
2188
+ );
2189
+ }
2190
+
2191
+ /**
2192
+ * Description for Gets the application settings of a static site.
2193
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2194
+ * @param name Name of the static site.
2195
+ * @param options The options parameters.
2196
+ */
2197
+ listStaticSiteFunctionAppSettings(
2198
+ resourceGroupName: string,
2199
+ name: string,
2200
+ options?: StaticSitesListStaticSiteFunctionAppSettingsOptionalParams
2201
+ ): Promise<StaticSitesListStaticSiteFunctionAppSettingsResponse> {
2202
+ return this.client.sendOperationRequest(
2203
+ { resourceGroupName, name, options },
2204
+ listStaticSiteFunctionAppSettingsOperationSpec
2205
+ );
2206
+ }
2207
+
2208
+ /**
2209
+ * Description for Lists the secrets for an existing static site.
2210
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2211
+ * @param name Name of the static site.
2212
+ * @param options The options parameters.
2213
+ */
2214
+ listStaticSiteSecrets(
2215
+ resourceGroupName: string,
2216
+ name: string,
2217
+ options?: StaticSitesListStaticSiteSecretsOptionalParams
2218
+ ): Promise<StaticSitesListStaticSiteSecretsResponse> {
2219
+ return this.client.sendOperationRequest(
2220
+ { resourceGroupName, name, options },
2221
+ listStaticSiteSecretsOperationSpec
2222
+ );
2223
+ }
2224
+
2225
+ /**
2226
+ * Description for Gets the list of private endpoint connections associated with a static site
2227
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2228
+ * @param name Name of the static site.
2229
+ * @param options The options parameters.
2230
+ */
2231
+ private _getPrivateEndpointConnectionList(
2232
+ resourceGroupName: string,
2233
+ name: string,
2234
+ options?: StaticSitesGetPrivateEndpointConnectionListOptionalParams
2235
+ ): Promise<StaticSitesGetPrivateEndpointConnectionListResponse> {
2236
+ return this.client.sendOperationRequest(
2237
+ { resourceGroupName, name, options },
2238
+ getPrivateEndpointConnectionListOperationSpec
2239
+ );
2240
+ }
2241
+
2242
+ /**
2243
+ * Description for Gets a private endpoint connection
2244
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2245
+ * @param name Name of the static site.
2246
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
2247
+ * @param options The options parameters.
2248
+ */
2249
+ getPrivateEndpointConnection(
2250
+ resourceGroupName: string,
2251
+ name: string,
2252
+ privateEndpointConnectionName: string,
2253
+ options?: StaticSitesGetPrivateEndpointConnectionOptionalParams
2254
+ ): Promise<StaticSitesGetPrivateEndpointConnectionResponse> {
2255
+ return this.client.sendOperationRequest(
2256
+ { resourceGroupName, name, privateEndpointConnectionName, options },
2257
+ getPrivateEndpointConnectionOperationSpec
2258
+ );
2259
+ }
2260
+
2261
+ /**
2262
+ * Description for Approves or rejects a private endpoint connection
2263
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2264
+ * @param name Name of the static site.
2265
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
2266
+ * @param privateEndpointWrapper Request body.
2267
+ * @param options The options parameters.
2268
+ */
2269
+ async beginApproveOrRejectPrivateEndpointConnection(
2270
+ resourceGroupName: string,
2271
+ name: string,
2272
+ privateEndpointConnectionName: string,
2273
+ privateEndpointWrapper: PrivateLinkConnectionApprovalRequestResource,
2274
+ options?: StaticSitesApproveOrRejectPrivateEndpointConnectionOptionalParams
2275
+ ): Promise<
2276
+ PollerLike<
2277
+ PollOperationState<
2278
+ StaticSitesApproveOrRejectPrivateEndpointConnectionResponse
2279
+ >,
2280
+ StaticSitesApproveOrRejectPrivateEndpointConnectionResponse
2281
+ >
2282
+ > {
2283
+ const directSendOperation = async (
2284
+ args: coreClient.OperationArguments,
2285
+ spec: coreClient.OperationSpec
2286
+ ): Promise<StaticSitesApproveOrRejectPrivateEndpointConnectionResponse> => {
2287
+ return this.client.sendOperationRequest(args, spec);
2288
+ };
2289
+ const sendOperation = async (
2290
+ args: coreClient.OperationArguments,
2291
+ spec: coreClient.OperationSpec
2292
+ ) => {
2293
+ let currentRawResponse:
2294
+ | coreClient.FullOperationResponse
2295
+ | undefined = undefined;
2296
+ const providedCallback = args.options?.onResponse;
2297
+ const callback: coreClient.RawResponseCallback = (
2298
+ rawResponse: coreClient.FullOperationResponse,
2299
+ flatResponse: unknown
2300
+ ) => {
2301
+ currentRawResponse = rawResponse;
2302
+ providedCallback?.(rawResponse, flatResponse);
2303
+ };
2304
+ const updatedArgs = {
2305
+ ...args,
2306
+ options: {
2307
+ ...args.options,
2308
+ onResponse: callback
2309
+ }
2310
+ };
2311
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2312
+ return {
2313
+ flatResponse,
2314
+ rawResponse: {
2315
+ statusCode: currentRawResponse!.status,
2316
+ body: currentRawResponse!.parsedBody,
2317
+ headers: currentRawResponse!.headers.toJSON()
2318
+ }
2319
+ };
2320
+ };
2321
+
2322
+ const lro = new LroImpl(
2323
+ sendOperation,
2324
+ {
2325
+ resourceGroupName,
2326
+ name,
2327
+ privateEndpointConnectionName,
2328
+ privateEndpointWrapper,
2329
+ options
2330
+ },
2331
+ approveOrRejectPrivateEndpointConnectionOperationSpec
2332
+ );
2333
+ return new LroEngine(lro, {
2334
+ resumeFrom: options?.resumeFrom,
2335
+ intervalInMs: options?.updateIntervalInMs
2336
+ });
2337
+ }
2338
+
2339
+ /**
2340
+ * Description for Approves or rejects a private endpoint connection
2341
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2342
+ * @param name Name of the static site.
2343
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
2344
+ * @param privateEndpointWrapper Request body.
2345
+ * @param options The options parameters.
2346
+ */
2347
+ async beginApproveOrRejectPrivateEndpointConnectionAndWait(
2348
+ resourceGroupName: string,
2349
+ name: string,
2350
+ privateEndpointConnectionName: string,
2351
+ privateEndpointWrapper: PrivateLinkConnectionApprovalRequestResource,
2352
+ options?: StaticSitesApproveOrRejectPrivateEndpointConnectionOptionalParams
2353
+ ): Promise<StaticSitesApproveOrRejectPrivateEndpointConnectionResponse> {
2354
+ const poller = await this.beginApproveOrRejectPrivateEndpointConnection(
2355
+ resourceGroupName,
2356
+ name,
2357
+ privateEndpointConnectionName,
2358
+ privateEndpointWrapper,
2359
+ options
2360
+ );
2361
+ return poller.pollUntilDone();
2362
+ }
2363
+
2364
+ /**
2365
+ * Description for Deletes a private endpoint connection
2366
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2367
+ * @param name Name of the static site.
2368
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
2369
+ * @param options The options parameters.
2370
+ */
2371
+ async beginDeletePrivateEndpointConnection(
2372
+ resourceGroupName: string,
2373
+ name: string,
2374
+ privateEndpointConnectionName: string,
2375
+ options?: StaticSitesDeletePrivateEndpointConnectionOptionalParams
2376
+ ): Promise<
2377
+ PollerLike<
2378
+ PollOperationState<StaticSitesDeletePrivateEndpointConnectionResponse>,
2379
+ StaticSitesDeletePrivateEndpointConnectionResponse
2380
+ >
2381
+ > {
2382
+ const directSendOperation = async (
2383
+ args: coreClient.OperationArguments,
2384
+ spec: coreClient.OperationSpec
2385
+ ): Promise<StaticSitesDeletePrivateEndpointConnectionResponse> => {
2386
+ return this.client.sendOperationRequest(args, spec);
2387
+ };
2388
+ const sendOperation = async (
2389
+ args: coreClient.OperationArguments,
2390
+ spec: coreClient.OperationSpec
2391
+ ) => {
2392
+ let currentRawResponse:
2393
+ | coreClient.FullOperationResponse
2394
+ | undefined = undefined;
2395
+ const providedCallback = args.options?.onResponse;
2396
+ const callback: coreClient.RawResponseCallback = (
2397
+ rawResponse: coreClient.FullOperationResponse,
2398
+ flatResponse: unknown
2399
+ ) => {
2400
+ currentRawResponse = rawResponse;
2401
+ providedCallback?.(rawResponse, flatResponse);
2402
+ };
2403
+ const updatedArgs = {
2404
+ ...args,
2405
+ options: {
2406
+ ...args.options,
2407
+ onResponse: callback
2408
+ }
2409
+ };
2410
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2411
+ return {
2412
+ flatResponse,
2413
+ rawResponse: {
2414
+ statusCode: currentRawResponse!.status,
2415
+ body: currentRawResponse!.parsedBody,
2416
+ headers: currentRawResponse!.headers.toJSON()
2417
+ }
2418
+ };
2419
+ };
2420
+
2421
+ const lro = new LroImpl(
2422
+ sendOperation,
2423
+ { resourceGroupName, name, privateEndpointConnectionName, options },
2424
+ deletePrivateEndpointConnectionOperationSpec
2425
+ );
2426
+ return new LroEngine(lro, {
2427
+ resumeFrom: options?.resumeFrom,
2428
+ intervalInMs: options?.updateIntervalInMs
2429
+ });
2430
+ }
2431
+
2432
+ /**
2433
+ * Description for Deletes a private endpoint connection
2434
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2435
+ * @param name Name of the static site.
2436
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
2437
+ * @param options The options parameters.
2438
+ */
2439
+ async beginDeletePrivateEndpointConnectionAndWait(
2440
+ resourceGroupName: string,
2441
+ name: string,
2442
+ privateEndpointConnectionName: string,
2443
+ options?: StaticSitesDeletePrivateEndpointConnectionOptionalParams
2444
+ ): Promise<StaticSitesDeletePrivateEndpointConnectionResponse> {
2445
+ const poller = await this.beginDeletePrivateEndpointConnection(
2446
+ resourceGroupName,
2447
+ name,
2448
+ privateEndpointConnectionName,
2449
+ options
2450
+ );
2451
+ return poller.pollUntilDone();
2452
+ }
2453
+
2454
+ /**
2455
+ * Description for Gets the private link resources
2456
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2457
+ * @param name Name of the site.
2458
+ * @param options The options parameters.
2459
+ */
2460
+ getPrivateLinkResources(
2461
+ resourceGroupName: string,
2462
+ name: string,
2463
+ options?: StaticSitesGetPrivateLinkResourcesOptionalParams
2464
+ ): Promise<StaticSitesGetPrivateLinkResourcesResponse> {
2465
+ return this.client.sendOperationRequest(
2466
+ { resourceGroupName, name, options },
2467
+ getPrivateLinkResourcesOperationSpec
2468
+ );
2469
+ }
2470
+
2471
+ /**
2472
+ * Description for Resets the api key for an existing static site.
2473
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2474
+ * @param name Name of the static site.
2475
+ * @param resetPropertiesEnvelope Static Site Reset Properties ARM resource.
2476
+ * @param options The options parameters.
2477
+ */
2478
+ resetStaticSiteApiKey(
2479
+ resourceGroupName: string,
2480
+ name: string,
2481
+ resetPropertiesEnvelope: StaticSiteResetPropertiesARMResource,
2482
+ options?: StaticSitesResetStaticSiteApiKeyOptionalParams
2483
+ ): Promise<void> {
2484
+ return this.client.sendOperationRequest(
2485
+ { resourceGroupName, name, resetPropertiesEnvelope, options },
2486
+ resetStaticSiteApiKeyOperationSpec
2487
+ );
2488
+ }
2489
+
2490
+ /**
2491
+ * Description for Gets the details of the user provided function apps registered with a static site
2492
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2493
+ * @param name Name of the static site.
2494
+ * @param options The options parameters.
2495
+ */
2496
+ private _getUserProvidedFunctionAppsForStaticSite(
2497
+ resourceGroupName: string,
2498
+ name: string,
2499
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams
2500
+ ): Promise<StaticSitesGetUserProvidedFunctionAppsForStaticSiteResponse> {
2501
+ return this.client.sendOperationRequest(
2502
+ { resourceGroupName, name, options },
2503
+ getUserProvidedFunctionAppsForStaticSiteOperationSpec
2504
+ );
2505
+ }
2506
+
2507
+ /**
2508
+ * Description for Gets the details of the user provided function app registered with a static site
2509
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2510
+ * @param name Name of the static site.
2511
+ * @param functionAppName Name of the function app registered with the static site.
2512
+ * @param options The options parameters.
2513
+ */
2514
+ getUserProvidedFunctionAppForStaticSite(
2515
+ resourceGroupName: string,
2516
+ name: string,
2517
+ functionAppName: string,
2518
+ options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteOptionalParams
2519
+ ): Promise<StaticSitesGetUserProvidedFunctionAppForStaticSiteResponse> {
2520
+ return this.client.sendOperationRequest(
2521
+ { resourceGroupName, name, functionAppName, options },
2522
+ getUserProvidedFunctionAppForStaticSiteOperationSpec
2523
+ );
2524
+ }
2525
+
2526
+ /**
2527
+ * Description for Register a user provided function app with a static site
2528
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2529
+ * @param name Name of the static site.
2530
+ * @param functionAppName Name of the function app to register with the static site.
2531
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
2532
+ * app properties. See example.
2533
+ * @param options The options parameters.
2534
+ */
2535
+ async beginRegisterUserProvidedFunctionAppWithStaticSite(
2536
+ resourceGroupName: string,
2537
+ name: string,
2538
+ functionAppName: string,
2539
+ staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource,
2540
+ options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams
2541
+ ): Promise<
2542
+ PollerLike<
2543
+ PollOperationState<
2544
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse
2545
+ >,
2546
+ StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse
2547
+ >
2548
+ > {
2549
+ const directSendOperation = async (
2550
+ args: coreClient.OperationArguments,
2551
+ spec: coreClient.OperationSpec
2552
+ ): Promise<StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse> => {
2553
+ return this.client.sendOperationRequest(args, spec);
2554
+ };
2555
+ const sendOperation = async (
2556
+ args: coreClient.OperationArguments,
2557
+ spec: coreClient.OperationSpec
2558
+ ) => {
2559
+ let currentRawResponse:
2560
+ | coreClient.FullOperationResponse
2561
+ | undefined = undefined;
2562
+ const providedCallback = args.options?.onResponse;
2563
+ const callback: coreClient.RawResponseCallback = (
2564
+ rawResponse: coreClient.FullOperationResponse,
2565
+ flatResponse: unknown
2566
+ ) => {
2567
+ currentRawResponse = rawResponse;
2568
+ providedCallback?.(rawResponse, flatResponse);
2569
+ };
2570
+ const updatedArgs = {
2571
+ ...args,
2572
+ options: {
2573
+ ...args.options,
2574
+ onResponse: callback
2575
+ }
2576
+ };
2577
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2578
+ return {
2579
+ flatResponse,
2580
+ rawResponse: {
2581
+ statusCode: currentRawResponse!.status,
2582
+ body: currentRawResponse!.parsedBody,
2583
+ headers: currentRawResponse!.headers.toJSON()
2584
+ }
2585
+ };
2586
+ };
2587
+
2588
+ const lro = new LroImpl(
2589
+ sendOperation,
2590
+ {
2591
+ resourceGroupName,
2592
+ name,
2593
+ functionAppName,
2594
+ staticSiteUserProvidedFunctionEnvelope,
2595
+ options
2596
+ },
2597
+ registerUserProvidedFunctionAppWithStaticSiteOperationSpec
2598
+ );
2599
+ return new LroEngine(lro, {
2600
+ resumeFrom: options?.resumeFrom,
2601
+ intervalInMs: options?.updateIntervalInMs
2602
+ });
2603
+ }
2604
+
2605
+ /**
2606
+ * Description for Register a user provided function app with a static site
2607
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2608
+ * @param name Name of the static site.
2609
+ * @param functionAppName Name of the function app to register with the static site.
2610
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
2611
+ * app properties. See example.
2612
+ * @param options The options parameters.
2613
+ */
2614
+ async beginRegisterUserProvidedFunctionAppWithStaticSiteAndWait(
2615
+ resourceGroupName: string,
2616
+ name: string,
2617
+ functionAppName: string,
2618
+ staticSiteUserProvidedFunctionEnvelope: StaticSiteUserProvidedFunctionAppARMResource,
2619
+ options?: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams
2620
+ ): Promise<StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse> {
2621
+ const poller = await this.beginRegisterUserProvidedFunctionAppWithStaticSite(
2622
+ resourceGroupName,
2623
+ name,
2624
+ functionAppName,
2625
+ staticSiteUserProvidedFunctionEnvelope,
2626
+ options
2627
+ );
2628
+ return poller.pollUntilDone();
2629
+ }
2630
+
2631
+ /**
2632
+ * Description for Detach the user provided function app from the static site
2633
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2634
+ * @param name Name of the static site.
2635
+ * @param functionAppName Name of the function app registered with the static site.
2636
+ * @param options The options parameters.
2637
+ */
2638
+ detachUserProvidedFunctionAppFromStaticSite(
2639
+ resourceGroupName: string,
2640
+ name: string,
2641
+ functionAppName: string,
2642
+ options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams
2643
+ ): Promise<void> {
2644
+ return this.client.sendOperationRequest(
2645
+ { resourceGroupName, name, functionAppName, options },
2646
+ detachUserProvidedFunctionAppFromStaticSiteOperationSpec
2647
+ );
2648
+ }
2649
+
2650
+ /**
2651
+ * Description for Deploys zipped content to a static site.
2652
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2653
+ * @param name Name of the static site.
2654
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
2655
+ * properties. See example.
2656
+ * @param options The options parameters.
2657
+ */
2658
+ async beginCreateZipDeploymentForStaticSite(
2659
+ resourceGroupName: string,
2660
+ name: string,
2661
+ staticSiteZipDeploymentEnvelope: StaticSiteZipDeploymentARMResource,
2662
+ options?: StaticSitesCreateZipDeploymentForStaticSiteOptionalParams
2663
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
2664
+ const directSendOperation = async (
2665
+ args: coreClient.OperationArguments,
2666
+ spec: coreClient.OperationSpec
2667
+ ): Promise<void> => {
2668
+ return this.client.sendOperationRequest(args, spec);
2669
+ };
2670
+ const sendOperation = async (
2671
+ args: coreClient.OperationArguments,
2672
+ spec: coreClient.OperationSpec
2673
+ ) => {
2674
+ let currentRawResponse:
2675
+ | coreClient.FullOperationResponse
2676
+ | undefined = undefined;
2677
+ const providedCallback = args.options?.onResponse;
2678
+ const callback: coreClient.RawResponseCallback = (
2679
+ rawResponse: coreClient.FullOperationResponse,
2680
+ flatResponse: unknown
2681
+ ) => {
2682
+ currentRawResponse = rawResponse;
2683
+ providedCallback?.(rawResponse, flatResponse);
2684
+ };
2685
+ const updatedArgs = {
2686
+ ...args,
2687
+ options: {
2688
+ ...args.options,
2689
+ onResponse: callback
2690
+ }
2691
+ };
2692
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2693
+ return {
2694
+ flatResponse,
2695
+ rawResponse: {
2696
+ statusCode: currentRawResponse!.status,
2697
+ body: currentRawResponse!.parsedBody,
2698
+ headers: currentRawResponse!.headers.toJSON()
2699
+ }
2700
+ };
2701
+ };
2702
+
2703
+ const lro = new LroImpl(
2704
+ sendOperation,
2705
+ { resourceGroupName, name, staticSiteZipDeploymentEnvelope, options },
2706
+ createZipDeploymentForStaticSiteOperationSpec
2707
+ );
2708
+ return new LroEngine(lro, {
2709
+ resumeFrom: options?.resumeFrom,
2710
+ intervalInMs: options?.updateIntervalInMs
2711
+ });
2712
+ }
2713
+
2714
+ /**
2715
+ * Description for Deploys zipped content to a static site.
2716
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2717
+ * @param name Name of the static site.
2718
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
2719
+ * properties. See example.
2720
+ * @param options The options parameters.
2721
+ */
2722
+ async beginCreateZipDeploymentForStaticSiteAndWait(
2723
+ resourceGroupName: string,
2724
+ name: string,
2725
+ staticSiteZipDeploymentEnvelope: StaticSiteZipDeploymentARMResource,
2726
+ options?: StaticSitesCreateZipDeploymentForStaticSiteOptionalParams
2727
+ ): Promise<void> {
2728
+ const poller = await this.beginCreateZipDeploymentForStaticSite(
2729
+ resourceGroupName,
2730
+ name,
2731
+ staticSiteZipDeploymentEnvelope,
2732
+ options
2733
+ );
2734
+ return poller.pollUntilDone();
2735
+ }
2736
+
2737
+ /**
2738
+ * ListNext
2739
+ * @param nextLink The nextLink from the previous successful call to the List method.
2740
+ * @param options The options parameters.
2741
+ */
2742
+ private _listNext(
2743
+ nextLink: string,
2744
+ options?: StaticSitesListNextOptionalParams
2745
+ ): Promise<StaticSitesListNextResponse> {
2746
+ return this.client.sendOperationRequest(
2747
+ { nextLink, options },
2748
+ listNextOperationSpec
2749
+ );
2750
+ }
2751
+
2752
+ /**
2753
+ * GetStaticSitesByResourceGroupNext
2754
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2755
+ * @param nextLink The nextLink from the previous successful call to the GetStaticSitesByResourceGroup
2756
+ * method.
2757
+ * @param options The options parameters.
2758
+ */
2759
+ private _getStaticSitesByResourceGroupNext(
2760
+ resourceGroupName: string,
2761
+ nextLink: string,
2762
+ options?: StaticSitesGetStaticSitesByResourceGroupNextOptionalParams
2763
+ ): Promise<StaticSitesGetStaticSitesByResourceGroupNextResponse> {
2764
+ return this.client.sendOperationRequest(
2765
+ { resourceGroupName, nextLink, options },
2766
+ getStaticSitesByResourceGroupNextOperationSpec
2767
+ );
2768
+ }
2769
+
2770
+ /**
2771
+ * ListStaticSiteUsersNext
2772
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2773
+ * @param name Name of the static site.
2774
+ * @param authprovider The auth provider for the users.
2775
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteUsers method.
2776
+ * @param options The options parameters.
2777
+ */
2778
+ private _listStaticSiteUsersNext(
2779
+ resourceGroupName: string,
2780
+ name: string,
2781
+ authprovider: string,
2782
+ nextLink: string,
2783
+ options?: StaticSitesListStaticSiteUsersNextOptionalParams
2784
+ ): Promise<StaticSitesListStaticSiteUsersNextResponse> {
2785
+ return this.client.sendOperationRequest(
2786
+ { resourceGroupName, name, authprovider, nextLink, options },
2787
+ listStaticSiteUsersNextOperationSpec
2788
+ );
2789
+ }
2790
+
2791
+ /**
2792
+ * GetStaticSiteBuildsNext
2793
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2794
+ * @param name Name of the static site.
2795
+ * @param nextLink The nextLink from the previous successful call to the GetStaticSiteBuilds method.
2796
+ * @param options The options parameters.
2797
+ */
2798
+ private _getStaticSiteBuildsNext(
2799
+ resourceGroupName: string,
2800
+ name: string,
2801
+ nextLink: string,
2802
+ options?: StaticSitesGetStaticSiteBuildsNextOptionalParams
2803
+ ): Promise<StaticSitesGetStaticSiteBuildsNextResponse> {
2804
+ return this.client.sendOperationRequest(
2805
+ { resourceGroupName, name, nextLink, options },
2806
+ getStaticSiteBuildsNextOperationSpec
2807
+ );
2808
+ }
2809
+
2810
+ /**
2811
+ * ListStaticSiteBuildFunctionsNext
2812
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2813
+ * @param name Name of the static site.
2814
+ * @param environmentName The stage site identifier.
2815
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteBuildFunctions
2816
+ * method.
2817
+ * @param options The options parameters.
2818
+ */
2819
+ private _listStaticSiteBuildFunctionsNext(
2820
+ resourceGroupName: string,
2821
+ name: string,
2822
+ environmentName: string,
2823
+ nextLink: string,
2824
+ options?: StaticSitesListStaticSiteBuildFunctionsNextOptionalParams
2825
+ ): Promise<StaticSitesListStaticSiteBuildFunctionsNextResponse> {
2826
+ return this.client.sendOperationRequest(
2827
+ { resourceGroupName, name, environmentName, nextLink, options },
2828
+ listStaticSiteBuildFunctionsNextOperationSpec
2829
+ );
2830
+ }
2831
+
2832
+ /**
2833
+ * GetUserProvidedFunctionAppsForStaticSiteBuildNext
2834
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2835
+ * @param name Name of the static site.
2836
+ * @param environmentName The stage site identifier.
2837
+ * @param nextLink The nextLink from the previous successful call to the
2838
+ * GetUserProvidedFunctionAppsForStaticSiteBuild method.
2839
+ * @param options The options parameters.
2840
+ */
2841
+ private _getUserProvidedFunctionAppsForStaticSiteBuildNext(
2842
+ resourceGroupName: string,
2843
+ name: string,
2844
+ environmentName: string,
2845
+ nextLink: string,
2846
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextOptionalParams
2847
+ ): Promise<
2848
+ StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextResponse
2849
+ > {
2850
+ return this.client.sendOperationRequest(
2851
+ { resourceGroupName, name, environmentName, nextLink, options },
2852
+ getUserProvidedFunctionAppsForStaticSiteBuildNextOperationSpec
2853
+ );
2854
+ }
2855
+
2856
+ /**
2857
+ * ListStaticSiteCustomDomainsNext
2858
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2859
+ * @param name Name of the static site resource to search in.
2860
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteCustomDomains
2861
+ * method.
2862
+ * @param options The options parameters.
2863
+ */
2864
+ private _listStaticSiteCustomDomainsNext(
2865
+ resourceGroupName: string,
2866
+ name: string,
2867
+ nextLink: string,
2868
+ options?: StaticSitesListStaticSiteCustomDomainsNextOptionalParams
2869
+ ): Promise<StaticSitesListStaticSiteCustomDomainsNextResponse> {
2870
+ return this.client.sendOperationRequest(
2871
+ { resourceGroupName, name, nextLink, options },
2872
+ listStaticSiteCustomDomainsNextOperationSpec
2873
+ );
2874
+ }
2875
+
2876
+ /**
2877
+ * ListStaticSiteFunctionsNext
2878
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2879
+ * @param name Name of the static site.
2880
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteFunctions
2881
+ * method.
2882
+ * @param options The options parameters.
2883
+ */
2884
+ private _listStaticSiteFunctionsNext(
2885
+ resourceGroupName: string,
2886
+ name: string,
2887
+ nextLink: string,
2888
+ options?: StaticSitesListStaticSiteFunctionsNextOptionalParams
2889
+ ): Promise<StaticSitesListStaticSiteFunctionsNextResponse> {
2890
+ return this.client.sendOperationRequest(
2891
+ { resourceGroupName, name, nextLink, options },
2892
+ listStaticSiteFunctionsNextOperationSpec
2893
+ );
2894
+ }
2895
+
2896
+ /**
2897
+ * GetPrivateEndpointConnectionListNext
2898
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2899
+ * @param name Name of the static site.
2900
+ * @param nextLink The nextLink from the previous successful call to the
2901
+ * GetPrivateEndpointConnectionList method.
2902
+ * @param options The options parameters.
2903
+ */
2904
+ private _getPrivateEndpointConnectionListNext(
2905
+ resourceGroupName: string,
2906
+ name: string,
2907
+ nextLink: string,
2908
+ options?: StaticSitesGetPrivateEndpointConnectionListNextOptionalParams
2909
+ ): Promise<StaticSitesGetPrivateEndpointConnectionListNextResponse> {
2910
+ return this.client.sendOperationRequest(
2911
+ { resourceGroupName, name, nextLink, options },
2912
+ getPrivateEndpointConnectionListNextOperationSpec
2913
+ );
2914
+ }
2915
+
2916
+ /**
2917
+ * GetUserProvidedFunctionAppsForStaticSiteNext
2918
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
2919
+ * @param name Name of the static site.
2920
+ * @param nextLink The nextLink from the previous successful call to the
2921
+ * GetUserProvidedFunctionAppsForStaticSite method.
2922
+ * @param options The options parameters.
2923
+ */
2924
+ private _getUserProvidedFunctionAppsForStaticSiteNext(
2925
+ resourceGroupName: string,
2926
+ name: string,
2927
+ nextLink: string,
2928
+ options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextOptionalParams
2929
+ ): Promise<StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextResponse> {
2930
+ return this.client.sendOperationRequest(
2931
+ { resourceGroupName, name, nextLink, options },
2932
+ getUserProvidedFunctionAppsForStaticSiteNextOperationSpec
2933
+ );
2934
+ }
2935
+ }
2936
+ // Operation Specifications
2937
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2938
+
2939
+ const previewWorkflowOperationSpec: coreClient.OperationSpec = {
2940
+ path:
2941
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile",
2942
+ httpMethod: "POST",
2943
+ responses: {
2944
+ 200: {
2945
+ bodyMapper: Mappers.StaticSitesWorkflowPreview
2946
+ },
2947
+ default: {
2948
+ bodyMapper: Mappers.DefaultErrorResponse
2949
+ }
2950
+ },
2951
+ requestBody: Parameters.staticSitesWorkflowPreviewRequest,
2952
+ queryParameters: [Parameters.apiVersion],
2953
+ urlParameters: [
2954
+ Parameters.$host,
2955
+ Parameters.subscriptionId,
2956
+ Parameters.location
2957
+ ],
2958
+ headerParameters: [Parameters.accept, Parameters.contentType],
2959
+ mediaType: "json",
2960
+ serializer
2961
+ };
2962
+ const listOperationSpec: coreClient.OperationSpec = {
2963
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites",
2964
+ httpMethod: "GET",
2965
+ responses: {
2966
+ 200: {
2967
+ bodyMapper: Mappers.StaticSiteCollection
2968
+ },
2969
+ default: {
2970
+ bodyMapper: Mappers.DefaultErrorResponse
2971
+ }
2972
+ },
2973
+ queryParameters: [Parameters.apiVersion],
2974
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
2975
+ headerParameters: [Parameters.accept],
2976
+ serializer
2977
+ };
2978
+ const getStaticSitesByResourceGroupOperationSpec: coreClient.OperationSpec = {
2979
+ path:
2980
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites",
2981
+ httpMethod: "GET",
2982
+ responses: {
2983
+ 200: {
2984
+ bodyMapper: Mappers.StaticSiteCollection
2985
+ },
2986
+ default: {
2987
+ bodyMapper: Mappers.DefaultErrorResponse
2988
+ }
2989
+ },
2990
+ queryParameters: [Parameters.apiVersion],
2991
+ urlParameters: [
2992
+ Parameters.$host,
2993
+ Parameters.subscriptionId,
2994
+ Parameters.resourceGroupName
2995
+ ],
2996
+ headerParameters: [Parameters.accept],
2997
+ serializer
2998
+ };
2999
+ const getStaticSiteOperationSpec: coreClient.OperationSpec = {
3000
+ path:
3001
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
3002
+ httpMethod: "GET",
3003
+ responses: {
3004
+ 200: {
3005
+ bodyMapper: Mappers.StaticSiteARMResource
3006
+ },
3007
+ default: {
3008
+ bodyMapper: Mappers.DefaultErrorResponse
3009
+ }
3010
+ },
3011
+ queryParameters: [Parameters.apiVersion],
3012
+ urlParameters: [
3013
+ Parameters.$host,
3014
+ Parameters.subscriptionId,
3015
+ Parameters.resourceGroupName,
3016
+ Parameters.name
3017
+ ],
3018
+ headerParameters: [Parameters.accept],
3019
+ serializer
3020
+ };
3021
+ const createOrUpdateStaticSiteOperationSpec: coreClient.OperationSpec = {
3022
+ path:
3023
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
3024
+ httpMethod: "PUT",
3025
+ responses: {
3026
+ 200: {
3027
+ bodyMapper: Mappers.StaticSiteARMResource
3028
+ },
3029
+ 201: {
3030
+ bodyMapper: Mappers.StaticSiteARMResource
3031
+ },
3032
+ 202: {
3033
+ bodyMapper: Mappers.StaticSiteARMResource
3034
+ },
3035
+ 204: {
3036
+ bodyMapper: Mappers.StaticSiteARMResource
3037
+ },
3038
+ default: {
3039
+ bodyMapper: Mappers.DefaultErrorResponse
3040
+ }
3041
+ },
3042
+ requestBody: Parameters.staticSiteEnvelope,
3043
+ queryParameters: [Parameters.apiVersion],
3044
+ urlParameters: [
3045
+ Parameters.$host,
3046
+ Parameters.subscriptionId,
3047
+ Parameters.resourceGroupName,
3048
+ Parameters.name
3049
+ ],
3050
+ headerParameters: [Parameters.accept, Parameters.contentType],
3051
+ mediaType: "json",
3052
+ serializer
3053
+ };
3054
+ const deleteStaticSiteOperationSpec: coreClient.OperationSpec = {
3055
+ path:
3056
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
3057
+ httpMethod: "DELETE",
3058
+ responses: {
3059
+ 200: {},
3060
+ 201: {},
3061
+ 202: {},
3062
+ 204: {},
3063
+ default: {
3064
+ bodyMapper: Mappers.DefaultErrorResponse
3065
+ }
3066
+ },
3067
+ queryParameters: [Parameters.apiVersion],
3068
+ urlParameters: [
3069
+ Parameters.$host,
3070
+ Parameters.subscriptionId,
3071
+ Parameters.resourceGroupName,
3072
+ Parameters.name
3073
+ ],
3074
+ headerParameters: [Parameters.accept],
3075
+ serializer
3076
+ };
3077
+ const updateStaticSiteOperationSpec: coreClient.OperationSpec = {
3078
+ path:
3079
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
3080
+ httpMethod: "PATCH",
3081
+ responses: {
3082
+ 200: {
3083
+ bodyMapper: Mappers.StaticSiteARMResource
3084
+ },
3085
+ 202: {
3086
+ bodyMapper: Mappers.StaticSiteARMResource
3087
+ },
3088
+ default: {
3089
+ bodyMapper: Mappers.DefaultErrorResponse
3090
+ }
3091
+ },
3092
+ requestBody: Parameters.staticSiteEnvelope1,
3093
+ queryParameters: [Parameters.apiVersion],
3094
+ urlParameters: [
3095
+ Parameters.$host,
3096
+ Parameters.subscriptionId,
3097
+ Parameters.resourceGroupName,
3098
+ Parameters.name
3099
+ ],
3100
+ headerParameters: [Parameters.accept, Parameters.contentType],
3101
+ mediaType: "json",
3102
+ serializer
3103
+ };
3104
+ const listStaticSiteUsersOperationSpec: coreClient.OperationSpec = {
3105
+ path:
3106
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/listUsers",
3107
+ httpMethod: "POST",
3108
+ responses: {
3109
+ 200: {
3110
+ bodyMapper: Mappers.StaticSiteUserCollection
3111
+ },
3112
+ default: {
3113
+ bodyMapper: Mappers.DefaultErrorResponse
3114
+ }
3115
+ },
3116
+ queryParameters: [Parameters.apiVersion],
3117
+ urlParameters: [
3118
+ Parameters.$host,
3119
+ Parameters.subscriptionId,
3120
+ Parameters.resourceGroupName,
3121
+ Parameters.name,
3122
+ Parameters.authprovider
3123
+ ],
3124
+ headerParameters: [Parameters.accept],
3125
+ serializer
3126
+ };
3127
+ const deleteStaticSiteUserOperationSpec: coreClient.OperationSpec = {
3128
+ path:
3129
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}",
3130
+ httpMethod: "DELETE",
3131
+ responses: {
3132
+ 200: {},
3133
+ default: {
3134
+ bodyMapper: Mappers.DefaultErrorResponse
3135
+ }
3136
+ },
3137
+ queryParameters: [Parameters.apiVersion],
3138
+ urlParameters: [
3139
+ Parameters.$host,
3140
+ Parameters.subscriptionId,
3141
+ Parameters.resourceGroupName,
3142
+ Parameters.name,
3143
+ Parameters.authprovider,
3144
+ Parameters.userid
3145
+ ],
3146
+ headerParameters: [Parameters.accept],
3147
+ serializer
3148
+ };
3149
+ const updateStaticSiteUserOperationSpec: coreClient.OperationSpec = {
3150
+ path:
3151
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}",
3152
+ httpMethod: "PATCH",
3153
+ responses: {
3154
+ 200: {
3155
+ bodyMapper: Mappers.StaticSiteUserARMResource
3156
+ },
3157
+ default: {
3158
+ bodyMapper: Mappers.DefaultErrorResponse
3159
+ }
3160
+ },
3161
+ requestBody: Parameters.staticSiteUserEnvelope,
3162
+ queryParameters: [Parameters.apiVersion],
3163
+ urlParameters: [
3164
+ Parameters.$host,
3165
+ Parameters.subscriptionId,
3166
+ Parameters.resourceGroupName,
3167
+ Parameters.name,
3168
+ Parameters.authprovider,
3169
+ Parameters.userid
3170
+ ],
3171
+ headerParameters: [Parameters.accept, Parameters.contentType],
3172
+ mediaType: "json",
3173
+ serializer
3174
+ };
3175
+ const getStaticSiteBuildsOperationSpec: coreClient.OperationSpec = {
3176
+ path:
3177
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds",
3178
+ httpMethod: "GET",
3179
+ responses: {
3180
+ 200: {
3181
+ bodyMapper: Mappers.StaticSiteBuildCollection
3182
+ },
3183
+ default: {
3184
+ bodyMapper: Mappers.DefaultErrorResponse
3185
+ }
3186
+ },
3187
+ queryParameters: [Parameters.apiVersion],
3188
+ urlParameters: [
3189
+ Parameters.$host,
3190
+ Parameters.subscriptionId,
3191
+ Parameters.resourceGroupName,
3192
+ Parameters.name
3193
+ ],
3194
+ headerParameters: [Parameters.accept],
3195
+ serializer
3196
+ };
3197
+ const getStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3198
+ path:
3199
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}",
3200
+ httpMethod: "GET",
3201
+ responses: {
3202
+ 200: {
3203
+ bodyMapper: Mappers.StaticSiteBuildARMResource
3204
+ },
3205
+ default: {
3206
+ bodyMapper: Mappers.DefaultErrorResponse
3207
+ }
3208
+ },
3209
+ queryParameters: [Parameters.apiVersion],
3210
+ urlParameters: [
3211
+ Parameters.$host,
3212
+ Parameters.subscriptionId,
3213
+ Parameters.resourceGroupName,
3214
+ Parameters.name,
3215
+ Parameters.environmentName1
3216
+ ],
3217
+ headerParameters: [Parameters.accept],
3218
+ serializer
3219
+ };
3220
+ const deleteStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3221
+ path:
3222
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}",
3223
+ httpMethod: "DELETE",
3224
+ responses: {
3225
+ 200: {},
3226
+ 201: {},
3227
+ 202: {},
3228
+ 204: {},
3229
+ default: {
3230
+ bodyMapper: Mappers.DefaultErrorResponse
3231
+ }
3232
+ },
3233
+ queryParameters: [Parameters.apiVersion],
3234
+ urlParameters: [
3235
+ Parameters.$host,
3236
+ Parameters.subscriptionId,
3237
+ Parameters.resourceGroupName,
3238
+ Parameters.name,
3239
+ Parameters.environmentName1
3240
+ ],
3241
+ headerParameters: [Parameters.accept],
3242
+ serializer
3243
+ };
3244
+ const createOrUpdateStaticSiteBuildAppSettingsOperationSpec: coreClient.OperationSpec = {
3245
+ path:
3246
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/appsettings",
3247
+ httpMethod: "PUT",
3248
+ responses: {
3249
+ 200: {
3250
+ bodyMapper: Mappers.StringDictionary
3251
+ },
3252
+ default: {
3253
+ bodyMapper: Mappers.DefaultErrorResponse
3254
+ }
3255
+ },
3256
+ requestBody: Parameters.appSettings,
3257
+ queryParameters: [Parameters.apiVersion],
3258
+ urlParameters: [
3259
+ Parameters.$host,
3260
+ Parameters.subscriptionId,
3261
+ Parameters.resourceGroupName,
3262
+ Parameters.name,
3263
+ Parameters.environmentName1
3264
+ ],
3265
+ headerParameters: [Parameters.accept, Parameters.contentType],
3266
+ mediaType: "json",
3267
+ serializer
3268
+ };
3269
+ const createOrUpdateStaticSiteBuildFunctionAppSettingsOperationSpec: coreClient.OperationSpec = {
3270
+ path:
3271
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/functionappsettings",
3272
+ httpMethod: "PUT",
3273
+ responses: {
3274
+ 200: {
3275
+ bodyMapper: Mappers.StringDictionary
3276
+ },
3277
+ default: {
3278
+ bodyMapper: Mappers.DefaultErrorResponse
3279
+ }
3280
+ },
3281
+ requestBody: Parameters.appSettings,
3282
+ queryParameters: [Parameters.apiVersion],
3283
+ urlParameters: [
3284
+ Parameters.$host,
3285
+ Parameters.subscriptionId,
3286
+ Parameters.resourceGroupName,
3287
+ Parameters.name,
3288
+ Parameters.environmentName1
3289
+ ],
3290
+ headerParameters: [Parameters.accept, Parameters.contentType],
3291
+ mediaType: "json",
3292
+ serializer
3293
+ };
3294
+ const listStaticSiteBuildFunctionsOperationSpec: coreClient.OperationSpec = {
3295
+ path:
3296
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/functions",
3297
+ httpMethod: "GET",
3298
+ responses: {
3299
+ 200: {
3300
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
3301
+ },
3302
+ default: {
3303
+ bodyMapper: Mappers.DefaultErrorResponse
3304
+ }
3305
+ },
3306
+ queryParameters: [Parameters.apiVersion],
3307
+ urlParameters: [
3308
+ Parameters.$host,
3309
+ Parameters.subscriptionId,
3310
+ Parameters.resourceGroupName,
3311
+ Parameters.name,
3312
+ Parameters.environmentName1
3313
+ ],
3314
+ headerParameters: [Parameters.accept],
3315
+ serializer
3316
+ };
3317
+ const listStaticSiteBuildAppSettingsOperationSpec: coreClient.OperationSpec = {
3318
+ path:
3319
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listAppSettings",
3320
+ httpMethod: "POST",
3321
+ responses: {
3322
+ 200: {
3323
+ bodyMapper: Mappers.StringDictionary
3324
+ },
3325
+ default: {
3326
+ bodyMapper: Mappers.DefaultErrorResponse
3327
+ }
3328
+ },
3329
+ queryParameters: [Parameters.apiVersion],
3330
+ urlParameters: [
3331
+ Parameters.$host,
3332
+ Parameters.subscriptionId,
3333
+ Parameters.resourceGroupName,
3334
+ Parameters.name,
3335
+ Parameters.environmentName1
3336
+ ],
3337
+ headerParameters: [Parameters.accept],
3338
+ serializer
3339
+ };
3340
+ const listStaticSiteBuildFunctionAppSettingsOperationSpec: coreClient.OperationSpec = {
3341
+ path:
3342
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listFunctionAppSettings",
3343
+ httpMethod: "POST",
3344
+ responses: {
3345
+ 200: {
3346
+ bodyMapper: Mappers.StringDictionary
3347
+ },
3348
+ default: {
3349
+ bodyMapper: Mappers.DefaultErrorResponse
3350
+ }
3351
+ },
3352
+ queryParameters: [Parameters.apiVersion],
3353
+ urlParameters: [
3354
+ Parameters.$host,
3355
+ Parameters.subscriptionId,
3356
+ Parameters.resourceGroupName,
3357
+ Parameters.name,
3358
+ Parameters.environmentName1
3359
+ ],
3360
+ headerParameters: [Parameters.accept],
3361
+ serializer
3362
+ };
3363
+ const getUserProvidedFunctionAppsForStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3364
+ path:
3365
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps",
3366
+ httpMethod: "GET",
3367
+ responses: {
3368
+ 200: {
3369
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
3370
+ },
3371
+ default: {
3372
+ bodyMapper: Mappers.DefaultErrorResponse
3373
+ }
3374
+ },
3375
+ queryParameters: [Parameters.apiVersion],
3376
+ urlParameters: [
3377
+ Parameters.$host,
3378
+ Parameters.subscriptionId,
3379
+ Parameters.resourceGroupName,
3380
+ Parameters.name,
3381
+ Parameters.environmentName1
3382
+ ],
3383
+ headerParameters: [Parameters.accept],
3384
+ serializer
3385
+ };
3386
+ const getUserProvidedFunctionAppForStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3387
+ path:
3388
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}",
3389
+ httpMethod: "GET",
3390
+ responses: {
3391
+ 200: {
3392
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
3393
+ },
3394
+ default: {
3395
+ bodyMapper: Mappers.DefaultErrorResponse
3396
+ }
3397
+ },
3398
+ queryParameters: [Parameters.apiVersion],
3399
+ urlParameters: [
3400
+ Parameters.$host,
3401
+ Parameters.subscriptionId,
3402
+ Parameters.resourceGroupName,
3403
+ Parameters.name,
3404
+ Parameters.environmentName1,
3405
+ Parameters.functionAppName
3406
+ ],
3407
+ headerParameters: [Parameters.accept],
3408
+ serializer
3409
+ };
3410
+ const registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3411
+ path:
3412
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}",
3413
+ httpMethod: "PUT",
3414
+ responses: {
3415
+ 200: {
3416
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
3417
+ },
3418
+ 201: {
3419
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
3420
+ },
3421
+ 202: {
3422
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
3423
+ },
3424
+ 204: {
3425
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
3426
+ },
3427
+ default: {
3428
+ bodyMapper: Mappers.DefaultErrorResponse
3429
+ }
3430
+ },
3431
+ requestBody: Parameters.staticSiteUserProvidedFunctionEnvelope,
3432
+ queryParameters: [Parameters.apiVersion, Parameters.isForced],
3433
+ urlParameters: [
3434
+ Parameters.$host,
3435
+ Parameters.subscriptionId,
3436
+ Parameters.resourceGroupName,
3437
+ Parameters.name,
3438
+ Parameters.environmentName1,
3439
+ Parameters.functionAppName
3440
+ ],
3441
+ headerParameters: [Parameters.accept, Parameters.contentType],
3442
+ mediaType: "json",
3443
+ serializer
3444
+ };
3445
+ const detachUserProvidedFunctionAppFromStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3446
+ path:
3447
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}",
3448
+ httpMethod: "DELETE",
3449
+ responses: {
3450
+ 200: {},
3451
+ 204: {},
3452
+ default: {
3453
+ bodyMapper: Mappers.DefaultErrorResponse
3454
+ }
3455
+ },
3456
+ queryParameters: [Parameters.apiVersion],
3457
+ urlParameters: [
3458
+ Parameters.$host,
3459
+ Parameters.subscriptionId,
3460
+ Parameters.resourceGroupName,
3461
+ Parameters.name,
3462
+ Parameters.environmentName1,
3463
+ Parameters.functionAppName
3464
+ ],
3465
+ headerParameters: [Parameters.accept],
3466
+ serializer
3467
+ };
3468
+ const createZipDeploymentForStaticSiteBuildOperationSpec: coreClient.OperationSpec = {
3469
+ path:
3470
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/zipdeploy",
3471
+ httpMethod: "POST",
3472
+ responses: {
3473
+ 200: {},
3474
+ 201: {},
3475
+ 202: {},
3476
+ 204: {},
3477
+ default: {
3478
+ bodyMapper: Mappers.DefaultErrorResponse
3479
+ }
3480
+ },
3481
+ requestBody: Parameters.staticSiteZipDeploymentEnvelope,
3482
+ queryParameters: [Parameters.apiVersion],
3483
+ urlParameters: [
3484
+ Parameters.$host,
3485
+ Parameters.subscriptionId,
3486
+ Parameters.resourceGroupName,
3487
+ Parameters.name,
3488
+ Parameters.environmentName1
3489
+ ],
3490
+ headerParameters: [Parameters.accept, Parameters.contentType],
3491
+ mediaType: "json",
3492
+ serializer
3493
+ };
3494
+ const createOrUpdateStaticSiteAppSettingsOperationSpec: coreClient.OperationSpec = {
3495
+ path:
3496
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/appsettings",
3497
+ httpMethod: "PUT",
3498
+ responses: {
3499
+ 200: {
3500
+ bodyMapper: Mappers.StringDictionary
3501
+ },
3502
+ default: {
3503
+ bodyMapper: Mappers.DefaultErrorResponse
3504
+ }
3505
+ },
3506
+ requestBody: Parameters.appSettings,
3507
+ queryParameters: [Parameters.apiVersion],
3508
+ urlParameters: [
3509
+ Parameters.$host,
3510
+ Parameters.subscriptionId,
3511
+ Parameters.resourceGroupName,
3512
+ Parameters.name
3513
+ ],
3514
+ headerParameters: [Parameters.accept, Parameters.contentType],
3515
+ mediaType: "json",
3516
+ serializer
3517
+ };
3518
+ const createOrUpdateStaticSiteFunctionAppSettingsOperationSpec: coreClient.OperationSpec = {
3519
+ path:
3520
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/functionappsettings",
3521
+ httpMethod: "PUT",
3522
+ responses: {
3523
+ 200: {
3524
+ bodyMapper: Mappers.StringDictionary
3525
+ },
3526
+ default: {
3527
+ bodyMapper: Mappers.DefaultErrorResponse
3528
+ }
3529
+ },
3530
+ requestBody: Parameters.appSettings,
3531
+ queryParameters: [Parameters.apiVersion],
3532
+ urlParameters: [
3533
+ Parameters.$host,
3534
+ Parameters.subscriptionId,
3535
+ Parameters.resourceGroupName,
3536
+ Parameters.name
3537
+ ],
3538
+ headerParameters: [Parameters.accept, Parameters.contentType],
3539
+ mediaType: "json",
3540
+ serializer
3541
+ };
3542
+ const createUserRolesInvitationLinkOperationSpec: coreClient.OperationSpec = {
3543
+ path:
3544
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/createUserInvitation",
3545
+ httpMethod: "POST",
3546
+ responses: {
3547
+ 200: {
3548
+ bodyMapper: Mappers.StaticSiteUserInvitationResponseResource
3549
+ },
3550
+ default: {
3551
+ bodyMapper: Mappers.DefaultErrorResponse
3552
+ }
3553
+ },
3554
+ requestBody: Parameters.staticSiteUserRolesInvitationEnvelope,
3555
+ queryParameters: [Parameters.apiVersion],
3556
+ urlParameters: [
3557
+ Parameters.$host,
3558
+ Parameters.subscriptionId,
3559
+ Parameters.resourceGroupName,
3560
+ Parameters.name
3561
+ ],
3562
+ headerParameters: [Parameters.accept, Parameters.contentType],
3563
+ mediaType: "json",
3564
+ serializer
3565
+ };
3566
+ const listStaticSiteCustomDomainsOperationSpec: coreClient.OperationSpec = {
3567
+ path:
3568
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains",
3569
+ httpMethod: "GET",
3570
+ responses: {
3571
+ 200: {
3572
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewCollection
3573
+ },
3574
+ default: {
3575
+ bodyMapper: Mappers.DefaultErrorResponse
3576
+ }
3577
+ },
3578
+ queryParameters: [Parameters.apiVersion],
3579
+ urlParameters: [
3580
+ Parameters.$host,
3581
+ Parameters.subscriptionId,
3582
+ Parameters.resourceGroupName,
3583
+ Parameters.name
3584
+ ],
3585
+ headerParameters: [Parameters.accept],
3586
+ serializer
3587
+ };
3588
+ const getStaticSiteCustomDomainOperationSpec: coreClient.OperationSpec = {
3589
+ path:
3590
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}",
3591
+ httpMethod: "GET",
3592
+ responses: {
3593
+ 200: {
3594
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
3595
+ },
3596
+ default: {
3597
+ bodyMapper: Mappers.DefaultErrorResponse
3598
+ }
3599
+ },
3600
+ queryParameters: [Parameters.apiVersion],
3601
+ urlParameters: [
3602
+ Parameters.$host,
3603
+ Parameters.subscriptionId,
3604
+ Parameters.resourceGroupName,
3605
+ Parameters.name,
3606
+ Parameters.domainName
3607
+ ],
3608
+ headerParameters: [Parameters.accept],
3609
+ serializer
3610
+ };
3611
+ const createOrUpdateStaticSiteCustomDomainOperationSpec: coreClient.OperationSpec = {
3612
+ path:
3613
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}",
3614
+ httpMethod: "PUT",
3615
+ responses: {
3616
+ 200: {
3617
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
3618
+ },
3619
+ 201: {
3620
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
3621
+ },
3622
+ 202: {
3623
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
3624
+ },
3625
+ 204: {
3626
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
3627
+ },
3628
+ default: {
3629
+ bodyMapper: Mappers.DefaultErrorResponse
3630
+ }
3631
+ },
3632
+ requestBody: Parameters.staticSiteCustomDomainRequestPropertiesEnvelope,
3633
+ queryParameters: [Parameters.apiVersion],
3634
+ urlParameters: [
3635
+ Parameters.$host,
3636
+ Parameters.subscriptionId,
3637
+ Parameters.resourceGroupName,
3638
+ Parameters.name,
3639
+ Parameters.domainName
3640
+ ],
3641
+ headerParameters: [Parameters.accept, Parameters.contentType],
3642
+ mediaType: "json",
3643
+ serializer
3644
+ };
3645
+ const deleteStaticSiteCustomDomainOperationSpec: coreClient.OperationSpec = {
3646
+ path:
3647
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}",
3648
+ httpMethod: "DELETE",
3649
+ responses: {
3650
+ 200: {},
3651
+ 201: {},
3652
+ 202: {},
3653
+ 204: {},
3654
+ default: {
3655
+ bodyMapper: Mappers.DefaultErrorResponse
3656
+ }
3657
+ },
3658
+ queryParameters: [Parameters.apiVersion],
3659
+ urlParameters: [
3660
+ Parameters.$host,
3661
+ Parameters.subscriptionId,
3662
+ Parameters.resourceGroupName,
3663
+ Parameters.name,
3664
+ Parameters.domainName
3665
+ ],
3666
+ headerParameters: [Parameters.accept],
3667
+ serializer
3668
+ };
3669
+ const validateCustomDomainCanBeAddedToStaticSiteOperationSpec: coreClient.OperationSpec = {
3670
+ path:
3671
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}/validate",
3672
+ httpMethod: "POST",
3673
+ responses: {
3674
+ 200: {},
3675
+ 201: {},
3676
+ 202: {},
3677
+ 204: {},
3678
+ default: {
3679
+ bodyMapper: Mappers.DefaultErrorResponse
3680
+ }
3681
+ },
3682
+ requestBody: Parameters.staticSiteCustomDomainRequestPropertiesEnvelope,
3683
+ queryParameters: [Parameters.apiVersion],
3684
+ urlParameters: [
3685
+ Parameters.$host,
3686
+ Parameters.subscriptionId,
3687
+ Parameters.resourceGroupName,
3688
+ Parameters.name,
3689
+ Parameters.domainName
3690
+ ],
3691
+ headerParameters: [Parameters.accept, Parameters.contentType],
3692
+ mediaType: "json",
3693
+ serializer
3694
+ };
3695
+ const detachStaticSiteOperationSpec: coreClient.OperationSpec = {
3696
+ path:
3697
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach",
3698
+ httpMethod: "POST",
3699
+ responses: {
3700
+ 200: {},
3701
+ 201: {},
3702
+ 202: {},
3703
+ 204: {},
3704
+ default: {
3705
+ bodyMapper: Mappers.DefaultErrorResponse
3706
+ }
3707
+ },
3708
+ queryParameters: [Parameters.apiVersion],
3709
+ urlParameters: [
3710
+ Parameters.$host,
3711
+ Parameters.subscriptionId,
3712
+ Parameters.resourceGroupName,
3713
+ Parameters.name
3714
+ ],
3715
+ headerParameters: [Parameters.accept],
3716
+ serializer
3717
+ };
3718
+ const listStaticSiteFunctionsOperationSpec: coreClient.OperationSpec = {
3719
+ path:
3720
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/functions",
3721
+ httpMethod: "GET",
3722
+ responses: {
3723
+ 200: {
3724
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
3725
+ },
3726
+ default: {
3727
+ bodyMapper: Mappers.DefaultErrorResponse
3728
+ }
3729
+ },
3730
+ queryParameters: [Parameters.apiVersion],
3731
+ urlParameters: [
3732
+ Parameters.$host,
3733
+ Parameters.subscriptionId,
3734
+ Parameters.resourceGroupName,
3735
+ Parameters.name
3736
+ ],
3737
+ headerParameters: [Parameters.accept],
3738
+ serializer
3739
+ };
3740
+ const listStaticSiteAppSettingsOperationSpec: coreClient.OperationSpec = {
3741
+ path:
3742
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listAppSettings",
3743
+ httpMethod: "POST",
3744
+ responses: {
3745
+ 200: {
3746
+ bodyMapper: Mappers.StringDictionary
3747
+ },
3748
+ default: {
3749
+ bodyMapper: Mappers.DefaultErrorResponse
3750
+ }
3751
+ },
3752
+ queryParameters: [Parameters.apiVersion],
3753
+ urlParameters: [
3754
+ Parameters.$host,
3755
+ Parameters.subscriptionId,
3756
+ Parameters.resourceGroupName,
3757
+ Parameters.name
3758
+ ],
3759
+ headerParameters: [Parameters.accept],
3760
+ serializer
3761
+ };
3762
+ const listStaticSiteConfiguredRolesOperationSpec: coreClient.OperationSpec = {
3763
+ path:
3764
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listConfiguredRoles",
3765
+ httpMethod: "POST",
3766
+ responses: {
3767
+ 200: {
3768
+ bodyMapper: Mappers.StringList
3769
+ },
3770
+ default: {
3771
+ bodyMapper: Mappers.DefaultErrorResponse
3772
+ }
3773
+ },
3774
+ queryParameters: [Parameters.apiVersion],
3775
+ urlParameters: [
3776
+ Parameters.$host,
3777
+ Parameters.subscriptionId,
3778
+ Parameters.resourceGroupName,
3779
+ Parameters.name
3780
+ ],
3781
+ headerParameters: [Parameters.accept],
3782
+ serializer
3783
+ };
3784
+ const listStaticSiteFunctionAppSettingsOperationSpec: coreClient.OperationSpec = {
3785
+ path:
3786
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listFunctionAppSettings",
3787
+ httpMethod: "POST",
3788
+ responses: {
3789
+ 200: {
3790
+ bodyMapper: Mappers.StringDictionary
3791
+ },
3792
+ default: {
3793
+ bodyMapper: Mappers.DefaultErrorResponse
3794
+ }
3795
+ },
3796
+ queryParameters: [Parameters.apiVersion],
3797
+ urlParameters: [
3798
+ Parameters.$host,
3799
+ Parameters.subscriptionId,
3800
+ Parameters.resourceGroupName,
3801
+ Parameters.name
3802
+ ],
3803
+ headerParameters: [Parameters.accept],
3804
+ serializer
3805
+ };
3806
+ const listStaticSiteSecretsOperationSpec: coreClient.OperationSpec = {
3807
+ path:
3808
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listSecrets",
3809
+ httpMethod: "POST",
3810
+ responses: {
3811
+ 200: {
3812
+ bodyMapper: Mappers.StringDictionary
3813
+ },
3814
+ default: {
3815
+ bodyMapper: Mappers.DefaultErrorResponse
3816
+ }
3817
+ },
3818
+ queryParameters: [Parameters.apiVersion],
3819
+ urlParameters: [
3820
+ Parameters.$host,
3821
+ Parameters.subscriptionId,
3822
+ Parameters.resourceGroupName,
3823
+ Parameters.name
3824
+ ],
3825
+ headerParameters: [Parameters.accept],
3826
+ serializer
3827
+ };
3828
+ const getPrivateEndpointConnectionListOperationSpec: coreClient.OperationSpec = {
3829
+ path:
3830
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections",
3831
+ httpMethod: "GET",
3832
+ responses: {
3833
+ 200: {
3834
+ bodyMapper: Mappers.PrivateEndpointConnectionCollection
3835
+ },
3836
+ default: {
3837
+ bodyMapper: Mappers.DefaultErrorResponse
3838
+ }
3839
+ },
3840
+ queryParameters: [Parameters.apiVersion],
3841
+ urlParameters: [
3842
+ Parameters.$host,
3843
+ Parameters.subscriptionId,
3844
+ Parameters.resourceGroupName,
3845
+ Parameters.name
3846
+ ],
3847
+ headerParameters: [Parameters.accept],
3848
+ serializer
3849
+ };
3850
+ const getPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
3851
+ path:
3852
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
3853
+ httpMethod: "GET",
3854
+ responses: {
3855
+ 200: {
3856
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
3857
+ },
3858
+ default: {
3859
+ bodyMapper: Mappers.DefaultErrorResponse
3860
+ }
3861
+ },
3862
+ queryParameters: [Parameters.apiVersion],
3863
+ urlParameters: [
3864
+ Parameters.$host,
3865
+ Parameters.subscriptionId,
3866
+ Parameters.resourceGroupName,
3867
+ Parameters.name,
3868
+ Parameters.privateEndpointConnectionName
3869
+ ],
3870
+ headerParameters: [Parameters.accept],
3871
+ serializer
3872
+ };
3873
+ const approveOrRejectPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
3874
+ path:
3875
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
3876
+ httpMethod: "PUT",
3877
+ responses: {
3878
+ 200: {
3879
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
3880
+ },
3881
+ 201: {
3882
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
3883
+ },
3884
+ 202: {
3885
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
3886
+ },
3887
+ 204: {
3888
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
3889
+ },
3890
+ default: {
3891
+ bodyMapper: Mappers.DefaultErrorResponse
3892
+ }
3893
+ },
3894
+ requestBody: Parameters.privateEndpointWrapper,
3895
+ queryParameters: [Parameters.apiVersion],
3896
+ urlParameters: [
3897
+ Parameters.$host,
3898
+ Parameters.subscriptionId,
3899
+ Parameters.resourceGroupName,
3900
+ Parameters.name,
3901
+ Parameters.privateEndpointConnectionName
3902
+ ],
3903
+ headerParameters: [Parameters.accept, Parameters.contentType],
3904
+ mediaType: "json",
3905
+ serializer
3906
+ };
3907
+ const deletePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
3908
+ path:
3909
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
3910
+ httpMethod: "DELETE",
3911
+ responses: {
3912
+ 200: {
3913
+ bodyMapper: {
3914
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
3915
+ }
3916
+ },
3917
+ 201: {
3918
+ bodyMapper: {
3919
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
3920
+ }
3921
+ },
3922
+ 202: {
3923
+ bodyMapper: {
3924
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
3925
+ }
3926
+ },
3927
+ 204: {
3928
+ bodyMapper: {
3929
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
3930
+ }
3931
+ },
3932
+ default: {
3933
+ bodyMapper: Mappers.DefaultErrorResponse
3934
+ }
3935
+ },
3936
+ queryParameters: [Parameters.apiVersion],
3937
+ urlParameters: [
3938
+ Parameters.$host,
3939
+ Parameters.subscriptionId,
3940
+ Parameters.resourceGroupName,
3941
+ Parameters.name,
3942
+ Parameters.privateEndpointConnectionName
3943
+ ],
3944
+ headerParameters: [Parameters.accept],
3945
+ serializer
3946
+ };
3947
+ const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
3948
+ path:
3949
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateLinkResources",
3950
+ httpMethod: "GET",
3951
+ responses: {
3952
+ 200: {
3953
+ bodyMapper: Mappers.PrivateLinkResourcesWrapper
3954
+ },
3955
+ default: {
3956
+ bodyMapper: Mappers.DefaultErrorResponse
3957
+ }
3958
+ },
3959
+ queryParameters: [Parameters.apiVersion],
3960
+ urlParameters: [
3961
+ Parameters.$host,
3962
+ Parameters.subscriptionId,
3963
+ Parameters.resourceGroupName,
3964
+ Parameters.name
3965
+ ],
3966
+ headerParameters: [Parameters.accept],
3967
+ serializer
3968
+ };
3969
+ const resetStaticSiteApiKeyOperationSpec: coreClient.OperationSpec = {
3970
+ path:
3971
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/resetapikey",
3972
+ httpMethod: "POST",
3973
+ responses: {
3974
+ 200: {},
3975
+ default: {
3976
+ bodyMapper: Mappers.DefaultErrorResponse
3977
+ }
3978
+ },
3979
+ requestBody: Parameters.resetPropertiesEnvelope,
3980
+ queryParameters: [Parameters.apiVersion],
3981
+ urlParameters: [
3982
+ Parameters.$host,
3983
+ Parameters.subscriptionId,
3984
+ Parameters.resourceGroupName,
3985
+ Parameters.name
3986
+ ],
3987
+ headerParameters: [Parameters.accept, Parameters.contentType],
3988
+ mediaType: "json",
3989
+ serializer
3990
+ };
3991
+ const getUserProvidedFunctionAppsForStaticSiteOperationSpec: coreClient.OperationSpec = {
3992
+ path:
3993
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps",
3994
+ httpMethod: "GET",
3995
+ responses: {
3996
+ 200: {
3997
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
3998
+ },
3999
+ default: {
4000
+ bodyMapper: Mappers.DefaultErrorResponse
4001
+ }
4002
+ },
4003
+ queryParameters: [Parameters.apiVersion],
4004
+ urlParameters: [
4005
+ Parameters.$host,
4006
+ Parameters.subscriptionId,
4007
+ Parameters.resourceGroupName,
4008
+ Parameters.name
4009
+ ],
4010
+ headerParameters: [Parameters.accept],
4011
+ serializer
4012
+ };
4013
+ const getUserProvidedFunctionAppForStaticSiteOperationSpec: coreClient.OperationSpec = {
4014
+ path:
4015
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}",
4016
+ httpMethod: "GET",
4017
+ responses: {
4018
+ 200: {
4019
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
4020
+ },
4021
+ default: {
4022
+ bodyMapper: Mappers.DefaultErrorResponse
4023
+ }
4024
+ },
4025
+ queryParameters: [Parameters.apiVersion],
4026
+ urlParameters: [
4027
+ Parameters.$host,
4028
+ Parameters.subscriptionId,
4029
+ Parameters.resourceGroupName,
4030
+ Parameters.name,
4031
+ Parameters.functionAppName
4032
+ ],
4033
+ headerParameters: [Parameters.accept],
4034
+ serializer
4035
+ };
4036
+ const registerUserProvidedFunctionAppWithStaticSiteOperationSpec: coreClient.OperationSpec = {
4037
+ path:
4038
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}",
4039
+ httpMethod: "PUT",
4040
+ responses: {
4041
+ 200: {
4042
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
4043
+ },
4044
+ 201: {
4045
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
4046
+ },
4047
+ 202: {
4048
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
4049
+ },
4050
+ 204: {
4051
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
4052
+ },
4053
+ default: {
4054
+ bodyMapper: Mappers.DefaultErrorResponse
4055
+ }
4056
+ },
4057
+ requestBody: Parameters.staticSiteUserProvidedFunctionEnvelope,
4058
+ queryParameters: [Parameters.apiVersion, Parameters.isForced],
4059
+ urlParameters: [
4060
+ Parameters.$host,
4061
+ Parameters.subscriptionId,
4062
+ Parameters.resourceGroupName,
4063
+ Parameters.name,
4064
+ Parameters.functionAppName
4065
+ ],
4066
+ headerParameters: [Parameters.accept, Parameters.contentType],
4067
+ mediaType: "json",
4068
+ serializer
4069
+ };
4070
+ const detachUserProvidedFunctionAppFromStaticSiteOperationSpec: coreClient.OperationSpec = {
4071
+ path:
4072
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}",
4073
+ httpMethod: "DELETE",
4074
+ responses: {
4075
+ 200: {},
4076
+ 204: {},
4077
+ default: {
4078
+ bodyMapper: Mappers.DefaultErrorResponse
4079
+ }
4080
+ },
4081
+ queryParameters: [Parameters.apiVersion],
4082
+ urlParameters: [
4083
+ Parameters.$host,
4084
+ Parameters.subscriptionId,
4085
+ Parameters.resourceGroupName,
4086
+ Parameters.name,
4087
+ Parameters.functionAppName
4088
+ ],
4089
+ headerParameters: [Parameters.accept],
4090
+ serializer
4091
+ };
4092
+ const createZipDeploymentForStaticSiteOperationSpec: coreClient.OperationSpec = {
4093
+ path:
4094
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/zipdeploy",
4095
+ httpMethod: "POST",
4096
+ responses: {
4097
+ 200: {},
4098
+ 201: {},
4099
+ 202: {},
4100
+ 204: {},
4101
+ default: {
4102
+ bodyMapper: Mappers.DefaultErrorResponse
4103
+ }
4104
+ },
4105
+ requestBody: Parameters.staticSiteZipDeploymentEnvelope,
4106
+ queryParameters: [Parameters.apiVersion],
4107
+ urlParameters: [
4108
+ Parameters.$host,
4109
+ Parameters.subscriptionId,
4110
+ Parameters.resourceGroupName,
4111
+ Parameters.name
4112
+ ],
4113
+ headerParameters: [Parameters.accept, Parameters.contentType],
4114
+ mediaType: "json",
4115
+ serializer
4116
+ };
4117
+ const listNextOperationSpec: coreClient.OperationSpec = {
4118
+ path: "{nextLink}",
4119
+ httpMethod: "GET",
4120
+ responses: {
4121
+ 200: {
4122
+ bodyMapper: Mappers.StaticSiteCollection
4123
+ },
4124
+ default: {
4125
+ bodyMapper: Mappers.DefaultErrorResponse
4126
+ }
4127
+ },
4128
+ queryParameters: [Parameters.apiVersion],
4129
+ urlParameters: [
4130
+ Parameters.$host,
4131
+ Parameters.subscriptionId,
4132
+ Parameters.nextLink
4133
+ ],
4134
+ headerParameters: [Parameters.accept],
4135
+ serializer
4136
+ };
4137
+ const getStaticSitesByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
4138
+ path: "{nextLink}",
4139
+ httpMethod: "GET",
4140
+ responses: {
4141
+ 200: {
4142
+ bodyMapper: Mappers.StaticSiteCollection
4143
+ },
4144
+ default: {
4145
+ bodyMapper: Mappers.DefaultErrorResponse
4146
+ }
4147
+ },
4148
+ queryParameters: [Parameters.apiVersion],
4149
+ urlParameters: [
4150
+ Parameters.$host,
4151
+ Parameters.subscriptionId,
4152
+ Parameters.resourceGroupName,
4153
+ Parameters.nextLink
4154
+ ],
4155
+ headerParameters: [Parameters.accept],
4156
+ serializer
4157
+ };
4158
+ const listStaticSiteUsersNextOperationSpec: coreClient.OperationSpec = {
4159
+ path: "{nextLink}",
4160
+ httpMethod: "GET",
4161
+ responses: {
4162
+ 200: {
4163
+ bodyMapper: Mappers.StaticSiteUserCollection
4164
+ },
4165
+ default: {
4166
+ bodyMapper: Mappers.DefaultErrorResponse
4167
+ }
4168
+ },
4169
+ queryParameters: [Parameters.apiVersion],
4170
+ urlParameters: [
4171
+ Parameters.$host,
4172
+ Parameters.subscriptionId,
4173
+ Parameters.resourceGroupName,
4174
+ Parameters.name,
4175
+ Parameters.nextLink,
4176
+ Parameters.authprovider
4177
+ ],
4178
+ headerParameters: [Parameters.accept],
4179
+ serializer
4180
+ };
4181
+ const getStaticSiteBuildsNextOperationSpec: coreClient.OperationSpec = {
4182
+ path: "{nextLink}",
4183
+ httpMethod: "GET",
4184
+ responses: {
4185
+ 200: {
4186
+ bodyMapper: Mappers.StaticSiteBuildCollection
4187
+ },
4188
+ default: {
4189
+ bodyMapper: Mappers.DefaultErrorResponse
4190
+ }
4191
+ },
4192
+ queryParameters: [Parameters.apiVersion],
4193
+ urlParameters: [
4194
+ Parameters.$host,
4195
+ Parameters.subscriptionId,
4196
+ Parameters.resourceGroupName,
4197
+ Parameters.name,
4198
+ Parameters.nextLink
4199
+ ],
4200
+ headerParameters: [Parameters.accept],
4201
+ serializer
4202
+ };
4203
+ const listStaticSiteBuildFunctionsNextOperationSpec: coreClient.OperationSpec = {
4204
+ path: "{nextLink}",
4205
+ httpMethod: "GET",
4206
+ responses: {
4207
+ 200: {
4208
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
4209
+ },
4210
+ default: {
4211
+ bodyMapper: Mappers.DefaultErrorResponse
4212
+ }
4213
+ },
4214
+ queryParameters: [Parameters.apiVersion],
4215
+ urlParameters: [
4216
+ Parameters.$host,
4217
+ Parameters.subscriptionId,
4218
+ Parameters.resourceGroupName,
4219
+ Parameters.name,
4220
+ Parameters.nextLink,
4221
+ Parameters.environmentName1
4222
+ ],
4223
+ headerParameters: [Parameters.accept],
4224
+ serializer
4225
+ };
4226
+ const getUserProvidedFunctionAppsForStaticSiteBuildNextOperationSpec: coreClient.OperationSpec = {
4227
+ path: "{nextLink}",
4228
+ httpMethod: "GET",
4229
+ responses: {
4230
+ 200: {
4231
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
4232
+ },
4233
+ default: {
4234
+ bodyMapper: Mappers.DefaultErrorResponse
4235
+ }
4236
+ },
4237
+ queryParameters: [Parameters.apiVersion],
4238
+ urlParameters: [
4239
+ Parameters.$host,
4240
+ Parameters.subscriptionId,
4241
+ Parameters.resourceGroupName,
4242
+ Parameters.name,
4243
+ Parameters.nextLink,
4244
+ Parameters.environmentName1
4245
+ ],
4246
+ headerParameters: [Parameters.accept],
4247
+ serializer
4248
+ };
4249
+ const listStaticSiteCustomDomainsNextOperationSpec: coreClient.OperationSpec = {
4250
+ path: "{nextLink}",
4251
+ httpMethod: "GET",
4252
+ responses: {
4253
+ 200: {
4254
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewCollection
4255
+ },
4256
+ default: {
4257
+ bodyMapper: Mappers.DefaultErrorResponse
4258
+ }
4259
+ },
4260
+ queryParameters: [Parameters.apiVersion],
4261
+ urlParameters: [
4262
+ Parameters.$host,
4263
+ Parameters.subscriptionId,
4264
+ Parameters.resourceGroupName,
4265
+ Parameters.name,
4266
+ Parameters.nextLink
4267
+ ],
4268
+ headerParameters: [Parameters.accept],
4269
+ serializer
4270
+ };
4271
+ const listStaticSiteFunctionsNextOperationSpec: coreClient.OperationSpec = {
4272
+ path: "{nextLink}",
4273
+ httpMethod: "GET",
4274
+ responses: {
4275
+ 200: {
4276
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
4277
+ },
4278
+ default: {
4279
+ bodyMapper: Mappers.DefaultErrorResponse
4280
+ }
4281
+ },
4282
+ queryParameters: [Parameters.apiVersion],
4283
+ urlParameters: [
4284
+ Parameters.$host,
4285
+ Parameters.subscriptionId,
4286
+ Parameters.resourceGroupName,
4287
+ Parameters.name,
4288
+ Parameters.nextLink
4289
+ ],
4290
+ headerParameters: [Parameters.accept],
4291
+ serializer
4292
+ };
4293
+ const getPrivateEndpointConnectionListNextOperationSpec: coreClient.OperationSpec = {
4294
+ path: "{nextLink}",
4295
+ httpMethod: "GET",
4296
+ responses: {
4297
+ 200: {
4298
+ bodyMapper: Mappers.PrivateEndpointConnectionCollection
4299
+ },
4300
+ default: {
4301
+ bodyMapper: Mappers.DefaultErrorResponse
4302
+ }
4303
+ },
4304
+ queryParameters: [Parameters.apiVersion],
4305
+ urlParameters: [
4306
+ Parameters.$host,
4307
+ Parameters.subscriptionId,
4308
+ Parameters.resourceGroupName,
4309
+ Parameters.name,
4310
+ Parameters.nextLink
4311
+ ],
4312
+ headerParameters: [Parameters.accept],
4313
+ serializer
4314
+ };
4315
+ const getUserProvidedFunctionAppsForStaticSiteNextOperationSpec: coreClient.OperationSpec = {
4316
+ path: "{nextLink}",
4317
+ httpMethod: "GET",
4318
+ responses: {
4319
+ 200: {
4320
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
4321
+ },
4322
+ default: {
4323
+ bodyMapper: Mappers.DefaultErrorResponse
4324
+ }
4325
+ },
4326
+ queryParameters: [Parameters.apiVersion],
4327
+ urlParameters: [
4328
+ Parameters.$host,
4329
+ Parameters.subscriptionId,
4330
+ Parameters.resourceGroupName,
4331
+ Parameters.name,
4332
+ Parameters.nextLink
4333
+ ],
4334
+ headerParameters: [Parameters.accept],
4335
+ serializer
4336
+ };