@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,856 @@
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 Domains. */
17
+ export class DomainsImpl {
18
+ /**
19
+ * Initialize a new instance of the class Domains class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Description for Get all domains in 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 Get domain name recommendations based on keywords.
75
+ * @param parameters Search parameters for domain name recommendations.
76
+ * @param options The options parameters.
77
+ */
78
+ listRecommendations(parameters, options) {
79
+ const iter = this.listRecommendationsPagingAll(parameters, options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.listRecommendationsPagingPage(parameters, options);
89
+ }
90
+ };
91
+ }
92
+ listRecommendationsPagingPage(parameters, options) {
93
+ return __asyncGenerator(this, arguments, function* listRecommendationsPagingPage_1() {
94
+ let result = yield __await(this._listRecommendations(parameters, options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._listRecommendationsNext(parameters, continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ listRecommendationsPagingAll(parameters, options) {
105
+ return __asyncGenerator(this, arguments, function* listRecommendationsPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.listRecommendationsPagingPage(parameters, 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 Get all domains in a resource group.
124
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
125
+ * @param options The options parameters.
126
+ */
127
+ listByResourceGroup(resourceGroupName, options) {
128
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
129
+ return {
130
+ next() {
131
+ return iter.next();
132
+ },
133
+ [Symbol.asyncIterator]() {
134
+ return this;
135
+ },
136
+ byPage: () => {
137
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
138
+ }
139
+ };
140
+ }
141
+ listByResourceGroupPagingPage(resourceGroupName, options) {
142
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
143
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
144
+ yield yield __await(result.value || []);
145
+ let continuationToken = result.nextLink;
146
+ while (continuationToken) {
147
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
148
+ continuationToken = result.nextLink;
149
+ yield yield __await(result.value || []);
150
+ }
151
+ });
152
+ }
153
+ listByResourceGroupPagingAll(resourceGroupName, options) {
154
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
155
+ var e_3, _a;
156
+ try {
157
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
158
+ const page = _c.value;
159
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
160
+ }
161
+ }
162
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
163
+ finally {
164
+ try {
165
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
166
+ }
167
+ finally { if (e_3) throw e_3.error; }
168
+ }
169
+ });
170
+ }
171
+ /**
172
+ * Description for Lists domain ownership identifiers.
173
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
174
+ * @param domainName Name of domain.
175
+ * @param options The options parameters.
176
+ */
177
+ listOwnershipIdentifiers(resourceGroupName, domainName, options) {
178
+ const iter = this.listOwnershipIdentifiersPagingAll(resourceGroupName, domainName, options);
179
+ return {
180
+ next() {
181
+ return iter.next();
182
+ },
183
+ [Symbol.asyncIterator]() {
184
+ return this;
185
+ },
186
+ byPage: () => {
187
+ return this.listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options);
188
+ }
189
+ };
190
+ }
191
+ listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options) {
192
+ return __asyncGenerator(this, arguments, function* listOwnershipIdentifiersPagingPage_1() {
193
+ let result = yield __await(this._listOwnershipIdentifiers(resourceGroupName, domainName, options));
194
+ yield yield __await(result.value || []);
195
+ let continuationToken = result.nextLink;
196
+ while (continuationToken) {
197
+ result = yield __await(this._listOwnershipIdentifiersNext(resourceGroupName, domainName, continuationToken, options));
198
+ continuationToken = result.nextLink;
199
+ yield yield __await(result.value || []);
200
+ }
201
+ });
202
+ }
203
+ listOwnershipIdentifiersPagingAll(resourceGroupName, domainName, options) {
204
+ return __asyncGenerator(this, arguments, function* listOwnershipIdentifiersPagingAll_1() {
205
+ var e_4, _a;
206
+ try {
207
+ for (var _b = __asyncValues(this.listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
208
+ const page = _c.value;
209
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
210
+ }
211
+ }
212
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
213
+ finally {
214
+ try {
215
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
216
+ }
217
+ finally { if (e_4) throw e_4.error; }
218
+ }
219
+ });
220
+ }
221
+ /**
222
+ * Description for Check if a domain is available for registration.
223
+ * @param identifier Name of the domain.
224
+ * @param options The options parameters.
225
+ */
226
+ checkAvailability(identifier, options) {
227
+ return this.client.sendOperationRequest({ identifier, options }, checkAvailabilityOperationSpec);
228
+ }
229
+ /**
230
+ * Description for Get all domains in a subscription.
231
+ * @param options The options parameters.
232
+ */
233
+ _list(options) {
234
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
235
+ }
236
+ /**
237
+ * Description for Generate a single sign-on request for the domain management portal.
238
+ * @param options The options parameters.
239
+ */
240
+ getControlCenterSsoRequest(options) {
241
+ return this.client.sendOperationRequest({ options }, getControlCenterSsoRequestOperationSpec);
242
+ }
243
+ /**
244
+ * Description for Get domain name recommendations based on keywords.
245
+ * @param parameters Search parameters for domain name recommendations.
246
+ * @param options The options parameters.
247
+ */
248
+ _listRecommendations(parameters, options) {
249
+ return this.client.sendOperationRequest({ parameters, options }, listRecommendationsOperationSpec);
250
+ }
251
+ /**
252
+ * Description for Get all domains in a resource group.
253
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
254
+ * @param options The options parameters.
255
+ */
256
+ _listByResourceGroup(resourceGroupName, options) {
257
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
258
+ }
259
+ /**
260
+ * Description for Get a domain.
261
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
262
+ * @param domainName Name of the domain.
263
+ * @param options The options parameters.
264
+ */
265
+ get(resourceGroupName, domainName, options) {
266
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, getOperationSpec);
267
+ }
268
+ /**
269
+ * Description for Creates or updates a domain.
270
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
271
+ * @param domainName Name of the domain.
272
+ * @param domain Domain registration information.
273
+ * @param options The options parameters.
274
+ */
275
+ beginCreateOrUpdate(resourceGroupName, domainName, domain, options) {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
278
+ return this.client.sendOperationRequest(args, spec);
279
+ });
280
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
281
+ var _a;
282
+ let currentRawResponse = undefined;
283
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
284
+ const callback = (rawResponse, flatResponse) => {
285
+ currentRawResponse = rawResponse;
286
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
287
+ };
288
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
289
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
290
+ return {
291
+ flatResponse,
292
+ rawResponse: {
293
+ statusCode: currentRawResponse.status,
294
+ body: currentRawResponse.parsedBody,
295
+ headers: currentRawResponse.headers.toJSON()
296
+ }
297
+ };
298
+ });
299
+ const lro = new LroImpl(sendOperation, { resourceGroupName, domainName, domain, options }, createOrUpdateOperationSpec);
300
+ return new LroEngine(lro, {
301
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
302
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
303
+ });
304
+ });
305
+ }
306
+ /**
307
+ * Description for Creates or updates a domain.
308
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
309
+ * @param domainName Name of the domain.
310
+ * @param domain Domain registration information.
311
+ * @param options The options parameters.
312
+ */
313
+ beginCreateOrUpdateAndWait(resourceGroupName, domainName, domain, options) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, domainName, domain, options);
316
+ return poller.pollUntilDone();
317
+ });
318
+ }
319
+ /**
320
+ * Description for Delete a domain.
321
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
322
+ * @param domainName Name of the domain.
323
+ * @param options The options parameters.
324
+ */
325
+ delete(resourceGroupName, domainName, options) {
326
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, deleteOperationSpec);
327
+ }
328
+ /**
329
+ * Description for Creates or updates a domain.
330
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
331
+ * @param domainName Name of the domain.
332
+ * @param domain Domain registration information.
333
+ * @param options The options parameters.
334
+ */
335
+ update(resourceGroupName, domainName, domain, options) {
336
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, domain, options }, updateOperationSpec);
337
+ }
338
+ /**
339
+ * Description for Lists domain ownership identifiers.
340
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
341
+ * @param domainName Name of domain.
342
+ * @param options The options parameters.
343
+ */
344
+ _listOwnershipIdentifiers(resourceGroupName, domainName, options) {
345
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, listOwnershipIdentifiersOperationSpec);
346
+ }
347
+ /**
348
+ * Description for Get ownership identifier for domain
349
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
350
+ * @param domainName Name of domain.
351
+ * @param name Name of identifier.
352
+ * @param options The options parameters.
353
+ */
354
+ getOwnershipIdentifier(resourceGroupName, domainName, name, options) {
355
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, name, options }, getOwnershipIdentifierOperationSpec);
356
+ }
357
+ /**
358
+ * Description for Creates an ownership identifier for a domain or updates identifier details for an
359
+ * existing identifier
360
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
361
+ * @param domainName Name of domain.
362
+ * @param name Name of identifier.
363
+ * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
364
+ * @param options The options parameters.
365
+ */
366
+ createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name, domainOwnershipIdentifier, options) {
367
+ return this.client.sendOperationRequest({
368
+ resourceGroupName,
369
+ domainName,
370
+ name,
371
+ domainOwnershipIdentifier,
372
+ options
373
+ }, createOrUpdateOwnershipIdentifierOperationSpec);
374
+ }
375
+ /**
376
+ * Description for Delete ownership identifier for domain
377
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
378
+ * @param domainName Name of domain.
379
+ * @param name Name of identifier.
380
+ * @param options The options parameters.
381
+ */
382
+ deleteOwnershipIdentifier(resourceGroupName, domainName, name, options) {
383
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, name, options }, deleteOwnershipIdentifierOperationSpec);
384
+ }
385
+ /**
386
+ * Description for Creates an ownership identifier for a domain or updates identifier details for an
387
+ * existing identifier
388
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
389
+ * @param domainName Name of domain.
390
+ * @param name Name of identifier.
391
+ * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
392
+ * @param options The options parameters.
393
+ */
394
+ updateOwnershipIdentifier(resourceGroupName, domainName, name, domainOwnershipIdentifier, options) {
395
+ return this.client.sendOperationRequest({
396
+ resourceGroupName,
397
+ domainName,
398
+ name,
399
+ domainOwnershipIdentifier,
400
+ options
401
+ }, updateOwnershipIdentifierOperationSpec);
402
+ }
403
+ /**
404
+ * Description for Renew a domain.
405
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
406
+ * @param domainName Name of the domain.
407
+ * @param options The options parameters.
408
+ */
409
+ renew(resourceGroupName, domainName, options) {
410
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, renewOperationSpec);
411
+ }
412
+ /**
413
+ * ListNext
414
+ * @param nextLink The nextLink from the previous successful call to the List method.
415
+ * @param options The options parameters.
416
+ */
417
+ _listNext(nextLink, options) {
418
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
419
+ }
420
+ /**
421
+ * ListRecommendationsNext
422
+ * @param parameters Search parameters for domain name recommendations.
423
+ * @param nextLink The nextLink from the previous successful call to the ListRecommendations method.
424
+ * @param options The options parameters.
425
+ */
426
+ _listRecommendationsNext(parameters, nextLink, options) {
427
+ return this.client.sendOperationRequest({ parameters, nextLink, options }, listRecommendationsNextOperationSpec);
428
+ }
429
+ /**
430
+ * ListByResourceGroupNext
431
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
432
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
433
+ * @param options The options parameters.
434
+ */
435
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
436
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
437
+ }
438
+ /**
439
+ * ListOwnershipIdentifiersNext
440
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
441
+ * @param domainName Name of domain.
442
+ * @param nextLink The nextLink from the previous successful call to the ListOwnershipIdentifiers
443
+ * method.
444
+ * @param options The options parameters.
445
+ */
446
+ _listOwnershipIdentifiersNext(resourceGroupName, domainName, nextLink, options) {
447
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, nextLink, options }, listOwnershipIdentifiersNextOperationSpec);
448
+ }
449
+ }
450
+ // Operation Specifications
451
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
452
+ const checkAvailabilityOperationSpec = {
453
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability",
454
+ httpMethod: "POST",
455
+ responses: {
456
+ 200: {
457
+ bodyMapper: Mappers.DomainAvailabilityCheckResult
458
+ },
459
+ default: {
460
+ bodyMapper: Mappers.DefaultErrorResponse
461
+ }
462
+ },
463
+ requestBody: Parameters.identifier,
464
+ queryParameters: [Parameters.apiVersion],
465
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
466
+ headerParameters: [Parameters.accept, Parameters.contentType],
467
+ mediaType: "json",
468
+ serializer
469
+ };
470
+ const listOperationSpec = {
471
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains",
472
+ httpMethod: "GET",
473
+ responses: {
474
+ 200: {
475
+ bodyMapper: Mappers.DomainCollection
476
+ },
477
+ default: {
478
+ bodyMapper: Mappers.DefaultErrorResponse
479
+ }
480
+ },
481
+ queryParameters: [Parameters.apiVersion],
482
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
483
+ headerParameters: [Parameters.accept],
484
+ serializer
485
+ };
486
+ const getControlCenterSsoRequestOperationSpec = {
487
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest",
488
+ httpMethod: "POST",
489
+ responses: {
490
+ 200: {
491
+ bodyMapper: Mappers.DomainControlCenterSsoRequest
492
+ },
493
+ default: {
494
+ bodyMapper: Mappers.DefaultErrorResponse
495
+ }
496
+ },
497
+ queryParameters: [Parameters.apiVersion],
498
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
499
+ headerParameters: [Parameters.accept],
500
+ serializer
501
+ };
502
+ const listRecommendationsOperationSpec = {
503
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations",
504
+ httpMethod: "POST",
505
+ responses: {
506
+ 200: {
507
+ bodyMapper: Mappers.NameIdentifierCollection
508
+ },
509
+ default: {
510
+ bodyMapper: Mappers.DefaultErrorResponse
511
+ }
512
+ },
513
+ requestBody: Parameters.parameters,
514
+ queryParameters: [Parameters.apiVersion],
515
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
516
+ headerParameters: [Parameters.accept, Parameters.contentType],
517
+ mediaType: "json",
518
+ serializer
519
+ };
520
+ const listByResourceGroupOperationSpec = {
521
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains",
522
+ httpMethod: "GET",
523
+ responses: {
524
+ 200: {
525
+ bodyMapper: Mappers.DomainCollection
526
+ },
527
+ default: {
528
+ bodyMapper: Mappers.DefaultErrorResponse
529
+ }
530
+ },
531
+ queryParameters: [Parameters.apiVersion],
532
+ urlParameters: [
533
+ Parameters.$host,
534
+ Parameters.subscriptionId,
535
+ Parameters.resourceGroupName
536
+ ],
537
+ headerParameters: [Parameters.accept],
538
+ serializer
539
+ };
540
+ const getOperationSpec = {
541
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
542
+ httpMethod: "GET",
543
+ responses: {
544
+ 200: {
545
+ bodyMapper: Mappers.Domain
546
+ },
547
+ default: {
548
+ bodyMapper: Mappers.DefaultErrorResponse
549
+ }
550
+ },
551
+ queryParameters: [Parameters.apiVersion],
552
+ urlParameters: [
553
+ Parameters.$host,
554
+ Parameters.subscriptionId,
555
+ Parameters.resourceGroupName,
556
+ Parameters.domainName
557
+ ],
558
+ headerParameters: [Parameters.accept],
559
+ serializer
560
+ };
561
+ const createOrUpdateOperationSpec = {
562
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
563
+ httpMethod: "PUT",
564
+ responses: {
565
+ 200: {
566
+ bodyMapper: Mappers.Domain
567
+ },
568
+ 201: {
569
+ bodyMapper: Mappers.Domain
570
+ },
571
+ 202: {
572
+ bodyMapper: Mappers.Domain
573
+ },
574
+ 204: {
575
+ bodyMapper: Mappers.Domain
576
+ },
577
+ default: {
578
+ bodyMapper: Mappers.DefaultErrorResponse
579
+ }
580
+ },
581
+ requestBody: Parameters.domain,
582
+ queryParameters: [Parameters.apiVersion],
583
+ urlParameters: [
584
+ Parameters.$host,
585
+ Parameters.subscriptionId,
586
+ Parameters.resourceGroupName,
587
+ Parameters.domainName1
588
+ ],
589
+ headerParameters: [Parameters.accept, Parameters.contentType],
590
+ mediaType: "json",
591
+ serializer
592
+ };
593
+ const deleteOperationSpec = {
594
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
595
+ httpMethod: "DELETE",
596
+ responses: {
597
+ 200: {},
598
+ 204: {},
599
+ default: {
600
+ bodyMapper: Mappers.DefaultErrorResponse
601
+ }
602
+ },
603
+ queryParameters: [Parameters.apiVersion, Parameters.forceHardDeleteDomain],
604
+ urlParameters: [
605
+ Parameters.$host,
606
+ Parameters.subscriptionId,
607
+ Parameters.resourceGroupName,
608
+ Parameters.domainName
609
+ ],
610
+ headerParameters: [Parameters.accept],
611
+ serializer
612
+ };
613
+ const updateOperationSpec = {
614
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
615
+ httpMethod: "PATCH",
616
+ responses: {
617
+ 200: {
618
+ bodyMapper: Mappers.Domain
619
+ },
620
+ 202: {
621
+ bodyMapper: Mappers.Domain
622
+ },
623
+ default: {
624
+ bodyMapper: Mappers.DefaultErrorResponse
625
+ }
626
+ },
627
+ requestBody: Parameters.domain1,
628
+ queryParameters: [Parameters.apiVersion],
629
+ urlParameters: [
630
+ Parameters.$host,
631
+ Parameters.subscriptionId,
632
+ Parameters.resourceGroupName,
633
+ Parameters.domainName1
634
+ ],
635
+ headerParameters: [Parameters.accept, Parameters.contentType],
636
+ mediaType: "json",
637
+ serializer
638
+ };
639
+ const listOwnershipIdentifiersOperationSpec = {
640
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers",
641
+ httpMethod: "GET",
642
+ responses: {
643
+ 200: {
644
+ bodyMapper: Mappers.DomainOwnershipIdentifierCollection
645
+ },
646
+ default: {
647
+ bodyMapper: Mappers.DefaultErrorResponse
648
+ }
649
+ },
650
+ queryParameters: [Parameters.apiVersion],
651
+ urlParameters: [
652
+ Parameters.$host,
653
+ Parameters.subscriptionId,
654
+ Parameters.resourceGroupName,
655
+ Parameters.domainName
656
+ ],
657
+ headerParameters: [Parameters.accept],
658
+ serializer
659
+ };
660
+ const getOwnershipIdentifierOperationSpec = {
661
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
662
+ httpMethod: "GET",
663
+ responses: {
664
+ 200: {
665
+ bodyMapper: Mappers.DomainOwnershipIdentifier
666
+ },
667
+ default: {
668
+ bodyMapper: Mappers.DefaultErrorResponse
669
+ }
670
+ },
671
+ queryParameters: [Parameters.apiVersion],
672
+ urlParameters: [
673
+ Parameters.$host,
674
+ Parameters.subscriptionId,
675
+ Parameters.resourceGroupName,
676
+ Parameters.name,
677
+ Parameters.domainName
678
+ ],
679
+ headerParameters: [Parameters.accept],
680
+ serializer
681
+ };
682
+ const createOrUpdateOwnershipIdentifierOperationSpec = {
683
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
684
+ httpMethod: "PUT",
685
+ responses: {
686
+ 200: {
687
+ bodyMapper: Mappers.DomainOwnershipIdentifier
688
+ },
689
+ default: {
690
+ bodyMapper: Mappers.DefaultErrorResponse
691
+ }
692
+ },
693
+ requestBody: Parameters.domainOwnershipIdentifier,
694
+ queryParameters: [Parameters.apiVersion],
695
+ urlParameters: [
696
+ Parameters.$host,
697
+ Parameters.subscriptionId,
698
+ Parameters.resourceGroupName,
699
+ Parameters.name,
700
+ Parameters.domainName
701
+ ],
702
+ headerParameters: [Parameters.accept, Parameters.contentType],
703
+ mediaType: "json",
704
+ serializer
705
+ };
706
+ const deleteOwnershipIdentifierOperationSpec = {
707
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
708
+ httpMethod: "DELETE",
709
+ responses: {
710
+ 200: {},
711
+ 204: {},
712
+ default: {
713
+ bodyMapper: Mappers.DefaultErrorResponse
714
+ }
715
+ },
716
+ queryParameters: [Parameters.apiVersion],
717
+ urlParameters: [
718
+ Parameters.$host,
719
+ Parameters.subscriptionId,
720
+ Parameters.resourceGroupName,
721
+ Parameters.name,
722
+ Parameters.domainName
723
+ ],
724
+ headerParameters: [Parameters.accept],
725
+ serializer
726
+ };
727
+ const updateOwnershipIdentifierOperationSpec = {
728
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
729
+ httpMethod: "PATCH",
730
+ responses: {
731
+ 200: {
732
+ bodyMapper: Mappers.DomainOwnershipIdentifier
733
+ },
734
+ default: {
735
+ bodyMapper: Mappers.DefaultErrorResponse
736
+ }
737
+ },
738
+ requestBody: Parameters.domainOwnershipIdentifier,
739
+ queryParameters: [Parameters.apiVersion],
740
+ urlParameters: [
741
+ Parameters.$host,
742
+ Parameters.subscriptionId,
743
+ Parameters.resourceGroupName,
744
+ Parameters.name,
745
+ Parameters.domainName
746
+ ],
747
+ headerParameters: [Parameters.accept, Parameters.contentType],
748
+ mediaType: "json",
749
+ serializer
750
+ };
751
+ const renewOperationSpec = {
752
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew",
753
+ httpMethod: "POST",
754
+ responses: {
755
+ 200: {},
756
+ 202: {},
757
+ 204: {},
758
+ default: {
759
+ bodyMapper: Mappers.DefaultErrorResponse
760
+ }
761
+ },
762
+ queryParameters: [Parameters.apiVersion],
763
+ urlParameters: [
764
+ Parameters.$host,
765
+ Parameters.subscriptionId,
766
+ Parameters.resourceGroupName,
767
+ Parameters.domainName
768
+ ],
769
+ headerParameters: [Parameters.accept],
770
+ serializer
771
+ };
772
+ const listNextOperationSpec = {
773
+ path: "{nextLink}",
774
+ httpMethod: "GET",
775
+ responses: {
776
+ 200: {
777
+ bodyMapper: Mappers.DomainCollection
778
+ },
779
+ default: {
780
+ bodyMapper: Mappers.DefaultErrorResponse
781
+ }
782
+ },
783
+ queryParameters: [Parameters.apiVersion],
784
+ urlParameters: [
785
+ Parameters.$host,
786
+ Parameters.subscriptionId,
787
+ Parameters.nextLink
788
+ ],
789
+ headerParameters: [Parameters.accept],
790
+ serializer
791
+ };
792
+ const listRecommendationsNextOperationSpec = {
793
+ path: "{nextLink}",
794
+ httpMethod: "GET",
795
+ responses: {
796
+ 200: {
797
+ bodyMapper: Mappers.NameIdentifierCollection
798
+ },
799
+ default: {
800
+ bodyMapper: Mappers.DefaultErrorResponse
801
+ }
802
+ },
803
+ queryParameters: [Parameters.apiVersion],
804
+ urlParameters: [
805
+ Parameters.$host,
806
+ Parameters.subscriptionId,
807
+ Parameters.nextLink
808
+ ],
809
+ headerParameters: [Parameters.accept, Parameters.contentType],
810
+ mediaType: "json",
811
+ serializer
812
+ };
813
+ const listByResourceGroupNextOperationSpec = {
814
+ path: "{nextLink}",
815
+ httpMethod: "GET",
816
+ responses: {
817
+ 200: {
818
+ bodyMapper: Mappers.DomainCollection
819
+ },
820
+ default: {
821
+ bodyMapper: Mappers.DefaultErrorResponse
822
+ }
823
+ },
824
+ queryParameters: [Parameters.apiVersion],
825
+ urlParameters: [
826
+ Parameters.$host,
827
+ Parameters.subscriptionId,
828
+ Parameters.resourceGroupName,
829
+ Parameters.nextLink
830
+ ],
831
+ headerParameters: [Parameters.accept],
832
+ serializer
833
+ };
834
+ const listOwnershipIdentifiersNextOperationSpec = {
835
+ path: "{nextLink}",
836
+ httpMethod: "GET",
837
+ responses: {
838
+ 200: {
839
+ bodyMapper: Mappers.DomainOwnershipIdentifierCollection
840
+ },
841
+ default: {
842
+ bodyMapper: Mappers.DefaultErrorResponse
843
+ }
844
+ },
845
+ queryParameters: [Parameters.apiVersion],
846
+ urlParameters: [
847
+ Parameters.$host,
848
+ Parameters.subscriptionId,
849
+ Parameters.resourceGroupName,
850
+ Parameters.nextLink,
851
+ Parameters.domainName
852
+ ],
853
+ headerParameters: [Parameters.accept],
854
+ serializer
855
+ };
856
+ //# sourceMappingURL=domains.js.map