@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.
- package/CHANGELOG.md +106 -0
- package/LICENSE +1 -1
- package/dist/index.js +6685 -4683
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +588 -57
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +82 -37
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +28 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1085 -16
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +17 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/containerApps.d.ts +97 -0
- package/dist-esm/src/operations/containerApps.d.ts.map +1 -0
- package/dist-esm/src/operations/containerApps.js +444 -0
- package/dist-esm/src/operations/containerApps.js.map +1 -0
- package/dist-esm/src/operations/containerAppsRevisions.d.ts +70 -0
- package/dist-esm/src/operations/containerAppsRevisions.d.ts.map +1 -0
- package/dist-esm/src/operations/containerAppsRevisions.js +259 -0
- package/dist-esm/src/operations/containerAppsRevisions.js.map +1 -0
- package/dist-esm/src/operations/domains.d.ts +8 -1
- package/dist-esm/src/operations/domains.d.ts.map +1 -1
- package/dist-esm/src/operations/domains.js +33 -0
- package/dist-esm/src/operations/domains.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/webApps.d.ts +8 -1
- package/dist-esm/src/operations/webApps.d.ts.map +1 -1
- package/dist-esm/src/operations/webApps.js +30 -0
- package/dist-esm/src/operations/webApps.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/containerApps.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/containerApps.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerApps.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerApps.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerAppsRevisions.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/containerAppsRevisions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerAppsRevisions.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerAppsRevisions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/domains.d.ts +8 -1
- package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/webApps.d.ts +8 -1
- package/dist-esm/src/operationsInterfaces/webApps.d.ts.map +1 -1
- package/dist-esm/src/webSiteManagementClient.d.ts +23 -2
- package/dist-esm/src/webSiteManagementClient.d.ts.map +1 -1
- package/dist-esm/src/webSiteManagementClient.js +114 -12
- package/dist-esm/src/webSiteManagementClient.js.map +1 -1
- package/package.json +1 -1
- package/review/arm-appservice.api.md +468 -26
- package/src/models/index.ts +658 -58
- package/src/models/mappers.ts +1145 -20
- package/src/models/parameters.ts +19 -1
- package/src/operations/containerApps.ts +580 -0
- package/src/operations/containerAppsRevisions.ts +356 -0
- package/src/operations/domains.ts +44 -0
- package/src/operations/index.ts +2 -0
- package/src/operations/webApps.ts +41 -0
- package/src/operationsInterfaces/containerApps.ts +116 -0
- package/src/operationsInterfaces/containerAppsRevisions.ts +86 -0
- package/src/operationsInterfaces/domains.ts +14 -1
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/webApps.ts +13 -0
- package/src/webSiteManagementClient.ts +126 -2
- package/types/arm-appservice.d.ts +790 -52
- package/types/tsdoc-metadata.json +1 -1
package/src/models/parameters.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
VnetRoute as VnetRouteMapper,
|
|
38
38
|
Certificate as CertificateMapper,
|
|
39
39
|
CertificatePatchResource as CertificatePatchResourceMapper,
|
|
40
|
+
ContainerApp as ContainerAppMapper,
|
|
40
41
|
KubeEnvironment as KubeEnvironmentMapper,
|
|
41
42
|
KubeEnvironmentPatchResource as KubeEnvironmentPatchResourceMapper,
|
|
42
43
|
User as UserMapper,
|
|
@@ -131,7 +132,7 @@ export const subscriptionId: OperationURLParameter = {
|
|
|
131
132
|
export const apiVersion: OperationQueryParameter = {
|
|
132
133
|
parameterPath: "apiVersion",
|
|
133
134
|
mapper: {
|
|
134
|
-
defaultValue: "2021-
|
|
135
|
+
defaultValue: "2021-03-01",
|
|
135
136
|
isConstant: true,
|
|
136
137
|
serializedName: "api-version",
|
|
137
138
|
type: {
|
|
@@ -630,6 +631,23 @@ export const certificateEnvelope1: OperationParameter = {
|
|
|
630
631
|
mapper: CertificatePatchResourceMapper
|
|
631
632
|
};
|
|
632
633
|
|
|
634
|
+
export const containerAppEnvelope: OperationParameter = {
|
|
635
|
+
parameterPath: "containerAppEnvelope",
|
|
636
|
+
mapper: ContainerAppMapper
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
export const containerAppName: OperationURLParameter = {
|
|
640
|
+
parameterPath: "containerAppName",
|
|
641
|
+
mapper: {
|
|
642
|
+
serializedName: "containerAppName",
|
|
643
|
+
required: true,
|
|
644
|
+
xmlName: "containerAppName",
|
|
645
|
+
type: {
|
|
646
|
+
name: "String"
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
|
|
633
651
|
export const location: OperationURLParameter = {
|
|
634
652
|
parameterPath: "location",
|
|
635
653
|
mapper: {
|
|
@@ -0,0 +1,580 @@
|
|
|
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 { ContainerApps } 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
ContainerApp,
|
|
19
|
+
ContainerAppsListBySubscriptionNextOptionalParams,
|
|
20
|
+
ContainerAppsListBySubscriptionOptionalParams,
|
|
21
|
+
ContainerAppsListByResourceGroupNextOptionalParams,
|
|
22
|
+
ContainerAppsListByResourceGroupOptionalParams,
|
|
23
|
+
ContainerAppsListBySubscriptionResponse,
|
|
24
|
+
ContainerAppsListByResourceGroupResponse,
|
|
25
|
+
ContainerAppsGetOptionalParams,
|
|
26
|
+
ContainerAppsGetResponse,
|
|
27
|
+
ContainerAppsCreateOrUpdateOptionalParams,
|
|
28
|
+
ContainerAppsCreateOrUpdateResponse,
|
|
29
|
+
ContainerAppsDeleteOptionalParams,
|
|
30
|
+
ContainerAppsListSecretsOptionalParams,
|
|
31
|
+
ContainerAppsListSecretsResponse,
|
|
32
|
+
ContainerAppsListBySubscriptionNextResponse,
|
|
33
|
+
ContainerAppsListByResourceGroupNextResponse
|
|
34
|
+
} from "../models";
|
|
35
|
+
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing ContainerApps operations. */
|
|
38
|
+
export class ContainerAppsImpl implements ContainerApps {
|
|
39
|
+
private readonly client: WebSiteManagementClient;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initialize a new instance of the class ContainerApps class.
|
|
43
|
+
* @param client Reference to the service client
|
|
44
|
+
*/
|
|
45
|
+
constructor(client: WebSiteManagementClient) {
|
|
46
|
+
this.client = client;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Get the Container Apps in a given subscription.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
public listBySubscription(
|
|
54
|
+
options?: ContainerAppsListBySubscriptionOptionalParams
|
|
55
|
+
): PagedAsyncIterableIterator<ContainerApp> {
|
|
56
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
57
|
+
return {
|
|
58
|
+
next() {
|
|
59
|
+
return iter.next();
|
|
60
|
+
},
|
|
61
|
+
[Symbol.asyncIterator]() {
|
|
62
|
+
return this;
|
|
63
|
+
},
|
|
64
|
+
byPage: () => {
|
|
65
|
+
return this.listBySubscriptionPagingPage(options);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listBySubscriptionPagingPage(
|
|
71
|
+
options?: ContainerAppsListBySubscriptionOptionalParams
|
|
72
|
+
): AsyncIterableIterator<ContainerApp[]> {
|
|
73
|
+
let result = await this._listBySubscription(options);
|
|
74
|
+
yield result.value || [];
|
|
75
|
+
let continuationToken = result.nextLink;
|
|
76
|
+
while (continuationToken) {
|
|
77
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listBySubscriptionPagingAll(
|
|
84
|
+
options?: ContainerAppsListBySubscriptionOptionalParams
|
|
85
|
+
): AsyncIterableIterator<ContainerApp> {
|
|
86
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
87
|
+
yield* page;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get the Container Apps in a given 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?: ContainerAppsListByResourceGroupOptionalParams
|
|
99
|
+
): PagedAsyncIterableIterator<ContainerApp> {
|
|
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?: ContainerAppsListByResourceGroupOptionalParams
|
|
117
|
+
): AsyncIterableIterator<ContainerApp[]> {
|
|
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?: ContainerAppsListByResourceGroupOptionalParams
|
|
135
|
+
): AsyncIterableIterator<ContainerApp> {
|
|
136
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
137
|
+
resourceGroupName,
|
|
138
|
+
options
|
|
139
|
+
)) {
|
|
140
|
+
yield* page;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Get the Container Apps in a given subscription.
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
private _listBySubscription(
|
|
149
|
+
options?: ContainerAppsListBySubscriptionOptionalParams
|
|
150
|
+
): Promise<ContainerAppsListBySubscriptionResponse> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ options },
|
|
153
|
+
listBySubscriptionOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Get the Container Apps in a given resource group.
|
|
159
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
160
|
+
* @param options The options parameters.
|
|
161
|
+
*/
|
|
162
|
+
private _listByResourceGroup(
|
|
163
|
+
resourceGroupName: string,
|
|
164
|
+
options?: ContainerAppsListByResourceGroupOptionalParams
|
|
165
|
+
): Promise<ContainerAppsListByResourceGroupResponse> {
|
|
166
|
+
return this.client.sendOperationRequest(
|
|
167
|
+
{ resourceGroupName, options },
|
|
168
|
+
listByResourceGroupOperationSpec
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Get the properties of a Container App.
|
|
174
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
175
|
+
* @param name Name of the Container App.
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
get(
|
|
179
|
+
resourceGroupName: string,
|
|
180
|
+
name: string,
|
|
181
|
+
options?: ContainerAppsGetOptionalParams
|
|
182
|
+
): Promise<ContainerAppsGetResponse> {
|
|
183
|
+
return this.client.sendOperationRequest(
|
|
184
|
+
{ resourceGroupName, name, options },
|
|
185
|
+
getOperationSpec
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Description for Create or update a Container App.
|
|
191
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
192
|
+
* @param name Name of the Container App.
|
|
193
|
+
* @param containerAppEnvelope Container App.
|
|
194
|
+
* @param options The options parameters.
|
|
195
|
+
*/
|
|
196
|
+
async beginCreateOrUpdate(
|
|
197
|
+
resourceGroupName: string,
|
|
198
|
+
name: string,
|
|
199
|
+
containerAppEnvelope: ContainerApp,
|
|
200
|
+
options?: ContainerAppsCreateOrUpdateOptionalParams
|
|
201
|
+
): Promise<
|
|
202
|
+
PollerLike<
|
|
203
|
+
PollOperationState<ContainerAppsCreateOrUpdateResponse>,
|
|
204
|
+
ContainerAppsCreateOrUpdateResponse
|
|
205
|
+
>
|
|
206
|
+
> {
|
|
207
|
+
const directSendOperation = async (
|
|
208
|
+
args: coreClient.OperationArguments,
|
|
209
|
+
spec: coreClient.OperationSpec
|
|
210
|
+
): Promise<ContainerAppsCreateOrUpdateResponse> => {
|
|
211
|
+
return this.client.sendOperationRequest(args, spec);
|
|
212
|
+
};
|
|
213
|
+
const sendOperation = async (
|
|
214
|
+
args: coreClient.OperationArguments,
|
|
215
|
+
spec: coreClient.OperationSpec
|
|
216
|
+
) => {
|
|
217
|
+
let currentRawResponse:
|
|
218
|
+
| coreClient.FullOperationResponse
|
|
219
|
+
| undefined = undefined;
|
|
220
|
+
const providedCallback = args.options?.onResponse;
|
|
221
|
+
const callback: coreClient.RawResponseCallback = (
|
|
222
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
223
|
+
flatResponse: unknown
|
|
224
|
+
) => {
|
|
225
|
+
currentRawResponse = rawResponse;
|
|
226
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
227
|
+
};
|
|
228
|
+
const updatedArgs = {
|
|
229
|
+
...args,
|
|
230
|
+
options: {
|
|
231
|
+
...args.options,
|
|
232
|
+
onResponse: callback
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
236
|
+
return {
|
|
237
|
+
flatResponse,
|
|
238
|
+
rawResponse: {
|
|
239
|
+
statusCode: currentRawResponse!.status,
|
|
240
|
+
body: currentRawResponse!.parsedBody,
|
|
241
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
const lro = new LroImpl(
|
|
247
|
+
sendOperation,
|
|
248
|
+
{ resourceGroupName, name, containerAppEnvelope, options },
|
|
249
|
+
createOrUpdateOperationSpec
|
|
250
|
+
);
|
|
251
|
+
return new LroEngine(lro, {
|
|
252
|
+
resumeFrom: options?.resumeFrom,
|
|
253
|
+
intervalInMs: options?.updateIntervalInMs
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Description for Create or update a Container App.
|
|
259
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
260
|
+
* @param name Name of the Container App.
|
|
261
|
+
* @param containerAppEnvelope Container App.
|
|
262
|
+
* @param options The options parameters.
|
|
263
|
+
*/
|
|
264
|
+
async beginCreateOrUpdateAndWait(
|
|
265
|
+
resourceGroupName: string,
|
|
266
|
+
name: string,
|
|
267
|
+
containerAppEnvelope: ContainerApp,
|
|
268
|
+
options?: ContainerAppsCreateOrUpdateOptionalParams
|
|
269
|
+
): Promise<ContainerAppsCreateOrUpdateResponse> {
|
|
270
|
+
const poller = await this.beginCreateOrUpdate(
|
|
271
|
+
resourceGroupName,
|
|
272
|
+
name,
|
|
273
|
+
containerAppEnvelope,
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
return poller.pollUntilDone();
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Description for Delete a Container App.
|
|
281
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
282
|
+
* @param name Name of the Container App.
|
|
283
|
+
* @param options The options parameters.
|
|
284
|
+
*/
|
|
285
|
+
async beginDelete(
|
|
286
|
+
resourceGroupName: string,
|
|
287
|
+
name: string,
|
|
288
|
+
options?: ContainerAppsDeleteOptionalParams
|
|
289
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
290
|
+
const directSendOperation = async (
|
|
291
|
+
args: coreClient.OperationArguments,
|
|
292
|
+
spec: coreClient.OperationSpec
|
|
293
|
+
): Promise<void> => {
|
|
294
|
+
return this.client.sendOperationRequest(args, spec);
|
|
295
|
+
};
|
|
296
|
+
const sendOperation = async (
|
|
297
|
+
args: coreClient.OperationArguments,
|
|
298
|
+
spec: coreClient.OperationSpec
|
|
299
|
+
) => {
|
|
300
|
+
let currentRawResponse:
|
|
301
|
+
| coreClient.FullOperationResponse
|
|
302
|
+
| undefined = undefined;
|
|
303
|
+
const providedCallback = args.options?.onResponse;
|
|
304
|
+
const callback: coreClient.RawResponseCallback = (
|
|
305
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
306
|
+
flatResponse: unknown
|
|
307
|
+
) => {
|
|
308
|
+
currentRawResponse = rawResponse;
|
|
309
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
310
|
+
};
|
|
311
|
+
const updatedArgs = {
|
|
312
|
+
...args,
|
|
313
|
+
options: {
|
|
314
|
+
...args.options,
|
|
315
|
+
onResponse: callback
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
319
|
+
return {
|
|
320
|
+
flatResponse,
|
|
321
|
+
rawResponse: {
|
|
322
|
+
statusCode: currentRawResponse!.status,
|
|
323
|
+
body: currentRawResponse!.parsedBody,
|
|
324
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
const lro = new LroImpl(
|
|
330
|
+
sendOperation,
|
|
331
|
+
{ resourceGroupName, name, options },
|
|
332
|
+
deleteOperationSpec
|
|
333
|
+
);
|
|
334
|
+
return new LroEngine(lro, {
|
|
335
|
+
resumeFrom: options?.resumeFrom,
|
|
336
|
+
intervalInMs: options?.updateIntervalInMs
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Description for Delete a Container App.
|
|
342
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
343
|
+
* @param name Name of the Container App.
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
async beginDeleteAndWait(
|
|
347
|
+
resourceGroupName: string,
|
|
348
|
+
name: string,
|
|
349
|
+
options?: ContainerAppsDeleteOptionalParams
|
|
350
|
+
): Promise<void> {
|
|
351
|
+
const poller = await this.beginDelete(resourceGroupName, name, options);
|
|
352
|
+
return poller.pollUntilDone();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* List secrets for a container app
|
|
357
|
+
* @param name Name of the Container App.
|
|
358
|
+
* @param options The options parameters.
|
|
359
|
+
*/
|
|
360
|
+
listSecrets(
|
|
361
|
+
name: string,
|
|
362
|
+
options?: ContainerAppsListSecretsOptionalParams
|
|
363
|
+
): Promise<ContainerAppsListSecretsResponse> {
|
|
364
|
+
return this.client.sendOperationRequest(
|
|
365
|
+
{ name, options },
|
|
366
|
+
listSecretsOperationSpec
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* ListBySubscriptionNext
|
|
372
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
373
|
+
* @param options The options parameters.
|
|
374
|
+
*/
|
|
375
|
+
private _listBySubscriptionNext(
|
|
376
|
+
nextLink: string,
|
|
377
|
+
options?: ContainerAppsListBySubscriptionNextOptionalParams
|
|
378
|
+
): Promise<ContainerAppsListBySubscriptionNextResponse> {
|
|
379
|
+
return this.client.sendOperationRequest(
|
|
380
|
+
{ nextLink, options },
|
|
381
|
+
listBySubscriptionNextOperationSpec
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* ListByResourceGroupNext
|
|
387
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
388
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
389
|
+
* @param options The options parameters.
|
|
390
|
+
*/
|
|
391
|
+
private _listByResourceGroupNext(
|
|
392
|
+
resourceGroupName: string,
|
|
393
|
+
nextLink: string,
|
|
394
|
+
options?: ContainerAppsListByResourceGroupNextOptionalParams
|
|
395
|
+
): Promise<ContainerAppsListByResourceGroupNextResponse> {
|
|
396
|
+
return this.client.sendOperationRequest(
|
|
397
|
+
{ resourceGroupName, nextLink, options },
|
|
398
|
+
listByResourceGroupNextOperationSpec
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
// Operation Specifications
|
|
403
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
404
|
+
|
|
405
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
406
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps",
|
|
407
|
+
httpMethod: "GET",
|
|
408
|
+
responses: {
|
|
409
|
+
200: {
|
|
410
|
+
bodyMapper: Mappers.ContainerAppCollection
|
|
411
|
+
},
|
|
412
|
+
default: {
|
|
413
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
queryParameters: [Parameters.apiVersion],
|
|
417
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
418
|
+
headerParameters: [Parameters.accept],
|
|
419
|
+
serializer
|
|
420
|
+
};
|
|
421
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
422
|
+
path:
|
|
423
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps",
|
|
424
|
+
httpMethod: "GET",
|
|
425
|
+
responses: {
|
|
426
|
+
200: {
|
|
427
|
+
bodyMapper: Mappers.ContainerAppCollection
|
|
428
|
+
},
|
|
429
|
+
default: {
|
|
430
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
queryParameters: [Parameters.apiVersion],
|
|
434
|
+
urlParameters: [
|
|
435
|
+
Parameters.$host,
|
|
436
|
+
Parameters.subscriptionId,
|
|
437
|
+
Parameters.resourceGroupName
|
|
438
|
+
],
|
|
439
|
+
headerParameters: [Parameters.accept],
|
|
440
|
+
serializer
|
|
441
|
+
};
|
|
442
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
443
|
+
path:
|
|
444
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}",
|
|
445
|
+
httpMethod: "GET",
|
|
446
|
+
responses: {
|
|
447
|
+
200: {
|
|
448
|
+
bodyMapper: Mappers.ContainerApp
|
|
449
|
+
},
|
|
450
|
+
404: {
|
|
451
|
+
isError: true
|
|
452
|
+
},
|
|
453
|
+
default: {
|
|
454
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
queryParameters: [Parameters.apiVersion],
|
|
458
|
+
urlParameters: [
|
|
459
|
+
Parameters.$host,
|
|
460
|
+
Parameters.subscriptionId,
|
|
461
|
+
Parameters.resourceGroupName,
|
|
462
|
+
Parameters.name
|
|
463
|
+
],
|
|
464
|
+
headerParameters: [Parameters.accept],
|
|
465
|
+
serializer
|
|
466
|
+
};
|
|
467
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
468
|
+
path:
|
|
469
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}",
|
|
470
|
+
httpMethod: "PUT",
|
|
471
|
+
responses: {
|
|
472
|
+
200: {
|
|
473
|
+
bodyMapper: Mappers.ContainerApp
|
|
474
|
+
},
|
|
475
|
+
201: {
|
|
476
|
+
bodyMapper: Mappers.ContainerApp
|
|
477
|
+
},
|
|
478
|
+
202: {
|
|
479
|
+
bodyMapper: Mappers.ContainerApp
|
|
480
|
+
},
|
|
481
|
+
204: {
|
|
482
|
+
bodyMapper: Mappers.ContainerApp
|
|
483
|
+
},
|
|
484
|
+
default: {
|
|
485
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
requestBody: Parameters.containerAppEnvelope,
|
|
489
|
+
queryParameters: [Parameters.apiVersion],
|
|
490
|
+
urlParameters: [
|
|
491
|
+
Parameters.$host,
|
|
492
|
+
Parameters.subscriptionId,
|
|
493
|
+
Parameters.resourceGroupName,
|
|
494
|
+
Parameters.name
|
|
495
|
+
],
|
|
496
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
497
|
+
mediaType: "json",
|
|
498
|
+
serializer
|
|
499
|
+
};
|
|
500
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
501
|
+
path:
|
|
502
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}",
|
|
503
|
+
httpMethod: "DELETE",
|
|
504
|
+
responses: {
|
|
505
|
+
200: {},
|
|
506
|
+
201: {},
|
|
507
|
+
202: {},
|
|
508
|
+
204: {},
|
|
509
|
+
default: {
|
|
510
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
|
+
urlParameters: [
|
|
515
|
+
Parameters.$host,
|
|
516
|
+
Parameters.subscriptionId,
|
|
517
|
+
Parameters.resourceGroupName,
|
|
518
|
+
Parameters.name
|
|
519
|
+
],
|
|
520
|
+
headerParameters: [Parameters.accept],
|
|
521
|
+
serializer
|
|
522
|
+
};
|
|
523
|
+
const listSecretsOperationSpec: coreClient.OperationSpec = {
|
|
524
|
+
path:
|
|
525
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps/{name}/listSecrets",
|
|
526
|
+
httpMethod: "POST",
|
|
527
|
+
responses: {
|
|
528
|
+
200: {
|
|
529
|
+
bodyMapper: Mappers.SecretsCollection
|
|
530
|
+
},
|
|
531
|
+
default: {
|
|
532
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
queryParameters: [Parameters.apiVersion],
|
|
536
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.name],
|
|
537
|
+
headerParameters: [Parameters.accept],
|
|
538
|
+
serializer
|
|
539
|
+
};
|
|
540
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
541
|
+
path: "{nextLink}",
|
|
542
|
+
httpMethod: "GET",
|
|
543
|
+
responses: {
|
|
544
|
+
200: {
|
|
545
|
+
bodyMapper: Mappers.ContainerAppCollection
|
|
546
|
+
},
|
|
547
|
+
default: {
|
|
548
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
queryParameters: [Parameters.apiVersion],
|
|
552
|
+
urlParameters: [
|
|
553
|
+
Parameters.$host,
|
|
554
|
+
Parameters.subscriptionId,
|
|
555
|
+
Parameters.nextLink
|
|
556
|
+
],
|
|
557
|
+
headerParameters: [Parameters.accept],
|
|
558
|
+
serializer
|
|
559
|
+
};
|
|
560
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
561
|
+
path: "{nextLink}",
|
|
562
|
+
httpMethod: "GET",
|
|
563
|
+
responses: {
|
|
564
|
+
200: {
|
|
565
|
+
bodyMapper: Mappers.ContainerAppCollection
|
|
566
|
+
},
|
|
567
|
+
default: {
|
|
568
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
queryParameters: [Parameters.apiVersion],
|
|
572
|
+
urlParameters: [
|
|
573
|
+
Parameters.$host,
|
|
574
|
+
Parameters.subscriptionId,
|
|
575
|
+
Parameters.resourceGroupName,
|
|
576
|
+
Parameters.nextLink
|
|
577
|
+
],
|
|
578
|
+
headerParameters: [Parameters.accept],
|
|
579
|
+
serializer
|
|
580
|
+
};
|