@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,3069 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import "@azure/core-paging";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { LroEngine } from "@azure/core-lro";
14
+ import { LroImpl } from "../lroImpl";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class representing a StaticSites. */
17
+ export class StaticSitesImpl {
18
+ /**
19
+ * Initialize a new instance of the class StaticSites class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Description for Get all Static Sites for a subscription.
27
+ * @param options The options parameters.
28
+ */
29
+ list(options) {
30
+ const iter = this.listPagingAll(options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listPagingPage(options);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(options) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result = yield __await(this._list(options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listNext(continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listPagingAll(options) {
56
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Description for Gets all static sites in the specified resource group.
75
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
76
+ * @param options The options parameters.
77
+ */
78
+ listStaticSitesByResourceGroup(resourceGroupName, options) {
79
+ const iter = this.getStaticSitesByResourceGroupPagingAll(resourceGroupName, options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.getStaticSitesByResourceGroupPagingPage(resourceGroupName, options);
89
+ }
90
+ };
91
+ }
92
+ getStaticSitesByResourceGroupPagingPage(resourceGroupName, options) {
93
+ return __asyncGenerator(this, arguments, function* getStaticSitesByResourceGroupPagingPage_1() {
94
+ let result = yield __await(this._getStaticSitesByResourceGroup(resourceGroupName, options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._getStaticSitesByResourceGroupNext(resourceGroupName, continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ getStaticSitesByResourceGroupPagingAll(resourceGroupName, options) {
105
+ return __asyncGenerator(this, arguments, function* getStaticSitesByResourceGroupPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.getStaticSitesByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
109
+ const page = _c.value;
110
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
111
+ }
112
+ }
113
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
+ finally {
115
+ try {
116
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
117
+ }
118
+ finally { if (e_2) throw e_2.error; }
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Description for Gets the list of users of a static site.
124
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
125
+ * @param name Name of the static site.
126
+ * @param authprovider The auth provider for the users.
127
+ * @param options The options parameters.
128
+ */
129
+ listStaticSiteUsers(resourceGroupName, name, authprovider, options) {
130
+ const iter = this.listStaticSiteUsersPagingAll(resourceGroupName, name, authprovider, options);
131
+ return {
132
+ next() {
133
+ return iter.next();
134
+ },
135
+ [Symbol.asyncIterator]() {
136
+ return this;
137
+ },
138
+ byPage: () => {
139
+ return this.listStaticSiteUsersPagingPage(resourceGroupName, name, authprovider, options);
140
+ }
141
+ };
142
+ }
143
+ listStaticSiteUsersPagingPage(resourceGroupName, name, authprovider, options) {
144
+ return __asyncGenerator(this, arguments, function* listStaticSiteUsersPagingPage_1() {
145
+ let result = yield __await(this._listStaticSiteUsers(resourceGroupName, name, authprovider, options));
146
+ yield yield __await(result.value || []);
147
+ let continuationToken = result.nextLink;
148
+ while (continuationToken) {
149
+ result = yield __await(this._listStaticSiteUsersNext(resourceGroupName, name, authprovider, continuationToken, options));
150
+ continuationToken = result.nextLink;
151
+ yield yield __await(result.value || []);
152
+ }
153
+ });
154
+ }
155
+ listStaticSiteUsersPagingAll(resourceGroupName, name, authprovider, options) {
156
+ return __asyncGenerator(this, arguments, function* listStaticSiteUsersPagingAll_1() {
157
+ var e_3, _a;
158
+ try {
159
+ for (var _b = __asyncValues(this.listStaticSiteUsersPagingPage(resourceGroupName, name, authprovider, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
160
+ const page = _c.value;
161
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
162
+ }
163
+ }
164
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
165
+ finally {
166
+ try {
167
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
168
+ }
169
+ finally { if (e_3) throw e_3.error; }
170
+ }
171
+ });
172
+ }
173
+ /**
174
+ * Description for Gets all static site builds for a particular static site.
175
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
176
+ * @param name Name of the static site.
177
+ * @param options The options parameters.
178
+ */
179
+ listStaticSiteBuilds(resourceGroupName, name, options) {
180
+ const iter = this.getStaticSiteBuildsPagingAll(resourceGroupName, name, options);
181
+ return {
182
+ next() {
183
+ return iter.next();
184
+ },
185
+ [Symbol.asyncIterator]() {
186
+ return this;
187
+ },
188
+ byPage: () => {
189
+ return this.getStaticSiteBuildsPagingPage(resourceGroupName, name, options);
190
+ }
191
+ };
192
+ }
193
+ getStaticSiteBuildsPagingPage(resourceGroupName, name, options) {
194
+ return __asyncGenerator(this, arguments, function* getStaticSiteBuildsPagingPage_1() {
195
+ let result = yield __await(this._getStaticSiteBuilds(resourceGroupName, name, options));
196
+ yield yield __await(result.value || []);
197
+ let continuationToken = result.nextLink;
198
+ while (continuationToken) {
199
+ result = yield __await(this._getStaticSiteBuildsNext(resourceGroupName, name, continuationToken, options));
200
+ continuationToken = result.nextLink;
201
+ yield yield __await(result.value || []);
202
+ }
203
+ });
204
+ }
205
+ getStaticSiteBuildsPagingAll(resourceGroupName, name, options) {
206
+ return __asyncGenerator(this, arguments, function* getStaticSiteBuildsPagingAll_1() {
207
+ var e_4, _a;
208
+ try {
209
+ for (var _b = __asyncValues(this.getStaticSiteBuildsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
210
+ const page = _c.value;
211
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
212
+ }
213
+ }
214
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
215
+ finally {
216
+ try {
217
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
218
+ }
219
+ finally { if (e_4) throw e_4.error; }
220
+ }
221
+ });
222
+ }
223
+ /**
224
+ * Description for Gets the functions of a particular static site build.
225
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
226
+ * @param name Name of the static site.
227
+ * @param environmentName The stage site identifier.
228
+ * @param options The options parameters.
229
+ */
230
+ listStaticSiteBuildFunctions(resourceGroupName, name, environmentName, options) {
231
+ const iter = this.listStaticSiteBuildFunctionsPagingAll(resourceGroupName, name, environmentName, options);
232
+ return {
233
+ next() {
234
+ return iter.next();
235
+ },
236
+ [Symbol.asyncIterator]() {
237
+ return this;
238
+ },
239
+ byPage: () => {
240
+ return this.listStaticSiteBuildFunctionsPagingPage(resourceGroupName, name, environmentName, options);
241
+ }
242
+ };
243
+ }
244
+ listStaticSiteBuildFunctionsPagingPage(resourceGroupName, name, environmentName, options) {
245
+ return __asyncGenerator(this, arguments, function* listStaticSiteBuildFunctionsPagingPage_1() {
246
+ let result = yield __await(this._listStaticSiteBuildFunctions(resourceGroupName, name, environmentName, options));
247
+ yield yield __await(result.value || []);
248
+ let continuationToken = result.nextLink;
249
+ while (continuationToken) {
250
+ result = yield __await(this._listStaticSiteBuildFunctionsNext(resourceGroupName, name, environmentName, continuationToken, options));
251
+ continuationToken = result.nextLink;
252
+ yield yield __await(result.value || []);
253
+ }
254
+ });
255
+ }
256
+ listStaticSiteBuildFunctionsPagingAll(resourceGroupName, name, environmentName, options) {
257
+ return __asyncGenerator(this, arguments, function* listStaticSiteBuildFunctionsPagingAll_1() {
258
+ var e_5, _a;
259
+ try {
260
+ for (var _b = __asyncValues(this.listStaticSiteBuildFunctionsPagingPage(resourceGroupName, name, environmentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
261
+ const page = _c.value;
262
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
263
+ }
264
+ }
265
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
266
+ finally {
267
+ try {
268
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
269
+ }
270
+ finally { if (e_5) throw e_5.error; }
271
+ }
272
+ });
273
+ }
274
+ /**
275
+ * Description for Gets the details of the user provided function apps registered with a static site
276
+ * build
277
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
278
+ * @param name Name of the static site.
279
+ * @param environmentName The stage site identifier.
280
+ * @param options The options parameters.
281
+ */
282
+ listUserProvidedFunctionAppsForStaticSiteBuild(resourceGroupName, name, environmentName, options) {
283
+ const iter = this.getUserProvidedFunctionAppsForStaticSiteBuildPagingAll(resourceGroupName, name, environmentName, options);
284
+ return {
285
+ next() {
286
+ return iter.next();
287
+ },
288
+ [Symbol.asyncIterator]() {
289
+ return this;
290
+ },
291
+ byPage: () => {
292
+ return this.getUserProvidedFunctionAppsForStaticSiteBuildPagingPage(resourceGroupName, name, environmentName, options);
293
+ }
294
+ };
295
+ }
296
+ getUserProvidedFunctionAppsForStaticSiteBuildPagingPage(resourceGroupName, name, environmentName, options) {
297
+ return __asyncGenerator(this, arguments, function* getUserProvidedFunctionAppsForStaticSiteBuildPagingPage_1() {
298
+ let result = yield __await(this._getUserProvidedFunctionAppsForStaticSiteBuild(resourceGroupName, name, environmentName, options));
299
+ yield yield __await(result.value || []);
300
+ let continuationToken = result.nextLink;
301
+ while (continuationToken) {
302
+ result = yield __await(this._getUserProvidedFunctionAppsForStaticSiteBuildNext(resourceGroupName, name, environmentName, continuationToken, options));
303
+ continuationToken = result.nextLink;
304
+ yield yield __await(result.value || []);
305
+ }
306
+ });
307
+ }
308
+ getUserProvidedFunctionAppsForStaticSiteBuildPagingAll(resourceGroupName, name, environmentName, options) {
309
+ return __asyncGenerator(this, arguments, function* getUserProvidedFunctionAppsForStaticSiteBuildPagingAll_1() {
310
+ var e_6, _a;
311
+ try {
312
+ for (var _b = __asyncValues(this.getUserProvidedFunctionAppsForStaticSiteBuildPagingPage(resourceGroupName, name, environmentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
313
+ const page = _c.value;
314
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
315
+ }
316
+ }
317
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
318
+ finally {
319
+ try {
320
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
321
+ }
322
+ finally { if (e_6) throw e_6.error; }
323
+ }
324
+ });
325
+ }
326
+ /**
327
+ * Description for Gets all static site custom domains for a particular static site.
328
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
329
+ * @param name Name of the static site resource to search in.
330
+ * @param options The options parameters.
331
+ */
332
+ listStaticSiteCustomDomains(resourceGroupName, name, options) {
333
+ const iter = this.listStaticSiteCustomDomainsPagingAll(resourceGroupName, name, options);
334
+ return {
335
+ next() {
336
+ return iter.next();
337
+ },
338
+ [Symbol.asyncIterator]() {
339
+ return this;
340
+ },
341
+ byPage: () => {
342
+ return this.listStaticSiteCustomDomainsPagingPage(resourceGroupName, name, options);
343
+ }
344
+ };
345
+ }
346
+ listStaticSiteCustomDomainsPagingPage(resourceGroupName, name, options) {
347
+ return __asyncGenerator(this, arguments, function* listStaticSiteCustomDomainsPagingPage_1() {
348
+ let result = yield __await(this._listStaticSiteCustomDomains(resourceGroupName, name, options));
349
+ yield yield __await(result.value || []);
350
+ let continuationToken = result.nextLink;
351
+ while (continuationToken) {
352
+ result = yield __await(this._listStaticSiteCustomDomainsNext(resourceGroupName, name, continuationToken, options));
353
+ continuationToken = result.nextLink;
354
+ yield yield __await(result.value || []);
355
+ }
356
+ });
357
+ }
358
+ listStaticSiteCustomDomainsPagingAll(resourceGroupName, name, options) {
359
+ return __asyncGenerator(this, arguments, function* listStaticSiteCustomDomainsPagingAll_1() {
360
+ var e_7, _a;
361
+ try {
362
+ for (var _b = __asyncValues(this.listStaticSiteCustomDomainsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
363
+ const page = _c.value;
364
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
365
+ }
366
+ }
367
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
368
+ finally {
369
+ try {
370
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
371
+ }
372
+ finally { if (e_7) throw e_7.error; }
373
+ }
374
+ });
375
+ }
376
+ /**
377
+ * Description for Gets the functions of a static site.
378
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
379
+ * @param name Name of the static site.
380
+ * @param options The options parameters.
381
+ */
382
+ listStaticSiteFunctions(resourceGroupName, name, options) {
383
+ const iter = this.listStaticSiteFunctionsPagingAll(resourceGroupName, name, options);
384
+ return {
385
+ next() {
386
+ return iter.next();
387
+ },
388
+ [Symbol.asyncIterator]() {
389
+ return this;
390
+ },
391
+ byPage: () => {
392
+ return this.listStaticSiteFunctionsPagingPage(resourceGroupName, name, options);
393
+ }
394
+ };
395
+ }
396
+ listStaticSiteFunctionsPagingPage(resourceGroupName, name, options) {
397
+ return __asyncGenerator(this, arguments, function* listStaticSiteFunctionsPagingPage_1() {
398
+ let result = yield __await(this._listStaticSiteFunctions(resourceGroupName, name, options));
399
+ yield yield __await(result.value || []);
400
+ let continuationToken = result.nextLink;
401
+ while (continuationToken) {
402
+ result = yield __await(this._listStaticSiteFunctionsNext(resourceGroupName, name, continuationToken, options));
403
+ continuationToken = result.nextLink;
404
+ yield yield __await(result.value || []);
405
+ }
406
+ });
407
+ }
408
+ listStaticSiteFunctionsPagingAll(resourceGroupName, name, options) {
409
+ return __asyncGenerator(this, arguments, function* listStaticSiteFunctionsPagingAll_1() {
410
+ var e_8, _a;
411
+ try {
412
+ for (var _b = __asyncValues(this.listStaticSiteFunctionsPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
413
+ const page = _c.value;
414
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
415
+ }
416
+ }
417
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
418
+ finally {
419
+ try {
420
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
421
+ }
422
+ finally { if (e_8) throw e_8.error; }
423
+ }
424
+ });
425
+ }
426
+ /**
427
+ * Description for Gets the list of private endpoint connections associated with a static site
428
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
429
+ * @param name Name of the static site.
430
+ * @param options The options parameters.
431
+ */
432
+ listPrivateEndpointConnectionList(resourceGroupName, name, options) {
433
+ const iter = this.getPrivateEndpointConnectionListPagingAll(resourceGroupName, name, options);
434
+ return {
435
+ next() {
436
+ return iter.next();
437
+ },
438
+ [Symbol.asyncIterator]() {
439
+ return this;
440
+ },
441
+ byPage: () => {
442
+ return this.getPrivateEndpointConnectionListPagingPage(resourceGroupName, name, options);
443
+ }
444
+ };
445
+ }
446
+ getPrivateEndpointConnectionListPagingPage(resourceGroupName, name, options) {
447
+ return __asyncGenerator(this, arguments, function* getPrivateEndpointConnectionListPagingPage_1() {
448
+ let result = yield __await(this._getPrivateEndpointConnectionList(resourceGroupName, name, options));
449
+ yield yield __await(result.value || []);
450
+ let continuationToken = result.nextLink;
451
+ while (continuationToken) {
452
+ result = yield __await(this._getPrivateEndpointConnectionListNext(resourceGroupName, name, continuationToken, options));
453
+ continuationToken = result.nextLink;
454
+ yield yield __await(result.value || []);
455
+ }
456
+ });
457
+ }
458
+ getPrivateEndpointConnectionListPagingAll(resourceGroupName, name, options) {
459
+ return __asyncGenerator(this, arguments, function* getPrivateEndpointConnectionListPagingAll_1() {
460
+ var e_9, _a;
461
+ try {
462
+ for (var _b = __asyncValues(this.getPrivateEndpointConnectionListPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
463
+ const page = _c.value;
464
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
465
+ }
466
+ }
467
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
468
+ finally {
469
+ try {
470
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
471
+ }
472
+ finally { if (e_9) throw e_9.error; }
473
+ }
474
+ });
475
+ }
476
+ /**
477
+ * Description for Gets the details of the user provided function apps registered with a static site
478
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
479
+ * @param name Name of the static site.
480
+ * @param options The options parameters.
481
+ */
482
+ listUserProvidedFunctionAppsForStaticSite(resourceGroupName, name, options) {
483
+ const iter = this.getUserProvidedFunctionAppsForStaticSitePagingAll(resourceGroupName, name, options);
484
+ return {
485
+ next() {
486
+ return iter.next();
487
+ },
488
+ [Symbol.asyncIterator]() {
489
+ return this;
490
+ },
491
+ byPage: () => {
492
+ return this.getUserProvidedFunctionAppsForStaticSitePagingPage(resourceGroupName, name, options);
493
+ }
494
+ };
495
+ }
496
+ getUserProvidedFunctionAppsForStaticSitePagingPage(resourceGroupName, name, options) {
497
+ return __asyncGenerator(this, arguments, function* getUserProvidedFunctionAppsForStaticSitePagingPage_1() {
498
+ let result = yield __await(this._getUserProvidedFunctionAppsForStaticSite(resourceGroupName, name, options));
499
+ yield yield __await(result.value || []);
500
+ let continuationToken = result.nextLink;
501
+ while (continuationToken) {
502
+ result = yield __await(this._getUserProvidedFunctionAppsForStaticSiteNext(resourceGroupName, name, continuationToken, options));
503
+ continuationToken = result.nextLink;
504
+ yield yield __await(result.value || []);
505
+ }
506
+ });
507
+ }
508
+ getUserProvidedFunctionAppsForStaticSitePagingAll(resourceGroupName, name, options) {
509
+ return __asyncGenerator(this, arguments, function* getUserProvidedFunctionAppsForStaticSitePagingAll_1() {
510
+ var e_10, _a;
511
+ try {
512
+ for (var _b = __asyncValues(this.getUserProvidedFunctionAppsForStaticSitePagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
513
+ const page = _c.value;
514
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
515
+ }
516
+ }
517
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
518
+ finally {
519
+ try {
520
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
521
+ }
522
+ finally { if (e_10) throw e_10.error; }
523
+ }
524
+ });
525
+ }
526
+ /**
527
+ * Description for Generates a preview workflow file for the static site
528
+ * @param location Location where you plan to create the static site.
529
+ * @param staticSitesWorkflowPreviewRequest A JSON representation of the
530
+ * StaticSitesWorkflowPreviewRequest properties. See example.
531
+ * @param options The options parameters.
532
+ */
533
+ previewWorkflow(location, staticSitesWorkflowPreviewRequest, options) {
534
+ return this.client.sendOperationRequest({ location, staticSitesWorkflowPreviewRequest, options }, previewWorkflowOperationSpec);
535
+ }
536
+ /**
537
+ * Description for Get all Static Sites for a subscription.
538
+ * @param options The options parameters.
539
+ */
540
+ _list(options) {
541
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
542
+ }
543
+ /**
544
+ * Description for Gets all static sites in the specified resource group.
545
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
546
+ * @param options The options parameters.
547
+ */
548
+ _getStaticSitesByResourceGroup(resourceGroupName, options) {
549
+ return this.client.sendOperationRequest({ resourceGroupName, options }, getStaticSitesByResourceGroupOperationSpec);
550
+ }
551
+ /**
552
+ * Description for Gets the details of a static site.
553
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
554
+ * @param name Name of the static site.
555
+ * @param options The options parameters.
556
+ */
557
+ getStaticSite(resourceGroupName, name, options) {
558
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getStaticSiteOperationSpec);
559
+ }
560
+ /**
561
+ * Description for Creates a new static site in an existing resource group, or updates an existing
562
+ * static site.
563
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
564
+ * @param name Name of the static site to create or update.
565
+ * @param staticSiteEnvelope A JSON representation of the staticsite properties. See example.
566
+ * @param options The options parameters.
567
+ */
568
+ beginCreateOrUpdateStaticSite(resourceGroupName, name, staticSiteEnvelope, options) {
569
+ return __awaiter(this, void 0, void 0, function* () {
570
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
571
+ return this.client.sendOperationRequest(args, spec);
572
+ });
573
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
574
+ var _a;
575
+ let currentRawResponse = undefined;
576
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
577
+ const callback = (rawResponse, flatResponse) => {
578
+ currentRawResponse = rawResponse;
579
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
580
+ };
581
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
582
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
583
+ return {
584
+ flatResponse,
585
+ rawResponse: {
586
+ statusCode: currentRawResponse.status,
587
+ body: currentRawResponse.parsedBody,
588
+ headers: currentRawResponse.headers.toJSON()
589
+ }
590
+ };
591
+ });
592
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, staticSiteEnvelope, options }, createOrUpdateStaticSiteOperationSpec);
593
+ return new LroEngine(lro, {
594
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
595
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
596
+ });
597
+ });
598
+ }
599
+ /**
600
+ * Description for Creates a new static site in an existing resource group, or updates an existing
601
+ * static site.
602
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
603
+ * @param name Name of the static site to create or update.
604
+ * @param staticSiteEnvelope A JSON representation of the staticsite properties. See example.
605
+ * @param options The options parameters.
606
+ */
607
+ beginCreateOrUpdateStaticSiteAndWait(resourceGroupName, name, staticSiteEnvelope, options) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ const poller = yield this.beginCreateOrUpdateStaticSite(resourceGroupName, name, staticSiteEnvelope, options);
610
+ return poller.pollUntilDone();
611
+ });
612
+ }
613
+ /**
614
+ * Description for Deletes a static site.
615
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
616
+ * @param name Name of the static site to delete.
617
+ * @param options The options parameters.
618
+ */
619
+ beginDeleteStaticSite(resourceGroupName, name, options) {
620
+ return __awaiter(this, void 0, void 0, function* () {
621
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
622
+ return this.client.sendOperationRequest(args, spec);
623
+ });
624
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
625
+ var _a;
626
+ let currentRawResponse = undefined;
627
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
628
+ const callback = (rawResponse, flatResponse) => {
629
+ currentRawResponse = rawResponse;
630
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
631
+ };
632
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
633
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
634
+ return {
635
+ flatResponse,
636
+ rawResponse: {
637
+ statusCode: currentRawResponse.status,
638
+ body: currentRawResponse.parsedBody,
639
+ headers: currentRawResponse.headers.toJSON()
640
+ }
641
+ };
642
+ });
643
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteStaticSiteOperationSpec);
644
+ return new LroEngine(lro, {
645
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
646
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
647
+ });
648
+ });
649
+ }
650
+ /**
651
+ * Description for Deletes a static site.
652
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
653
+ * @param name Name of the static site to delete.
654
+ * @param options The options parameters.
655
+ */
656
+ beginDeleteStaticSiteAndWait(resourceGroupName, name, options) {
657
+ return __awaiter(this, void 0, void 0, function* () {
658
+ const poller = yield this.beginDeleteStaticSite(resourceGroupName, name, options);
659
+ return poller.pollUntilDone();
660
+ });
661
+ }
662
+ /**
663
+ * Description for Creates a new static site in an existing resource group, or updates an existing
664
+ * static site.
665
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
666
+ * @param name Name of the static site to create or update.
667
+ * @param staticSiteEnvelope A JSON representation of the staticsite properties. See example.
668
+ * @param options The options parameters.
669
+ */
670
+ updateStaticSite(resourceGroupName, name, staticSiteEnvelope, options) {
671
+ return this.client.sendOperationRequest({ resourceGroupName, name, staticSiteEnvelope, options }, updateStaticSiteOperationSpec);
672
+ }
673
+ /**
674
+ * Description for Gets the list of users of a static site.
675
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
676
+ * @param name Name of the static site.
677
+ * @param authprovider The auth provider for the users.
678
+ * @param options The options parameters.
679
+ */
680
+ _listStaticSiteUsers(resourceGroupName, name, authprovider, options) {
681
+ return this.client.sendOperationRequest({ resourceGroupName, name, authprovider, options }, listStaticSiteUsersOperationSpec);
682
+ }
683
+ /**
684
+ * Description for Deletes the user entry from the static site.
685
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
686
+ * @param name Name of the staticsite.
687
+ * @param authprovider The auth provider for this user.
688
+ * @param userid The user id of the user.
689
+ * @param options The options parameters.
690
+ */
691
+ deleteStaticSiteUser(resourceGroupName, name, authprovider, userid, options) {
692
+ return this.client.sendOperationRequest({ resourceGroupName, name, authprovider, userid, options }, deleteStaticSiteUserOperationSpec);
693
+ }
694
+ /**
695
+ * Description for Updates a user entry with the listed roles
696
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
697
+ * @param name Name of the static site.
698
+ * @param authprovider The auth provider for this user.
699
+ * @param userid The user id of the user.
700
+ * @param staticSiteUserEnvelope A JSON representation of the StaticSiteUser properties. See example.
701
+ * @param options The options parameters.
702
+ */
703
+ updateStaticSiteUser(resourceGroupName, name, authprovider, userid, staticSiteUserEnvelope, options) {
704
+ return this.client.sendOperationRequest({
705
+ resourceGroupName,
706
+ name,
707
+ authprovider,
708
+ userid,
709
+ staticSiteUserEnvelope,
710
+ options
711
+ }, updateStaticSiteUserOperationSpec);
712
+ }
713
+ /**
714
+ * Description for Gets all static site builds for a particular static site.
715
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
716
+ * @param name Name of the static site.
717
+ * @param options The options parameters.
718
+ */
719
+ _getStaticSiteBuilds(resourceGroupName, name, options) {
720
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getStaticSiteBuildsOperationSpec);
721
+ }
722
+ /**
723
+ * Description for Gets the details of a static site build.
724
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
725
+ * @param name Name of the static site.
726
+ * @param environmentName The stage site identifier.
727
+ * @param options The options parameters.
728
+ */
729
+ getStaticSiteBuild(resourceGroupName, name, environmentName, options) {
730
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, options }, getStaticSiteBuildOperationSpec);
731
+ }
732
+ /**
733
+ * Description for Deletes a static site build.
734
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
735
+ * @param name Name of the static site.
736
+ * @param environmentName The stage site identifier.
737
+ * @param options The options parameters.
738
+ */
739
+ beginDeleteStaticSiteBuild(resourceGroupName, name, environmentName, options) {
740
+ return __awaiter(this, void 0, void 0, function* () {
741
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
742
+ return this.client.sendOperationRequest(args, spec);
743
+ });
744
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
745
+ var _a;
746
+ let currentRawResponse = undefined;
747
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
748
+ const callback = (rawResponse, flatResponse) => {
749
+ currentRawResponse = rawResponse;
750
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
751
+ };
752
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
753
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
754
+ return {
755
+ flatResponse,
756
+ rawResponse: {
757
+ statusCode: currentRawResponse.status,
758
+ body: currentRawResponse.parsedBody,
759
+ headers: currentRawResponse.headers.toJSON()
760
+ }
761
+ };
762
+ });
763
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, environmentName, options }, deleteStaticSiteBuildOperationSpec);
764
+ return new LroEngine(lro, {
765
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
766
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
767
+ });
768
+ });
769
+ }
770
+ /**
771
+ * Description for Deletes a static site build.
772
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
773
+ * @param name Name of the static site.
774
+ * @param environmentName The stage site identifier.
775
+ * @param options The options parameters.
776
+ */
777
+ beginDeleteStaticSiteBuildAndWait(resourceGroupName, name, environmentName, options) {
778
+ return __awaiter(this, void 0, void 0, function* () {
779
+ const poller = yield this.beginDeleteStaticSiteBuild(resourceGroupName, name, environmentName, options);
780
+ return poller.pollUntilDone();
781
+ });
782
+ }
783
+ /**
784
+ * Description for Creates or updates the app settings of a static site build.
785
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
786
+ * @param name Name of the static site.
787
+ * @param environmentName The stage site identifier.
788
+ * @param appSettings The dictionary containing the static site app settings to update.
789
+ * @param options The options parameters.
790
+ */
791
+ createOrUpdateStaticSiteBuildAppSettings(resourceGroupName, name, environmentName, appSettings, options) {
792
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, appSettings, options }, createOrUpdateStaticSiteBuildAppSettingsOperationSpec);
793
+ }
794
+ /**
795
+ * Description for Creates or updates the function app settings of a static site build.
796
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
797
+ * @param name Name of the static site.
798
+ * @param environmentName The stage site identifier.
799
+ * @param appSettings The dictionary containing the static site function app settings to update.
800
+ * @param options The options parameters.
801
+ */
802
+ createOrUpdateStaticSiteBuildFunctionAppSettings(resourceGroupName, name, environmentName, appSettings, options) {
803
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, appSettings, options }, createOrUpdateStaticSiteBuildFunctionAppSettingsOperationSpec);
804
+ }
805
+ /**
806
+ * Description for Gets the functions of a particular static site build.
807
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
808
+ * @param name Name of the static site.
809
+ * @param environmentName The stage site identifier.
810
+ * @param options The options parameters.
811
+ */
812
+ _listStaticSiteBuildFunctions(resourceGroupName, name, environmentName, options) {
813
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, options }, listStaticSiteBuildFunctionsOperationSpec);
814
+ }
815
+ /**
816
+ * Description for Gets the application settings of a static site build.
817
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
818
+ * @param name Name of the static site.
819
+ * @param environmentName The stage site identifier.
820
+ * @param options The options parameters.
821
+ */
822
+ listStaticSiteBuildAppSettings(resourceGroupName, name, environmentName, options) {
823
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, options }, listStaticSiteBuildAppSettingsOperationSpec);
824
+ }
825
+ /**
826
+ * Description for Gets the application settings of a static site build.
827
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
828
+ * @param name Name of the static site.
829
+ * @param environmentName The stage site identifier.
830
+ * @param options The options parameters.
831
+ */
832
+ listStaticSiteBuildFunctionAppSettings(resourceGroupName, name, environmentName, options) {
833
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, options }, listStaticSiteBuildFunctionAppSettingsOperationSpec);
834
+ }
835
+ /**
836
+ * Description for Gets the details of the user provided function apps registered with a static site
837
+ * build
838
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
839
+ * @param name Name of the static site.
840
+ * @param environmentName The stage site identifier.
841
+ * @param options The options parameters.
842
+ */
843
+ _getUserProvidedFunctionAppsForStaticSiteBuild(resourceGroupName, name, environmentName, options) {
844
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, options }, getUserProvidedFunctionAppsForStaticSiteBuildOperationSpec);
845
+ }
846
+ /**
847
+ * Description for Gets the details of the user provided function app registered with a static site
848
+ * build
849
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
850
+ * @param name Name of the static site.
851
+ * @param environmentName The stage site identifier.
852
+ * @param functionAppName Name of the function app registered with the static site build.
853
+ * @param options The options parameters.
854
+ */
855
+ getUserProvidedFunctionAppForStaticSiteBuild(resourceGroupName, name, environmentName, functionAppName, options) {
856
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, functionAppName, options }, getUserProvidedFunctionAppForStaticSiteBuildOperationSpec);
857
+ }
858
+ /**
859
+ * Description for Register a user provided function app with a static site build
860
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
861
+ * @param name Name of the static site.
862
+ * @param environmentName The stage site identifier.
863
+ * @param functionAppName Name of the function app to register with the static site build.
864
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
865
+ * app properties. See example.
866
+ * @param options The options parameters.
867
+ */
868
+ beginRegisterUserProvidedFunctionAppWithStaticSiteBuild(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) {
869
+ return __awaiter(this, void 0, void 0, function* () {
870
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
871
+ return this.client.sendOperationRequest(args, spec);
872
+ });
873
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
874
+ var _a;
875
+ let currentRawResponse = undefined;
876
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
877
+ const callback = (rawResponse, flatResponse) => {
878
+ currentRawResponse = rawResponse;
879
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
880
+ };
881
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
882
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
883
+ return {
884
+ flatResponse,
885
+ rawResponse: {
886
+ statusCode: currentRawResponse.status,
887
+ body: currentRawResponse.parsedBody,
888
+ headers: currentRawResponse.headers.toJSON()
889
+ }
890
+ };
891
+ });
892
+ const lro = new LroImpl(sendOperation, {
893
+ resourceGroupName,
894
+ name,
895
+ environmentName,
896
+ functionAppName,
897
+ staticSiteUserProvidedFunctionEnvelope,
898
+ options
899
+ }, registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec);
900
+ return new LroEngine(lro, {
901
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
902
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
903
+ });
904
+ });
905
+ }
906
+ /**
907
+ * Description for Register a user provided function app with a static site build
908
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
909
+ * @param name Name of the static site.
910
+ * @param environmentName The stage site identifier.
911
+ * @param functionAppName Name of the function app to register with the static site build.
912
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
913
+ * app properties. See example.
914
+ * @param options The options parameters.
915
+ */
916
+ beginRegisterUserProvidedFunctionAppWithStaticSiteBuildAndWait(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) {
917
+ return __awaiter(this, void 0, void 0, function* () {
918
+ const poller = yield this.beginRegisterUserProvidedFunctionAppWithStaticSiteBuild(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, options);
919
+ return poller.pollUntilDone();
920
+ });
921
+ }
922
+ /**
923
+ * Description for Detach the user provided function app from the static site build
924
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
925
+ * @param name Name of the static site.
926
+ * @param environmentName The stage site identifier.
927
+ * @param functionAppName Name of the function app registered with the static site build.
928
+ * @param options The options parameters.
929
+ */
930
+ detachUserProvidedFunctionAppFromStaticSiteBuild(resourceGroupName, name, environmentName, functionAppName, options) {
931
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, functionAppName, options }, detachUserProvidedFunctionAppFromStaticSiteBuildOperationSpec);
932
+ }
933
+ /**
934
+ * Description for Deploys zipped content to a specific environment of a static site.
935
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
936
+ * @param name Name of the static site.
937
+ * @param environmentName Name of the environment.
938
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
939
+ * properties. See example.
940
+ * @param options The options parameters.
941
+ */
942
+ beginCreateZipDeploymentForStaticSiteBuild(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, options) {
943
+ return __awaiter(this, void 0, void 0, function* () {
944
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
945
+ return this.client.sendOperationRequest(args, spec);
946
+ });
947
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
948
+ var _a;
949
+ let currentRawResponse = undefined;
950
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
951
+ const callback = (rawResponse, flatResponse) => {
952
+ currentRawResponse = rawResponse;
953
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
954
+ };
955
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
956
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
957
+ return {
958
+ flatResponse,
959
+ rawResponse: {
960
+ statusCode: currentRawResponse.status,
961
+ body: currentRawResponse.parsedBody,
962
+ headers: currentRawResponse.headers.toJSON()
963
+ }
964
+ };
965
+ });
966
+ const lro = new LroImpl(sendOperation, {
967
+ resourceGroupName,
968
+ name,
969
+ environmentName,
970
+ staticSiteZipDeploymentEnvelope,
971
+ options
972
+ }, createZipDeploymentForStaticSiteBuildOperationSpec);
973
+ return new LroEngine(lro, {
974
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
975
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
976
+ });
977
+ });
978
+ }
979
+ /**
980
+ * Description for Deploys zipped content to a specific environment of a static site.
981
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
982
+ * @param name Name of the static site.
983
+ * @param environmentName Name of the environment.
984
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
985
+ * properties. See example.
986
+ * @param options The options parameters.
987
+ */
988
+ beginCreateZipDeploymentForStaticSiteBuildAndWait(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, options) {
989
+ return __awaiter(this, void 0, void 0, function* () {
990
+ const poller = yield this.beginCreateZipDeploymentForStaticSiteBuild(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, options);
991
+ return poller.pollUntilDone();
992
+ });
993
+ }
994
+ /**
995
+ * Description for Creates or updates the app settings of a static site.
996
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
997
+ * @param name Name of the static site.
998
+ * @param appSettings The dictionary containing the static site app settings to update.
999
+ * @param options The options parameters.
1000
+ */
1001
+ createOrUpdateStaticSiteAppSettings(resourceGroupName, name, appSettings, options) {
1002
+ return this.client.sendOperationRequest({ resourceGroupName, name, appSettings, options }, createOrUpdateStaticSiteAppSettingsOperationSpec);
1003
+ }
1004
+ /**
1005
+ * Description for Creates or updates the function app settings of a static site.
1006
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1007
+ * @param name Name of the static site.
1008
+ * @param appSettings The dictionary containing the static site function app settings to update.
1009
+ * @param options The options parameters.
1010
+ */
1011
+ createOrUpdateStaticSiteFunctionAppSettings(resourceGroupName, name, appSettings, options) {
1012
+ return this.client.sendOperationRequest({ resourceGroupName, name, appSettings, options }, createOrUpdateStaticSiteFunctionAppSettingsOperationSpec);
1013
+ }
1014
+ /**
1015
+ * Description for Creates an invitation link for a user with the role
1016
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1017
+ * @param name Name of the static site.
1018
+ * @param staticSiteUserRolesInvitationEnvelope Static sites user roles invitation resource.
1019
+ * @param options The options parameters.
1020
+ */
1021
+ createUserRolesInvitationLink(resourceGroupName, name, staticSiteUserRolesInvitationEnvelope, options) {
1022
+ return this.client.sendOperationRequest({
1023
+ resourceGroupName,
1024
+ name,
1025
+ staticSiteUserRolesInvitationEnvelope,
1026
+ options
1027
+ }, createUserRolesInvitationLinkOperationSpec);
1028
+ }
1029
+ /**
1030
+ * Description for Gets all static site custom domains for a particular static site.
1031
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1032
+ * @param name Name of the static site resource to search in.
1033
+ * @param options The options parameters.
1034
+ */
1035
+ _listStaticSiteCustomDomains(resourceGroupName, name, options) {
1036
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listStaticSiteCustomDomainsOperationSpec);
1037
+ }
1038
+ /**
1039
+ * Description for Gets an existing custom domain for a particular static site.
1040
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1041
+ * @param name Name of the static site resource to search in.
1042
+ * @param domainName The custom domain name.
1043
+ * @param options The options parameters.
1044
+ */
1045
+ getStaticSiteCustomDomain(resourceGroupName, name, domainName, options) {
1046
+ return this.client.sendOperationRequest({ resourceGroupName, name, domainName, options }, getStaticSiteCustomDomainOperationSpec);
1047
+ }
1048
+ /**
1049
+ * Description for Creates a new static site custom domain in an existing resource group and static
1050
+ * site.
1051
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1052
+ * @param name Name of the static site.
1053
+ * @param domainName The custom domain to create.
1054
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1055
+ * custom domain request properties. See example.
1056
+ * @param options The options parameters.
1057
+ */
1058
+ beginCreateOrUpdateStaticSiteCustomDomain(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) {
1059
+ return __awaiter(this, void 0, void 0, function* () {
1060
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1061
+ return this.client.sendOperationRequest(args, spec);
1062
+ });
1063
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1064
+ var _a;
1065
+ let currentRawResponse = undefined;
1066
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1067
+ const callback = (rawResponse, flatResponse) => {
1068
+ currentRawResponse = rawResponse;
1069
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1070
+ };
1071
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1072
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1073
+ return {
1074
+ flatResponse,
1075
+ rawResponse: {
1076
+ statusCode: currentRawResponse.status,
1077
+ body: currentRawResponse.parsedBody,
1078
+ headers: currentRawResponse.headers.toJSON()
1079
+ }
1080
+ };
1081
+ });
1082
+ const lro = new LroImpl(sendOperation, {
1083
+ resourceGroupName,
1084
+ name,
1085
+ domainName,
1086
+ staticSiteCustomDomainRequestPropertiesEnvelope,
1087
+ options
1088
+ }, createOrUpdateStaticSiteCustomDomainOperationSpec);
1089
+ return new LroEngine(lro, {
1090
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1091
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1092
+ });
1093
+ });
1094
+ }
1095
+ /**
1096
+ * Description for Creates a new static site custom domain in an existing resource group and static
1097
+ * site.
1098
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1099
+ * @param name Name of the static site.
1100
+ * @param domainName The custom domain to create.
1101
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1102
+ * custom domain request properties. See example.
1103
+ * @param options The options parameters.
1104
+ */
1105
+ beginCreateOrUpdateStaticSiteCustomDomainAndWait(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) {
1106
+ return __awaiter(this, void 0, void 0, function* () {
1107
+ const poller = yield this.beginCreateOrUpdateStaticSiteCustomDomain(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options);
1108
+ return poller.pollUntilDone();
1109
+ });
1110
+ }
1111
+ /**
1112
+ * Description for Deletes a custom domain.
1113
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1114
+ * @param name Name of the static site.
1115
+ * @param domainName The custom domain to delete.
1116
+ * @param options The options parameters.
1117
+ */
1118
+ beginDeleteStaticSiteCustomDomain(resourceGroupName, name, domainName, options) {
1119
+ return __awaiter(this, void 0, void 0, function* () {
1120
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1121
+ return this.client.sendOperationRequest(args, spec);
1122
+ });
1123
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1124
+ var _a;
1125
+ let currentRawResponse = undefined;
1126
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1127
+ const callback = (rawResponse, flatResponse) => {
1128
+ currentRawResponse = rawResponse;
1129
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1130
+ };
1131
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1132
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1133
+ return {
1134
+ flatResponse,
1135
+ rawResponse: {
1136
+ statusCode: currentRawResponse.status,
1137
+ body: currentRawResponse.parsedBody,
1138
+ headers: currentRawResponse.headers.toJSON()
1139
+ }
1140
+ };
1141
+ });
1142
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, domainName, options }, deleteStaticSiteCustomDomainOperationSpec);
1143
+ return new LroEngine(lro, {
1144
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1145
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1146
+ });
1147
+ });
1148
+ }
1149
+ /**
1150
+ * Description for Deletes a custom domain.
1151
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1152
+ * @param name Name of the static site.
1153
+ * @param domainName The custom domain to delete.
1154
+ * @param options The options parameters.
1155
+ */
1156
+ beginDeleteStaticSiteCustomDomainAndWait(resourceGroupName, name, domainName, options) {
1157
+ return __awaiter(this, void 0, void 0, function* () {
1158
+ const poller = yield this.beginDeleteStaticSiteCustomDomain(resourceGroupName, name, domainName, options);
1159
+ return poller.pollUntilDone();
1160
+ });
1161
+ }
1162
+ /**
1163
+ * Description for Validates a particular custom domain can be added to a static site.
1164
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1165
+ * @param name Name of the static site.
1166
+ * @param domainName The custom domain to validate.
1167
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1168
+ * custom domain request properties. See example.
1169
+ * @param options The options parameters.
1170
+ */
1171
+ beginValidateCustomDomainCanBeAddedToStaticSite(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) {
1172
+ return __awaiter(this, void 0, void 0, function* () {
1173
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1174
+ return this.client.sendOperationRequest(args, spec);
1175
+ });
1176
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1177
+ var _a;
1178
+ let currentRawResponse = undefined;
1179
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1180
+ const callback = (rawResponse, flatResponse) => {
1181
+ currentRawResponse = rawResponse;
1182
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1183
+ };
1184
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1185
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1186
+ return {
1187
+ flatResponse,
1188
+ rawResponse: {
1189
+ statusCode: currentRawResponse.status,
1190
+ body: currentRawResponse.parsedBody,
1191
+ headers: currentRawResponse.headers.toJSON()
1192
+ }
1193
+ };
1194
+ });
1195
+ const lro = new LroImpl(sendOperation, {
1196
+ resourceGroupName,
1197
+ name,
1198
+ domainName,
1199
+ staticSiteCustomDomainRequestPropertiesEnvelope,
1200
+ options
1201
+ }, validateCustomDomainCanBeAddedToStaticSiteOperationSpec);
1202
+ return new LroEngine(lro, {
1203
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1204
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1205
+ });
1206
+ });
1207
+ }
1208
+ /**
1209
+ * Description for Validates a particular custom domain can be added to a static site.
1210
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1211
+ * @param name Name of the static site.
1212
+ * @param domainName The custom domain to validate.
1213
+ * @param staticSiteCustomDomainRequestPropertiesEnvelope A JSON representation of the static site
1214
+ * custom domain request properties. See example.
1215
+ * @param options The options parameters.
1216
+ */
1217
+ beginValidateCustomDomainCanBeAddedToStaticSiteAndWait(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) {
1218
+ return __awaiter(this, void 0, void 0, function* () {
1219
+ const poller = yield this.beginValidateCustomDomainCanBeAddedToStaticSite(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options);
1220
+ return poller.pollUntilDone();
1221
+ });
1222
+ }
1223
+ /**
1224
+ * Description for Detaches a static site.
1225
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1226
+ * @param name Name of the static site to detach.
1227
+ * @param options The options parameters.
1228
+ */
1229
+ beginDetachStaticSite(resourceGroupName, name, options) {
1230
+ return __awaiter(this, void 0, void 0, function* () {
1231
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1232
+ return this.client.sendOperationRequest(args, spec);
1233
+ });
1234
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1235
+ var _a;
1236
+ let currentRawResponse = undefined;
1237
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1238
+ const callback = (rawResponse, flatResponse) => {
1239
+ currentRawResponse = rawResponse;
1240
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1241
+ };
1242
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1243
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1244
+ return {
1245
+ flatResponse,
1246
+ rawResponse: {
1247
+ statusCode: currentRawResponse.status,
1248
+ body: currentRawResponse.parsedBody,
1249
+ headers: currentRawResponse.headers.toJSON()
1250
+ }
1251
+ };
1252
+ });
1253
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, detachStaticSiteOperationSpec);
1254
+ return new LroEngine(lro, {
1255
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1256
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1257
+ });
1258
+ });
1259
+ }
1260
+ /**
1261
+ * Description for Detaches a static site.
1262
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1263
+ * @param name Name of the static site to detach.
1264
+ * @param options The options parameters.
1265
+ */
1266
+ beginDetachStaticSiteAndWait(resourceGroupName, name, options) {
1267
+ return __awaiter(this, void 0, void 0, function* () {
1268
+ const poller = yield this.beginDetachStaticSite(resourceGroupName, name, options);
1269
+ return poller.pollUntilDone();
1270
+ });
1271
+ }
1272
+ /**
1273
+ * Description for Gets the functions of a static site.
1274
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1275
+ * @param name Name of the static site.
1276
+ * @param options The options parameters.
1277
+ */
1278
+ _listStaticSiteFunctions(resourceGroupName, name, options) {
1279
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listStaticSiteFunctionsOperationSpec);
1280
+ }
1281
+ /**
1282
+ * Description for Gets the application settings of a static site.
1283
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1284
+ * @param name Name of the static site.
1285
+ * @param options The options parameters.
1286
+ */
1287
+ listStaticSiteAppSettings(resourceGroupName, name, options) {
1288
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listStaticSiteAppSettingsOperationSpec);
1289
+ }
1290
+ /**
1291
+ * Description for Lists the roles configured for the static site.
1292
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1293
+ * @param name Name of the static site.
1294
+ * @param options The options parameters.
1295
+ */
1296
+ listStaticSiteConfiguredRoles(resourceGroupName, name, options) {
1297
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listStaticSiteConfiguredRolesOperationSpec);
1298
+ }
1299
+ /**
1300
+ * Description for Gets the application settings of a static site.
1301
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1302
+ * @param name Name of the static site.
1303
+ * @param options The options parameters.
1304
+ */
1305
+ listStaticSiteFunctionAppSettings(resourceGroupName, name, options) {
1306
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listStaticSiteFunctionAppSettingsOperationSpec);
1307
+ }
1308
+ /**
1309
+ * Description for Lists the secrets for an existing static site.
1310
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1311
+ * @param name Name of the static site.
1312
+ * @param options The options parameters.
1313
+ */
1314
+ listStaticSiteSecrets(resourceGroupName, name, options) {
1315
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listStaticSiteSecretsOperationSpec);
1316
+ }
1317
+ /**
1318
+ * Description for Gets the list of private endpoint connections associated with a static site
1319
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1320
+ * @param name Name of the static site.
1321
+ * @param options The options parameters.
1322
+ */
1323
+ _getPrivateEndpointConnectionList(resourceGroupName, name, options) {
1324
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getPrivateEndpointConnectionListOperationSpec);
1325
+ }
1326
+ /**
1327
+ * Description for Gets a private endpoint connection
1328
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1329
+ * @param name Name of the static site.
1330
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
1331
+ * @param options The options parameters.
1332
+ */
1333
+ getPrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, options) {
1334
+ return this.client.sendOperationRequest({ resourceGroupName, name, privateEndpointConnectionName, options }, getPrivateEndpointConnectionOperationSpec);
1335
+ }
1336
+ /**
1337
+ * Description for Approves or rejects a private endpoint connection
1338
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1339
+ * @param name Name of the static site.
1340
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
1341
+ * @param privateEndpointWrapper Request body.
1342
+ * @param options The options parameters.
1343
+ */
1344
+ beginApproveOrRejectPrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) {
1345
+ return __awaiter(this, void 0, void 0, function* () {
1346
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1347
+ return this.client.sendOperationRequest(args, spec);
1348
+ });
1349
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1350
+ var _a;
1351
+ let currentRawResponse = undefined;
1352
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1353
+ const callback = (rawResponse, flatResponse) => {
1354
+ currentRawResponse = rawResponse;
1355
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1356
+ };
1357
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1358
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1359
+ return {
1360
+ flatResponse,
1361
+ rawResponse: {
1362
+ statusCode: currentRawResponse.status,
1363
+ body: currentRawResponse.parsedBody,
1364
+ headers: currentRawResponse.headers.toJSON()
1365
+ }
1366
+ };
1367
+ });
1368
+ const lro = new LroImpl(sendOperation, {
1369
+ resourceGroupName,
1370
+ name,
1371
+ privateEndpointConnectionName,
1372
+ privateEndpointWrapper,
1373
+ options
1374
+ }, approveOrRejectPrivateEndpointConnectionOperationSpec);
1375
+ return new LroEngine(lro, {
1376
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1377
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1378
+ });
1379
+ });
1380
+ }
1381
+ /**
1382
+ * Description for Approves or rejects a private endpoint connection
1383
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1384
+ * @param name Name of the static site.
1385
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
1386
+ * @param privateEndpointWrapper Request body.
1387
+ * @param options The options parameters.
1388
+ */
1389
+ beginApproveOrRejectPrivateEndpointConnectionAndWait(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) {
1390
+ return __awaiter(this, void 0, void 0, function* () {
1391
+ const poller = yield this.beginApproveOrRejectPrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options);
1392
+ return poller.pollUntilDone();
1393
+ });
1394
+ }
1395
+ /**
1396
+ * Description for Deletes a private endpoint connection
1397
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1398
+ * @param name Name of the static site.
1399
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
1400
+ * @param options The options parameters.
1401
+ */
1402
+ beginDeletePrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, options) {
1403
+ return __awaiter(this, void 0, void 0, function* () {
1404
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1405
+ return this.client.sendOperationRequest(args, spec);
1406
+ });
1407
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1408
+ var _a;
1409
+ let currentRawResponse = undefined;
1410
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1411
+ const callback = (rawResponse, flatResponse) => {
1412
+ currentRawResponse = rawResponse;
1413
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1414
+ };
1415
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1416
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1417
+ return {
1418
+ flatResponse,
1419
+ rawResponse: {
1420
+ statusCode: currentRawResponse.status,
1421
+ body: currentRawResponse.parsedBody,
1422
+ headers: currentRawResponse.headers.toJSON()
1423
+ }
1424
+ };
1425
+ });
1426
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, privateEndpointConnectionName, options }, deletePrivateEndpointConnectionOperationSpec);
1427
+ return new LroEngine(lro, {
1428
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1429
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1430
+ });
1431
+ });
1432
+ }
1433
+ /**
1434
+ * Description for Deletes a private endpoint connection
1435
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1436
+ * @param name Name of the static site.
1437
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
1438
+ * @param options The options parameters.
1439
+ */
1440
+ beginDeletePrivateEndpointConnectionAndWait(resourceGroupName, name, privateEndpointConnectionName, options) {
1441
+ return __awaiter(this, void 0, void 0, function* () {
1442
+ const poller = yield this.beginDeletePrivateEndpointConnection(resourceGroupName, name, privateEndpointConnectionName, options);
1443
+ return poller.pollUntilDone();
1444
+ });
1445
+ }
1446
+ /**
1447
+ * Description for Gets the private link resources
1448
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1449
+ * @param name Name of the site.
1450
+ * @param options The options parameters.
1451
+ */
1452
+ getPrivateLinkResources(resourceGroupName, name, options) {
1453
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getPrivateLinkResourcesOperationSpec);
1454
+ }
1455
+ /**
1456
+ * Description for Resets the api key for an existing static site.
1457
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1458
+ * @param name Name of the static site.
1459
+ * @param resetPropertiesEnvelope Static Site Reset Properties ARM resource.
1460
+ * @param options The options parameters.
1461
+ */
1462
+ resetStaticSiteApiKey(resourceGroupName, name, resetPropertiesEnvelope, options) {
1463
+ return this.client.sendOperationRequest({ resourceGroupName, name, resetPropertiesEnvelope, options }, resetStaticSiteApiKeyOperationSpec);
1464
+ }
1465
+ /**
1466
+ * Description for Gets the details of the user provided function apps registered with a static site
1467
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1468
+ * @param name Name of the static site.
1469
+ * @param options The options parameters.
1470
+ */
1471
+ _getUserProvidedFunctionAppsForStaticSite(resourceGroupName, name, options) {
1472
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, getUserProvidedFunctionAppsForStaticSiteOperationSpec);
1473
+ }
1474
+ /**
1475
+ * Description for Gets the details of the user provided function app registered with a static site
1476
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1477
+ * @param name Name of the static site.
1478
+ * @param functionAppName Name of the function app registered with the static site.
1479
+ * @param options The options parameters.
1480
+ */
1481
+ getUserProvidedFunctionAppForStaticSite(resourceGroupName, name, functionAppName, options) {
1482
+ return this.client.sendOperationRequest({ resourceGroupName, name, functionAppName, options }, getUserProvidedFunctionAppForStaticSiteOperationSpec);
1483
+ }
1484
+ /**
1485
+ * Description for Register a user provided function app with a static site
1486
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1487
+ * @param name Name of the static site.
1488
+ * @param functionAppName Name of the function app to register with the static site.
1489
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
1490
+ * app properties. See example.
1491
+ * @param options The options parameters.
1492
+ */
1493
+ beginRegisterUserProvidedFunctionAppWithStaticSite(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) {
1494
+ return __awaiter(this, void 0, void 0, function* () {
1495
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1496
+ return this.client.sendOperationRequest(args, spec);
1497
+ });
1498
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1499
+ var _a;
1500
+ let currentRawResponse = undefined;
1501
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1502
+ const callback = (rawResponse, flatResponse) => {
1503
+ currentRawResponse = rawResponse;
1504
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1505
+ };
1506
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1507
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1508
+ return {
1509
+ flatResponse,
1510
+ rawResponse: {
1511
+ statusCode: currentRawResponse.status,
1512
+ body: currentRawResponse.parsedBody,
1513
+ headers: currentRawResponse.headers.toJSON()
1514
+ }
1515
+ };
1516
+ });
1517
+ const lro = new LroImpl(sendOperation, {
1518
+ resourceGroupName,
1519
+ name,
1520
+ functionAppName,
1521
+ staticSiteUserProvidedFunctionEnvelope,
1522
+ options
1523
+ }, registerUserProvidedFunctionAppWithStaticSiteOperationSpec);
1524
+ return new LroEngine(lro, {
1525
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1526
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1527
+ });
1528
+ });
1529
+ }
1530
+ /**
1531
+ * Description for Register a user provided function app with a static site
1532
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1533
+ * @param name Name of the static site.
1534
+ * @param functionAppName Name of the function app to register with the static site.
1535
+ * @param staticSiteUserProvidedFunctionEnvelope A JSON representation of the user provided function
1536
+ * app properties. See example.
1537
+ * @param options The options parameters.
1538
+ */
1539
+ beginRegisterUserProvidedFunctionAppWithStaticSiteAndWait(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) {
1540
+ return __awaiter(this, void 0, void 0, function* () {
1541
+ const poller = yield this.beginRegisterUserProvidedFunctionAppWithStaticSite(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, options);
1542
+ return poller.pollUntilDone();
1543
+ });
1544
+ }
1545
+ /**
1546
+ * Description for Detach the user provided function app from the static site
1547
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1548
+ * @param name Name of the static site.
1549
+ * @param functionAppName Name of the function app registered with the static site.
1550
+ * @param options The options parameters.
1551
+ */
1552
+ detachUserProvidedFunctionAppFromStaticSite(resourceGroupName, name, functionAppName, options) {
1553
+ return this.client.sendOperationRequest({ resourceGroupName, name, functionAppName, options }, detachUserProvidedFunctionAppFromStaticSiteOperationSpec);
1554
+ }
1555
+ /**
1556
+ * Description for Deploys zipped content to a static site.
1557
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1558
+ * @param name Name of the static site.
1559
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
1560
+ * properties. See example.
1561
+ * @param options The options parameters.
1562
+ */
1563
+ beginCreateZipDeploymentForStaticSite(resourceGroupName, name, staticSiteZipDeploymentEnvelope, options) {
1564
+ return __awaiter(this, void 0, void 0, function* () {
1565
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1566
+ return this.client.sendOperationRequest(args, spec);
1567
+ });
1568
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1569
+ var _a;
1570
+ let currentRawResponse = undefined;
1571
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1572
+ const callback = (rawResponse, flatResponse) => {
1573
+ currentRawResponse = rawResponse;
1574
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1575
+ };
1576
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1577
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1578
+ return {
1579
+ flatResponse,
1580
+ rawResponse: {
1581
+ statusCode: currentRawResponse.status,
1582
+ body: currentRawResponse.parsedBody,
1583
+ headers: currentRawResponse.headers.toJSON()
1584
+ }
1585
+ };
1586
+ });
1587
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, staticSiteZipDeploymentEnvelope, options }, createZipDeploymentForStaticSiteOperationSpec);
1588
+ return new LroEngine(lro, {
1589
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1590
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1591
+ });
1592
+ });
1593
+ }
1594
+ /**
1595
+ * Description for Deploys zipped content to a static site.
1596
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1597
+ * @param name Name of the static site.
1598
+ * @param staticSiteZipDeploymentEnvelope A JSON representation of the StaticSiteZipDeployment
1599
+ * properties. See example.
1600
+ * @param options The options parameters.
1601
+ */
1602
+ beginCreateZipDeploymentForStaticSiteAndWait(resourceGroupName, name, staticSiteZipDeploymentEnvelope, options) {
1603
+ return __awaiter(this, void 0, void 0, function* () {
1604
+ const poller = yield this.beginCreateZipDeploymentForStaticSite(resourceGroupName, name, staticSiteZipDeploymentEnvelope, options);
1605
+ return poller.pollUntilDone();
1606
+ });
1607
+ }
1608
+ /**
1609
+ * ListNext
1610
+ * @param nextLink The nextLink from the previous successful call to the List method.
1611
+ * @param options The options parameters.
1612
+ */
1613
+ _listNext(nextLink, options) {
1614
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1615
+ }
1616
+ /**
1617
+ * GetStaticSitesByResourceGroupNext
1618
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1619
+ * @param nextLink The nextLink from the previous successful call to the GetStaticSitesByResourceGroup
1620
+ * method.
1621
+ * @param options The options parameters.
1622
+ */
1623
+ _getStaticSitesByResourceGroupNext(resourceGroupName, nextLink, options) {
1624
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, getStaticSitesByResourceGroupNextOperationSpec);
1625
+ }
1626
+ /**
1627
+ * ListStaticSiteUsersNext
1628
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1629
+ * @param name Name of the static site.
1630
+ * @param authprovider The auth provider for the users.
1631
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteUsers method.
1632
+ * @param options The options parameters.
1633
+ */
1634
+ _listStaticSiteUsersNext(resourceGroupName, name, authprovider, nextLink, options) {
1635
+ return this.client.sendOperationRequest({ resourceGroupName, name, authprovider, nextLink, options }, listStaticSiteUsersNextOperationSpec);
1636
+ }
1637
+ /**
1638
+ * GetStaticSiteBuildsNext
1639
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1640
+ * @param name Name of the static site.
1641
+ * @param nextLink The nextLink from the previous successful call to the GetStaticSiteBuilds method.
1642
+ * @param options The options parameters.
1643
+ */
1644
+ _getStaticSiteBuildsNext(resourceGroupName, name, nextLink, options) {
1645
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, getStaticSiteBuildsNextOperationSpec);
1646
+ }
1647
+ /**
1648
+ * ListStaticSiteBuildFunctionsNext
1649
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1650
+ * @param name Name of the static site.
1651
+ * @param environmentName The stage site identifier.
1652
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteBuildFunctions
1653
+ * method.
1654
+ * @param options The options parameters.
1655
+ */
1656
+ _listStaticSiteBuildFunctionsNext(resourceGroupName, name, environmentName, nextLink, options) {
1657
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, nextLink, options }, listStaticSiteBuildFunctionsNextOperationSpec);
1658
+ }
1659
+ /**
1660
+ * GetUserProvidedFunctionAppsForStaticSiteBuildNext
1661
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1662
+ * @param name Name of the static site.
1663
+ * @param environmentName The stage site identifier.
1664
+ * @param nextLink The nextLink from the previous successful call to the
1665
+ * GetUserProvidedFunctionAppsForStaticSiteBuild method.
1666
+ * @param options The options parameters.
1667
+ */
1668
+ _getUserProvidedFunctionAppsForStaticSiteBuildNext(resourceGroupName, name, environmentName, nextLink, options) {
1669
+ return this.client.sendOperationRequest({ resourceGroupName, name, environmentName, nextLink, options }, getUserProvidedFunctionAppsForStaticSiteBuildNextOperationSpec);
1670
+ }
1671
+ /**
1672
+ * ListStaticSiteCustomDomainsNext
1673
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1674
+ * @param name Name of the static site resource to search in.
1675
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteCustomDomains
1676
+ * method.
1677
+ * @param options The options parameters.
1678
+ */
1679
+ _listStaticSiteCustomDomainsNext(resourceGroupName, name, nextLink, options) {
1680
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listStaticSiteCustomDomainsNextOperationSpec);
1681
+ }
1682
+ /**
1683
+ * ListStaticSiteFunctionsNext
1684
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1685
+ * @param name Name of the static site.
1686
+ * @param nextLink The nextLink from the previous successful call to the ListStaticSiteFunctions
1687
+ * method.
1688
+ * @param options The options parameters.
1689
+ */
1690
+ _listStaticSiteFunctionsNext(resourceGroupName, name, nextLink, options) {
1691
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listStaticSiteFunctionsNextOperationSpec);
1692
+ }
1693
+ /**
1694
+ * GetPrivateEndpointConnectionListNext
1695
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1696
+ * @param name Name of the static site.
1697
+ * @param nextLink The nextLink from the previous successful call to the
1698
+ * GetPrivateEndpointConnectionList method.
1699
+ * @param options The options parameters.
1700
+ */
1701
+ _getPrivateEndpointConnectionListNext(resourceGroupName, name, nextLink, options) {
1702
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, getPrivateEndpointConnectionListNextOperationSpec);
1703
+ }
1704
+ /**
1705
+ * GetUserProvidedFunctionAppsForStaticSiteNext
1706
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
1707
+ * @param name Name of the static site.
1708
+ * @param nextLink The nextLink from the previous successful call to the
1709
+ * GetUserProvidedFunctionAppsForStaticSite method.
1710
+ * @param options The options parameters.
1711
+ */
1712
+ _getUserProvidedFunctionAppsForStaticSiteNext(resourceGroupName, name, nextLink, options) {
1713
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, getUserProvidedFunctionAppsForStaticSiteNextOperationSpec);
1714
+ }
1715
+ }
1716
+ // Operation Specifications
1717
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1718
+ const previewWorkflowOperationSpec = {
1719
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile",
1720
+ httpMethod: "POST",
1721
+ responses: {
1722
+ 200: {
1723
+ bodyMapper: Mappers.StaticSitesWorkflowPreview
1724
+ },
1725
+ default: {
1726
+ bodyMapper: Mappers.DefaultErrorResponse
1727
+ }
1728
+ },
1729
+ requestBody: Parameters.staticSitesWorkflowPreviewRequest,
1730
+ queryParameters: [Parameters.apiVersion],
1731
+ urlParameters: [
1732
+ Parameters.$host,
1733
+ Parameters.subscriptionId,
1734
+ Parameters.location
1735
+ ],
1736
+ headerParameters: [Parameters.accept, Parameters.contentType],
1737
+ mediaType: "json",
1738
+ serializer
1739
+ };
1740
+ const listOperationSpec = {
1741
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites",
1742
+ httpMethod: "GET",
1743
+ responses: {
1744
+ 200: {
1745
+ bodyMapper: Mappers.StaticSiteCollection
1746
+ },
1747
+ default: {
1748
+ bodyMapper: Mappers.DefaultErrorResponse
1749
+ }
1750
+ },
1751
+ queryParameters: [Parameters.apiVersion],
1752
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1753
+ headerParameters: [Parameters.accept],
1754
+ serializer
1755
+ };
1756
+ const getStaticSitesByResourceGroupOperationSpec = {
1757
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites",
1758
+ httpMethod: "GET",
1759
+ responses: {
1760
+ 200: {
1761
+ bodyMapper: Mappers.StaticSiteCollection
1762
+ },
1763
+ default: {
1764
+ bodyMapper: Mappers.DefaultErrorResponse
1765
+ }
1766
+ },
1767
+ queryParameters: [Parameters.apiVersion],
1768
+ urlParameters: [
1769
+ Parameters.$host,
1770
+ Parameters.subscriptionId,
1771
+ Parameters.resourceGroupName
1772
+ ],
1773
+ headerParameters: [Parameters.accept],
1774
+ serializer
1775
+ };
1776
+ const getStaticSiteOperationSpec = {
1777
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
1778
+ httpMethod: "GET",
1779
+ responses: {
1780
+ 200: {
1781
+ bodyMapper: Mappers.StaticSiteARMResource
1782
+ },
1783
+ default: {
1784
+ bodyMapper: Mappers.DefaultErrorResponse
1785
+ }
1786
+ },
1787
+ queryParameters: [Parameters.apiVersion],
1788
+ urlParameters: [
1789
+ Parameters.$host,
1790
+ Parameters.subscriptionId,
1791
+ Parameters.resourceGroupName,
1792
+ Parameters.name
1793
+ ],
1794
+ headerParameters: [Parameters.accept],
1795
+ serializer
1796
+ };
1797
+ const createOrUpdateStaticSiteOperationSpec = {
1798
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
1799
+ httpMethod: "PUT",
1800
+ responses: {
1801
+ 200: {
1802
+ bodyMapper: Mappers.StaticSiteARMResource
1803
+ },
1804
+ 201: {
1805
+ bodyMapper: Mappers.StaticSiteARMResource
1806
+ },
1807
+ 202: {
1808
+ bodyMapper: Mappers.StaticSiteARMResource
1809
+ },
1810
+ 204: {
1811
+ bodyMapper: Mappers.StaticSiteARMResource
1812
+ },
1813
+ default: {
1814
+ bodyMapper: Mappers.DefaultErrorResponse
1815
+ }
1816
+ },
1817
+ requestBody: Parameters.staticSiteEnvelope,
1818
+ queryParameters: [Parameters.apiVersion],
1819
+ urlParameters: [
1820
+ Parameters.$host,
1821
+ Parameters.subscriptionId,
1822
+ Parameters.resourceGroupName,
1823
+ Parameters.name
1824
+ ],
1825
+ headerParameters: [Parameters.accept, Parameters.contentType],
1826
+ mediaType: "json",
1827
+ serializer
1828
+ };
1829
+ const deleteStaticSiteOperationSpec = {
1830
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
1831
+ httpMethod: "DELETE",
1832
+ responses: {
1833
+ 200: {},
1834
+ 201: {},
1835
+ 202: {},
1836
+ 204: {},
1837
+ default: {
1838
+ bodyMapper: Mappers.DefaultErrorResponse
1839
+ }
1840
+ },
1841
+ queryParameters: [Parameters.apiVersion],
1842
+ urlParameters: [
1843
+ Parameters.$host,
1844
+ Parameters.subscriptionId,
1845
+ Parameters.resourceGroupName,
1846
+ Parameters.name
1847
+ ],
1848
+ headerParameters: [Parameters.accept],
1849
+ serializer
1850
+ };
1851
+ const updateStaticSiteOperationSpec = {
1852
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}",
1853
+ httpMethod: "PATCH",
1854
+ responses: {
1855
+ 200: {
1856
+ bodyMapper: Mappers.StaticSiteARMResource
1857
+ },
1858
+ 202: {
1859
+ bodyMapper: Mappers.StaticSiteARMResource
1860
+ },
1861
+ default: {
1862
+ bodyMapper: Mappers.DefaultErrorResponse
1863
+ }
1864
+ },
1865
+ requestBody: Parameters.staticSiteEnvelope1,
1866
+ queryParameters: [Parameters.apiVersion],
1867
+ urlParameters: [
1868
+ Parameters.$host,
1869
+ Parameters.subscriptionId,
1870
+ Parameters.resourceGroupName,
1871
+ Parameters.name
1872
+ ],
1873
+ headerParameters: [Parameters.accept, Parameters.contentType],
1874
+ mediaType: "json",
1875
+ serializer
1876
+ };
1877
+ const listStaticSiteUsersOperationSpec = {
1878
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/listUsers",
1879
+ httpMethod: "POST",
1880
+ responses: {
1881
+ 200: {
1882
+ bodyMapper: Mappers.StaticSiteUserCollection
1883
+ },
1884
+ default: {
1885
+ bodyMapper: Mappers.DefaultErrorResponse
1886
+ }
1887
+ },
1888
+ queryParameters: [Parameters.apiVersion],
1889
+ urlParameters: [
1890
+ Parameters.$host,
1891
+ Parameters.subscriptionId,
1892
+ Parameters.resourceGroupName,
1893
+ Parameters.name,
1894
+ Parameters.authprovider
1895
+ ],
1896
+ headerParameters: [Parameters.accept],
1897
+ serializer
1898
+ };
1899
+ const deleteStaticSiteUserOperationSpec = {
1900
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}",
1901
+ httpMethod: "DELETE",
1902
+ responses: {
1903
+ 200: {},
1904
+ default: {
1905
+ bodyMapper: Mappers.DefaultErrorResponse
1906
+ }
1907
+ },
1908
+ queryParameters: [Parameters.apiVersion],
1909
+ urlParameters: [
1910
+ Parameters.$host,
1911
+ Parameters.subscriptionId,
1912
+ Parameters.resourceGroupName,
1913
+ Parameters.name,
1914
+ Parameters.authprovider,
1915
+ Parameters.userid
1916
+ ],
1917
+ headerParameters: [Parameters.accept],
1918
+ serializer
1919
+ };
1920
+ const updateStaticSiteUserOperationSpec = {
1921
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}",
1922
+ httpMethod: "PATCH",
1923
+ responses: {
1924
+ 200: {
1925
+ bodyMapper: Mappers.StaticSiteUserARMResource
1926
+ },
1927
+ default: {
1928
+ bodyMapper: Mappers.DefaultErrorResponse
1929
+ }
1930
+ },
1931
+ requestBody: Parameters.staticSiteUserEnvelope,
1932
+ queryParameters: [Parameters.apiVersion],
1933
+ urlParameters: [
1934
+ Parameters.$host,
1935
+ Parameters.subscriptionId,
1936
+ Parameters.resourceGroupName,
1937
+ Parameters.name,
1938
+ Parameters.authprovider,
1939
+ Parameters.userid
1940
+ ],
1941
+ headerParameters: [Parameters.accept, Parameters.contentType],
1942
+ mediaType: "json",
1943
+ serializer
1944
+ };
1945
+ const getStaticSiteBuildsOperationSpec = {
1946
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds",
1947
+ httpMethod: "GET",
1948
+ responses: {
1949
+ 200: {
1950
+ bodyMapper: Mappers.StaticSiteBuildCollection
1951
+ },
1952
+ default: {
1953
+ bodyMapper: Mappers.DefaultErrorResponse
1954
+ }
1955
+ },
1956
+ queryParameters: [Parameters.apiVersion],
1957
+ urlParameters: [
1958
+ Parameters.$host,
1959
+ Parameters.subscriptionId,
1960
+ Parameters.resourceGroupName,
1961
+ Parameters.name
1962
+ ],
1963
+ headerParameters: [Parameters.accept],
1964
+ serializer
1965
+ };
1966
+ const getStaticSiteBuildOperationSpec = {
1967
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}",
1968
+ httpMethod: "GET",
1969
+ responses: {
1970
+ 200: {
1971
+ bodyMapper: Mappers.StaticSiteBuildARMResource
1972
+ },
1973
+ default: {
1974
+ bodyMapper: Mappers.DefaultErrorResponse
1975
+ }
1976
+ },
1977
+ queryParameters: [Parameters.apiVersion],
1978
+ urlParameters: [
1979
+ Parameters.$host,
1980
+ Parameters.subscriptionId,
1981
+ Parameters.resourceGroupName,
1982
+ Parameters.name,
1983
+ Parameters.environmentName1
1984
+ ],
1985
+ headerParameters: [Parameters.accept],
1986
+ serializer
1987
+ };
1988
+ const deleteStaticSiteBuildOperationSpec = {
1989
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}",
1990
+ httpMethod: "DELETE",
1991
+ responses: {
1992
+ 200: {},
1993
+ 201: {},
1994
+ 202: {},
1995
+ 204: {},
1996
+ default: {
1997
+ bodyMapper: Mappers.DefaultErrorResponse
1998
+ }
1999
+ },
2000
+ queryParameters: [Parameters.apiVersion],
2001
+ urlParameters: [
2002
+ Parameters.$host,
2003
+ Parameters.subscriptionId,
2004
+ Parameters.resourceGroupName,
2005
+ Parameters.name,
2006
+ Parameters.environmentName1
2007
+ ],
2008
+ headerParameters: [Parameters.accept],
2009
+ serializer
2010
+ };
2011
+ const createOrUpdateStaticSiteBuildAppSettingsOperationSpec = {
2012
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/appsettings",
2013
+ httpMethod: "PUT",
2014
+ responses: {
2015
+ 200: {
2016
+ bodyMapper: Mappers.StringDictionary
2017
+ },
2018
+ default: {
2019
+ bodyMapper: Mappers.DefaultErrorResponse
2020
+ }
2021
+ },
2022
+ requestBody: Parameters.appSettings,
2023
+ queryParameters: [Parameters.apiVersion],
2024
+ urlParameters: [
2025
+ Parameters.$host,
2026
+ Parameters.subscriptionId,
2027
+ Parameters.resourceGroupName,
2028
+ Parameters.name,
2029
+ Parameters.environmentName1
2030
+ ],
2031
+ headerParameters: [Parameters.accept, Parameters.contentType],
2032
+ mediaType: "json",
2033
+ serializer
2034
+ };
2035
+ const createOrUpdateStaticSiteBuildFunctionAppSettingsOperationSpec = {
2036
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/functionappsettings",
2037
+ httpMethod: "PUT",
2038
+ responses: {
2039
+ 200: {
2040
+ bodyMapper: Mappers.StringDictionary
2041
+ },
2042
+ default: {
2043
+ bodyMapper: Mappers.DefaultErrorResponse
2044
+ }
2045
+ },
2046
+ requestBody: Parameters.appSettings,
2047
+ queryParameters: [Parameters.apiVersion],
2048
+ urlParameters: [
2049
+ Parameters.$host,
2050
+ Parameters.subscriptionId,
2051
+ Parameters.resourceGroupName,
2052
+ Parameters.name,
2053
+ Parameters.environmentName1
2054
+ ],
2055
+ headerParameters: [Parameters.accept, Parameters.contentType],
2056
+ mediaType: "json",
2057
+ serializer
2058
+ };
2059
+ const listStaticSiteBuildFunctionsOperationSpec = {
2060
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/functions",
2061
+ httpMethod: "GET",
2062
+ responses: {
2063
+ 200: {
2064
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
2065
+ },
2066
+ default: {
2067
+ bodyMapper: Mappers.DefaultErrorResponse
2068
+ }
2069
+ },
2070
+ queryParameters: [Parameters.apiVersion],
2071
+ urlParameters: [
2072
+ Parameters.$host,
2073
+ Parameters.subscriptionId,
2074
+ Parameters.resourceGroupName,
2075
+ Parameters.name,
2076
+ Parameters.environmentName1
2077
+ ],
2078
+ headerParameters: [Parameters.accept],
2079
+ serializer
2080
+ };
2081
+ const listStaticSiteBuildAppSettingsOperationSpec = {
2082
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listAppSettings",
2083
+ httpMethod: "POST",
2084
+ responses: {
2085
+ 200: {
2086
+ bodyMapper: Mappers.StringDictionary
2087
+ },
2088
+ default: {
2089
+ bodyMapper: Mappers.DefaultErrorResponse
2090
+ }
2091
+ },
2092
+ queryParameters: [Parameters.apiVersion],
2093
+ urlParameters: [
2094
+ Parameters.$host,
2095
+ Parameters.subscriptionId,
2096
+ Parameters.resourceGroupName,
2097
+ Parameters.name,
2098
+ Parameters.environmentName1
2099
+ ],
2100
+ headerParameters: [Parameters.accept],
2101
+ serializer
2102
+ };
2103
+ const listStaticSiteBuildFunctionAppSettingsOperationSpec = {
2104
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listFunctionAppSettings",
2105
+ httpMethod: "POST",
2106
+ responses: {
2107
+ 200: {
2108
+ bodyMapper: Mappers.StringDictionary
2109
+ },
2110
+ default: {
2111
+ bodyMapper: Mappers.DefaultErrorResponse
2112
+ }
2113
+ },
2114
+ queryParameters: [Parameters.apiVersion],
2115
+ urlParameters: [
2116
+ Parameters.$host,
2117
+ Parameters.subscriptionId,
2118
+ Parameters.resourceGroupName,
2119
+ Parameters.name,
2120
+ Parameters.environmentName1
2121
+ ],
2122
+ headerParameters: [Parameters.accept],
2123
+ serializer
2124
+ };
2125
+ const getUserProvidedFunctionAppsForStaticSiteBuildOperationSpec = {
2126
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps",
2127
+ httpMethod: "GET",
2128
+ responses: {
2129
+ 200: {
2130
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
2131
+ },
2132
+ default: {
2133
+ bodyMapper: Mappers.DefaultErrorResponse
2134
+ }
2135
+ },
2136
+ queryParameters: [Parameters.apiVersion],
2137
+ urlParameters: [
2138
+ Parameters.$host,
2139
+ Parameters.subscriptionId,
2140
+ Parameters.resourceGroupName,
2141
+ Parameters.name,
2142
+ Parameters.environmentName1
2143
+ ],
2144
+ headerParameters: [Parameters.accept],
2145
+ serializer
2146
+ };
2147
+ const getUserProvidedFunctionAppForStaticSiteBuildOperationSpec = {
2148
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}",
2149
+ httpMethod: "GET",
2150
+ responses: {
2151
+ 200: {
2152
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2153
+ },
2154
+ default: {
2155
+ bodyMapper: Mappers.DefaultErrorResponse
2156
+ }
2157
+ },
2158
+ queryParameters: [Parameters.apiVersion],
2159
+ urlParameters: [
2160
+ Parameters.$host,
2161
+ Parameters.subscriptionId,
2162
+ Parameters.resourceGroupName,
2163
+ Parameters.name,
2164
+ Parameters.environmentName1,
2165
+ Parameters.functionAppName
2166
+ ],
2167
+ headerParameters: [Parameters.accept],
2168
+ serializer
2169
+ };
2170
+ const registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec = {
2171
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}",
2172
+ httpMethod: "PUT",
2173
+ responses: {
2174
+ 200: {
2175
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2176
+ },
2177
+ 201: {
2178
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2179
+ },
2180
+ 202: {
2181
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2182
+ },
2183
+ 204: {
2184
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2185
+ },
2186
+ default: {
2187
+ bodyMapper: Mappers.DefaultErrorResponse
2188
+ }
2189
+ },
2190
+ requestBody: Parameters.staticSiteUserProvidedFunctionEnvelope,
2191
+ queryParameters: [Parameters.apiVersion, Parameters.isForced],
2192
+ urlParameters: [
2193
+ Parameters.$host,
2194
+ Parameters.subscriptionId,
2195
+ Parameters.resourceGroupName,
2196
+ Parameters.name,
2197
+ Parameters.environmentName1,
2198
+ Parameters.functionAppName
2199
+ ],
2200
+ headerParameters: [Parameters.accept, Parameters.contentType],
2201
+ mediaType: "json",
2202
+ serializer
2203
+ };
2204
+ const detachUserProvidedFunctionAppFromStaticSiteBuildOperationSpec = {
2205
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}",
2206
+ httpMethod: "DELETE",
2207
+ responses: {
2208
+ 200: {},
2209
+ 204: {},
2210
+ default: {
2211
+ bodyMapper: Mappers.DefaultErrorResponse
2212
+ }
2213
+ },
2214
+ queryParameters: [Parameters.apiVersion],
2215
+ urlParameters: [
2216
+ Parameters.$host,
2217
+ Parameters.subscriptionId,
2218
+ Parameters.resourceGroupName,
2219
+ Parameters.name,
2220
+ Parameters.environmentName1,
2221
+ Parameters.functionAppName
2222
+ ],
2223
+ headerParameters: [Parameters.accept],
2224
+ serializer
2225
+ };
2226
+ const createZipDeploymentForStaticSiteBuildOperationSpec = {
2227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/zipdeploy",
2228
+ httpMethod: "POST",
2229
+ responses: {
2230
+ 200: {},
2231
+ 201: {},
2232
+ 202: {},
2233
+ 204: {},
2234
+ default: {
2235
+ bodyMapper: Mappers.DefaultErrorResponse
2236
+ }
2237
+ },
2238
+ requestBody: Parameters.staticSiteZipDeploymentEnvelope,
2239
+ queryParameters: [Parameters.apiVersion],
2240
+ urlParameters: [
2241
+ Parameters.$host,
2242
+ Parameters.subscriptionId,
2243
+ Parameters.resourceGroupName,
2244
+ Parameters.name,
2245
+ Parameters.environmentName1
2246
+ ],
2247
+ headerParameters: [Parameters.accept, Parameters.contentType],
2248
+ mediaType: "json",
2249
+ serializer
2250
+ };
2251
+ const createOrUpdateStaticSiteAppSettingsOperationSpec = {
2252
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/appsettings",
2253
+ httpMethod: "PUT",
2254
+ responses: {
2255
+ 200: {
2256
+ bodyMapper: Mappers.StringDictionary
2257
+ },
2258
+ default: {
2259
+ bodyMapper: Mappers.DefaultErrorResponse
2260
+ }
2261
+ },
2262
+ requestBody: Parameters.appSettings,
2263
+ queryParameters: [Parameters.apiVersion],
2264
+ urlParameters: [
2265
+ Parameters.$host,
2266
+ Parameters.subscriptionId,
2267
+ Parameters.resourceGroupName,
2268
+ Parameters.name
2269
+ ],
2270
+ headerParameters: [Parameters.accept, Parameters.contentType],
2271
+ mediaType: "json",
2272
+ serializer
2273
+ };
2274
+ const createOrUpdateStaticSiteFunctionAppSettingsOperationSpec = {
2275
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/functionappsettings",
2276
+ httpMethod: "PUT",
2277
+ responses: {
2278
+ 200: {
2279
+ bodyMapper: Mappers.StringDictionary
2280
+ },
2281
+ default: {
2282
+ bodyMapper: Mappers.DefaultErrorResponse
2283
+ }
2284
+ },
2285
+ requestBody: Parameters.appSettings,
2286
+ queryParameters: [Parameters.apiVersion],
2287
+ urlParameters: [
2288
+ Parameters.$host,
2289
+ Parameters.subscriptionId,
2290
+ Parameters.resourceGroupName,
2291
+ Parameters.name
2292
+ ],
2293
+ headerParameters: [Parameters.accept, Parameters.contentType],
2294
+ mediaType: "json",
2295
+ serializer
2296
+ };
2297
+ const createUserRolesInvitationLinkOperationSpec = {
2298
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/createUserInvitation",
2299
+ httpMethod: "POST",
2300
+ responses: {
2301
+ 200: {
2302
+ bodyMapper: Mappers.StaticSiteUserInvitationResponseResource
2303
+ },
2304
+ default: {
2305
+ bodyMapper: Mappers.DefaultErrorResponse
2306
+ }
2307
+ },
2308
+ requestBody: Parameters.staticSiteUserRolesInvitationEnvelope,
2309
+ queryParameters: [Parameters.apiVersion],
2310
+ urlParameters: [
2311
+ Parameters.$host,
2312
+ Parameters.subscriptionId,
2313
+ Parameters.resourceGroupName,
2314
+ Parameters.name
2315
+ ],
2316
+ headerParameters: [Parameters.accept, Parameters.contentType],
2317
+ mediaType: "json",
2318
+ serializer
2319
+ };
2320
+ const listStaticSiteCustomDomainsOperationSpec = {
2321
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains",
2322
+ httpMethod: "GET",
2323
+ responses: {
2324
+ 200: {
2325
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewCollection
2326
+ },
2327
+ default: {
2328
+ bodyMapper: Mappers.DefaultErrorResponse
2329
+ }
2330
+ },
2331
+ queryParameters: [Parameters.apiVersion],
2332
+ urlParameters: [
2333
+ Parameters.$host,
2334
+ Parameters.subscriptionId,
2335
+ Parameters.resourceGroupName,
2336
+ Parameters.name
2337
+ ],
2338
+ headerParameters: [Parameters.accept],
2339
+ serializer
2340
+ };
2341
+ const getStaticSiteCustomDomainOperationSpec = {
2342
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}",
2343
+ httpMethod: "GET",
2344
+ responses: {
2345
+ 200: {
2346
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
2347
+ },
2348
+ default: {
2349
+ bodyMapper: Mappers.DefaultErrorResponse
2350
+ }
2351
+ },
2352
+ queryParameters: [Parameters.apiVersion],
2353
+ urlParameters: [
2354
+ Parameters.$host,
2355
+ Parameters.subscriptionId,
2356
+ Parameters.resourceGroupName,
2357
+ Parameters.name,
2358
+ Parameters.domainName
2359
+ ],
2360
+ headerParameters: [Parameters.accept],
2361
+ serializer
2362
+ };
2363
+ const createOrUpdateStaticSiteCustomDomainOperationSpec = {
2364
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}",
2365
+ httpMethod: "PUT",
2366
+ responses: {
2367
+ 200: {
2368
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
2369
+ },
2370
+ 201: {
2371
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
2372
+ },
2373
+ 202: {
2374
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
2375
+ },
2376
+ 204: {
2377
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewARMResource
2378
+ },
2379
+ default: {
2380
+ bodyMapper: Mappers.DefaultErrorResponse
2381
+ }
2382
+ },
2383
+ requestBody: Parameters.staticSiteCustomDomainRequestPropertiesEnvelope,
2384
+ queryParameters: [Parameters.apiVersion],
2385
+ urlParameters: [
2386
+ Parameters.$host,
2387
+ Parameters.subscriptionId,
2388
+ Parameters.resourceGroupName,
2389
+ Parameters.name,
2390
+ Parameters.domainName
2391
+ ],
2392
+ headerParameters: [Parameters.accept, Parameters.contentType],
2393
+ mediaType: "json",
2394
+ serializer
2395
+ };
2396
+ const deleteStaticSiteCustomDomainOperationSpec = {
2397
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}",
2398
+ httpMethod: "DELETE",
2399
+ responses: {
2400
+ 200: {},
2401
+ 201: {},
2402
+ 202: {},
2403
+ 204: {},
2404
+ default: {
2405
+ bodyMapper: Mappers.DefaultErrorResponse
2406
+ }
2407
+ },
2408
+ queryParameters: [Parameters.apiVersion],
2409
+ urlParameters: [
2410
+ Parameters.$host,
2411
+ Parameters.subscriptionId,
2412
+ Parameters.resourceGroupName,
2413
+ Parameters.name,
2414
+ Parameters.domainName
2415
+ ],
2416
+ headerParameters: [Parameters.accept],
2417
+ serializer
2418
+ };
2419
+ const validateCustomDomainCanBeAddedToStaticSiteOperationSpec = {
2420
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}/validate",
2421
+ httpMethod: "POST",
2422
+ responses: {
2423
+ 200: {},
2424
+ 201: {},
2425
+ 202: {},
2426
+ 204: {},
2427
+ default: {
2428
+ bodyMapper: Mappers.DefaultErrorResponse
2429
+ }
2430
+ },
2431
+ requestBody: Parameters.staticSiteCustomDomainRequestPropertiesEnvelope,
2432
+ queryParameters: [Parameters.apiVersion],
2433
+ urlParameters: [
2434
+ Parameters.$host,
2435
+ Parameters.subscriptionId,
2436
+ Parameters.resourceGroupName,
2437
+ Parameters.name,
2438
+ Parameters.domainName
2439
+ ],
2440
+ headerParameters: [Parameters.accept, Parameters.contentType],
2441
+ mediaType: "json",
2442
+ serializer
2443
+ };
2444
+ const detachStaticSiteOperationSpec = {
2445
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach",
2446
+ httpMethod: "POST",
2447
+ responses: {
2448
+ 200: {},
2449
+ 201: {},
2450
+ 202: {},
2451
+ 204: {},
2452
+ default: {
2453
+ bodyMapper: Mappers.DefaultErrorResponse
2454
+ }
2455
+ },
2456
+ queryParameters: [Parameters.apiVersion],
2457
+ urlParameters: [
2458
+ Parameters.$host,
2459
+ Parameters.subscriptionId,
2460
+ Parameters.resourceGroupName,
2461
+ Parameters.name
2462
+ ],
2463
+ headerParameters: [Parameters.accept],
2464
+ serializer
2465
+ };
2466
+ const listStaticSiteFunctionsOperationSpec = {
2467
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/functions",
2468
+ httpMethod: "GET",
2469
+ responses: {
2470
+ 200: {
2471
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
2472
+ },
2473
+ default: {
2474
+ bodyMapper: Mappers.DefaultErrorResponse
2475
+ }
2476
+ },
2477
+ queryParameters: [Parameters.apiVersion],
2478
+ urlParameters: [
2479
+ Parameters.$host,
2480
+ Parameters.subscriptionId,
2481
+ Parameters.resourceGroupName,
2482
+ Parameters.name
2483
+ ],
2484
+ headerParameters: [Parameters.accept],
2485
+ serializer
2486
+ };
2487
+ const listStaticSiteAppSettingsOperationSpec = {
2488
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listAppSettings",
2489
+ httpMethod: "POST",
2490
+ responses: {
2491
+ 200: {
2492
+ bodyMapper: Mappers.StringDictionary
2493
+ },
2494
+ default: {
2495
+ bodyMapper: Mappers.DefaultErrorResponse
2496
+ }
2497
+ },
2498
+ queryParameters: [Parameters.apiVersion],
2499
+ urlParameters: [
2500
+ Parameters.$host,
2501
+ Parameters.subscriptionId,
2502
+ Parameters.resourceGroupName,
2503
+ Parameters.name
2504
+ ],
2505
+ headerParameters: [Parameters.accept],
2506
+ serializer
2507
+ };
2508
+ const listStaticSiteConfiguredRolesOperationSpec = {
2509
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listConfiguredRoles",
2510
+ httpMethod: "POST",
2511
+ responses: {
2512
+ 200: {
2513
+ bodyMapper: Mappers.StringList
2514
+ },
2515
+ default: {
2516
+ bodyMapper: Mappers.DefaultErrorResponse
2517
+ }
2518
+ },
2519
+ queryParameters: [Parameters.apiVersion],
2520
+ urlParameters: [
2521
+ Parameters.$host,
2522
+ Parameters.subscriptionId,
2523
+ Parameters.resourceGroupName,
2524
+ Parameters.name
2525
+ ],
2526
+ headerParameters: [Parameters.accept],
2527
+ serializer
2528
+ };
2529
+ const listStaticSiteFunctionAppSettingsOperationSpec = {
2530
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listFunctionAppSettings",
2531
+ httpMethod: "POST",
2532
+ responses: {
2533
+ 200: {
2534
+ bodyMapper: Mappers.StringDictionary
2535
+ },
2536
+ default: {
2537
+ bodyMapper: Mappers.DefaultErrorResponse
2538
+ }
2539
+ },
2540
+ queryParameters: [Parameters.apiVersion],
2541
+ urlParameters: [
2542
+ Parameters.$host,
2543
+ Parameters.subscriptionId,
2544
+ Parameters.resourceGroupName,
2545
+ Parameters.name
2546
+ ],
2547
+ headerParameters: [Parameters.accept],
2548
+ serializer
2549
+ };
2550
+ const listStaticSiteSecretsOperationSpec = {
2551
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listSecrets",
2552
+ httpMethod: "POST",
2553
+ responses: {
2554
+ 200: {
2555
+ bodyMapper: Mappers.StringDictionary
2556
+ },
2557
+ default: {
2558
+ bodyMapper: Mappers.DefaultErrorResponse
2559
+ }
2560
+ },
2561
+ queryParameters: [Parameters.apiVersion],
2562
+ urlParameters: [
2563
+ Parameters.$host,
2564
+ Parameters.subscriptionId,
2565
+ Parameters.resourceGroupName,
2566
+ Parameters.name
2567
+ ],
2568
+ headerParameters: [Parameters.accept],
2569
+ serializer
2570
+ };
2571
+ const getPrivateEndpointConnectionListOperationSpec = {
2572
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections",
2573
+ httpMethod: "GET",
2574
+ responses: {
2575
+ 200: {
2576
+ bodyMapper: Mappers.PrivateEndpointConnectionCollection
2577
+ },
2578
+ default: {
2579
+ bodyMapper: Mappers.DefaultErrorResponse
2580
+ }
2581
+ },
2582
+ queryParameters: [Parameters.apiVersion],
2583
+ urlParameters: [
2584
+ Parameters.$host,
2585
+ Parameters.subscriptionId,
2586
+ Parameters.resourceGroupName,
2587
+ Parameters.name
2588
+ ],
2589
+ headerParameters: [Parameters.accept],
2590
+ serializer
2591
+ };
2592
+ const getPrivateEndpointConnectionOperationSpec = {
2593
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
2594
+ httpMethod: "GET",
2595
+ responses: {
2596
+ 200: {
2597
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2598
+ },
2599
+ default: {
2600
+ bodyMapper: Mappers.DefaultErrorResponse
2601
+ }
2602
+ },
2603
+ queryParameters: [Parameters.apiVersion],
2604
+ urlParameters: [
2605
+ Parameters.$host,
2606
+ Parameters.subscriptionId,
2607
+ Parameters.resourceGroupName,
2608
+ Parameters.name,
2609
+ Parameters.privateEndpointConnectionName
2610
+ ],
2611
+ headerParameters: [Parameters.accept],
2612
+ serializer
2613
+ };
2614
+ const approveOrRejectPrivateEndpointConnectionOperationSpec = {
2615
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
2616
+ httpMethod: "PUT",
2617
+ responses: {
2618
+ 200: {
2619
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2620
+ },
2621
+ 201: {
2622
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2623
+ },
2624
+ 202: {
2625
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2626
+ },
2627
+ 204: {
2628
+ bodyMapper: Mappers.RemotePrivateEndpointConnectionARMResource
2629
+ },
2630
+ default: {
2631
+ bodyMapper: Mappers.DefaultErrorResponse
2632
+ }
2633
+ },
2634
+ requestBody: Parameters.privateEndpointWrapper,
2635
+ queryParameters: [Parameters.apiVersion],
2636
+ urlParameters: [
2637
+ Parameters.$host,
2638
+ Parameters.subscriptionId,
2639
+ Parameters.resourceGroupName,
2640
+ Parameters.name,
2641
+ Parameters.privateEndpointConnectionName
2642
+ ],
2643
+ headerParameters: [Parameters.accept, Parameters.contentType],
2644
+ mediaType: "json",
2645
+ serializer
2646
+ };
2647
+ const deletePrivateEndpointConnectionOperationSpec = {
2648
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}",
2649
+ httpMethod: "DELETE",
2650
+ responses: {
2651
+ 200: {
2652
+ bodyMapper: {
2653
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2654
+ }
2655
+ },
2656
+ 201: {
2657
+ bodyMapper: {
2658
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2659
+ }
2660
+ },
2661
+ 202: {
2662
+ bodyMapper: {
2663
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2664
+ }
2665
+ },
2666
+ 204: {
2667
+ bodyMapper: {
2668
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
2669
+ }
2670
+ },
2671
+ default: {
2672
+ bodyMapper: Mappers.DefaultErrorResponse
2673
+ }
2674
+ },
2675
+ queryParameters: [Parameters.apiVersion],
2676
+ urlParameters: [
2677
+ Parameters.$host,
2678
+ Parameters.subscriptionId,
2679
+ Parameters.resourceGroupName,
2680
+ Parameters.name,
2681
+ Parameters.privateEndpointConnectionName
2682
+ ],
2683
+ headerParameters: [Parameters.accept],
2684
+ serializer
2685
+ };
2686
+ const getPrivateLinkResourcesOperationSpec = {
2687
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateLinkResources",
2688
+ httpMethod: "GET",
2689
+ responses: {
2690
+ 200: {
2691
+ bodyMapper: Mappers.PrivateLinkResourcesWrapper
2692
+ },
2693
+ default: {
2694
+ bodyMapper: Mappers.DefaultErrorResponse
2695
+ }
2696
+ },
2697
+ queryParameters: [Parameters.apiVersion],
2698
+ urlParameters: [
2699
+ Parameters.$host,
2700
+ Parameters.subscriptionId,
2701
+ Parameters.resourceGroupName,
2702
+ Parameters.name
2703
+ ],
2704
+ headerParameters: [Parameters.accept],
2705
+ serializer
2706
+ };
2707
+ const resetStaticSiteApiKeyOperationSpec = {
2708
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/resetapikey",
2709
+ httpMethod: "POST",
2710
+ responses: {
2711
+ 200: {},
2712
+ default: {
2713
+ bodyMapper: Mappers.DefaultErrorResponse
2714
+ }
2715
+ },
2716
+ requestBody: Parameters.resetPropertiesEnvelope,
2717
+ queryParameters: [Parameters.apiVersion],
2718
+ urlParameters: [
2719
+ Parameters.$host,
2720
+ Parameters.subscriptionId,
2721
+ Parameters.resourceGroupName,
2722
+ Parameters.name
2723
+ ],
2724
+ headerParameters: [Parameters.accept, Parameters.contentType],
2725
+ mediaType: "json",
2726
+ serializer
2727
+ };
2728
+ const getUserProvidedFunctionAppsForStaticSiteOperationSpec = {
2729
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps",
2730
+ httpMethod: "GET",
2731
+ responses: {
2732
+ 200: {
2733
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
2734
+ },
2735
+ default: {
2736
+ bodyMapper: Mappers.DefaultErrorResponse
2737
+ }
2738
+ },
2739
+ queryParameters: [Parameters.apiVersion],
2740
+ urlParameters: [
2741
+ Parameters.$host,
2742
+ Parameters.subscriptionId,
2743
+ Parameters.resourceGroupName,
2744
+ Parameters.name
2745
+ ],
2746
+ headerParameters: [Parameters.accept],
2747
+ serializer
2748
+ };
2749
+ const getUserProvidedFunctionAppForStaticSiteOperationSpec = {
2750
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}",
2751
+ httpMethod: "GET",
2752
+ responses: {
2753
+ 200: {
2754
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2755
+ },
2756
+ default: {
2757
+ bodyMapper: Mappers.DefaultErrorResponse
2758
+ }
2759
+ },
2760
+ queryParameters: [Parameters.apiVersion],
2761
+ urlParameters: [
2762
+ Parameters.$host,
2763
+ Parameters.subscriptionId,
2764
+ Parameters.resourceGroupName,
2765
+ Parameters.name,
2766
+ Parameters.functionAppName
2767
+ ],
2768
+ headerParameters: [Parameters.accept],
2769
+ serializer
2770
+ };
2771
+ const registerUserProvidedFunctionAppWithStaticSiteOperationSpec = {
2772
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}",
2773
+ httpMethod: "PUT",
2774
+ responses: {
2775
+ 200: {
2776
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2777
+ },
2778
+ 201: {
2779
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2780
+ },
2781
+ 202: {
2782
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2783
+ },
2784
+ 204: {
2785
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppARMResource
2786
+ },
2787
+ default: {
2788
+ bodyMapper: Mappers.DefaultErrorResponse
2789
+ }
2790
+ },
2791
+ requestBody: Parameters.staticSiteUserProvidedFunctionEnvelope,
2792
+ queryParameters: [Parameters.apiVersion, Parameters.isForced],
2793
+ urlParameters: [
2794
+ Parameters.$host,
2795
+ Parameters.subscriptionId,
2796
+ Parameters.resourceGroupName,
2797
+ Parameters.name,
2798
+ Parameters.functionAppName
2799
+ ],
2800
+ headerParameters: [Parameters.accept, Parameters.contentType],
2801
+ mediaType: "json",
2802
+ serializer
2803
+ };
2804
+ const detachUserProvidedFunctionAppFromStaticSiteOperationSpec = {
2805
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}",
2806
+ httpMethod: "DELETE",
2807
+ responses: {
2808
+ 200: {},
2809
+ 204: {},
2810
+ default: {
2811
+ bodyMapper: Mappers.DefaultErrorResponse
2812
+ }
2813
+ },
2814
+ queryParameters: [Parameters.apiVersion],
2815
+ urlParameters: [
2816
+ Parameters.$host,
2817
+ Parameters.subscriptionId,
2818
+ Parameters.resourceGroupName,
2819
+ Parameters.name,
2820
+ Parameters.functionAppName
2821
+ ],
2822
+ headerParameters: [Parameters.accept],
2823
+ serializer
2824
+ };
2825
+ const createZipDeploymentForStaticSiteOperationSpec = {
2826
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/zipdeploy",
2827
+ httpMethod: "POST",
2828
+ responses: {
2829
+ 200: {},
2830
+ 201: {},
2831
+ 202: {},
2832
+ 204: {},
2833
+ default: {
2834
+ bodyMapper: Mappers.DefaultErrorResponse
2835
+ }
2836
+ },
2837
+ requestBody: Parameters.staticSiteZipDeploymentEnvelope,
2838
+ queryParameters: [Parameters.apiVersion],
2839
+ urlParameters: [
2840
+ Parameters.$host,
2841
+ Parameters.subscriptionId,
2842
+ Parameters.resourceGroupName,
2843
+ Parameters.name
2844
+ ],
2845
+ headerParameters: [Parameters.accept, Parameters.contentType],
2846
+ mediaType: "json",
2847
+ serializer
2848
+ };
2849
+ const listNextOperationSpec = {
2850
+ path: "{nextLink}",
2851
+ httpMethod: "GET",
2852
+ responses: {
2853
+ 200: {
2854
+ bodyMapper: Mappers.StaticSiteCollection
2855
+ },
2856
+ default: {
2857
+ bodyMapper: Mappers.DefaultErrorResponse
2858
+ }
2859
+ },
2860
+ queryParameters: [Parameters.apiVersion],
2861
+ urlParameters: [
2862
+ Parameters.$host,
2863
+ Parameters.subscriptionId,
2864
+ Parameters.nextLink
2865
+ ],
2866
+ headerParameters: [Parameters.accept],
2867
+ serializer
2868
+ };
2869
+ const getStaticSitesByResourceGroupNextOperationSpec = {
2870
+ path: "{nextLink}",
2871
+ httpMethod: "GET",
2872
+ responses: {
2873
+ 200: {
2874
+ bodyMapper: Mappers.StaticSiteCollection
2875
+ },
2876
+ default: {
2877
+ bodyMapper: Mappers.DefaultErrorResponse
2878
+ }
2879
+ },
2880
+ queryParameters: [Parameters.apiVersion],
2881
+ urlParameters: [
2882
+ Parameters.$host,
2883
+ Parameters.subscriptionId,
2884
+ Parameters.resourceGroupName,
2885
+ Parameters.nextLink
2886
+ ],
2887
+ headerParameters: [Parameters.accept],
2888
+ serializer
2889
+ };
2890
+ const listStaticSiteUsersNextOperationSpec = {
2891
+ path: "{nextLink}",
2892
+ httpMethod: "GET",
2893
+ responses: {
2894
+ 200: {
2895
+ bodyMapper: Mappers.StaticSiteUserCollection
2896
+ },
2897
+ default: {
2898
+ bodyMapper: Mappers.DefaultErrorResponse
2899
+ }
2900
+ },
2901
+ queryParameters: [Parameters.apiVersion],
2902
+ urlParameters: [
2903
+ Parameters.$host,
2904
+ Parameters.subscriptionId,
2905
+ Parameters.resourceGroupName,
2906
+ Parameters.name,
2907
+ Parameters.nextLink,
2908
+ Parameters.authprovider
2909
+ ],
2910
+ headerParameters: [Parameters.accept],
2911
+ serializer
2912
+ };
2913
+ const getStaticSiteBuildsNextOperationSpec = {
2914
+ path: "{nextLink}",
2915
+ httpMethod: "GET",
2916
+ responses: {
2917
+ 200: {
2918
+ bodyMapper: Mappers.StaticSiteBuildCollection
2919
+ },
2920
+ default: {
2921
+ bodyMapper: Mappers.DefaultErrorResponse
2922
+ }
2923
+ },
2924
+ queryParameters: [Parameters.apiVersion],
2925
+ urlParameters: [
2926
+ Parameters.$host,
2927
+ Parameters.subscriptionId,
2928
+ Parameters.resourceGroupName,
2929
+ Parameters.name,
2930
+ Parameters.nextLink
2931
+ ],
2932
+ headerParameters: [Parameters.accept],
2933
+ serializer
2934
+ };
2935
+ const listStaticSiteBuildFunctionsNextOperationSpec = {
2936
+ path: "{nextLink}",
2937
+ httpMethod: "GET",
2938
+ responses: {
2939
+ 200: {
2940
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
2941
+ },
2942
+ default: {
2943
+ bodyMapper: Mappers.DefaultErrorResponse
2944
+ }
2945
+ },
2946
+ queryParameters: [Parameters.apiVersion],
2947
+ urlParameters: [
2948
+ Parameters.$host,
2949
+ Parameters.subscriptionId,
2950
+ Parameters.resourceGroupName,
2951
+ Parameters.name,
2952
+ Parameters.nextLink,
2953
+ Parameters.environmentName1
2954
+ ],
2955
+ headerParameters: [Parameters.accept],
2956
+ serializer
2957
+ };
2958
+ const getUserProvidedFunctionAppsForStaticSiteBuildNextOperationSpec = {
2959
+ path: "{nextLink}",
2960
+ httpMethod: "GET",
2961
+ responses: {
2962
+ 200: {
2963
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
2964
+ },
2965
+ default: {
2966
+ bodyMapper: Mappers.DefaultErrorResponse
2967
+ }
2968
+ },
2969
+ queryParameters: [Parameters.apiVersion],
2970
+ urlParameters: [
2971
+ Parameters.$host,
2972
+ Parameters.subscriptionId,
2973
+ Parameters.resourceGroupName,
2974
+ Parameters.name,
2975
+ Parameters.nextLink,
2976
+ Parameters.environmentName1
2977
+ ],
2978
+ headerParameters: [Parameters.accept],
2979
+ serializer
2980
+ };
2981
+ const listStaticSiteCustomDomainsNextOperationSpec = {
2982
+ path: "{nextLink}",
2983
+ httpMethod: "GET",
2984
+ responses: {
2985
+ 200: {
2986
+ bodyMapper: Mappers.StaticSiteCustomDomainOverviewCollection
2987
+ },
2988
+ default: {
2989
+ bodyMapper: Mappers.DefaultErrorResponse
2990
+ }
2991
+ },
2992
+ queryParameters: [Parameters.apiVersion],
2993
+ urlParameters: [
2994
+ Parameters.$host,
2995
+ Parameters.subscriptionId,
2996
+ Parameters.resourceGroupName,
2997
+ Parameters.name,
2998
+ Parameters.nextLink
2999
+ ],
3000
+ headerParameters: [Parameters.accept],
3001
+ serializer
3002
+ };
3003
+ const listStaticSiteFunctionsNextOperationSpec = {
3004
+ path: "{nextLink}",
3005
+ httpMethod: "GET",
3006
+ responses: {
3007
+ 200: {
3008
+ bodyMapper: Mappers.StaticSiteFunctionOverviewCollection
3009
+ },
3010
+ default: {
3011
+ bodyMapper: Mappers.DefaultErrorResponse
3012
+ }
3013
+ },
3014
+ queryParameters: [Parameters.apiVersion],
3015
+ urlParameters: [
3016
+ Parameters.$host,
3017
+ Parameters.subscriptionId,
3018
+ Parameters.resourceGroupName,
3019
+ Parameters.name,
3020
+ Parameters.nextLink
3021
+ ],
3022
+ headerParameters: [Parameters.accept],
3023
+ serializer
3024
+ };
3025
+ const getPrivateEndpointConnectionListNextOperationSpec = {
3026
+ path: "{nextLink}",
3027
+ httpMethod: "GET",
3028
+ responses: {
3029
+ 200: {
3030
+ bodyMapper: Mappers.PrivateEndpointConnectionCollection
3031
+ },
3032
+ default: {
3033
+ bodyMapper: Mappers.DefaultErrorResponse
3034
+ }
3035
+ },
3036
+ queryParameters: [Parameters.apiVersion],
3037
+ urlParameters: [
3038
+ Parameters.$host,
3039
+ Parameters.subscriptionId,
3040
+ Parameters.resourceGroupName,
3041
+ Parameters.name,
3042
+ Parameters.nextLink
3043
+ ],
3044
+ headerParameters: [Parameters.accept],
3045
+ serializer
3046
+ };
3047
+ const getUserProvidedFunctionAppsForStaticSiteNextOperationSpec = {
3048
+ path: "{nextLink}",
3049
+ httpMethod: "GET",
3050
+ responses: {
3051
+ 200: {
3052
+ bodyMapper: Mappers.StaticSiteUserProvidedFunctionAppsCollection
3053
+ },
3054
+ default: {
3055
+ bodyMapper: Mappers.DefaultErrorResponse
3056
+ }
3057
+ },
3058
+ queryParameters: [Parameters.apiVersion],
3059
+ urlParameters: [
3060
+ Parameters.$host,
3061
+ Parameters.subscriptionId,
3062
+ Parameters.resourceGroupName,
3063
+ Parameters.name,
3064
+ Parameters.nextLink
3065
+ ],
3066
+ headerParameters: [Parameters.accept],
3067
+ serializer
3068
+ };
3069
+ //# sourceMappingURL=staticSites.js.map