@azure/arm-managedapplications 2.1.1-alpha.20230823.1 → 3.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 +182 -8
- package/LICENSE +1 -1
- package/dist/index.js +2905 -1060
- 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/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.js +14 -8
- package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.js +14 -8
- package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.js +13 -6
- package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.js +13 -6
- package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.js +11 -4
- package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsGetSample.js +11 -4
- package/dist-esm/samples-dev/applicationDefinitionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.js +12 -5
- package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.js +57 -0
- package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.js +41 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.js +41 -0
- package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.js +15 -9
- package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +14 -7
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsDeleteByIdSample.js +12 -6
- package/dist-esm/samples-dev/applicationsDeleteByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsDeleteSample.js +12 -5
- package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsGetByIdSample.js +12 -6
- package/dist-esm/samples-dev/applicationsGetByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +11 -4
- package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.js +38 -0
- package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationsListByResourceGroupSample.js +14 -7
- package/dist-esm/samples-dev/applicationsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsListBySubscriptionSample.js +13 -6
- package/dist-esm/samples-dev/applicationsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsListTokensSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationsListTokensSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationsListTokensSample.js +42 -0
- package/dist-esm/samples-dev/applicationsListTokensSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.js +38 -0
- package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationsUpdateAccessSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationsUpdateAccessSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationsUpdateAccessSample.js +49 -0
- package/dist-esm/samples-dev/applicationsUpdateAccessSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationsUpdateByIdSample.js +15 -9
- package/dist-esm/samples-dev/applicationsUpdateByIdSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsUpdateSample.js +15 -8
- package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.js +52 -0
- package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/jitRequestsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/jitRequestsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jitRequestsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/jitRequestsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/jitRequestsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/jitRequestsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jitRequestsGetSample.js +38 -0
- package/dist-esm/samples-dev/jitRequestsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.js +37 -0
- package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.js +36 -0
- package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/jitRequestsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/jitRequestsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jitRequestsUpdateSample.js +39 -0
- package/dist-esm/samples-dev/jitRequestsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/listOperationsSample.js +10 -4
- package/dist-esm/samples-dev/listOperationsSample.js.map +1 -1
- package/dist-esm/src/applicationClient.d.ts +4 -2
- package/dist-esm/src/applicationClient.d.ts.map +1 -1
- package/dist-esm/src/applicationClient.js +17 -13
- package/dist-esm/src/applicationClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +865 -88
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +148 -6
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +33 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1146 -112
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +8 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +59 -16
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationDefinitions.d.ts +31 -28
- package/dist-esm/src/operations/applicationDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationDefinitions.js +190 -197
- package/dist-esm/src/operations/applicationDefinitions.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts +78 -20
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +407 -55
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/jitRequests.d.ts +63 -0
- package/dist-esm/src/operations/jitRequests.d.ts.map +1 -0
- package/dist-esm/src/operations/jitRequests.js +260 -0
- package/dist-esm/src/operations/jitRequests.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts +19 -29
- package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/applications.d.ts +76 -18
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/jitRequests.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/jitRequests.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/jitRequests.js +9 -0
- package/dist-esm/src/operationsInterfaces/jitRequests.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/managedapplications_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/managedapplications_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/managedapplications_operations_test.spec.js +76 -0
- package/dist-esm/test/managedapplications_operations_test.spec.js.map +1 -0
- package/package.json +10 -9
- package/review/arm-managedapplications.api.md +536 -53
- package/src/applicationClient.ts +37 -8
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +952 -96
- package/src/models/mappers.ts +1273 -173
- package/src/models/parameters.ts +71 -17
- package/src/operations/applicationDefinitions.ts +218 -300
- package/src/operations/applications.ts +561 -80
- package/src/operations/index.ts +1 -0
- package/src/operations/jitRequests.ts +366 -0
- package/src/operationsInterfaces/applicationDefinitions.ts +35 -55
- package/src/operationsInterfaces/applications.ts +130 -20
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/jitRequests.ts +110 -0
- package/src/pagingHelper.ts +4 -4
- package/tsconfig.json +0 -8
- package/types/arm-managedapplications.d.ts +1080 -118
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { ApplicationClient } from "../applicationClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
Application,
|
|
20
24
|
ApplicationsListByResourceGroupNextOptionalParams,
|
|
@@ -37,6 +41,14 @@ import {
|
|
|
37
41
|
ApplicationsCreateOrUpdateByIdResponse,
|
|
38
42
|
ApplicationsUpdateByIdOptionalParams,
|
|
39
43
|
ApplicationsUpdateByIdResponse,
|
|
44
|
+
ApplicationsRefreshPermissionsOptionalParams,
|
|
45
|
+
ApplicationsListAllowedUpgradePlansOptionalParams,
|
|
46
|
+
ApplicationsListAllowedUpgradePlansResponse,
|
|
47
|
+
UpdateAccessDefinition,
|
|
48
|
+
ApplicationsUpdateAccessOptionalParams,
|
|
49
|
+
ListTokenRequest,
|
|
50
|
+
ApplicationsListTokensOptionalParams,
|
|
51
|
+
ApplicationsListTokensResponse,
|
|
40
52
|
ApplicationsListByResourceGroupNextResponse,
|
|
41
53
|
ApplicationsListBySubscriptionNextResponse
|
|
42
54
|
} from "../models";
|
|
@@ -55,7 +67,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
/**
|
|
58
|
-
*
|
|
70
|
+
* Lists all the applications within a resource group.
|
|
59
71
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
60
72
|
* @param options The options parameters.
|
|
61
73
|
*/
|
|
@@ -124,7 +136,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
124
136
|
}
|
|
125
137
|
|
|
126
138
|
/**
|
|
127
|
-
*
|
|
139
|
+
* Lists all the applications within a subscription.
|
|
128
140
|
* @param options The options parameters.
|
|
129
141
|
*/
|
|
130
142
|
public listBySubscription(
|
|
@@ -204,14 +216,14 @@ export class ApplicationsImpl implements Applications {
|
|
|
204
216
|
resourceGroupName: string,
|
|
205
217
|
applicationName: string,
|
|
206
218
|
options?: ApplicationsDeleteOptionalParams
|
|
207
|
-
): Promise<
|
|
219
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
208
220
|
const directSendOperation = async (
|
|
209
221
|
args: coreClient.OperationArguments,
|
|
210
222
|
spec: coreClient.OperationSpec
|
|
211
223
|
): Promise<void> => {
|
|
212
224
|
return this.client.sendOperationRequest(args, spec);
|
|
213
225
|
};
|
|
214
|
-
const
|
|
226
|
+
const sendOperationFn = async (
|
|
215
227
|
args: coreClient.OperationArguments,
|
|
216
228
|
spec: coreClient.OperationSpec
|
|
217
229
|
) => {
|
|
@@ -244,14 +256,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
244
256
|
};
|
|
245
257
|
};
|
|
246
258
|
|
|
247
|
-
const lro =
|
|
248
|
-
|
|
249
|
-
{ resourceGroupName, applicationName, options },
|
|
250
|
-
deleteOperationSpec
|
|
251
|
-
);
|
|
252
|
-
const poller =
|
|
253
|
-
|
|
254
|
-
intervalInMs: options?.updateIntervalInMs
|
|
259
|
+
const lro = createLroSpec({
|
|
260
|
+
sendOperationFn,
|
|
261
|
+
args: { resourceGroupName, applicationName, options },
|
|
262
|
+
spec: deleteOperationSpec
|
|
263
|
+
});
|
|
264
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
265
|
+
restoreFrom: options?.resumeFrom,
|
|
266
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
267
|
+
resourceLocationConfig: "azure-async-operation"
|
|
255
268
|
});
|
|
256
269
|
await poller.poll();
|
|
257
270
|
return poller;
|
|
@@ -277,7 +290,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
277
290
|
}
|
|
278
291
|
|
|
279
292
|
/**
|
|
280
|
-
* Creates a
|
|
293
|
+
* Creates or updates a managed application.
|
|
281
294
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
282
295
|
* @param applicationName The name of the managed application.
|
|
283
296
|
* @param parameters Parameters supplied to the create or update a managed application.
|
|
@@ -289,8 +302,8 @@ export class ApplicationsImpl implements Applications {
|
|
|
289
302
|
parameters: Application,
|
|
290
303
|
options?: ApplicationsCreateOrUpdateOptionalParams
|
|
291
304
|
): Promise<
|
|
292
|
-
|
|
293
|
-
|
|
305
|
+
SimplePollerLike<
|
|
306
|
+
OperationState<ApplicationsCreateOrUpdateResponse>,
|
|
294
307
|
ApplicationsCreateOrUpdateResponse
|
|
295
308
|
>
|
|
296
309
|
> {
|
|
@@ -300,7 +313,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
300
313
|
): Promise<ApplicationsCreateOrUpdateResponse> => {
|
|
301
314
|
return this.client.sendOperationRequest(args, spec);
|
|
302
315
|
};
|
|
303
|
-
const
|
|
316
|
+
const sendOperationFn = async (
|
|
304
317
|
args: coreClient.OperationArguments,
|
|
305
318
|
spec: coreClient.OperationSpec
|
|
306
319
|
) => {
|
|
@@ -333,21 +346,25 @@ export class ApplicationsImpl implements Applications {
|
|
|
333
346
|
};
|
|
334
347
|
};
|
|
335
348
|
|
|
336
|
-
const lro =
|
|
337
|
-
|
|
338
|
-
{ resourceGroupName, applicationName, parameters, options },
|
|
339
|
-
createOrUpdateOperationSpec
|
|
340
|
-
);
|
|
341
|
-
const poller =
|
|
342
|
-
|
|
343
|
-
|
|
349
|
+
const lro = createLroSpec({
|
|
350
|
+
sendOperationFn,
|
|
351
|
+
args: { resourceGroupName, applicationName, parameters, options },
|
|
352
|
+
spec: createOrUpdateOperationSpec
|
|
353
|
+
});
|
|
354
|
+
const poller = await createHttpPoller<
|
|
355
|
+
ApplicationsCreateOrUpdateResponse,
|
|
356
|
+
OperationState<ApplicationsCreateOrUpdateResponse>
|
|
357
|
+
>(lro, {
|
|
358
|
+
restoreFrom: options?.resumeFrom,
|
|
359
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
360
|
+
resourceLocationConfig: "azure-async-operation"
|
|
344
361
|
});
|
|
345
362
|
await poller.poll();
|
|
346
363
|
return poller;
|
|
347
364
|
}
|
|
348
365
|
|
|
349
366
|
/**
|
|
350
|
-
* Creates a
|
|
367
|
+
* Creates or updates a managed application.
|
|
351
368
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
352
369
|
* @param applicationName The name of the managed application.
|
|
353
370
|
* @param parameters Parameters supplied to the create or update a managed application.
|
|
@@ -369,25 +386,98 @@ export class ApplicationsImpl implements Applications {
|
|
|
369
386
|
}
|
|
370
387
|
|
|
371
388
|
/**
|
|
372
|
-
* Updates an existing managed application.
|
|
373
|
-
* the tags.
|
|
389
|
+
* Updates an existing managed application.
|
|
374
390
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
375
391
|
* @param applicationName The name of the managed application.
|
|
376
392
|
* @param options The options parameters.
|
|
377
393
|
*/
|
|
378
|
-
|
|
394
|
+
async beginUpdate(
|
|
395
|
+
resourceGroupName: string,
|
|
396
|
+
applicationName: string,
|
|
397
|
+
options?: ApplicationsUpdateOptionalParams
|
|
398
|
+
): Promise<
|
|
399
|
+
SimplePollerLike<
|
|
400
|
+
OperationState<ApplicationsUpdateResponse>,
|
|
401
|
+
ApplicationsUpdateResponse
|
|
402
|
+
>
|
|
403
|
+
> {
|
|
404
|
+
const directSendOperation = async (
|
|
405
|
+
args: coreClient.OperationArguments,
|
|
406
|
+
spec: coreClient.OperationSpec
|
|
407
|
+
): Promise<ApplicationsUpdateResponse> => {
|
|
408
|
+
return this.client.sendOperationRequest(args, spec);
|
|
409
|
+
};
|
|
410
|
+
const sendOperationFn = async (
|
|
411
|
+
args: coreClient.OperationArguments,
|
|
412
|
+
spec: coreClient.OperationSpec
|
|
413
|
+
) => {
|
|
414
|
+
let currentRawResponse:
|
|
415
|
+
| coreClient.FullOperationResponse
|
|
416
|
+
| undefined = undefined;
|
|
417
|
+
const providedCallback = args.options?.onResponse;
|
|
418
|
+
const callback: coreClient.RawResponseCallback = (
|
|
419
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
420
|
+
flatResponse: unknown
|
|
421
|
+
) => {
|
|
422
|
+
currentRawResponse = rawResponse;
|
|
423
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
424
|
+
};
|
|
425
|
+
const updatedArgs = {
|
|
426
|
+
...args,
|
|
427
|
+
options: {
|
|
428
|
+
...args.options,
|
|
429
|
+
onResponse: callback
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
433
|
+
return {
|
|
434
|
+
flatResponse,
|
|
435
|
+
rawResponse: {
|
|
436
|
+
statusCode: currentRawResponse!.status,
|
|
437
|
+
body: currentRawResponse!.parsedBody,
|
|
438
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
const lro = createLroSpec({
|
|
444
|
+
sendOperationFn,
|
|
445
|
+
args: { resourceGroupName, applicationName, options },
|
|
446
|
+
spec: updateOperationSpec
|
|
447
|
+
});
|
|
448
|
+
const poller = await createHttpPoller<
|
|
449
|
+
ApplicationsUpdateResponse,
|
|
450
|
+
OperationState<ApplicationsUpdateResponse>
|
|
451
|
+
>(lro, {
|
|
452
|
+
restoreFrom: options?.resumeFrom,
|
|
453
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
454
|
+
resourceLocationConfig: "azure-async-operation"
|
|
455
|
+
});
|
|
456
|
+
await poller.poll();
|
|
457
|
+
return poller;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Updates an existing managed application.
|
|
462
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
463
|
+
* @param applicationName The name of the managed application.
|
|
464
|
+
* @param options The options parameters.
|
|
465
|
+
*/
|
|
466
|
+
async beginUpdateAndWait(
|
|
379
467
|
resourceGroupName: string,
|
|
380
468
|
applicationName: string,
|
|
381
469
|
options?: ApplicationsUpdateOptionalParams
|
|
382
470
|
): Promise<ApplicationsUpdateResponse> {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
471
|
+
const poller = await this.beginUpdate(
|
|
472
|
+
resourceGroupName,
|
|
473
|
+
applicationName,
|
|
474
|
+
options
|
|
386
475
|
);
|
|
476
|
+
return poller.pollUntilDone();
|
|
387
477
|
}
|
|
388
478
|
|
|
389
479
|
/**
|
|
390
|
-
*
|
|
480
|
+
* Lists all the applications within a resource group.
|
|
391
481
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
392
482
|
* @param options The options parameters.
|
|
393
483
|
*/
|
|
@@ -402,7 +492,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
402
492
|
}
|
|
403
493
|
|
|
404
494
|
/**
|
|
405
|
-
*
|
|
495
|
+
* Lists all the applications within a subscription.
|
|
406
496
|
* @param options The options parameters.
|
|
407
497
|
*/
|
|
408
498
|
private _listBySubscription(
|
|
@@ -441,14 +531,14 @@ export class ApplicationsImpl implements Applications {
|
|
|
441
531
|
async beginDeleteById(
|
|
442
532
|
applicationId: string,
|
|
443
533
|
options?: ApplicationsDeleteByIdOptionalParams
|
|
444
|
-
): Promise<
|
|
534
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
445
535
|
const directSendOperation = async (
|
|
446
536
|
args: coreClient.OperationArguments,
|
|
447
537
|
spec: coreClient.OperationSpec
|
|
448
538
|
): Promise<void> => {
|
|
449
539
|
return this.client.sendOperationRequest(args, spec);
|
|
450
540
|
};
|
|
451
|
-
const
|
|
541
|
+
const sendOperationFn = async (
|
|
452
542
|
args: coreClient.OperationArguments,
|
|
453
543
|
spec: coreClient.OperationSpec
|
|
454
544
|
) => {
|
|
@@ -481,14 +571,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
481
571
|
};
|
|
482
572
|
};
|
|
483
573
|
|
|
484
|
-
const lro =
|
|
485
|
-
|
|
486
|
-
{ applicationId, options },
|
|
487
|
-
deleteByIdOperationSpec
|
|
488
|
-
);
|
|
489
|
-
const poller =
|
|
490
|
-
|
|
491
|
-
intervalInMs: options?.updateIntervalInMs
|
|
574
|
+
const lro = createLroSpec({
|
|
575
|
+
sendOperationFn,
|
|
576
|
+
args: { applicationId, options },
|
|
577
|
+
spec: deleteByIdOperationSpec
|
|
578
|
+
});
|
|
579
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
580
|
+
restoreFrom: options?.resumeFrom,
|
|
581
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
582
|
+
resourceLocationConfig: "azure-async-operation"
|
|
492
583
|
});
|
|
493
584
|
await poller.poll();
|
|
494
585
|
return poller;
|
|
@@ -510,7 +601,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
510
601
|
}
|
|
511
602
|
|
|
512
603
|
/**
|
|
513
|
-
* Creates a
|
|
604
|
+
* Creates or updates a managed application.
|
|
514
605
|
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
515
606
|
* application name and the managed application resource type. Use the format,
|
|
516
607
|
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
@@ -522,8 +613,8 @@ export class ApplicationsImpl implements Applications {
|
|
|
522
613
|
parameters: Application,
|
|
523
614
|
options?: ApplicationsCreateOrUpdateByIdOptionalParams
|
|
524
615
|
): Promise<
|
|
525
|
-
|
|
526
|
-
|
|
616
|
+
SimplePollerLike<
|
|
617
|
+
OperationState<ApplicationsCreateOrUpdateByIdResponse>,
|
|
527
618
|
ApplicationsCreateOrUpdateByIdResponse
|
|
528
619
|
>
|
|
529
620
|
> {
|
|
@@ -533,7 +624,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
533
624
|
): Promise<ApplicationsCreateOrUpdateByIdResponse> => {
|
|
534
625
|
return this.client.sendOperationRequest(args, spec);
|
|
535
626
|
};
|
|
536
|
-
const
|
|
627
|
+
const sendOperationFn = async (
|
|
537
628
|
args: coreClient.OperationArguments,
|
|
538
629
|
spec: coreClient.OperationSpec
|
|
539
630
|
) => {
|
|
@@ -566,21 +657,25 @@ export class ApplicationsImpl implements Applications {
|
|
|
566
657
|
};
|
|
567
658
|
};
|
|
568
659
|
|
|
569
|
-
const lro =
|
|
570
|
-
|
|
571
|
-
{ applicationId, parameters, options },
|
|
572
|
-
createOrUpdateByIdOperationSpec
|
|
573
|
-
);
|
|
574
|
-
const poller =
|
|
575
|
-
|
|
576
|
-
|
|
660
|
+
const lro = createLroSpec({
|
|
661
|
+
sendOperationFn,
|
|
662
|
+
args: { applicationId, parameters, options },
|
|
663
|
+
spec: createOrUpdateByIdOperationSpec
|
|
664
|
+
});
|
|
665
|
+
const poller = await createHttpPoller<
|
|
666
|
+
ApplicationsCreateOrUpdateByIdResponse,
|
|
667
|
+
OperationState<ApplicationsCreateOrUpdateByIdResponse>
|
|
668
|
+
>(lro, {
|
|
669
|
+
restoreFrom: options?.resumeFrom,
|
|
670
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
671
|
+
resourceLocationConfig: "azure-async-operation"
|
|
577
672
|
});
|
|
578
673
|
await poller.poll();
|
|
579
674
|
return poller;
|
|
580
675
|
}
|
|
581
676
|
|
|
582
677
|
/**
|
|
583
|
-
* Creates a
|
|
678
|
+
* Creates or updates a managed application.
|
|
584
679
|
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
585
680
|
* application name and the managed application resource type. Use the format,
|
|
586
681
|
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
@@ -601,20 +696,296 @@ export class ApplicationsImpl implements Applications {
|
|
|
601
696
|
}
|
|
602
697
|
|
|
603
698
|
/**
|
|
604
|
-
* Updates an existing managed application.
|
|
605
|
-
* the
|
|
699
|
+
* Updates an existing managed application.
|
|
700
|
+
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
701
|
+
* application name and the managed application resource type. Use the format,
|
|
702
|
+
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
703
|
+
* @param options The options parameters.
|
|
704
|
+
*/
|
|
705
|
+
async beginUpdateById(
|
|
706
|
+
applicationId: string,
|
|
707
|
+
options?: ApplicationsUpdateByIdOptionalParams
|
|
708
|
+
): Promise<
|
|
709
|
+
SimplePollerLike<
|
|
710
|
+
OperationState<ApplicationsUpdateByIdResponse>,
|
|
711
|
+
ApplicationsUpdateByIdResponse
|
|
712
|
+
>
|
|
713
|
+
> {
|
|
714
|
+
const directSendOperation = async (
|
|
715
|
+
args: coreClient.OperationArguments,
|
|
716
|
+
spec: coreClient.OperationSpec
|
|
717
|
+
): Promise<ApplicationsUpdateByIdResponse> => {
|
|
718
|
+
return this.client.sendOperationRequest(args, spec);
|
|
719
|
+
};
|
|
720
|
+
const sendOperationFn = async (
|
|
721
|
+
args: coreClient.OperationArguments,
|
|
722
|
+
spec: coreClient.OperationSpec
|
|
723
|
+
) => {
|
|
724
|
+
let currentRawResponse:
|
|
725
|
+
| coreClient.FullOperationResponse
|
|
726
|
+
| undefined = undefined;
|
|
727
|
+
const providedCallback = args.options?.onResponse;
|
|
728
|
+
const callback: coreClient.RawResponseCallback = (
|
|
729
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
730
|
+
flatResponse: unknown
|
|
731
|
+
) => {
|
|
732
|
+
currentRawResponse = rawResponse;
|
|
733
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
734
|
+
};
|
|
735
|
+
const updatedArgs = {
|
|
736
|
+
...args,
|
|
737
|
+
options: {
|
|
738
|
+
...args.options,
|
|
739
|
+
onResponse: callback
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
743
|
+
return {
|
|
744
|
+
flatResponse,
|
|
745
|
+
rawResponse: {
|
|
746
|
+
statusCode: currentRawResponse!.status,
|
|
747
|
+
body: currentRawResponse!.parsedBody,
|
|
748
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
const lro = createLroSpec({
|
|
754
|
+
sendOperationFn,
|
|
755
|
+
args: { applicationId, options },
|
|
756
|
+
spec: updateByIdOperationSpec
|
|
757
|
+
});
|
|
758
|
+
const poller = await createHttpPoller<
|
|
759
|
+
ApplicationsUpdateByIdResponse,
|
|
760
|
+
OperationState<ApplicationsUpdateByIdResponse>
|
|
761
|
+
>(lro, {
|
|
762
|
+
restoreFrom: options?.resumeFrom,
|
|
763
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
764
|
+
resourceLocationConfig: "azure-async-operation"
|
|
765
|
+
});
|
|
766
|
+
await poller.poll();
|
|
767
|
+
return poller;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Updates an existing managed application.
|
|
606
772
|
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
607
773
|
* application name and the managed application resource type. Use the format,
|
|
608
774
|
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
609
775
|
* @param options The options parameters.
|
|
610
776
|
*/
|
|
611
|
-
|
|
777
|
+
async beginUpdateByIdAndWait(
|
|
612
778
|
applicationId: string,
|
|
613
779
|
options?: ApplicationsUpdateByIdOptionalParams
|
|
614
780
|
): Promise<ApplicationsUpdateByIdResponse> {
|
|
781
|
+
const poller = await this.beginUpdateById(applicationId, options);
|
|
782
|
+
return poller.pollUntilDone();
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Refresh Permissions for application.
|
|
787
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
788
|
+
* @param applicationName The name of the managed application.
|
|
789
|
+
* @param options The options parameters.
|
|
790
|
+
*/
|
|
791
|
+
async beginRefreshPermissions(
|
|
792
|
+
resourceGroupName: string,
|
|
793
|
+
applicationName: string,
|
|
794
|
+
options?: ApplicationsRefreshPermissionsOptionalParams
|
|
795
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
796
|
+
const directSendOperation = async (
|
|
797
|
+
args: coreClient.OperationArguments,
|
|
798
|
+
spec: coreClient.OperationSpec
|
|
799
|
+
): Promise<void> => {
|
|
800
|
+
return this.client.sendOperationRequest(args, spec);
|
|
801
|
+
};
|
|
802
|
+
const sendOperationFn = async (
|
|
803
|
+
args: coreClient.OperationArguments,
|
|
804
|
+
spec: coreClient.OperationSpec
|
|
805
|
+
) => {
|
|
806
|
+
let currentRawResponse:
|
|
807
|
+
| coreClient.FullOperationResponse
|
|
808
|
+
| undefined = undefined;
|
|
809
|
+
const providedCallback = args.options?.onResponse;
|
|
810
|
+
const callback: coreClient.RawResponseCallback = (
|
|
811
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
812
|
+
flatResponse: unknown
|
|
813
|
+
) => {
|
|
814
|
+
currentRawResponse = rawResponse;
|
|
815
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
816
|
+
};
|
|
817
|
+
const updatedArgs = {
|
|
818
|
+
...args,
|
|
819
|
+
options: {
|
|
820
|
+
...args.options,
|
|
821
|
+
onResponse: callback
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
825
|
+
return {
|
|
826
|
+
flatResponse,
|
|
827
|
+
rawResponse: {
|
|
828
|
+
statusCode: currentRawResponse!.status,
|
|
829
|
+
body: currentRawResponse!.parsedBody,
|
|
830
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
const lro = createLroSpec({
|
|
836
|
+
sendOperationFn,
|
|
837
|
+
args: { resourceGroupName, applicationName, options },
|
|
838
|
+
spec: refreshPermissionsOperationSpec
|
|
839
|
+
});
|
|
840
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
841
|
+
restoreFrom: options?.resumeFrom,
|
|
842
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
843
|
+
resourceLocationConfig: "location"
|
|
844
|
+
});
|
|
845
|
+
await poller.poll();
|
|
846
|
+
return poller;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Refresh Permissions for application.
|
|
851
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
852
|
+
* @param applicationName The name of the managed application.
|
|
853
|
+
* @param options The options parameters.
|
|
854
|
+
*/
|
|
855
|
+
async beginRefreshPermissionsAndWait(
|
|
856
|
+
resourceGroupName: string,
|
|
857
|
+
applicationName: string,
|
|
858
|
+
options?: ApplicationsRefreshPermissionsOptionalParams
|
|
859
|
+
): Promise<void> {
|
|
860
|
+
const poller = await this.beginRefreshPermissions(
|
|
861
|
+
resourceGroupName,
|
|
862
|
+
applicationName,
|
|
863
|
+
options
|
|
864
|
+
);
|
|
865
|
+
return poller.pollUntilDone();
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* List allowed upgrade plans for application.
|
|
870
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
871
|
+
* @param applicationName The name of the managed application.
|
|
872
|
+
* @param options The options parameters.
|
|
873
|
+
*/
|
|
874
|
+
listAllowedUpgradePlans(
|
|
875
|
+
resourceGroupName: string,
|
|
876
|
+
applicationName: string,
|
|
877
|
+
options?: ApplicationsListAllowedUpgradePlansOptionalParams
|
|
878
|
+
): Promise<ApplicationsListAllowedUpgradePlansResponse> {
|
|
615
879
|
return this.client.sendOperationRequest(
|
|
616
|
-
{
|
|
617
|
-
|
|
880
|
+
{ resourceGroupName, applicationName, options },
|
|
881
|
+
listAllowedUpgradePlansOperationSpec
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Update access for application.
|
|
887
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
888
|
+
* @param applicationName The name of the managed application.
|
|
889
|
+
* @param parameters Request body parameters to list tokens.
|
|
890
|
+
* @param options The options parameters.
|
|
891
|
+
*/
|
|
892
|
+
async beginUpdateAccess(
|
|
893
|
+
resourceGroupName: string,
|
|
894
|
+
applicationName: string,
|
|
895
|
+
parameters: UpdateAccessDefinition,
|
|
896
|
+
options?: ApplicationsUpdateAccessOptionalParams
|
|
897
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
898
|
+
const directSendOperation = async (
|
|
899
|
+
args: coreClient.OperationArguments,
|
|
900
|
+
spec: coreClient.OperationSpec
|
|
901
|
+
): Promise<void> => {
|
|
902
|
+
return this.client.sendOperationRequest(args, spec);
|
|
903
|
+
};
|
|
904
|
+
const sendOperationFn = async (
|
|
905
|
+
args: coreClient.OperationArguments,
|
|
906
|
+
spec: coreClient.OperationSpec
|
|
907
|
+
) => {
|
|
908
|
+
let currentRawResponse:
|
|
909
|
+
| coreClient.FullOperationResponse
|
|
910
|
+
| undefined = undefined;
|
|
911
|
+
const providedCallback = args.options?.onResponse;
|
|
912
|
+
const callback: coreClient.RawResponseCallback = (
|
|
913
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
914
|
+
flatResponse: unknown
|
|
915
|
+
) => {
|
|
916
|
+
currentRawResponse = rawResponse;
|
|
917
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
918
|
+
};
|
|
919
|
+
const updatedArgs = {
|
|
920
|
+
...args,
|
|
921
|
+
options: {
|
|
922
|
+
...args.options,
|
|
923
|
+
onResponse: callback
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
927
|
+
return {
|
|
928
|
+
flatResponse,
|
|
929
|
+
rawResponse: {
|
|
930
|
+
statusCode: currentRawResponse!.status,
|
|
931
|
+
body: currentRawResponse!.parsedBody,
|
|
932
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
const lro = createLroSpec({
|
|
938
|
+
sendOperationFn,
|
|
939
|
+
args: { resourceGroupName, applicationName, parameters, options },
|
|
940
|
+
spec: updateAccessOperationSpec
|
|
941
|
+
});
|
|
942
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
943
|
+
restoreFrom: options?.resumeFrom,
|
|
944
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
945
|
+
resourceLocationConfig: "location"
|
|
946
|
+
});
|
|
947
|
+
await poller.poll();
|
|
948
|
+
return poller;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Update access for application.
|
|
953
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
954
|
+
* @param applicationName The name of the managed application.
|
|
955
|
+
* @param parameters Request body parameters to list tokens.
|
|
956
|
+
* @param options The options parameters.
|
|
957
|
+
*/
|
|
958
|
+
async beginUpdateAccessAndWait(
|
|
959
|
+
resourceGroupName: string,
|
|
960
|
+
applicationName: string,
|
|
961
|
+
parameters: UpdateAccessDefinition,
|
|
962
|
+
options?: ApplicationsUpdateAccessOptionalParams
|
|
963
|
+
): Promise<void> {
|
|
964
|
+
const poller = await this.beginUpdateAccess(
|
|
965
|
+
resourceGroupName,
|
|
966
|
+
applicationName,
|
|
967
|
+
parameters,
|
|
968
|
+
options
|
|
969
|
+
);
|
|
970
|
+
return poller.pollUntilDone();
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* List tokens for application.
|
|
975
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
976
|
+
* @param applicationName The name of the managed application.
|
|
977
|
+
* @param parameters Request body parameters to list tokens.
|
|
978
|
+
* @param options The options parameters.
|
|
979
|
+
*/
|
|
980
|
+
listTokens(
|
|
981
|
+
resourceGroupName: string,
|
|
982
|
+
applicationName: string,
|
|
983
|
+
parameters: ListTokenRequest,
|
|
984
|
+
options?: ApplicationsListTokensOptionalParams
|
|
985
|
+
): Promise<ApplicationsListTokensResponse> {
|
|
986
|
+
return this.client.sendOperationRequest(
|
|
987
|
+
{ resourceGroupName, applicationName, parameters, options },
|
|
988
|
+
listTokensOperationSpec
|
|
618
989
|
);
|
|
619
990
|
}
|
|
620
991
|
|
|
@@ -669,9 +1040,9 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
669
1040
|
queryParameters: [Parameters.apiVersion],
|
|
670
1041
|
urlParameters: [
|
|
671
1042
|
Parameters.$host,
|
|
1043
|
+
Parameters.subscriptionId,
|
|
672
1044
|
Parameters.resourceGroupName,
|
|
673
|
-
Parameters.applicationName
|
|
674
|
-
Parameters.subscriptionId
|
|
1045
|
+
Parameters.applicationName
|
|
675
1046
|
],
|
|
676
1047
|
headerParameters: [Parameters.accept],
|
|
677
1048
|
serializer
|
|
@@ -692,9 +1063,9 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
692
1063
|
queryParameters: [Parameters.apiVersion],
|
|
693
1064
|
urlParameters: [
|
|
694
1065
|
Parameters.$host,
|
|
1066
|
+
Parameters.subscriptionId,
|
|
695
1067
|
Parameters.resourceGroupName,
|
|
696
|
-
Parameters.applicationName
|
|
697
|
-
Parameters.subscriptionId
|
|
1068
|
+
Parameters.applicationName
|
|
698
1069
|
],
|
|
699
1070
|
headerParameters: [Parameters.accept],
|
|
700
1071
|
serializer
|
|
@@ -724,9 +1095,9 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
724
1095
|
queryParameters: [Parameters.apiVersion],
|
|
725
1096
|
urlParameters: [
|
|
726
1097
|
Parameters.$host,
|
|
1098
|
+
Parameters.subscriptionId,
|
|
727
1099
|
Parameters.resourceGroupName,
|
|
728
|
-
Parameters.applicationName
|
|
729
|
-
Parameters.subscriptionId
|
|
1100
|
+
Parameters.applicationName
|
|
730
1101
|
],
|
|
731
1102
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
732
1103
|
mediaType: "json",
|
|
@@ -738,7 +1109,16 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
738
1109
|
httpMethod: "PATCH",
|
|
739
1110
|
responses: {
|
|
740
1111
|
200: {
|
|
741
|
-
bodyMapper: Mappers.
|
|
1112
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
1113
|
+
},
|
|
1114
|
+
201: {
|
|
1115
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
1116
|
+
},
|
|
1117
|
+
202: {
|
|
1118
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
1119
|
+
},
|
|
1120
|
+
204: {
|
|
1121
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
742
1122
|
},
|
|
743
1123
|
default: {
|
|
744
1124
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -748,9 +1128,9 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
748
1128
|
queryParameters: [Parameters.apiVersion],
|
|
749
1129
|
urlParameters: [
|
|
750
1130
|
Parameters.$host,
|
|
1131
|
+
Parameters.subscriptionId,
|
|
751
1132
|
Parameters.resourceGroupName,
|
|
752
|
-
Parameters.applicationName
|
|
753
|
-
Parameters.subscriptionId
|
|
1133
|
+
Parameters.applicationName
|
|
754
1134
|
],
|
|
755
1135
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
756
1136
|
mediaType: "json",
|
|
@@ -771,8 +1151,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
771
1151
|
queryParameters: [Parameters.apiVersion],
|
|
772
1152
|
urlParameters: [
|
|
773
1153
|
Parameters.$host,
|
|
774
|
-
Parameters.
|
|
775
|
-
Parameters.
|
|
1154
|
+
Parameters.subscriptionId,
|
|
1155
|
+
Parameters.resourceGroupName
|
|
776
1156
|
],
|
|
777
1157
|
headerParameters: [Parameters.accept],
|
|
778
1158
|
serializer
|
|
@@ -860,19 +1240,122 @@ const updateByIdOperationSpec: coreClient.OperationSpec = {
|
|
|
860
1240
|
httpMethod: "PATCH",
|
|
861
1241
|
responses: {
|
|
862
1242
|
200: {
|
|
863
|
-
bodyMapper: Mappers.
|
|
1243
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
1244
|
+
},
|
|
1245
|
+
201: {
|
|
1246
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
1247
|
+
},
|
|
1248
|
+
202: {
|
|
1249
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
1250
|
+
},
|
|
1251
|
+
204: {
|
|
1252
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
864
1253
|
},
|
|
865
1254
|
default: {
|
|
866
1255
|
bodyMapper: Mappers.ErrorResponse
|
|
867
1256
|
}
|
|
868
1257
|
},
|
|
869
|
-
requestBody: Parameters.
|
|
1258
|
+
requestBody: Parameters.parameters1,
|
|
870
1259
|
queryParameters: [Parameters.apiVersion],
|
|
871
1260
|
urlParameters: [Parameters.$host, Parameters.applicationId],
|
|
872
1261
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
873
1262
|
mediaType: "json",
|
|
874
1263
|
serializer
|
|
875
1264
|
};
|
|
1265
|
+
const refreshPermissionsOperationSpec: coreClient.OperationSpec = {
|
|
1266
|
+
path:
|
|
1267
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions",
|
|
1268
|
+
httpMethod: "POST",
|
|
1269
|
+
responses: {
|
|
1270
|
+
200: {},
|
|
1271
|
+
201: {},
|
|
1272
|
+
202: {},
|
|
1273
|
+
204: {},
|
|
1274
|
+
default: {
|
|
1275
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
queryParameters: [Parameters.apiVersion],
|
|
1279
|
+
urlParameters: [
|
|
1280
|
+
Parameters.$host,
|
|
1281
|
+
Parameters.subscriptionId,
|
|
1282
|
+
Parameters.resourceGroupName,
|
|
1283
|
+
Parameters.applicationName
|
|
1284
|
+
],
|
|
1285
|
+
headerParameters: [Parameters.accept],
|
|
1286
|
+
serializer
|
|
1287
|
+
};
|
|
1288
|
+
const listAllowedUpgradePlansOperationSpec: coreClient.OperationSpec = {
|
|
1289
|
+
path:
|
|
1290
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans",
|
|
1291
|
+
httpMethod: "POST",
|
|
1292
|
+
responses: {
|
|
1293
|
+
200: {
|
|
1294
|
+
bodyMapper: Mappers.AllowedUpgradePlansResult
|
|
1295
|
+
},
|
|
1296
|
+
default: {
|
|
1297
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
queryParameters: [Parameters.apiVersion],
|
|
1301
|
+
urlParameters: [
|
|
1302
|
+
Parameters.$host,
|
|
1303
|
+
Parameters.subscriptionId,
|
|
1304
|
+
Parameters.resourceGroupName,
|
|
1305
|
+
Parameters.applicationName
|
|
1306
|
+
],
|
|
1307
|
+
headerParameters: [Parameters.accept],
|
|
1308
|
+
serializer
|
|
1309
|
+
};
|
|
1310
|
+
const updateAccessOperationSpec: coreClient.OperationSpec = {
|
|
1311
|
+
path:
|
|
1312
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess",
|
|
1313
|
+
httpMethod: "POST",
|
|
1314
|
+
responses: {
|
|
1315
|
+
200: {},
|
|
1316
|
+
201: {},
|
|
1317
|
+
202: {},
|
|
1318
|
+
204: {},
|
|
1319
|
+
default: {
|
|
1320
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
requestBody: Parameters.parameters2,
|
|
1324
|
+
queryParameters: [Parameters.apiVersion],
|
|
1325
|
+
urlParameters: [
|
|
1326
|
+
Parameters.$host,
|
|
1327
|
+
Parameters.subscriptionId,
|
|
1328
|
+
Parameters.resourceGroupName,
|
|
1329
|
+
Parameters.applicationName
|
|
1330
|
+
],
|
|
1331
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1332
|
+
mediaType: "json",
|
|
1333
|
+
serializer
|
|
1334
|
+
};
|
|
1335
|
+
const listTokensOperationSpec: coreClient.OperationSpec = {
|
|
1336
|
+
path:
|
|
1337
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens",
|
|
1338
|
+
httpMethod: "POST",
|
|
1339
|
+
responses: {
|
|
1340
|
+
200: {
|
|
1341
|
+
bodyMapper: Mappers.ManagedIdentityTokenResult
|
|
1342
|
+
},
|
|
1343
|
+
default: {
|
|
1344
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
requestBody: Parameters.parameters3,
|
|
1348
|
+
queryParameters: [Parameters.apiVersion],
|
|
1349
|
+
urlParameters: [
|
|
1350
|
+
Parameters.$host,
|
|
1351
|
+
Parameters.subscriptionId,
|
|
1352
|
+
Parameters.resourceGroupName,
|
|
1353
|
+
Parameters.applicationName
|
|
1354
|
+
],
|
|
1355
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1356
|
+
mediaType: "json",
|
|
1357
|
+
serializer
|
|
1358
|
+
};
|
|
876
1359
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
877
1360
|
path: "{nextLink}",
|
|
878
1361
|
httpMethod: "GET",
|
|
@@ -884,12 +1367,11 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
884
1367
|
bodyMapper: Mappers.ErrorResponse
|
|
885
1368
|
}
|
|
886
1369
|
},
|
|
887
|
-
queryParameters: [Parameters.apiVersion],
|
|
888
1370
|
urlParameters: [
|
|
889
1371
|
Parameters.$host,
|
|
890
1372
|
Parameters.nextLink,
|
|
891
|
-
Parameters.
|
|
892
|
-
Parameters.
|
|
1373
|
+
Parameters.subscriptionId,
|
|
1374
|
+
Parameters.resourceGroupName
|
|
893
1375
|
],
|
|
894
1376
|
headerParameters: [Parameters.accept],
|
|
895
1377
|
serializer
|
|
@@ -905,7 +1387,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
905
1387
|
bodyMapper: Mappers.ErrorResponse
|
|
906
1388
|
}
|
|
907
1389
|
},
|
|
908
|
-
queryParameters: [Parameters.apiVersion],
|
|
909
1390
|
urlParameters: [
|
|
910
1391
|
Parameters.$host,
|
|
911
1392
|
Parameters.nextLink,
|