@azure/arm-managedapplications 2.1.1-alpha.20230810.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 -8
- 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
|
@@ -10,8 +10,8 @@ import { setContinuationToken } from "../pagingHelper";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Applications operations. */
|
|
17
17
|
export class ApplicationsImpl {
|
|
@@ -23,7 +23,7 @@ export class ApplicationsImpl {
|
|
|
23
23
|
this.client = client;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Lists all the applications within a resource group.
|
|
27
27
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
28
|
* @param options The options parameters.
|
|
29
29
|
*/
|
|
@@ -90,7 +90,7 @@ export class ApplicationsImpl {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Lists all the applications within a subscription.
|
|
94
94
|
* @param options The options parameters.
|
|
95
95
|
*/
|
|
96
96
|
listBySubscription(options) {
|
|
@@ -175,7 +175,7 @@ export class ApplicationsImpl {
|
|
|
175
175
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
176
176
|
return this.client.sendOperationRequest(args, spec);
|
|
177
177
|
});
|
|
178
|
-
const
|
|
178
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
179
179
|
var _a;
|
|
180
180
|
let currentRawResponse = undefined;
|
|
181
181
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -194,10 +194,15 @@ export class ApplicationsImpl {
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
});
|
|
197
|
-
const lro =
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
const lro = createLroSpec({
|
|
198
|
+
sendOperationFn,
|
|
199
|
+
args: { resourceGroupName, applicationName, options },
|
|
200
|
+
spec: deleteOperationSpec
|
|
201
|
+
});
|
|
202
|
+
const poller = yield createHttpPoller(lro, {
|
|
203
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
204
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
205
|
+
resourceLocationConfig: "azure-async-operation"
|
|
201
206
|
});
|
|
202
207
|
yield poller.poll();
|
|
203
208
|
return poller;
|
|
@@ -216,7 +221,7 @@ export class ApplicationsImpl {
|
|
|
216
221
|
});
|
|
217
222
|
}
|
|
218
223
|
/**
|
|
219
|
-
* Creates a
|
|
224
|
+
* Creates or updates a managed application.
|
|
220
225
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
221
226
|
* @param applicationName The name of the managed application.
|
|
222
227
|
* @param parameters Parameters supplied to the create or update a managed application.
|
|
@@ -227,7 +232,7 @@ export class ApplicationsImpl {
|
|
|
227
232
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
228
233
|
return this.client.sendOperationRequest(args, spec);
|
|
229
234
|
});
|
|
230
|
-
const
|
|
235
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
231
236
|
var _a;
|
|
232
237
|
let currentRawResponse = undefined;
|
|
233
238
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -246,17 +251,22 @@ export class ApplicationsImpl {
|
|
|
246
251
|
}
|
|
247
252
|
};
|
|
248
253
|
});
|
|
249
|
-
const lro =
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
254
|
+
const lro = createLroSpec({
|
|
255
|
+
sendOperationFn,
|
|
256
|
+
args: { resourceGroupName, applicationName, parameters, options },
|
|
257
|
+
spec: createOrUpdateOperationSpec
|
|
258
|
+
});
|
|
259
|
+
const poller = yield createHttpPoller(lro, {
|
|
260
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
261
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
262
|
+
resourceLocationConfig: "azure-async-operation"
|
|
253
263
|
});
|
|
254
264
|
yield poller.poll();
|
|
255
265
|
return poller;
|
|
256
266
|
});
|
|
257
267
|
}
|
|
258
268
|
/**
|
|
259
|
-
* Creates a
|
|
269
|
+
* Creates or updates a managed application.
|
|
260
270
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
261
271
|
* @param applicationName The name of the managed application.
|
|
262
272
|
* @param parameters Parameters supplied to the create or update a managed application.
|
|
@@ -269,17 +279,63 @@ export class ApplicationsImpl {
|
|
|
269
279
|
});
|
|
270
280
|
}
|
|
271
281
|
/**
|
|
272
|
-
* Updates an existing managed application.
|
|
273
|
-
* the tags.
|
|
282
|
+
* Updates an existing managed application.
|
|
274
283
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
275
284
|
* @param applicationName The name of the managed application.
|
|
276
285
|
* @param options The options parameters.
|
|
277
286
|
*/
|
|
278
|
-
|
|
279
|
-
return this
|
|
287
|
+
beginUpdate(resourceGroupName, applicationName, options) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
return this.client.sendOperationRequest(args, spec);
|
|
291
|
+
});
|
|
292
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
293
|
+
var _a;
|
|
294
|
+
let currentRawResponse = undefined;
|
|
295
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
296
|
+
const callback = (rawResponse, flatResponse) => {
|
|
297
|
+
currentRawResponse = rawResponse;
|
|
298
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
299
|
+
};
|
|
300
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
301
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
302
|
+
return {
|
|
303
|
+
flatResponse,
|
|
304
|
+
rawResponse: {
|
|
305
|
+
statusCode: currentRawResponse.status,
|
|
306
|
+
body: currentRawResponse.parsedBody,
|
|
307
|
+
headers: currentRawResponse.headers.toJSON()
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
});
|
|
311
|
+
const lro = createLroSpec({
|
|
312
|
+
sendOperationFn,
|
|
313
|
+
args: { resourceGroupName, applicationName, options },
|
|
314
|
+
spec: updateOperationSpec
|
|
315
|
+
});
|
|
316
|
+
const poller = yield createHttpPoller(lro, {
|
|
317
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
318
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
319
|
+
resourceLocationConfig: "azure-async-operation"
|
|
320
|
+
});
|
|
321
|
+
yield poller.poll();
|
|
322
|
+
return poller;
|
|
323
|
+
});
|
|
280
324
|
}
|
|
281
325
|
/**
|
|
282
|
-
*
|
|
326
|
+
* Updates an existing managed application.
|
|
327
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
328
|
+
* @param applicationName The name of the managed application.
|
|
329
|
+
* @param options The options parameters.
|
|
330
|
+
*/
|
|
331
|
+
beginUpdateAndWait(resourceGroupName, applicationName, options) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
const poller = yield this.beginUpdate(resourceGroupName, applicationName, options);
|
|
334
|
+
return poller.pollUntilDone();
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Lists all the applications within a resource group.
|
|
283
339
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
284
340
|
* @param options The options parameters.
|
|
285
341
|
*/
|
|
@@ -287,7 +343,7 @@ export class ApplicationsImpl {
|
|
|
287
343
|
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
288
344
|
}
|
|
289
345
|
/**
|
|
290
|
-
*
|
|
346
|
+
* Lists all the applications within a subscription.
|
|
291
347
|
* @param options The options parameters.
|
|
292
348
|
*/
|
|
293
349
|
_listBySubscription(options) {
|
|
@@ -315,7 +371,7 @@ export class ApplicationsImpl {
|
|
|
315
371
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
316
372
|
return this.client.sendOperationRequest(args, spec);
|
|
317
373
|
});
|
|
318
|
-
const
|
|
374
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
319
375
|
var _a;
|
|
320
376
|
let currentRawResponse = undefined;
|
|
321
377
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -334,10 +390,15 @@ export class ApplicationsImpl {
|
|
|
334
390
|
}
|
|
335
391
|
};
|
|
336
392
|
});
|
|
337
|
-
const lro =
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
393
|
+
const lro = createLroSpec({
|
|
394
|
+
sendOperationFn,
|
|
395
|
+
args: { applicationId, options },
|
|
396
|
+
spec: deleteByIdOperationSpec
|
|
397
|
+
});
|
|
398
|
+
const poller = yield createHttpPoller(lro, {
|
|
399
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
400
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
401
|
+
resourceLocationConfig: "azure-async-operation"
|
|
341
402
|
});
|
|
342
403
|
yield poller.poll();
|
|
343
404
|
return poller;
|
|
@@ -357,7 +418,7 @@ export class ApplicationsImpl {
|
|
|
357
418
|
});
|
|
358
419
|
}
|
|
359
420
|
/**
|
|
360
|
-
* Creates a
|
|
421
|
+
* Creates or updates a managed application.
|
|
361
422
|
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
362
423
|
* application name and the managed application resource type. Use the format,
|
|
363
424
|
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
@@ -369,7 +430,7 @@ export class ApplicationsImpl {
|
|
|
369
430
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
370
431
|
return this.client.sendOperationRequest(args, spec);
|
|
371
432
|
});
|
|
372
|
-
const
|
|
433
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
373
434
|
var _a;
|
|
374
435
|
let currentRawResponse = undefined;
|
|
375
436
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -388,17 +449,22 @@ export class ApplicationsImpl {
|
|
|
388
449
|
}
|
|
389
450
|
};
|
|
390
451
|
});
|
|
391
|
-
const lro =
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
452
|
+
const lro = createLroSpec({
|
|
453
|
+
sendOperationFn,
|
|
454
|
+
args: { applicationId, parameters, options },
|
|
455
|
+
spec: createOrUpdateByIdOperationSpec
|
|
456
|
+
});
|
|
457
|
+
const poller = yield createHttpPoller(lro, {
|
|
458
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
459
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
460
|
+
resourceLocationConfig: "azure-async-operation"
|
|
395
461
|
});
|
|
396
462
|
yield poller.poll();
|
|
397
463
|
return poller;
|
|
398
464
|
});
|
|
399
465
|
}
|
|
400
466
|
/**
|
|
401
|
-
* Creates a
|
|
467
|
+
* Creates or updates a managed application.
|
|
402
468
|
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
403
469
|
* application name and the managed application resource type. Use the format,
|
|
404
470
|
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
@@ -412,15 +478,195 @@ export class ApplicationsImpl {
|
|
|
412
478
|
});
|
|
413
479
|
}
|
|
414
480
|
/**
|
|
415
|
-
* Updates an existing managed application.
|
|
416
|
-
* the tags.
|
|
481
|
+
* Updates an existing managed application.
|
|
417
482
|
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
418
483
|
* application name and the managed application resource type. Use the format,
|
|
419
484
|
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
420
485
|
* @param options The options parameters.
|
|
421
486
|
*/
|
|
422
|
-
|
|
423
|
-
return this
|
|
487
|
+
beginUpdateById(applicationId, options) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
490
|
+
return this.client.sendOperationRequest(args, spec);
|
|
491
|
+
});
|
|
492
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
493
|
+
var _a;
|
|
494
|
+
let currentRawResponse = undefined;
|
|
495
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
496
|
+
const callback = (rawResponse, flatResponse) => {
|
|
497
|
+
currentRawResponse = rawResponse;
|
|
498
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
499
|
+
};
|
|
500
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
501
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
502
|
+
return {
|
|
503
|
+
flatResponse,
|
|
504
|
+
rawResponse: {
|
|
505
|
+
statusCode: currentRawResponse.status,
|
|
506
|
+
body: currentRawResponse.parsedBody,
|
|
507
|
+
headers: currentRawResponse.headers.toJSON()
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
});
|
|
511
|
+
const lro = createLroSpec({
|
|
512
|
+
sendOperationFn,
|
|
513
|
+
args: { applicationId, options },
|
|
514
|
+
spec: updateByIdOperationSpec
|
|
515
|
+
});
|
|
516
|
+
const poller = yield createHttpPoller(lro, {
|
|
517
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
518
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
519
|
+
resourceLocationConfig: "azure-async-operation"
|
|
520
|
+
});
|
|
521
|
+
yield poller.poll();
|
|
522
|
+
return poller;
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Updates an existing managed application.
|
|
527
|
+
* @param applicationId The fully qualified ID of the managed application, including the managed
|
|
528
|
+
* application name and the managed application resource type. Use the format,
|
|
529
|
+
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
|
|
530
|
+
* @param options The options parameters.
|
|
531
|
+
*/
|
|
532
|
+
beginUpdateByIdAndWait(applicationId, options) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
534
|
+
const poller = yield this.beginUpdateById(applicationId, options);
|
|
535
|
+
return poller.pollUntilDone();
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Refresh Permissions for application.
|
|
540
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
541
|
+
* @param applicationName The name of the managed application.
|
|
542
|
+
* @param options The options parameters.
|
|
543
|
+
*/
|
|
544
|
+
beginRefreshPermissions(resourceGroupName, applicationName, options) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
return this.client.sendOperationRequest(args, spec);
|
|
548
|
+
});
|
|
549
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
var _a;
|
|
551
|
+
let currentRawResponse = undefined;
|
|
552
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
553
|
+
const callback = (rawResponse, flatResponse) => {
|
|
554
|
+
currentRawResponse = rawResponse;
|
|
555
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
556
|
+
};
|
|
557
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
558
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
559
|
+
return {
|
|
560
|
+
flatResponse,
|
|
561
|
+
rawResponse: {
|
|
562
|
+
statusCode: currentRawResponse.status,
|
|
563
|
+
body: currentRawResponse.parsedBody,
|
|
564
|
+
headers: currentRawResponse.headers.toJSON()
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
});
|
|
568
|
+
const lro = createLroSpec({
|
|
569
|
+
sendOperationFn,
|
|
570
|
+
args: { resourceGroupName, applicationName, options },
|
|
571
|
+
spec: refreshPermissionsOperationSpec
|
|
572
|
+
});
|
|
573
|
+
const poller = yield createHttpPoller(lro, {
|
|
574
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
575
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
576
|
+
resourceLocationConfig: "location"
|
|
577
|
+
});
|
|
578
|
+
yield poller.poll();
|
|
579
|
+
return poller;
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Refresh Permissions for application.
|
|
584
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
585
|
+
* @param applicationName The name of the managed application.
|
|
586
|
+
* @param options The options parameters.
|
|
587
|
+
*/
|
|
588
|
+
beginRefreshPermissionsAndWait(resourceGroupName, applicationName, options) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
const poller = yield this.beginRefreshPermissions(resourceGroupName, applicationName, options);
|
|
591
|
+
return poller.pollUntilDone();
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* List allowed upgrade plans for application.
|
|
596
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
597
|
+
* @param applicationName The name of the managed application.
|
|
598
|
+
* @param options The options parameters.
|
|
599
|
+
*/
|
|
600
|
+
listAllowedUpgradePlans(resourceGroupName, applicationName, options) {
|
|
601
|
+
return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, listAllowedUpgradePlansOperationSpec);
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Update access for application.
|
|
605
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
606
|
+
* @param applicationName The name of the managed application.
|
|
607
|
+
* @param parameters Request body parameters to list tokens.
|
|
608
|
+
* @param options The options parameters.
|
|
609
|
+
*/
|
|
610
|
+
beginUpdateAccess(resourceGroupName, applicationName, parameters, options) {
|
|
611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
612
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
return this.client.sendOperationRequest(args, spec);
|
|
614
|
+
});
|
|
615
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
var _a;
|
|
617
|
+
let currentRawResponse = undefined;
|
|
618
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
619
|
+
const callback = (rawResponse, flatResponse) => {
|
|
620
|
+
currentRawResponse = rawResponse;
|
|
621
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
622
|
+
};
|
|
623
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
624
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
625
|
+
return {
|
|
626
|
+
flatResponse,
|
|
627
|
+
rawResponse: {
|
|
628
|
+
statusCode: currentRawResponse.status,
|
|
629
|
+
body: currentRawResponse.parsedBody,
|
|
630
|
+
headers: currentRawResponse.headers.toJSON()
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
});
|
|
634
|
+
const lro = createLroSpec({
|
|
635
|
+
sendOperationFn,
|
|
636
|
+
args: { resourceGroupName, applicationName, parameters, options },
|
|
637
|
+
spec: updateAccessOperationSpec
|
|
638
|
+
});
|
|
639
|
+
const poller = yield createHttpPoller(lro, {
|
|
640
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
641
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
642
|
+
resourceLocationConfig: "location"
|
|
643
|
+
});
|
|
644
|
+
yield poller.poll();
|
|
645
|
+
return poller;
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Update access for application.
|
|
650
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
651
|
+
* @param applicationName The name of the managed application.
|
|
652
|
+
* @param parameters Request body parameters to list tokens.
|
|
653
|
+
* @param options The options parameters.
|
|
654
|
+
*/
|
|
655
|
+
beginUpdateAccessAndWait(resourceGroupName, applicationName, parameters, options) {
|
|
656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
657
|
+
const poller = yield this.beginUpdateAccess(resourceGroupName, applicationName, parameters, options);
|
|
658
|
+
return poller.pollUntilDone();
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* List tokens for application.
|
|
663
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
664
|
+
* @param applicationName The name of the managed application.
|
|
665
|
+
* @param parameters Request body parameters to list tokens.
|
|
666
|
+
* @param options The options parameters.
|
|
667
|
+
*/
|
|
668
|
+
listTokens(resourceGroupName, applicationName, parameters, options) {
|
|
669
|
+
return this.client.sendOperationRequest({ resourceGroupName, applicationName, parameters, options }, listTokensOperationSpec);
|
|
424
670
|
}
|
|
425
671
|
/**
|
|
426
672
|
* ListByResourceGroupNext
|
|
@@ -457,9 +703,9 @@ const getOperationSpec = {
|
|
|
457
703
|
queryParameters: [Parameters.apiVersion],
|
|
458
704
|
urlParameters: [
|
|
459
705
|
Parameters.$host,
|
|
706
|
+
Parameters.subscriptionId,
|
|
460
707
|
Parameters.resourceGroupName,
|
|
461
|
-
Parameters.applicationName
|
|
462
|
-
Parameters.subscriptionId
|
|
708
|
+
Parameters.applicationName
|
|
463
709
|
],
|
|
464
710
|
headerParameters: [Parameters.accept],
|
|
465
711
|
serializer
|
|
@@ -479,9 +725,9 @@ const deleteOperationSpec = {
|
|
|
479
725
|
queryParameters: [Parameters.apiVersion],
|
|
480
726
|
urlParameters: [
|
|
481
727
|
Parameters.$host,
|
|
728
|
+
Parameters.subscriptionId,
|
|
482
729
|
Parameters.resourceGroupName,
|
|
483
|
-
Parameters.applicationName
|
|
484
|
-
Parameters.subscriptionId
|
|
730
|
+
Parameters.applicationName
|
|
485
731
|
],
|
|
486
732
|
headerParameters: [Parameters.accept],
|
|
487
733
|
serializer
|
|
@@ -510,9 +756,9 @@ const createOrUpdateOperationSpec = {
|
|
|
510
756
|
queryParameters: [Parameters.apiVersion],
|
|
511
757
|
urlParameters: [
|
|
512
758
|
Parameters.$host,
|
|
759
|
+
Parameters.subscriptionId,
|
|
513
760
|
Parameters.resourceGroupName,
|
|
514
|
-
Parameters.applicationName
|
|
515
|
-
Parameters.subscriptionId
|
|
761
|
+
Parameters.applicationName
|
|
516
762
|
],
|
|
517
763
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
518
764
|
mediaType: "json",
|
|
@@ -523,7 +769,16 @@ const updateOperationSpec = {
|
|
|
523
769
|
httpMethod: "PATCH",
|
|
524
770
|
responses: {
|
|
525
771
|
200: {
|
|
526
|
-
bodyMapper: Mappers.
|
|
772
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
773
|
+
},
|
|
774
|
+
201: {
|
|
775
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
776
|
+
},
|
|
777
|
+
202: {
|
|
778
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
779
|
+
},
|
|
780
|
+
204: {
|
|
781
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
527
782
|
},
|
|
528
783
|
default: {
|
|
529
784
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -533,9 +788,9 @@ const updateOperationSpec = {
|
|
|
533
788
|
queryParameters: [Parameters.apiVersion],
|
|
534
789
|
urlParameters: [
|
|
535
790
|
Parameters.$host,
|
|
791
|
+
Parameters.subscriptionId,
|
|
536
792
|
Parameters.resourceGroupName,
|
|
537
|
-
Parameters.applicationName
|
|
538
|
-
Parameters.subscriptionId
|
|
793
|
+
Parameters.applicationName
|
|
539
794
|
],
|
|
540
795
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
541
796
|
mediaType: "json",
|
|
@@ -555,8 +810,8 @@ const listByResourceGroupOperationSpec = {
|
|
|
555
810
|
queryParameters: [Parameters.apiVersion],
|
|
556
811
|
urlParameters: [
|
|
557
812
|
Parameters.$host,
|
|
558
|
-
Parameters.
|
|
559
|
-
Parameters.
|
|
813
|
+
Parameters.subscriptionId,
|
|
814
|
+
Parameters.resourceGroupName
|
|
560
815
|
],
|
|
561
816
|
headerParameters: [Parameters.accept],
|
|
562
817
|
serializer
|
|
@@ -643,19 +898,118 @@ const updateByIdOperationSpec = {
|
|
|
643
898
|
httpMethod: "PATCH",
|
|
644
899
|
responses: {
|
|
645
900
|
200: {
|
|
646
|
-
bodyMapper: Mappers.
|
|
901
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
902
|
+
},
|
|
903
|
+
201: {
|
|
904
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
905
|
+
},
|
|
906
|
+
202: {
|
|
907
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
908
|
+
},
|
|
909
|
+
204: {
|
|
910
|
+
bodyMapper: Mappers.ApplicationPatchable
|
|
647
911
|
},
|
|
648
912
|
default: {
|
|
649
913
|
bodyMapper: Mappers.ErrorResponse
|
|
650
914
|
}
|
|
651
915
|
},
|
|
652
|
-
requestBody: Parameters.
|
|
916
|
+
requestBody: Parameters.parameters1,
|
|
653
917
|
queryParameters: [Parameters.apiVersion],
|
|
654
918
|
urlParameters: [Parameters.$host, Parameters.applicationId],
|
|
655
919
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
656
920
|
mediaType: "json",
|
|
657
921
|
serializer
|
|
658
922
|
};
|
|
923
|
+
const refreshPermissionsOperationSpec = {
|
|
924
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions",
|
|
925
|
+
httpMethod: "POST",
|
|
926
|
+
responses: {
|
|
927
|
+
200: {},
|
|
928
|
+
201: {},
|
|
929
|
+
202: {},
|
|
930
|
+
204: {},
|
|
931
|
+
default: {
|
|
932
|
+
bodyMapper: Mappers.ErrorResponse
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
queryParameters: [Parameters.apiVersion],
|
|
936
|
+
urlParameters: [
|
|
937
|
+
Parameters.$host,
|
|
938
|
+
Parameters.subscriptionId,
|
|
939
|
+
Parameters.resourceGroupName,
|
|
940
|
+
Parameters.applicationName
|
|
941
|
+
],
|
|
942
|
+
headerParameters: [Parameters.accept],
|
|
943
|
+
serializer
|
|
944
|
+
};
|
|
945
|
+
const listAllowedUpgradePlansOperationSpec = {
|
|
946
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans",
|
|
947
|
+
httpMethod: "POST",
|
|
948
|
+
responses: {
|
|
949
|
+
200: {
|
|
950
|
+
bodyMapper: Mappers.AllowedUpgradePlansResult
|
|
951
|
+
},
|
|
952
|
+
default: {
|
|
953
|
+
bodyMapper: Mappers.ErrorResponse
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
queryParameters: [Parameters.apiVersion],
|
|
957
|
+
urlParameters: [
|
|
958
|
+
Parameters.$host,
|
|
959
|
+
Parameters.subscriptionId,
|
|
960
|
+
Parameters.resourceGroupName,
|
|
961
|
+
Parameters.applicationName
|
|
962
|
+
],
|
|
963
|
+
headerParameters: [Parameters.accept],
|
|
964
|
+
serializer
|
|
965
|
+
};
|
|
966
|
+
const updateAccessOperationSpec = {
|
|
967
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess",
|
|
968
|
+
httpMethod: "POST",
|
|
969
|
+
responses: {
|
|
970
|
+
200: {},
|
|
971
|
+
201: {},
|
|
972
|
+
202: {},
|
|
973
|
+
204: {},
|
|
974
|
+
default: {
|
|
975
|
+
bodyMapper: Mappers.ErrorResponse
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
requestBody: Parameters.parameters2,
|
|
979
|
+
queryParameters: [Parameters.apiVersion],
|
|
980
|
+
urlParameters: [
|
|
981
|
+
Parameters.$host,
|
|
982
|
+
Parameters.subscriptionId,
|
|
983
|
+
Parameters.resourceGroupName,
|
|
984
|
+
Parameters.applicationName
|
|
985
|
+
],
|
|
986
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
987
|
+
mediaType: "json",
|
|
988
|
+
serializer
|
|
989
|
+
};
|
|
990
|
+
const listTokensOperationSpec = {
|
|
991
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens",
|
|
992
|
+
httpMethod: "POST",
|
|
993
|
+
responses: {
|
|
994
|
+
200: {
|
|
995
|
+
bodyMapper: Mappers.ManagedIdentityTokenResult
|
|
996
|
+
},
|
|
997
|
+
default: {
|
|
998
|
+
bodyMapper: Mappers.ErrorResponse
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
requestBody: Parameters.parameters3,
|
|
1002
|
+
queryParameters: [Parameters.apiVersion],
|
|
1003
|
+
urlParameters: [
|
|
1004
|
+
Parameters.$host,
|
|
1005
|
+
Parameters.subscriptionId,
|
|
1006
|
+
Parameters.resourceGroupName,
|
|
1007
|
+
Parameters.applicationName
|
|
1008
|
+
],
|
|
1009
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1010
|
+
mediaType: "json",
|
|
1011
|
+
serializer
|
|
1012
|
+
};
|
|
659
1013
|
const listByResourceGroupNextOperationSpec = {
|
|
660
1014
|
path: "{nextLink}",
|
|
661
1015
|
httpMethod: "GET",
|
|
@@ -667,12 +1021,11 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
667
1021
|
bodyMapper: Mappers.ErrorResponse
|
|
668
1022
|
}
|
|
669
1023
|
},
|
|
670
|
-
queryParameters: [Parameters.apiVersion],
|
|
671
1024
|
urlParameters: [
|
|
672
1025
|
Parameters.$host,
|
|
673
1026
|
Parameters.nextLink,
|
|
674
|
-
Parameters.
|
|
675
|
-
Parameters.
|
|
1027
|
+
Parameters.subscriptionId,
|
|
1028
|
+
Parameters.resourceGroupName
|
|
676
1029
|
],
|
|
677
1030
|
headerParameters: [Parameters.accept],
|
|
678
1031
|
serializer
|
|
@@ -688,7 +1041,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
688
1041
|
bodyMapper: Mappers.ErrorResponse
|
|
689
1042
|
}
|
|
690
1043
|
},
|
|
691
|
-
queryParameters: [Parameters.apiVersion],
|
|
692
1044
|
urlParameters: [
|
|
693
1045
|
Parameters.$host,
|
|
694
1046
|
Parameters.nextLink,
|