@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,444 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import "@azure/core-paging";
10
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
+ import { Certificates } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { WebSiteManagementClientContext } from "../webSiteManagementClientContext";
16
+ import {
17
+ Certificate,
18
+ CertificatesListNextOptionalParams,
19
+ CertificatesListOptionalParams,
20
+ CertificatesListByResourceGroupNextOptionalParams,
21
+ CertificatesListByResourceGroupOptionalParams,
22
+ CertificatesListResponse,
23
+ CertificatesListByResourceGroupResponse,
24
+ CertificatesGetOptionalParams,
25
+ CertificatesGetResponse,
26
+ CertificatesCreateOrUpdateOptionalParams,
27
+ CertificatesCreateOrUpdateResponse,
28
+ CertificatesDeleteOptionalParams,
29
+ CertificatePatchResource,
30
+ CertificatesUpdateOptionalParams,
31
+ CertificatesUpdateResponse,
32
+ CertificatesListNextResponse,
33
+ CertificatesListByResourceGroupNextResponse
34
+ } from "../models";
35
+
36
+ /// <reference lib="esnext.asynciterable" />
37
+ /** Class representing a Certificates. */
38
+ export class CertificatesImpl implements Certificates {
39
+ private readonly client: WebSiteManagementClientContext;
40
+
41
+ /**
42
+ * Initialize a new instance of the class Certificates class.
43
+ * @param client Reference to the service client
44
+ */
45
+ constructor(client: WebSiteManagementClientContext) {
46
+ this.client = client;
47
+ }
48
+
49
+ /**
50
+ * Description for Get all certificates for a subscription.
51
+ * @param options The options parameters.
52
+ */
53
+ public list(
54
+ options?: CertificatesListOptionalParams
55
+ ): PagedAsyncIterableIterator<Certificate> {
56
+ const iter = this.listPagingAll(options);
57
+ return {
58
+ next() {
59
+ return iter.next();
60
+ },
61
+ [Symbol.asyncIterator]() {
62
+ return this;
63
+ },
64
+ byPage: () => {
65
+ return this.listPagingPage(options);
66
+ }
67
+ };
68
+ }
69
+
70
+ private async *listPagingPage(
71
+ options?: CertificatesListOptionalParams
72
+ ): AsyncIterableIterator<Certificate[]> {
73
+ let result = await this._list(options);
74
+ yield result.value || [];
75
+ let continuationToken = result.nextLink;
76
+ while (continuationToken) {
77
+ result = await this._listNext(continuationToken, options);
78
+ continuationToken = result.nextLink;
79
+ yield result.value || [];
80
+ }
81
+ }
82
+
83
+ private async *listPagingAll(
84
+ options?: CertificatesListOptionalParams
85
+ ): AsyncIterableIterator<Certificate> {
86
+ for await (const page of this.listPagingPage(options)) {
87
+ yield* page;
88
+ }
89
+ }
90
+
91
+ /**
92
+ * Description for Get all certificates in a resource group.
93
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
94
+ * @param options The options parameters.
95
+ */
96
+ public listByResourceGroup(
97
+ resourceGroupName: string,
98
+ options?: CertificatesListByResourceGroupOptionalParams
99
+ ): PagedAsyncIterableIterator<Certificate> {
100
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
101
+ return {
102
+ next() {
103
+ return iter.next();
104
+ },
105
+ [Symbol.asyncIterator]() {
106
+ return this;
107
+ },
108
+ byPage: () => {
109
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
110
+ }
111
+ };
112
+ }
113
+
114
+ private async *listByResourceGroupPagingPage(
115
+ resourceGroupName: string,
116
+ options?: CertificatesListByResourceGroupOptionalParams
117
+ ): AsyncIterableIterator<Certificate[]> {
118
+ let result = await this._listByResourceGroup(resourceGroupName, options);
119
+ yield result.value || [];
120
+ let continuationToken = result.nextLink;
121
+ while (continuationToken) {
122
+ result = await this._listByResourceGroupNext(
123
+ resourceGroupName,
124
+ continuationToken,
125
+ options
126
+ );
127
+ continuationToken = result.nextLink;
128
+ yield result.value || [];
129
+ }
130
+ }
131
+
132
+ private async *listByResourceGroupPagingAll(
133
+ resourceGroupName: string,
134
+ options?: CertificatesListByResourceGroupOptionalParams
135
+ ): AsyncIterableIterator<Certificate> {
136
+ for await (const page of this.listByResourceGroupPagingPage(
137
+ resourceGroupName,
138
+ options
139
+ )) {
140
+ yield* page;
141
+ }
142
+ }
143
+
144
+ /**
145
+ * Description for Get all certificates for a subscription.
146
+ * @param options The options parameters.
147
+ */
148
+ private _list(
149
+ options?: CertificatesListOptionalParams
150
+ ): Promise<CertificatesListResponse> {
151
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
152
+ }
153
+
154
+ /**
155
+ * Description for Get all certificates in a resource group.
156
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
157
+ * @param options The options parameters.
158
+ */
159
+ private _listByResourceGroup(
160
+ resourceGroupName: string,
161
+ options?: CertificatesListByResourceGroupOptionalParams
162
+ ): Promise<CertificatesListByResourceGroupResponse> {
163
+ return this.client.sendOperationRequest(
164
+ { resourceGroupName, options },
165
+ listByResourceGroupOperationSpec
166
+ );
167
+ }
168
+
169
+ /**
170
+ * Description for Get a certificate.
171
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
172
+ * @param name Name of the certificate.
173
+ * @param options The options parameters.
174
+ */
175
+ get(
176
+ resourceGroupName: string,
177
+ name: string,
178
+ options?: CertificatesGetOptionalParams
179
+ ): Promise<CertificatesGetResponse> {
180
+ return this.client.sendOperationRequest(
181
+ { resourceGroupName, name, options },
182
+ getOperationSpec
183
+ );
184
+ }
185
+
186
+ /**
187
+ * Description for Create or update a certificate.
188
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
189
+ * @param name Name of the certificate.
190
+ * @param certificateEnvelope Details of certificate, if it exists already.
191
+ * @param options The options parameters.
192
+ */
193
+ createOrUpdate(
194
+ resourceGroupName: string,
195
+ name: string,
196
+ certificateEnvelope: Certificate,
197
+ options?: CertificatesCreateOrUpdateOptionalParams
198
+ ): Promise<CertificatesCreateOrUpdateResponse> {
199
+ return this.client.sendOperationRequest(
200
+ { resourceGroupName, name, certificateEnvelope, options },
201
+ createOrUpdateOperationSpec
202
+ );
203
+ }
204
+
205
+ /**
206
+ * Description for Delete a certificate.
207
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
208
+ * @param name Name of the certificate.
209
+ * @param options The options parameters.
210
+ */
211
+ delete(
212
+ resourceGroupName: string,
213
+ name: string,
214
+ options?: CertificatesDeleteOptionalParams
215
+ ): Promise<void> {
216
+ return this.client.sendOperationRequest(
217
+ { resourceGroupName, name, options },
218
+ deleteOperationSpec
219
+ );
220
+ }
221
+
222
+ /**
223
+ * Description for Create or update a certificate.
224
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
225
+ * @param name Name of the certificate.
226
+ * @param certificateEnvelope Details of certificate, if it exists already.
227
+ * @param options The options parameters.
228
+ */
229
+ update(
230
+ resourceGroupName: string,
231
+ name: string,
232
+ certificateEnvelope: CertificatePatchResource,
233
+ options?: CertificatesUpdateOptionalParams
234
+ ): Promise<CertificatesUpdateResponse> {
235
+ return this.client.sendOperationRequest(
236
+ { resourceGroupName, name, certificateEnvelope, options },
237
+ updateOperationSpec
238
+ );
239
+ }
240
+
241
+ /**
242
+ * ListNext
243
+ * @param nextLink The nextLink from the previous successful call to the List method.
244
+ * @param options The options parameters.
245
+ */
246
+ private _listNext(
247
+ nextLink: string,
248
+ options?: CertificatesListNextOptionalParams
249
+ ): Promise<CertificatesListNextResponse> {
250
+ return this.client.sendOperationRequest(
251
+ { nextLink, options },
252
+ listNextOperationSpec
253
+ );
254
+ }
255
+
256
+ /**
257
+ * ListByResourceGroupNext
258
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
259
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
260
+ * @param options The options parameters.
261
+ */
262
+ private _listByResourceGroupNext(
263
+ resourceGroupName: string,
264
+ nextLink: string,
265
+ options?: CertificatesListByResourceGroupNextOptionalParams
266
+ ): Promise<CertificatesListByResourceGroupNextResponse> {
267
+ return this.client.sendOperationRequest(
268
+ { resourceGroupName, nextLink, options },
269
+ listByResourceGroupNextOperationSpec
270
+ );
271
+ }
272
+ }
273
+ // Operation Specifications
274
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
275
+
276
+ const listOperationSpec: coreClient.OperationSpec = {
277
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates",
278
+ httpMethod: "GET",
279
+ responses: {
280
+ 200: {
281
+ bodyMapper: Mappers.CertificateCollection
282
+ },
283
+ default: {
284
+ bodyMapper: Mappers.DefaultErrorResponse
285
+ }
286
+ },
287
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
288
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
289
+ headerParameters: [Parameters.accept],
290
+ serializer
291
+ };
292
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
293
+ path:
294
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates",
295
+ httpMethod: "GET",
296
+ responses: {
297
+ 200: {
298
+ bodyMapper: Mappers.CertificateCollection
299
+ },
300
+ default: {
301
+ bodyMapper: Mappers.DefaultErrorResponse
302
+ }
303
+ },
304
+ queryParameters: [Parameters.apiVersion],
305
+ urlParameters: [
306
+ Parameters.$host,
307
+ Parameters.subscriptionId,
308
+ Parameters.resourceGroupName
309
+ ],
310
+ headerParameters: [Parameters.accept],
311
+ serializer
312
+ };
313
+ const getOperationSpec: coreClient.OperationSpec = {
314
+ path:
315
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
316
+ httpMethod: "GET",
317
+ responses: {
318
+ 200: {
319
+ bodyMapper: Mappers.Certificate
320
+ },
321
+ default: {
322
+ bodyMapper: Mappers.DefaultErrorResponse
323
+ }
324
+ },
325
+ queryParameters: [Parameters.apiVersion],
326
+ urlParameters: [
327
+ Parameters.$host,
328
+ Parameters.subscriptionId,
329
+ Parameters.resourceGroupName,
330
+ Parameters.name
331
+ ],
332
+ headerParameters: [Parameters.accept],
333
+ serializer
334
+ };
335
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
336
+ path:
337
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
338
+ httpMethod: "PUT",
339
+ responses: {
340
+ 200: {
341
+ bodyMapper: Mappers.Certificate
342
+ },
343
+ default: {
344
+ bodyMapper: Mappers.DefaultErrorResponse
345
+ }
346
+ },
347
+ requestBody: Parameters.certificateEnvelope,
348
+ queryParameters: [Parameters.apiVersion],
349
+ urlParameters: [
350
+ Parameters.$host,
351
+ Parameters.subscriptionId,
352
+ Parameters.resourceGroupName,
353
+ Parameters.name
354
+ ],
355
+ headerParameters: [Parameters.accept, Parameters.contentType],
356
+ mediaType: "json",
357
+ serializer
358
+ };
359
+ const deleteOperationSpec: coreClient.OperationSpec = {
360
+ path:
361
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
362
+ httpMethod: "DELETE",
363
+ responses: {
364
+ 200: {},
365
+ 204: {},
366
+ default: {
367
+ bodyMapper: Mappers.DefaultErrorResponse
368
+ }
369
+ },
370
+ queryParameters: [Parameters.apiVersion],
371
+ urlParameters: [
372
+ Parameters.$host,
373
+ Parameters.subscriptionId,
374
+ Parameters.resourceGroupName,
375
+ Parameters.name
376
+ ],
377
+ headerParameters: [Parameters.accept],
378
+ serializer
379
+ };
380
+ const updateOperationSpec: coreClient.OperationSpec = {
381
+ path:
382
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
383
+ httpMethod: "PATCH",
384
+ responses: {
385
+ 200: {
386
+ bodyMapper: Mappers.Certificate
387
+ },
388
+ default: {
389
+ bodyMapper: Mappers.DefaultErrorResponse
390
+ }
391
+ },
392
+ requestBody: Parameters.certificateEnvelope1,
393
+ queryParameters: [Parameters.apiVersion],
394
+ urlParameters: [
395
+ Parameters.$host,
396
+ Parameters.subscriptionId,
397
+ Parameters.resourceGroupName,
398
+ Parameters.name
399
+ ],
400
+ headerParameters: [Parameters.accept, Parameters.contentType],
401
+ mediaType: "json",
402
+ serializer
403
+ };
404
+ const listNextOperationSpec: coreClient.OperationSpec = {
405
+ path: "{nextLink}",
406
+ httpMethod: "GET",
407
+ responses: {
408
+ 200: {
409
+ bodyMapper: Mappers.CertificateCollection
410
+ },
411
+ default: {
412
+ bodyMapper: Mappers.DefaultErrorResponse
413
+ }
414
+ },
415
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
416
+ urlParameters: [
417
+ Parameters.$host,
418
+ Parameters.subscriptionId,
419
+ Parameters.nextLink
420
+ ],
421
+ headerParameters: [Parameters.accept],
422
+ serializer
423
+ };
424
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
425
+ path: "{nextLink}",
426
+ httpMethod: "GET",
427
+ responses: {
428
+ 200: {
429
+ bodyMapper: Mappers.CertificateCollection
430
+ },
431
+ default: {
432
+ bodyMapper: Mappers.DefaultErrorResponse
433
+ }
434
+ },
435
+ queryParameters: [Parameters.apiVersion],
436
+ urlParameters: [
437
+ Parameters.$host,
438
+ Parameters.subscriptionId,
439
+ Parameters.resourceGroupName,
440
+ Parameters.nextLink
441
+ ],
442
+ headerParameters: [Parameters.accept],
443
+ serializer
444
+ };