@azure/arm-appservice 10.0.0 → 11.0.0

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 (76) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/LICENSE +1 -1
  3. package/dist/index.js +6685 -4683
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/models/index.d.ts +588 -57
  8. package/dist-esm/src/models/index.d.ts.map +1 -1
  9. package/dist-esm/src/models/index.js +82 -37
  10. package/dist-esm/src/models/index.js.map +1 -1
  11. package/dist-esm/src/models/mappers.d.ts +28 -1
  12. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  13. package/dist-esm/src/models/mappers.js +1085 -16
  14. package/dist-esm/src/models/mappers.js.map +1 -1
  15. package/dist-esm/src/models/parameters.d.ts +2 -0
  16. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  17. package/dist-esm/src/models/parameters.js +17 -2
  18. package/dist-esm/src/models/parameters.js.map +1 -1
  19. package/dist-esm/src/operations/containerApps.d.ts +97 -0
  20. package/dist-esm/src/operations/containerApps.d.ts.map +1 -0
  21. package/dist-esm/src/operations/containerApps.js +444 -0
  22. package/dist-esm/src/operations/containerApps.js.map +1 -0
  23. package/dist-esm/src/operations/containerAppsRevisions.d.ts +70 -0
  24. package/dist-esm/src/operations/containerAppsRevisions.d.ts.map +1 -0
  25. package/dist-esm/src/operations/containerAppsRevisions.js +259 -0
  26. package/dist-esm/src/operations/containerAppsRevisions.js.map +1 -0
  27. package/dist-esm/src/operations/domains.d.ts +8 -1
  28. package/dist-esm/src/operations/domains.d.ts.map +1 -1
  29. package/dist-esm/src/operations/domains.js +33 -0
  30. package/dist-esm/src/operations/domains.js.map +1 -1
  31. package/dist-esm/src/operations/index.d.ts +2 -0
  32. package/dist-esm/src/operations/index.d.ts.map +1 -1
  33. package/dist-esm/src/operations/index.js +2 -0
  34. package/dist-esm/src/operations/index.js.map +1 -1
  35. package/dist-esm/src/operations/webApps.d.ts +8 -1
  36. package/dist-esm/src/operations/webApps.d.ts.map +1 -1
  37. package/dist-esm/src/operations/webApps.js +30 -0
  38. package/dist-esm/src/operations/webApps.js.map +1 -1
  39. package/dist-esm/src/operationsInterfaces/containerApps.d.ts +61 -0
  40. package/dist-esm/src/operationsInterfaces/containerApps.d.ts.map +1 -0
  41. package/dist-esm/src/operationsInterfaces/containerApps.js +9 -0
  42. package/dist-esm/src/operationsInterfaces/containerApps.js.map +1 -0
  43. package/dist-esm/src/operationsInterfaces/containerAppsRevisions.d.ts +45 -0
  44. package/dist-esm/src/operationsInterfaces/containerAppsRevisions.d.ts.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/containerAppsRevisions.js +9 -0
  46. package/dist-esm/src/operationsInterfaces/containerAppsRevisions.js.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/domains.d.ts +8 -1
  48. package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -1
  49. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  50. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  51. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  52. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  53. package/dist-esm/src/operationsInterfaces/webApps.d.ts +8 -1
  54. package/dist-esm/src/operationsInterfaces/webApps.d.ts.map +1 -1
  55. package/dist-esm/src/webSiteManagementClient.d.ts +23 -2
  56. package/dist-esm/src/webSiteManagementClient.d.ts.map +1 -1
  57. package/dist-esm/src/webSiteManagementClient.js +114 -12
  58. package/dist-esm/src/webSiteManagementClient.js.map +1 -1
  59. package/package.json +1 -1
  60. package/review/arm-appservice.api.md +468 -26
  61. package/src/models/index.ts +658 -58
  62. package/src/models/mappers.ts +1145 -20
  63. package/src/models/parameters.ts +19 -1
  64. package/src/operations/containerApps.ts +580 -0
  65. package/src/operations/containerAppsRevisions.ts +356 -0
  66. package/src/operations/domains.ts +44 -0
  67. package/src/operations/index.ts +2 -0
  68. package/src/operations/webApps.ts +41 -0
  69. package/src/operationsInterfaces/containerApps.ts +116 -0
  70. package/src/operationsInterfaces/containerAppsRevisions.ts +86 -0
  71. package/src/operationsInterfaces/domains.ts +14 -1
  72. package/src/operationsInterfaces/index.ts +2 -0
  73. package/src/operationsInterfaces/webApps.ts +13 -0
  74. package/src/webSiteManagementClient.ts +126 -2
  75. package/types/arm-appservice.d.ts +790 -52
  76. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,356 @@
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { ContainerAppsRevisions } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { WebSiteManagementClient } from "../webSiteManagementClient";
15
+ import {
16
+ Revision,
17
+ ContainerAppsRevisionsListRevisionsNextOptionalParams,
18
+ ContainerAppsRevisionsListRevisionsOptionalParams,
19
+ ContainerAppsRevisionsListRevisionsResponse,
20
+ ContainerAppsRevisionsGetRevisionOptionalParams,
21
+ ContainerAppsRevisionsGetRevisionResponse,
22
+ ContainerAppsRevisionsActivateRevisionOptionalParams,
23
+ ContainerAppsRevisionsDeactivateRevisionOptionalParams,
24
+ ContainerAppsRevisionsRestartRevisionOptionalParams,
25
+ ContainerAppsRevisionsListRevisionsNextResponse
26
+ } from "../models";
27
+
28
+ /// <reference lib="esnext.asynciterable" />
29
+ /** Class containing ContainerAppsRevisions operations. */
30
+ export class ContainerAppsRevisionsImpl implements ContainerAppsRevisions {
31
+ private readonly client: WebSiteManagementClient;
32
+
33
+ /**
34
+ * Initialize a new instance of the class ContainerAppsRevisions class.
35
+ * @param client Reference to the service client
36
+ */
37
+ constructor(client: WebSiteManagementClient) {
38
+ this.client = client;
39
+ }
40
+
41
+ /**
42
+ * Get the Revisions for a given Container App.
43
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
44
+ * @param containerAppName Name of the Container App for which Revisions are needed.
45
+ * @param options The options parameters.
46
+ */
47
+ public listRevisions(
48
+ resourceGroupName: string,
49
+ containerAppName: string,
50
+ options?: ContainerAppsRevisionsListRevisionsOptionalParams
51
+ ): PagedAsyncIterableIterator<Revision> {
52
+ const iter = this.listRevisionsPagingAll(
53
+ resourceGroupName,
54
+ containerAppName,
55
+ options
56
+ );
57
+ return {
58
+ next() {
59
+ return iter.next();
60
+ },
61
+ [Symbol.asyncIterator]() {
62
+ return this;
63
+ },
64
+ byPage: () => {
65
+ return this.listRevisionsPagingPage(
66
+ resourceGroupName,
67
+ containerAppName,
68
+ options
69
+ );
70
+ }
71
+ };
72
+ }
73
+
74
+ private async *listRevisionsPagingPage(
75
+ resourceGroupName: string,
76
+ containerAppName: string,
77
+ options?: ContainerAppsRevisionsListRevisionsOptionalParams
78
+ ): AsyncIterableIterator<Revision[]> {
79
+ let result = await this._listRevisions(
80
+ resourceGroupName,
81
+ containerAppName,
82
+ options
83
+ );
84
+ yield result.value || [];
85
+ let continuationToken = result.nextLink;
86
+ while (continuationToken) {
87
+ result = await this._listRevisionsNext(
88
+ resourceGroupName,
89
+ containerAppName,
90
+ continuationToken,
91
+ options
92
+ );
93
+ continuationToken = result.nextLink;
94
+ yield result.value || [];
95
+ }
96
+ }
97
+
98
+ private async *listRevisionsPagingAll(
99
+ resourceGroupName: string,
100
+ containerAppName: string,
101
+ options?: ContainerAppsRevisionsListRevisionsOptionalParams
102
+ ): AsyncIterableIterator<Revision> {
103
+ for await (const page of this.listRevisionsPagingPage(
104
+ resourceGroupName,
105
+ containerAppName,
106
+ options
107
+ )) {
108
+ yield* page;
109
+ }
110
+ }
111
+
112
+ /**
113
+ * Get the Revisions for a given Container App.
114
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
115
+ * @param containerAppName Name of the Container App for which Revisions are needed.
116
+ * @param options The options parameters.
117
+ */
118
+ private _listRevisions(
119
+ resourceGroupName: string,
120
+ containerAppName: string,
121
+ options?: ContainerAppsRevisionsListRevisionsOptionalParams
122
+ ): Promise<ContainerAppsRevisionsListRevisionsResponse> {
123
+ return this.client.sendOperationRequest(
124
+ { resourceGroupName, containerAppName, options },
125
+ listRevisionsOperationSpec
126
+ );
127
+ }
128
+
129
+ /**
130
+ * Get a revision of a Container App.
131
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
132
+ * @param containerAppName Name of the Container App.
133
+ * @param name Name of the Container App Revision.
134
+ * @param options The options parameters.
135
+ */
136
+ getRevision(
137
+ resourceGroupName: string,
138
+ containerAppName: string,
139
+ name: string,
140
+ options?: ContainerAppsRevisionsGetRevisionOptionalParams
141
+ ): Promise<ContainerAppsRevisionsGetRevisionResponse> {
142
+ return this.client.sendOperationRequest(
143
+ { resourceGroupName, containerAppName, name, options },
144
+ getRevisionOperationSpec
145
+ );
146
+ }
147
+
148
+ /**
149
+ * Activates a revision for a Container App
150
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
151
+ * @param containerAppName Name of the Container App.
152
+ * @param name Name of the Container App Revision to activate
153
+ * @param options The options parameters.
154
+ */
155
+ activateRevision(
156
+ resourceGroupName: string,
157
+ containerAppName: string,
158
+ name: string,
159
+ options?: ContainerAppsRevisionsActivateRevisionOptionalParams
160
+ ): Promise<void> {
161
+ return this.client.sendOperationRequest(
162
+ { resourceGroupName, containerAppName, name, options },
163
+ activateRevisionOperationSpec
164
+ );
165
+ }
166
+
167
+ /**
168
+ * Deactivates a revision for a Container App
169
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
170
+ * @param containerAppName Name of the Container App.
171
+ * @param name Name of the Container App Revision to deactivate
172
+ * @param options The options parameters.
173
+ */
174
+ deactivateRevision(
175
+ resourceGroupName: string,
176
+ containerAppName: string,
177
+ name: string,
178
+ options?: ContainerAppsRevisionsDeactivateRevisionOptionalParams
179
+ ): Promise<void> {
180
+ return this.client.sendOperationRequest(
181
+ { resourceGroupName, containerAppName, name, options },
182
+ deactivateRevisionOperationSpec
183
+ );
184
+ }
185
+
186
+ /**
187
+ * Restarts a revision for a Container App
188
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
189
+ * @param containerAppName Name of the Container App.
190
+ * @param name Name of the Container App Revision to restart
191
+ * @param options The options parameters.
192
+ */
193
+ restartRevision(
194
+ resourceGroupName: string,
195
+ containerAppName: string,
196
+ name: string,
197
+ options?: ContainerAppsRevisionsRestartRevisionOptionalParams
198
+ ): Promise<void> {
199
+ return this.client.sendOperationRequest(
200
+ { resourceGroupName, containerAppName, name, options },
201
+ restartRevisionOperationSpec
202
+ );
203
+ }
204
+
205
+ /**
206
+ * ListRevisionsNext
207
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
208
+ * @param containerAppName Name of the Container App for which Revisions are needed.
209
+ * @param nextLink The nextLink from the previous successful call to the ListRevisions method.
210
+ * @param options The options parameters.
211
+ */
212
+ private _listRevisionsNext(
213
+ resourceGroupName: string,
214
+ containerAppName: string,
215
+ nextLink: string,
216
+ options?: ContainerAppsRevisionsListRevisionsNextOptionalParams
217
+ ): Promise<ContainerAppsRevisionsListRevisionsNextResponse> {
218
+ return this.client.sendOperationRequest(
219
+ { resourceGroupName, containerAppName, nextLink, options },
220
+ listRevisionsNextOperationSpec
221
+ );
222
+ }
223
+ }
224
+ // Operation Specifications
225
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
226
+
227
+ const listRevisionsOperationSpec: coreClient.OperationSpec = {
228
+ path:
229
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions",
230
+ httpMethod: "GET",
231
+ responses: {
232
+ 200: {
233
+ bodyMapper: Mappers.RevisionCollection
234
+ },
235
+ default: {
236
+ bodyMapper: Mappers.DefaultErrorResponse
237
+ }
238
+ },
239
+ queryParameters: [Parameters.apiVersion],
240
+ urlParameters: [
241
+ Parameters.$host,
242
+ Parameters.subscriptionId,
243
+ Parameters.resourceGroupName,
244
+ Parameters.containerAppName
245
+ ],
246
+ headerParameters: [Parameters.accept],
247
+ serializer
248
+ };
249
+ const getRevisionOperationSpec: coreClient.OperationSpec = {
250
+ path:
251
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}",
252
+ httpMethod: "GET",
253
+ responses: {
254
+ 200: {
255
+ bodyMapper: Mappers.Revision
256
+ },
257
+ default: {
258
+ bodyMapper: Mappers.DefaultErrorResponse
259
+ }
260
+ },
261
+ queryParameters: [Parameters.apiVersion],
262
+ urlParameters: [
263
+ Parameters.$host,
264
+ Parameters.subscriptionId,
265
+ Parameters.resourceGroupName,
266
+ Parameters.name,
267
+ Parameters.containerAppName
268
+ ],
269
+ headerParameters: [Parameters.accept],
270
+ serializer
271
+ };
272
+ const activateRevisionOperationSpec: coreClient.OperationSpec = {
273
+ path:
274
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/activate",
275
+ httpMethod: "POST",
276
+ responses: {
277
+ 200: {},
278
+ default: {
279
+ bodyMapper: Mappers.DefaultErrorResponse
280
+ }
281
+ },
282
+ queryParameters: [Parameters.apiVersion],
283
+ urlParameters: [
284
+ Parameters.$host,
285
+ Parameters.subscriptionId,
286
+ Parameters.resourceGroupName,
287
+ Parameters.name,
288
+ Parameters.containerAppName
289
+ ],
290
+ headerParameters: [Parameters.accept],
291
+ serializer
292
+ };
293
+ const deactivateRevisionOperationSpec: coreClient.OperationSpec = {
294
+ path:
295
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/deactivate",
296
+ httpMethod: "POST",
297
+ responses: {
298
+ 200: {},
299
+ default: {
300
+ bodyMapper: Mappers.DefaultErrorResponse
301
+ }
302
+ },
303
+ queryParameters: [Parameters.apiVersion],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.resourceGroupName,
308
+ Parameters.name,
309
+ Parameters.containerAppName
310
+ ],
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ const restartRevisionOperationSpec: coreClient.OperationSpec = {
315
+ path:
316
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/restart",
317
+ httpMethod: "POST",
318
+ responses: {
319
+ 200: {},
320
+ default: {
321
+ bodyMapper: Mappers.DefaultErrorResponse
322
+ }
323
+ },
324
+ queryParameters: [Parameters.apiVersion],
325
+ urlParameters: [
326
+ Parameters.$host,
327
+ Parameters.subscriptionId,
328
+ Parameters.resourceGroupName,
329
+ Parameters.name,
330
+ Parameters.containerAppName
331
+ ],
332
+ headerParameters: [Parameters.accept],
333
+ serializer
334
+ };
335
+ const listRevisionsNextOperationSpec: coreClient.OperationSpec = {
336
+ path: "{nextLink}",
337
+ httpMethod: "GET",
338
+ responses: {
339
+ 200: {
340
+ bodyMapper: Mappers.RevisionCollection
341
+ },
342
+ default: {
343
+ bodyMapper: Mappers.DefaultErrorResponse
344
+ }
345
+ },
346
+ queryParameters: [Parameters.apiVersion],
347
+ urlParameters: [
348
+ Parameters.$host,
349
+ Parameters.subscriptionId,
350
+ Parameters.resourceGroupName,
351
+ Parameters.nextLink,
352
+ Parameters.containerAppName
353
+ ],
354
+ headerParameters: [Parameters.accept],
355
+ serializer
356
+ };
@@ -51,6 +51,8 @@ import {
51
51
  DomainsUpdateOwnershipIdentifierOptionalParams,
52
52
  DomainsUpdateOwnershipIdentifierResponse,
53
53
  DomainsRenewOptionalParams,
54
+ DomainsTransferOutOptionalParams,
55
+ DomainsTransferOutResponse,
54
56
  DomainsListNextResponse,
55
57
  DomainsListRecommendationsNextResponse,
56
58
  DomainsListByResourceGroupNextResponse,
@@ -628,6 +630,23 @@ export class DomainsImpl implements Domains {
628
630
  );
629
631
  }
630
632
 
633
+ /**
634
+ * Transfer out domain to another registrar
635
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
636
+ * @param domainName Name of domain.
637
+ * @param options The options parameters.
638
+ */
639
+ transferOut(
640
+ resourceGroupName: string,
641
+ domainName: string,
642
+ options?: DomainsTransferOutOptionalParams
643
+ ): Promise<DomainsTransferOutResponse> {
644
+ return this.client.sendOperationRequest(
645
+ { resourceGroupName, domainName, options },
646
+ transferOutOperationSpec
647
+ );
648
+ }
649
+
631
650
  /**
632
651
  * ListNext
633
652
  * @param nextLink The nextLink from the previous successful call to the List method.
@@ -1035,6 +1054,31 @@ const renewOperationSpec: coreClient.OperationSpec = {
1035
1054
  headerParameters: [Parameters.accept],
1036
1055
  serializer
1037
1056
  };
1057
+ const transferOutOperationSpec: coreClient.OperationSpec = {
1058
+ path:
1059
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut",
1060
+ httpMethod: "PUT",
1061
+ responses: {
1062
+ 200: {
1063
+ bodyMapper: Mappers.Domain
1064
+ },
1065
+ 400: {
1066
+ isError: true
1067
+ },
1068
+ default: {
1069
+ bodyMapper: Mappers.DefaultErrorResponse
1070
+ }
1071
+ },
1072
+ queryParameters: [Parameters.apiVersion],
1073
+ urlParameters: [
1074
+ Parameters.$host,
1075
+ Parameters.subscriptionId,
1076
+ Parameters.resourceGroupName,
1077
+ Parameters.domainName
1078
+ ],
1079
+ headerParameters: [Parameters.accept],
1080
+ serializer
1081
+ };
1038
1082
  const listNextOperationSpec: coreClient.OperationSpec = {
1039
1083
  path: "{nextLink}",
1040
1084
  httpMethod: "GET",
@@ -15,6 +15,8 @@ export * from "./domainRegistrationProvider";
15
15
  export * from "./appServiceEnvironments";
16
16
  export * from "./appServicePlans";
17
17
  export * from "./certificates";
18
+ export * from "./containerApps";
19
+ export * from "./containerAppsRevisions";
18
20
  export * from "./deletedWebApps";
19
21
  export * from "./diagnostics";
20
22
  export * from "./global";
@@ -211,6 +211,8 @@ import {
211
211
  WebAppsUpdateAuthSettingsResponse,
212
212
  WebAppsGetAuthSettingsOptionalParams,
213
213
  WebAppsGetAuthSettingsResponse,
214
+ WebAppsGetAuthSettingsV2WithoutSecretsOptionalParams,
215
+ WebAppsGetAuthSettingsV2WithoutSecretsResponse,
214
216
  SiteAuthSettingsV2,
215
217
  WebAppsUpdateAuthSettingsV2OptionalParams,
216
218
  WebAppsUpdateAuthSettingsV2Response,
@@ -6287,6 +6289,23 @@ export class WebAppsImpl implements WebApps {
6287
6289
  );
6288
6290
  }
6289
6291
 
6292
+ /**
6293
+ * Description for Gets site's Authentication / Authorization settings for apps via the V2 format
6294
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
6295
+ * @param name Name of the app.
6296
+ * @param options The options parameters.
6297
+ */
6298
+ getAuthSettingsV2WithoutSecrets(
6299
+ resourceGroupName: string,
6300
+ name: string,
6301
+ options?: WebAppsGetAuthSettingsV2WithoutSecretsOptionalParams
6302
+ ): Promise<WebAppsGetAuthSettingsV2WithoutSecretsResponse> {
6303
+ return this.client.sendOperationRequest(
6304
+ { resourceGroupName, name, options },
6305
+ getAuthSettingsV2WithoutSecretsOperationSpec
6306
+ );
6307
+ }
6308
+
6290
6309
  /**
6291
6310
  * Description for Updates site's Authentication / Authorization settings for apps via the V2 format
6292
6311
  * @param resourceGroupName Name of the resource group to which the resource belongs.
@@ -18156,6 +18175,28 @@ const getAuthSettingsOperationSpec: coreClient.OperationSpec = {
18156
18175
  headerParameters: [Parameters.accept],
18157
18176
  serializer
18158
18177
  };
18178
+ const getAuthSettingsV2WithoutSecretsOperationSpec: coreClient.OperationSpec = {
18179
+ path:
18180
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2",
18181
+ httpMethod: "GET",
18182
+ responses: {
18183
+ 200: {
18184
+ bodyMapper: Mappers.SiteAuthSettingsV2
18185
+ },
18186
+ default: {
18187
+ bodyMapper: Mappers.DefaultErrorResponse
18188
+ }
18189
+ },
18190
+ queryParameters: [Parameters.apiVersion],
18191
+ urlParameters: [
18192
+ Parameters.$host,
18193
+ Parameters.subscriptionId,
18194
+ Parameters.resourceGroupName,
18195
+ Parameters.name
18196
+ ],
18197
+ headerParameters: [Parameters.accept],
18198
+ serializer
18199
+ };
18159
18200
  const updateAuthSettingsV2OperationSpec: coreClient.OperationSpec = {
18160
18201
  path:
18161
18202
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2",
@@ -0,0 +1,116 @@
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ ContainerApp,
13
+ ContainerAppsListBySubscriptionOptionalParams,
14
+ ContainerAppsListByResourceGroupOptionalParams,
15
+ ContainerAppsGetOptionalParams,
16
+ ContainerAppsGetResponse,
17
+ ContainerAppsCreateOrUpdateOptionalParams,
18
+ ContainerAppsCreateOrUpdateResponse,
19
+ ContainerAppsDeleteOptionalParams,
20
+ ContainerAppsListSecretsOptionalParams,
21
+ ContainerAppsListSecretsResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a ContainerApps. */
26
+ export interface ContainerApps {
27
+ /**
28
+ * Get the Container Apps in a given subscription.
29
+ * @param options The options parameters.
30
+ */
31
+ listBySubscription(
32
+ options?: ContainerAppsListBySubscriptionOptionalParams
33
+ ): PagedAsyncIterableIterator<ContainerApp>;
34
+ /**
35
+ * Get the Container Apps in a given resource group.
36
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
37
+ * @param options The options parameters.
38
+ */
39
+ listByResourceGroup(
40
+ resourceGroupName: string,
41
+ options?: ContainerAppsListByResourceGroupOptionalParams
42
+ ): PagedAsyncIterableIterator<ContainerApp>;
43
+ /**
44
+ * Get the properties of a Container App.
45
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
46
+ * @param name Name of the Container App.
47
+ * @param options The options parameters.
48
+ */
49
+ get(
50
+ resourceGroupName: string,
51
+ name: string,
52
+ options?: ContainerAppsGetOptionalParams
53
+ ): Promise<ContainerAppsGetResponse>;
54
+ /**
55
+ * Description for Create or update a Container App.
56
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
57
+ * @param name Name of the Container App.
58
+ * @param containerAppEnvelope Container App.
59
+ * @param options The options parameters.
60
+ */
61
+ beginCreateOrUpdate(
62
+ resourceGroupName: string,
63
+ name: string,
64
+ containerAppEnvelope: ContainerApp,
65
+ options?: ContainerAppsCreateOrUpdateOptionalParams
66
+ ): Promise<
67
+ PollerLike<
68
+ PollOperationState<ContainerAppsCreateOrUpdateResponse>,
69
+ ContainerAppsCreateOrUpdateResponse
70
+ >
71
+ >;
72
+ /**
73
+ * Description for Create or update a Container App.
74
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
75
+ * @param name Name of the Container App.
76
+ * @param containerAppEnvelope Container App.
77
+ * @param options The options parameters.
78
+ */
79
+ beginCreateOrUpdateAndWait(
80
+ resourceGroupName: string,
81
+ name: string,
82
+ containerAppEnvelope: ContainerApp,
83
+ options?: ContainerAppsCreateOrUpdateOptionalParams
84
+ ): Promise<ContainerAppsCreateOrUpdateResponse>;
85
+ /**
86
+ * Description for Delete a Container App.
87
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
88
+ * @param name Name of the Container App.
89
+ * @param options The options parameters.
90
+ */
91
+ beginDelete(
92
+ resourceGroupName: string,
93
+ name: string,
94
+ options?: ContainerAppsDeleteOptionalParams
95
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
96
+ /**
97
+ * Description for Delete a Container App.
98
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
99
+ * @param name Name of the Container App.
100
+ * @param options The options parameters.
101
+ */
102
+ beginDeleteAndWait(
103
+ resourceGroupName: string,
104
+ name: string,
105
+ options?: ContainerAppsDeleteOptionalParams
106
+ ): Promise<void>;
107
+ /**
108
+ * List secrets for a container app
109
+ * @param name Name of the Container App.
110
+ * @param options The options parameters.
111
+ */
112
+ listSecrets(
113
+ name: string,
114
+ options?: ContainerAppsListSecretsOptionalParams
115
+ ): Promise<ContainerAppsListSecretsResponse>;
116
+ }
@@ -0,0 +1,86 @@
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Revision,
12
+ ContainerAppsRevisionsListRevisionsOptionalParams,
13
+ ContainerAppsRevisionsGetRevisionOptionalParams,
14
+ ContainerAppsRevisionsGetRevisionResponse,
15
+ ContainerAppsRevisionsActivateRevisionOptionalParams,
16
+ ContainerAppsRevisionsDeactivateRevisionOptionalParams,
17
+ ContainerAppsRevisionsRestartRevisionOptionalParams
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a ContainerAppsRevisions. */
22
+ export interface ContainerAppsRevisions {
23
+ /**
24
+ * Get the Revisions for a given Container App.
25
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
26
+ * @param containerAppName Name of the Container App for which Revisions are needed.
27
+ * @param options The options parameters.
28
+ */
29
+ listRevisions(
30
+ resourceGroupName: string,
31
+ containerAppName: string,
32
+ options?: ContainerAppsRevisionsListRevisionsOptionalParams
33
+ ): PagedAsyncIterableIterator<Revision>;
34
+ /**
35
+ * Get a revision of a Container App.
36
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
37
+ * @param containerAppName Name of the Container App.
38
+ * @param name Name of the Container App Revision.
39
+ * @param options The options parameters.
40
+ */
41
+ getRevision(
42
+ resourceGroupName: string,
43
+ containerAppName: string,
44
+ name: string,
45
+ options?: ContainerAppsRevisionsGetRevisionOptionalParams
46
+ ): Promise<ContainerAppsRevisionsGetRevisionResponse>;
47
+ /**
48
+ * Activates a revision for a Container App
49
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
50
+ * @param containerAppName Name of the Container App.
51
+ * @param name Name of the Container App Revision to activate
52
+ * @param options The options parameters.
53
+ */
54
+ activateRevision(
55
+ resourceGroupName: string,
56
+ containerAppName: string,
57
+ name: string,
58
+ options?: ContainerAppsRevisionsActivateRevisionOptionalParams
59
+ ): Promise<void>;
60
+ /**
61
+ * Deactivates a revision for a Container App
62
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
63
+ * @param containerAppName Name of the Container App.
64
+ * @param name Name of the Container App Revision to deactivate
65
+ * @param options The options parameters.
66
+ */
67
+ deactivateRevision(
68
+ resourceGroupName: string,
69
+ containerAppName: string,
70
+ name: string,
71
+ options?: ContainerAppsRevisionsDeactivateRevisionOptionalParams
72
+ ): Promise<void>;
73
+ /**
74
+ * Restarts a revision for a Container App
75
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
76
+ * @param containerAppName Name of the Container App.
77
+ * @param name Name of the Container App Revision to restart
78
+ * @param options The options parameters.
79
+ */
80
+ restartRevision(
81
+ resourceGroupName: string,
82
+ containerAppName: string,
83
+ name: string,
84
+ options?: ContainerAppsRevisionsRestartRevisionOptionalParams
85
+ ): Promise<void>;
86
+ }