@azure/arm-servicefabric 2.1.1-alpha.20231211.1 → 3.0.1-alpha.20231220.4
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 +28 -2
- package/LICENSE +1 -1
- package/dist/index.js +749 -111
- 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/applicationTypeVersionsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypeVersionsListSample.js +30 -6
- package/dist-esm/samples-dev/applicationTypeVersionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesListSample.js +30 -6
- package/dist-esm/samples-dev/applicationTypesListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +19 -9
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsListSample.js +30 -6
- package/dist-esm/samples-dev/applicationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsGetSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsListSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +15 -6
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +11 -3
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +11 -3
- package/dist-esm/samples-dev/clustersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +30 -6
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +29 -5
- package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js +15 -6
- package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +11 -3
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +15 -6
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +11 -3
- package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +30 -6
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/servicesUpdateSample.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 +38 -8
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +7 -7
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +11 -11
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationTypeVersions.d.ts +26 -5
- package/dist-esm/src/operations/applicationTypeVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationTypeVersions.js +139 -19
- package/dist-esm/src/operations/applicationTypeVersions.js.map +1 -1
- package/dist-esm/src/operations/applicationTypes.d.ts +23 -4
- package/dist-esm/src/operations/applicationTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationTypes.js +109 -8
- package/dist-esm/src/operations/applicationTypes.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts +25 -6
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +137 -16
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/clusterVersions.d.ts +3 -3
- package/dist-esm/src/operations/clusterVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/clusterVersions.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +37 -6
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +204 -13
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts +27 -6
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +148 -30
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/applicationTypeVersions.d.ts +14 -13
- package/dist-esm/src/operationsInterfaces/applicationTypeVersions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/applicationTypes.d.ts +12 -11
- package/dist-esm/src/operationsInterfaces/applicationTypes.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/applications.d.ts +14 -13
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusterVersions.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/clusterVersions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +18 -17
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/services.d.ts +15 -14
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
- package/dist-esm/src/serviceFabricManagementClient.js +1 -1
- package/dist-esm/test/servicefabric_examples.spec.js +73 -11
- package/dist-esm/test/servicefabric_examples.spec.js.map +1 -1
- package/package.json +12 -9
- package/review/arm-servicefabric.api.md +72 -30
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +50 -8
- package/src/models/parameters.ts +12 -12
- package/src/operations/applicationTypeVersions.ts +186 -25
- package/src/operations/applicationTypes.ts +141 -15
- package/src/operations/applications.ts +179 -35
- package/src/operations/clusterVersions.ts +3 -3
- package/src/operations/clusters.ts +245 -30
- package/src/operations/services.ts +193 -35
- package/src/operationsInterfaces/applicationTypeVersions.ts +23 -22
- package/src/operationsInterfaces/applicationTypes.ts +19 -18
- package/src/operationsInterfaces/applications.ts +23 -22
- package/src/operationsInterfaces/clusterVersions.ts +3 -3
- package/src/operationsInterfaces/clusters.ts +28 -26
- package/src/operationsInterfaces/services.ts +25 -24
- package/src/serviceFabricManagementClient.ts +1 -1
- package/types/arm-servicefabric.d.ts +125 -83
package/dist/index.js
CHANGED
|
@@ -193,7 +193,7 @@ exports.KnownVmssZonalUpgradeMode = void 0;
|
|
|
193
193
|
/** Known values of {@link ClusterUpgradeCadence} that the service accepts. */
|
|
194
194
|
exports.KnownClusterUpgradeCadence = void 0;
|
|
195
195
|
(function (KnownClusterUpgradeCadence) {
|
|
196
|
-
/** Cluster upgrade starts immediately after a new version is rolled out. Recommended for Test
|
|
196
|
+
/** Cluster upgrade starts immediately after a new version is rolled out. Recommended for Test\/Dev clusters. */
|
|
197
197
|
KnownClusterUpgradeCadence["Wave0"] = "Wave0";
|
|
198
198
|
/** Cluster upgrade starts 7 days after a new version is rolled out. Recommended for Pre-prod clusters. */
|
|
199
199
|
KnownClusterUpgradeCadence["Wave1"] = "Wave1";
|
|
@@ -222,14 +222,14 @@ exports.KnownNotificationChannel = void 0;
|
|
|
222
222
|
/** For subscription receivers. In this case, the parameter receivers should be a list of roles of the subscription for the cluster (eg. Owner, AccountAdmin, etc) that will receive the notifications. */
|
|
223
223
|
KnownNotificationChannel["EmailSubscription"] = "EmailSubscription";
|
|
224
224
|
})(exports.KnownNotificationChannel || (exports.KnownNotificationChannel = {}));
|
|
225
|
-
/** Known values of {@link
|
|
226
|
-
exports.
|
|
227
|
-
(function (
|
|
225
|
+
/** Known values of {@link ClusterVersionsEnvironment} that the service accepts. */
|
|
226
|
+
exports.KnownClusterVersionsEnvironment = void 0;
|
|
227
|
+
(function (KnownClusterVersionsEnvironment) {
|
|
228
228
|
/** Windows */
|
|
229
|
-
|
|
229
|
+
KnownClusterVersionsEnvironment["Windows"] = "Windows";
|
|
230
230
|
/** Linux */
|
|
231
|
-
|
|
232
|
-
})(exports.
|
|
231
|
+
KnownClusterVersionsEnvironment["Linux"] = "Linux";
|
|
232
|
+
})(exports.KnownClusterVersionsEnvironment || (exports.KnownClusterVersionsEnvironment = {}));
|
|
233
233
|
/** Known values of {@link ArmUpgradeFailureAction} that the service accepts. */
|
|
234
234
|
exports.KnownArmUpgradeFailureAction = void 0;
|
|
235
235
|
(function (KnownArmUpgradeFailureAction) {
|
|
@@ -3336,6 +3336,17 @@ const versionsDescription = {
|
|
|
3336
3336
|
parameterPath: ["options", "versionsDescription"],
|
|
3337
3337
|
mapper: UpgradableVersionsDescription
|
|
3338
3338
|
};
|
|
3339
|
+
const nextLink = {
|
|
3340
|
+
parameterPath: "nextLink",
|
|
3341
|
+
mapper: {
|
|
3342
|
+
serializedName: "nextLink",
|
|
3343
|
+
required: true,
|
|
3344
|
+
type: {
|
|
3345
|
+
name: "String"
|
|
3346
|
+
}
|
|
3347
|
+
},
|
|
3348
|
+
skipEncoding: true
|
|
3349
|
+
};
|
|
3339
3350
|
const location = {
|
|
3340
3351
|
parameterPath: "location",
|
|
3341
3352
|
mapper: {
|
|
@@ -3366,17 +3377,6 @@ const environment = {
|
|
|
3366
3377
|
}
|
|
3367
3378
|
}
|
|
3368
3379
|
};
|
|
3369
|
-
const nextLink = {
|
|
3370
|
-
parameterPath: "nextLink",
|
|
3371
|
-
mapper: {
|
|
3372
|
-
serializedName: "nextLink",
|
|
3373
|
-
required: true,
|
|
3374
|
-
type: {
|
|
3375
|
-
name: "String"
|
|
3376
|
-
}
|
|
3377
|
-
},
|
|
3378
|
-
skipEncoding: true
|
|
3379
|
-
};
|
|
3380
3380
|
const applicationTypeName = {
|
|
3381
3381
|
parameterPath: "applicationTypeName",
|
|
3382
3382
|
mapper: {
|
|
@@ -3449,25 +3449,17 @@ const parameters7 = {
|
|
|
3449
3449
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3450
3450
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3451
3451
|
*/
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
});
|
|
3464
|
-
}
|
|
3465
|
-
sendPollRequest(path) {
|
|
3466
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3467
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
3468
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
3469
|
-
});
|
|
3470
|
-
}
|
|
3452
|
+
function createLroSpec(inputs) {
|
|
3453
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
3454
|
+
return {
|
|
3455
|
+
requestMethod: spec.httpMethod,
|
|
3456
|
+
requestPath: spec.path,
|
|
3457
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
3458
|
+
sendPollRequest: (path, options) => {
|
|
3459
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
3460
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
3461
|
+
}
|
|
3462
|
+
};
|
|
3471
3463
|
}
|
|
3472
3464
|
|
|
3473
3465
|
/*
|
|
@@ -3477,6 +3469,7 @@ class LroImpl {
|
|
|
3477
3469
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3478
3470
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3479
3471
|
*/
|
|
3472
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3480
3473
|
/** Class containing Clusters operations. */
|
|
3481
3474
|
class ClustersImpl {
|
|
3482
3475
|
/**
|
|
@@ -3486,6 +3479,131 @@ class ClustersImpl {
|
|
|
3486
3479
|
constructor(client) {
|
|
3487
3480
|
this.client = client;
|
|
3488
3481
|
}
|
|
3482
|
+
/**
|
|
3483
|
+
* Gets all Service Fabric cluster resources created or in the process of being created in the resource
|
|
3484
|
+
* group.
|
|
3485
|
+
* @param resourceGroupName The name of the resource group.
|
|
3486
|
+
* @param options The options parameters.
|
|
3487
|
+
*/
|
|
3488
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
3489
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
3490
|
+
return {
|
|
3491
|
+
next() {
|
|
3492
|
+
return iter.next();
|
|
3493
|
+
},
|
|
3494
|
+
[Symbol.asyncIterator]() {
|
|
3495
|
+
return this;
|
|
3496
|
+
},
|
|
3497
|
+
byPage: (settings) => {
|
|
3498
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3499
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3500
|
+
}
|
|
3501
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3502
|
+
}
|
|
3503
|
+
};
|
|
3504
|
+
}
|
|
3505
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3506
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3507
|
+
let result;
|
|
3508
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3509
|
+
if (!continuationToken) {
|
|
3510
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3511
|
+
let page = result.value || [];
|
|
3512
|
+
continuationToken = result.nextLink;
|
|
3513
|
+
setContinuationToken(page, continuationToken);
|
|
3514
|
+
yield yield tslib.__await(page);
|
|
3515
|
+
}
|
|
3516
|
+
while (continuationToken) {
|
|
3517
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3518
|
+
continuationToken = result.nextLink;
|
|
3519
|
+
let page = result.value || [];
|
|
3520
|
+
setContinuationToken(page, continuationToken);
|
|
3521
|
+
yield yield tslib.__await(page);
|
|
3522
|
+
}
|
|
3523
|
+
});
|
|
3524
|
+
}
|
|
3525
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
3526
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
3527
|
+
var _a, e_1, _b, _c;
|
|
3528
|
+
try {
|
|
3529
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3530
|
+
_c = _f.value;
|
|
3531
|
+
_d = false;
|
|
3532
|
+
const page = _c;
|
|
3533
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3537
|
+
finally {
|
|
3538
|
+
try {
|
|
3539
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3540
|
+
}
|
|
3541
|
+
finally { if (e_1) throw e_1.error; }
|
|
3542
|
+
}
|
|
3543
|
+
});
|
|
3544
|
+
}
|
|
3545
|
+
/**
|
|
3546
|
+
* Gets all Service Fabric cluster resources created or in the process of being created in the
|
|
3547
|
+
* subscription.
|
|
3548
|
+
* @param options The options parameters.
|
|
3549
|
+
*/
|
|
3550
|
+
list(options) {
|
|
3551
|
+
const iter = this.listPagingAll(options);
|
|
3552
|
+
return {
|
|
3553
|
+
next() {
|
|
3554
|
+
return iter.next();
|
|
3555
|
+
},
|
|
3556
|
+
[Symbol.asyncIterator]() {
|
|
3557
|
+
return this;
|
|
3558
|
+
},
|
|
3559
|
+
byPage: (settings) => {
|
|
3560
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3561
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3562
|
+
}
|
|
3563
|
+
return this.listPagingPage(options, settings);
|
|
3564
|
+
}
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
listPagingPage(options, settings) {
|
|
3568
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3569
|
+
let result;
|
|
3570
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3571
|
+
if (!continuationToken) {
|
|
3572
|
+
result = yield tslib.__await(this._list(options));
|
|
3573
|
+
let page = result.value || [];
|
|
3574
|
+
continuationToken = result.nextLink;
|
|
3575
|
+
setContinuationToken(page, continuationToken);
|
|
3576
|
+
yield yield tslib.__await(page);
|
|
3577
|
+
}
|
|
3578
|
+
while (continuationToken) {
|
|
3579
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3580
|
+
continuationToken = result.nextLink;
|
|
3581
|
+
let page = result.value || [];
|
|
3582
|
+
setContinuationToken(page, continuationToken);
|
|
3583
|
+
yield yield tslib.__await(page);
|
|
3584
|
+
}
|
|
3585
|
+
});
|
|
3586
|
+
}
|
|
3587
|
+
listPagingAll(options) {
|
|
3588
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3589
|
+
var _a, e_2, _b, _c;
|
|
3590
|
+
try {
|
|
3591
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3592
|
+
_c = _f.value;
|
|
3593
|
+
_d = false;
|
|
3594
|
+
const page = _c;
|
|
3595
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
3599
|
+
finally {
|
|
3600
|
+
try {
|
|
3601
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3602
|
+
}
|
|
3603
|
+
finally { if (e_2) throw e_2.error; }
|
|
3604
|
+
}
|
|
3605
|
+
});
|
|
3606
|
+
}
|
|
3489
3607
|
/**
|
|
3490
3608
|
* Get a Service Fabric cluster resource created or in the process of being created in the specified
|
|
3491
3609
|
* resource group.
|
|
@@ -3508,7 +3626,7 @@ class ClustersImpl {
|
|
|
3508
3626
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3509
3627
|
return this.client.sendOperationRequest(args, spec);
|
|
3510
3628
|
});
|
|
3511
|
-
const
|
|
3629
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3512
3630
|
var _a;
|
|
3513
3631
|
let currentRawResponse = undefined;
|
|
3514
3632
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3527,9 +3645,13 @@ class ClustersImpl {
|
|
|
3527
3645
|
}
|
|
3528
3646
|
};
|
|
3529
3647
|
});
|
|
3530
|
-
const lro =
|
|
3531
|
-
|
|
3532
|
-
|
|
3648
|
+
const lro = createLroSpec({
|
|
3649
|
+
sendOperationFn,
|
|
3650
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
3651
|
+
spec: createOrUpdateOperationSpec$4
|
|
3652
|
+
});
|
|
3653
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3654
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3533
3655
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3534
3656
|
});
|
|
3535
3657
|
yield poller.poll();
|
|
@@ -3562,7 +3684,7 @@ class ClustersImpl {
|
|
|
3562
3684
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3563
3685
|
return this.client.sendOperationRequest(args, spec);
|
|
3564
3686
|
});
|
|
3565
|
-
const
|
|
3687
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3566
3688
|
var _a;
|
|
3567
3689
|
let currentRawResponse = undefined;
|
|
3568
3690
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3581,9 +3703,13 @@ class ClustersImpl {
|
|
|
3581
3703
|
}
|
|
3582
3704
|
};
|
|
3583
3705
|
});
|
|
3584
|
-
const lro =
|
|
3585
|
-
|
|
3586
|
-
|
|
3706
|
+
const lro = createLroSpec({
|
|
3707
|
+
sendOperationFn,
|
|
3708
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
3709
|
+
spec: updateOperationSpec$2
|
|
3710
|
+
});
|
|
3711
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3712
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3587
3713
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3588
3714
|
});
|
|
3589
3715
|
yield poller.poll();
|
|
@@ -3619,7 +3745,7 @@ class ClustersImpl {
|
|
|
3619
3745
|
* @param resourceGroupName The name of the resource group.
|
|
3620
3746
|
* @param options The options parameters.
|
|
3621
3747
|
*/
|
|
3622
|
-
|
|
3748
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
3623
3749
|
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3624
3750
|
}
|
|
3625
3751
|
/**
|
|
@@ -3627,7 +3753,7 @@ class ClustersImpl {
|
|
|
3627
3753
|
* subscription.
|
|
3628
3754
|
* @param options The options parameters.
|
|
3629
3755
|
*/
|
|
3630
|
-
|
|
3756
|
+
_list(options) {
|
|
3631
3757
|
return this.client.sendOperationRequest({ options }, listOperationSpec$6);
|
|
3632
3758
|
}
|
|
3633
3759
|
/**
|
|
@@ -3641,6 +3767,23 @@ class ClustersImpl {
|
|
|
3641
3767
|
listUpgradableVersions(resourceGroupName, clusterName, options) {
|
|
3642
3768
|
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listUpgradableVersionsOperationSpec);
|
|
3643
3769
|
}
|
|
3770
|
+
/**
|
|
3771
|
+
* ListByResourceGroupNext
|
|
3772
|
+
* @param resourceGroupName The name of the resource group.
|
|
3773
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
3774
|
+
* @param options The options parameters.
|
|
3775
|
+
*/
|
|
3776
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
3777
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
3778
|
+
}
|
|
3779
|
+
/**
|
|
3780
|
+
* ListNext
|
|
3781
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3782
|
+
* @param options The options parameters.
|
|
3783
|
+
*/
|
|
3784
|
+
_listNext(nextLink, options) {
|
|
3785
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
|
|
3786
|
+
}
|
|
3644
3787
|
}
|
|
3645
3788
|
// Operation Specifications
|
|
3646
3789
|
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -3808,6 +3951,45 @@ const listUpgradableVersionsOperationSpec = {
|
|
|
3808
3951
|
mediaType: "json",
|
|
3809
3952
|
serializer: serializer$6
|
|
3810
3953
|
};
|
|
3954
|
+
const listByResourceGroupNextOperationSpec = {
|
|
3955
|
+
path: "{nextLink}",
|
|
3956
|
+
httpMethod: "GET",
|
|
3957
|
+
responses: {
|
|
3958
|
+
200: {
|
|
3959
|
+
bodyMapper: ClusterListResult
|
|
3960
|
+
},
|
|
3961
|
+
default: {
|
|
3962
|
+
bodyMapper: ErrorModel
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
urlParameters: [
|
|
3966
|
+
$host,
|
|
3967
|
+
resourceGroupName,
|
|
3968
|
+
subscriptionId,
|
|
3969
|
+
nextLink
|
|
3970
|
+
],
|
|
3971
|
+
headerParameters: [accept],
|
|
3972
|
+
serializer: serializer$6
|
|
3973
|
+
};
|
|
3974
|
+
const listNextOperationSpec$5 = {
|
|
3975
|
+
path: "{nextLink}",
|
|
3976
|
+
httpMethod: "GET",
|
|
3977
|
+
responses: {
|
|
3978
|
+
200: {
|
|
3979
|
+
bodyMapper: ClusterListResult
|
|
3980
|
+
},
|
|
3981
|
+
default: {
|
|
3982
|
+
bodyMapper: ErrorModel
|
|
3983
|
+
}
|
|
3984
|
+
},
|
|
3985
|
+
urlParameters: [
|
|
3986
|
+
$host,
|
|
3987
|
+
subscriptionId,
|
|
3988
|
+
nextLink
|
|
3989
|
+
],
|
|
3990
|
+
headerParameters: [accept],
|
|
3991
|
+
serializer: serializer$6
|
|
3992
|
+
};
|
|
3811
3993
|
|
|
3812
3994
|
/*
|
|
3813
3995
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -4040,7 +4222,7 @@ class OperationsImpl {
|
|
|
4040
4222
|
* @param options The options parameters.
|
|
4041
4223
|
*/
|
|
4042
4224
|
_listNext(nextLink, options) {
|
|
4043
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
4225
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
|
4044
4226
|
}
|
|
4045
4227
|
}
|
|
4046
4228
|
// Operation Specifications
|
|
@@ -4061,7 +4243,7 @@ const listOperationSpec$4 = {
|
|
|
4061
4243
|
headerParameters: [accept],
|
|
4062
4244
|
serializer: serializer$4
|
|
4063
4245
|
};
|
|
4064
|
-
const listNextOperationSpec = {
|
|
4246
|
+
const listNextOperationSpec$4 = {
|
|
4065
4247
|
path: "{nextLink}",
|
|
4066
4248
|
httpMethod: "GET",
|
|
4067
4249
|
responses: {
|
|
@@ -4084,6 +4266,7 @@ const listNextOperationSpec = {
|
|
|
4084
4266
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4085
4267
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4086
4268
|
*/
|
|
4269
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4087
4270
|
/** Class containing ApplicationTypes operations. */
|
|
4088
4271
|
class ApplicationTypesImpl {
|
|
4089
4272
|
/**
|
|
@@ -4093,6 +4276,70 @@ class ApplicationTypesImpl {
|
|
|
4093
4276
|
constructor(client) {
|
|
4094
4277
|
this.client = client;
|
|
4095
4278
|
}
|
|
4279
|
+
/**
|
|
4280
|
+
* Gets all application type name resources created or in the process of being created in the Service
|
|
4281
|
+
* Fabric cluster resource.
|
|
4282
|
+
* @param resourceGroupName The name of the resource group.
|
|
4283
|
+
* @param clusterName The name of the cluster resource.
|
|
4284
|
+
* @param options The options parameters.
|
|
4285
|
+
*/
|
|
4286
|
+
list(resourceGroupName, clusterName, options) {
|
|
4287
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
4288
|
+
return {
|
|
4289
|
+
next() {
|
|
4290
|
+
return iter.next();
|
|
4291
|
+
},
|
|
4292
|
+
[Symbol.asyncIterator]() {
|
|
4293
|
+
return this;
|
|
4294
|
+
},
|
|
4295
|
+
byPage: (settings) => {
|
|
4296
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4297
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4298
|
+
}
|
|
4299
|
+
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
4300
|
+
}
|
|
4301
|
+
};
|
|
4302
|
+
}
|
|
4303
|
+
listPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
4304
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4305
|
+
let result;
|
|
4306
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4307
|
+
if (!continuationToken) {
|
|
4308
|
+
result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
|
|
4309
|
+
let page = result.value || [];
|
|
4310
|
+
continuationToken = result.nextLink;
|
|
4311
|
+
setContinuationToken(page, continuationToken);
|
|
4312
|
+
yield yield tslib.__await(page);
|
|
4313
|
+
}
|
|
4314
|
+
while (continuationToken) {
|
|
4315
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, clusterName, continuationToken, options));
|
|
4316
|
+
continuationToken = result.nextLink;
|
|
4317
|
+
let page = result.value || [];
|
|
4318
|
+
setContinuationToken(page, continuationToken);
|
|
4319
|
+
yield yield tslib.__await(page);
|
|
4320
|
+
}
|
|
4321
|
+
});
|
|
4322
|
+
}
|
|
4323
|
+
listPagingAll(resourceGroupName, clusterName, options) {
|
|
4324
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4325
|
+
var _a, e_1, _b, _c;
|
|
4326
|
+
try {
|
|
4327
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
4328
|
+
_c = _f.value;
|
|
4329
|
+
_d = false;
|
|
4330
|
+
const page = _c;
|
|
4331
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4335
|
+
finally {
|
|
4336
|
+
try {
|
|
4337
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4338
|
+
}
|
|
4339
|
+
finally { if (e_1) throw e_1.error; }
|
|
4340
|
+
}
|
|
4341
|
+
});
|
|
4342
|
+
}
|
|
4096
4343
|
/**
|
|
4097
4344
|
* Get a Service Fabric application type name resource created or in the process of being created in
|
|
4098
4345
|
* the Service Fabric cluster resource.
|
|
@@ -4133,7 +4380,7 @@ class ApplicationTypesImpl {
|
|
|
4133
4380
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4134
4381
|
return this.client.sendOperationRequest(args, spec);
|
|
4135
4382
|
});
|
|
4136
|
-
const
|
|
4383
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4137
4384
|
var _a;
|
|
4138
4385
|
let currentRawResponse = undefined;
|
|
4139
4386
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4152,9 +4399,13 @@ class ApplicationTypesImpl {
|
|
|
4152
4399
|
}
|
|
4153
4400
|
};
|
|
4154
4401
|
});
|
|
4155
|
-
const lro =
|
|
4156
|
-
|
|
4157
|
-
|
|
4402
|
+
const lro = createLroSpec({
|
|
4403
|
+
sendOperationFn,
|
|
4404
|
+
args: { resourceGroupName, clusterName, applicationTypeName, options },
|
|
4405
|
+
spec: deleteOperationSpec$3
|
|
4406
|
+
});
|
|
4407
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4408
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4158
4409
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4159
4410
|
});
|
|
4160
4411
|
yield poller.poll();
|
|
@@ -4181,9 +4432,19 @@ class ApplicationTypesImpl {
|
|
|
4181
4432
|
* @param clusterName The name of the cluster resource.
|
|
4182
4433
|
* @param options The options parameters.
|
|
4183
4434
|
*/
|
|
4184
|
-
|
|
4435
|
+
_list(resourceGroupName, clusterName, options) {
|
|
4185
4436
|
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec$3);
|
|
4186
4437
|
}
|
|
4438
|
+
/**
|
|
4439
|
+
* ListNext
|
|
4440
|
+
* @param resourceGroupName The name of the resource group.
|
|
4441
|
+
* @param clusterName The name of the cluster resource.
|
|
4442
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4443
|
+
* @param options The options parameters.
|
|
4444
|
+
*/
|
|
4445
|
+
_listNext(resourceGroupName, clusterName, nextLink, options) {
|
|
4446
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listNextOperationSpec$3);
|
|
4447
|
+
}
|
|
4187
4448
|
}
|
|
4188
4449
|
// Operation Specifications
|
|
4189
4450
|
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -4277,6 +4538,27 @@ const listOperationSpec$3 = {
|
|
|
4277
4538
|
headerParameters: [accept],
|
|
4278
4539
|
serializer: serializer$3
|
|
4279
4540
|
};
|
|
4541
|
+
const listNextOperationSpec$3 = {
|
|
4542
|
+
path: "{nextLink}",
|
|
4543
|
+
httpMethod: "GET",
|
|
4544
|
+
responses: {
|
|
4545
|
+
200: {
|
|
4546
|
+
bodyMapper: ApplicationTypeResourceList
|
|
4547
|
+
},
|
|
4548
|
+
default: {
|
|
4549
|
+
bodyMapper: ErrorModel
|
|
4550
|
+
}
|
|
4551
|
+
},
|
|
4552
|
+
urlParameters: [
|
|
4553
|
+
$host,
|
|
4554
|
+
resourceGroupName,
|
|
4555
|
+
clusterName,
|
|
4556
|
+
subscriptionId,
|
|
4557
|
+
nextLink
|
|
4558
|
+
],
|
|
4559
|
+
headerParameters: [accept],
|
|
4560
|
+
serializer: serializer$3
|
|
4561
|
+
};
|
|
4280
4562
|
|
|
4281
4563
|
/*
|
|
4282
4564
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -4285,6 +4567,7 @@ const listOperationSpec$3 = {
|
|
|
4285
4567
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4286
4568
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4287
4569
|
*/
|
|
4570
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4288
4571
|
/** Class containing ApplicationTypeVersions operations. */
|
|
4289
4572
|
class ApplicationTypeVersionsImpl {
|
|
4290
4573
|
/**
|
|
@@ -4294,6 +4577,71 @@ class ApplicationTypeVersionsImpl {
|
|
|
4294
4577
|
constructor(client) {
|
|
4295
4578
|
this.client = client;
|
|
4296
4579
|
}
|
|
4580
|
+
/**
|
|
4581
|
+
* Gets all application type version resources created or in the process of being created in the
|
|
4582
|
+
* Service Fabric application type name resource.
|
|
4583
|
+
* @param resourceGroupName The name of the resource group.
|
|
4584
|
+
* @param clusterName The name of the cluster resource.
|
|
4585
|
+
* @param applicationTypeName The name of the application type name resource.
|
|
4586
|
+
* @param options The options parameters.
|
|
4587
|
+
*/
|
|
4588
|
+
list(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
4589
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, applicationTypeName, options);
|
|
4590
|
+
return {
|
|
4591
|
+
next() {
|
|
4592
|
+
return iter.next();
|
|
4593
|
+
},
|
|
4594
|
+
[Symbol.asyncIterator]() {
|
|
4595
|
+
return this;
|
|
4596
|
+
},
|
|
4597
|
+
byPage: (settings) => {
|
|
4598
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4599
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4600
|
+
}
|
|
4601
|
+
return this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings);
|
|
4602
|
+
}
|
|
4603
|
+
};
|
|
4604
|
+
}
|
|
4605
|
+
listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings) {
|
|
4606
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4607
|
+
let result;
|
|
4608
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4609
|
+
if (!continuationToken) {
|
|
4610
|
+
result = yield tslib.__await(this._list(resourceGroupName, clusterName, applicationTypeName, options));
|
|
4611
|
+
let page = result.value || [];
|
|
4612
|
+
continuationToken = result.nextLink;
|
|
4613
|
+
setContinuationToken(page, continuationToken);
|
|
4614
|
+
yield yield tslib.__await(page);
|
|
4615
|
+
}
|
|
4616
|
+
while (continuationToken) {
|
|
4617
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, clusterName, applicationTypeName, continuationToken, options));
|
|
4618
|
+
continuationToken = result.nextLink;
|
|
4619
|
+
let page = result.value || [];
|
|
4620
|
+
setContinuationToken(page, continuationToken);
|
|
4621
|
+
yield yield tslib.__await(page);
|
|
4622
|
+
}
|
|
4623
|
+
});
|
|
4624
|
+
}
|
|
4625
|
+
listPagingAll(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
4626
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4627
|
+
var _a, e_1, _b, _c;
|
|
4628
|
+
try {
|
|
4629
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
4630
|
+
_c = _f.value;
|
|
4631
|
+
_d = false;
|
|
4632
|
+
const page = _c;
|
|
4633
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4634
|
+
}
|
|
4635
|
+
}
|
|
4636
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4637
|
+
finally {
|
|
4638
|
+
try {
|
|
4639
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4640
|
+
}
|
|
4641
|
+
finally { if (e_1) throw e_1.error; }
|
|
4642
|
+
}
|
|
4643
|
+
});
|
|
4644
|
+
}
|
|
4297
4645
|
/**
|
|
4298
4646
|
* Get a Service Fabric application type version resource created or in the process of being created in
|
|
4299
4647
|
* the Service Fabric application type name resource.
|
|
@@ -4320,7 +4668,7 @@ class ApplicationTypeVersionsImpl {
|
|
|
4320
4668
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4321
4669
|
return this.client.sendOperationRequest(args, spec);
|
|
4322
4670
|
});
|
|
4323
|
-
const
|
|
4671
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4324
4672
|
var _a;
|
|
4325
4673
|
let currentRawResponse = undefined;
|
|
4326
4674
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4339,16 +4687,20 @@ class ApplicationTypeVersionsImpl {
|
|
|
4339
4687
|
}
|
|
4340
4688
|
};
|
|
4341
4689
|
});
|
|
4342
|
-
const lro =
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4690
|
+
const lro = createLroSpec({
|
|
4691
|
+
sendOperationFn,
|
|
4692
|
+
args: {
|
|
4693
|
+
resourceGroupName,
|
|
4694
|
+
clusterName,
|
|
4695
|
+
applicationTypeName,
|
|
4696
|
+
version,
|
|
4697
|
+
parameters,
|
|
4698
|
+
options
|
|
4699
|
+
},
|
|
4700
|
+
spec: createOrUpdateOperationSpec$2
|
|
4701
|
+
});
|
|
4702
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4703
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4352
4704
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4353
4705
|
});
|
|
4354
4706
|
yield poller.poll();
|
|
@@ -4383,7 +4735,7 @@ class ApplicationTypeVersionsImpl {
|
|
|
4383
4735
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4384
4736
|
return this.client.sendOperationRequest(args, spec);
|
|
4385
4737
|
});
|
|
4386
|
-
const
|
|
4738
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4387
4739
|
var _a;
|
|
4388
4740
|
let currentRawResponse = undefined;
|
|
4389
4741
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4402,9 +4754,19 @@ class ApplicationTypeVersionsImpl {
|
|
|
4402
4754
|
}
|
|
4403
4755
|
};
|
|
4404
4756
|
});
|
|
4405
|
-
const lro =
|
|
4406
|
-
|
|
4407
|
-
|
|
4757
|
+
const lro = createLroSpec({
|
|
4758
|
+
sendOperationFn,
|
|
4759
|
+
args: {
|
|
4760
|
+
resourceGroupName,
|
|
4761
|
+
clusterName,
|
|
4762
|
+
applicationTypeName,
|
|
4763
|
+
version,
|
|
4764
|
+
options
|
|
4765
|
+
},
|
|
4766
|
+
spec: deleteOperationSpec$2
|
|
4767
|
+
});
|
|
4768
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4769
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4408
4770
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4409
4771
|
});
|
|
4410
4772
|
yield poller.poll();
|
|
@@ -4433,9 +4795,26 @@ class ApplicationTypeVersionsImpl {
|
|
|
4433
4795
|
* @param applicationTypeName The name of the application type name resource.
|
|
4434
4796
|
* @param options The options parameters.
|
|
4435
4797
|
*/
|
|
4436
|
-
|
|
4798
|
+
_list(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
4437
4799
|
return this.client.sendOperationRequest({ resourceGroupName, clusterName, applicationTypeName, options }, listOperationSpec$2);
|
|
4438
4800
|
}
|
|
4801
|
+
/**
|
|
4802
|
+
* ListNext
|
|
4803
|
+
* @param resourceGroupName The name of the resource group.
|
|
4804
|
+
* @param clusterName The name of the cluster resource.
|
|
4805
|
+
* @param applicationTypeName The name of the application type name resource.
|
|
4806
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4807
|
+
* @param options The options parameters.
|
|
4808
|
+
*/
|
|
4809
|
+
_listNext(resourceGroupName, clusterName, applicationTypeName, nextLink, options) {
|
|
4810
|
+
return this.client.sendOperationRequest({
|
|
4811
|
+
resourceGroupName,
|
|
4812
|
+
clusterName,
|
|
4813
|
+
applicationTypeName,
|
|
4814
|
+
nextLink,
|
|
4815
|
+
options
|
|
4816
|
+
}, listNextOperationSpec$2);
|
|
4817
|
+
}
|
|
4439
4818
|
}
|
|
4440
4819
|
// Operation Specifications
|
|
4441
4820
|
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -4542,6 +4921,28 @@ const listOperationSpec$2 = {
|
|
|
4542
4921
|
headerParameters: [accept],
|
|
4543
4922
|
serializer: serializer$2
|
|
4544
4923
|
};
|
|
4924
|
+
const listNextOperationSpec$2 = {
|
|
4925
|
+
path: "{nextLink}",
|
|
4926
|
+
httpMethod: "GET",
|
|
4927
|
+
responses: {
|
|
4928
|
+
200: {
|
|
4929
|
+
bodyMapper: ApplicationTypeVersionResourceList
|
|
4930
|
+
},
|
|
4931
|
+
default: {
|
|
4932
|
+
bodyMapper: ErrorModel
|
|
4933
|
+
}
|
|
4934
|
+
},
|
|
4935
|
+
urlParameters: [
|
|
4936
|
+
$host,
|
|
4937
|
+
resourceGroupName,
|
|
4938
|
+
clusterName,
|
|
4939
|
+
subscriptionId,
|
|
4940
|
+
nextLink,
|
|
4941
|
+
applicationTypeName
|
|
4942
|
+
],
|
|
4943
|
+
headerParameters: [accept],
|
|
4944
|
+
serializer: serializer$2
|
|
4945
|
+
};
|
|
4545
4946
|
|
|
4546
4947
|
/*
|
|
4547
4948
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -4550,6 +4951,7 @@ const listOperationSpec$2 = {
|
|
|
4550
4951
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4551
4952
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4552
4953
|
*/
|
|
4954
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4553
4955
|
/** Class containing Applications operations. */
|
|
4554
4956
|
class ApplicationsImpl {
|
|
4555
4957
|
/**
|
|
@@ -4559,6 +4961,70 @@ class ApplicationsImpl {
|
|
|
4559
4961
|
constructor(client) {
|
|
4560
4962
|
this.client = client;
|
|
4561
4963
|
}
|
|
4964
|
+
/**
|
|
4965
|
+
* Gets all application resources created or in the process of being created in the Service Fabric
|
|
4966
|
+
* cluster resource.
|
|
4967
|
+
* @param resourceGroupName The name of the resource group.
|
|
4968
|
+
* @param clusterName The name of the cluster resource.
|
|
4969
|
+
* @param options The options parameters.
|
|
4970
|
+
*/
|
|
4971
|
+
list(resourceGroupName, clusterName, options) {
|
|
4972
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
4973
|
+
return {
|
|
4974
|
+
next() {
|
|
4975
|
+
return iter.next();
|
|
4976
|
+
},
|
|
4977
|
+
[Symbol.asyncIterator]() {
|
|
4978
|
+
return this;
|
|
4979
|
+
},
|
|
4980
|
+
byPage: (settings) => {
|
|
4981
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4982
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4983
|
+
}
|
|
4984
|
+
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
4985
|
+
}
|
|
4986
|
+
};
|
|
4987
|
+
}
|
|
4988
|
+
listPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
4989
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4990
|
+
let result;
|
|
4991
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4992
|
+
if (!continuationToken) {
|
|
4993
|
+
result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
|
|
4994
|
+
let page = result.value || [];
|
|
4995
|
+
continuationToken = result.nextLink;
|
|
4996
|
+
setContinuationToken(page, continuationToken);
|
|
4997
|
+
yield yield tslib.__await(page);
|
|
4998
|
+
}
|
|
4999
|
+
while (continuationToken) {
|
|
5000
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, clusterName, continuationToken, options));
|
|
5001
|
+
continuationToken = result.nextLink;
|
|
5002
|
+
let page = result.value || [];
|
|
5003
|
+
setContinuationToken(page, continuationToken);
|
|
5004
|
+
yield yield tslib.__await(page);
|
|
5005
|
+
}
|
|
5006
|
+
});
|
|
5007
|
+
}
|
|
5008
|
+
listPagingAll(resourceGroupName, clusterName, options) {
|
|
5009
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
5010
|
+
var _a, e_1, _b, _c;
|
|
5011
|
+
try {
|
|
5012
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
5013
|
+
_c = _f.value;
|
|
5014
|
+
_d = false;
|
|
5015
|
+
const page = _c;
|
|
5016
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
5019
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5020
|
+
finally {
|
|
5021
|
+
try {
|
|
5022
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
5023
|
+
}
|
|
5024
|
+
finally { if (e_1) throw e_1.error; }
|
|
5025
|
+
}
|
|
5026
|
+
});
|
|
5027
|
+
}
|
|
4562
5028
|
/**
|
|
4563
5029
|
* Get a Service Fabric application resource created or in the process of being created in the Service
|
|
4564
5030
|
* Fabric cluster resource.
|
|
@@ -4583,7 +5049,7 @@ class ApplicationsImpl {
|
|
|
4583
5049
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4584
5050
|
return this.client.sendOperationRequest(args, spec);
|
|
4585
5051
|
});
|
|
4586
|
-
const
|
|
5052
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4587
5053
|
var _a;
|
|
4588
5054
|
let currentRawResponse = undefined;
|
|
4589
5055
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4602,9 +5068,19 @@ class ApplicationsImpl {
|
|
|
4602
5068
|
}
|
|
4603
5069
|
};
|
|
4604
5070
|
});
|
|
4605
|
-
const lro =
|
|
4606
|
-
|
|
4607
|
-
|
|
5071
|
+
const lro = createLroSpec({
|
|
5072
|
+
sendOperationFn,
|
|
5073
|
+
args: {
|
|
5074
|
+
resourceGroupName,
|
|
5075
|
+
clusterName,
|
|
5076
|
+
applicationName,
|
|
5077
|
+
parameters,
|
|
5078
|
+
options
|
|
5079
|
+
},
|
|
5080
|
+
spec: createOrUpdateOperationSpec$1
|
|
5081
|
+
});
|
|
5082
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5083
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4608
5084
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4609
5085
|
});
|
|
4610
5086
|
yield poller.poll();
|
|
@@ -4638,7 +5114,7 @@ class ApplicationsImpl {
|
|
|
4638
5114
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4639
5115
|
return this.client.sendOperationRequest(args, spec);
|
|
4640
5116
|
});
|
|
4641
|
-
const
|
|
5117
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4642
5118
|
var _a;
|
|
4643
5119
|
let currentRawResponse = undefined;
|
|
4644
5120
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4657,9 +5133,19 @@ class ApplicationsImpl {
|
|
|
4657
5133
|
}
|
|
4658
5134
|
};
|
|
4659
5135
|
});
|
|
4660
|
-
const lro =
|
|
4661
|
-
|
|
4662
|
-
|
|
5136
|
+
const lro = createLroSpec({
|
|
5137
|
+
sendOperationFn,
|
|
5138
|
+
args: {
|
|
5139
|
+
resourceGroupName,
|
|
5140
|
+
clusterName,
|
|
5141
|
+
applicationName,
|
|
5142
|
+
parameters,
|
|
5143
|
+
options
|
|
5144
|
+
},
|
|
5145
|
+
spec: updateOperationSpec$1
|
|
5146
|
+
});
|
|
5147
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5148
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4663
5149
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4664
5150
|
});
|
|
4665
5151
|
yield poller.poll();
|
|
@@ -4692,7 +5178,7 @@ class ApplicationsImpl {
|
|
|
4692
5178
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4693
5179
|
return this.client.sendOperationRequest(args, spec);
|
|
4694
5180
|
});
|
|
4695
|
-
const
|
|
5181
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4696
5182
|
var _a;
|
|
4697
5183
|
let currentRawResponse = undefined;
|
|
4698
5184
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4711,9 +5197,13 @@ class ApplicationsImpl {
|
|
|
4711
5197
|
}
|
|
4712
5198
|
};
|
|
4713
5199
|
});
|
|
4714
|
-
const lro =
|
|
4715
|
-
|
|
4716
|
-
|
|
5200
|
+
const lro = createLroSpec({
|
|
5201
|
+
sendOperationFn,
|
|
5202
|
+
args: { resourceGroupName, clusterName, applicationName, options },
|
|
5203
|
+
spec: deleteOperationSpec$1
|
|
5204
|
+
});
|
|
5205
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5206
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4717
5207
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4718
5208
|
});
|
|
4719
5209
|
yield poller.poll();
|
|
@@ -4740,9 +5230,19 @@ class ApplicationsImpl {
|
|
|
4740
5230
|
* @param clusterName The name of the cluster resource.
|
|
4741
5231
|
* @param options The options parameters.
|
|
4742
5232
|
*/
|
|
4743
|
-
|
|
5233
|
+
_list(resourceGroupName, clusterName, options) {
|
|
4744
5234
|
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec$1);
|
|
4745
5235
|
}
|
|
5236
|
+
/**
|
|
5237
|
+
* ListNext
|
|
5238
|
+
* @param resourceGroupName The name of the resource group.
|
|
5239
|
+
* @param clusterName The name of the cluster resource.
|
|
5240
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
5241
|
+
* @param options The options parameters.
|
|
5242
|
+
*/
|
|
5243
|
+
_listNext(resourceGroupName, clusterName, nextLink, options) {
|
|
5244
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listNextOperationSpec$1);
|
|
5245
|
+
}
|
|
4746
5246
|
}
|
|
4747
5247
|
// Operation Specifications
|
|
4748
5248
|
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -4878,6 +5378,27 @@ const listOperationSpec$1 = {
|
|
|
4878
5378
|
headerParameters: [accept],
|
|
4879
5379
|
serializer: serializer$1
|
|
4880
5380
|
};
|
|
5381
|
+
const listNextOperationSpec$1 = {
|
|
5382
|
+
path: "{nextLink}",
|
|
5383
|
+
httpMethod: "GET",
|
|
5384
|
+
responses: {
|
|
5385
|
+
200: {
|
|
5386
|
+
bodyMapper: ApplicationResourceList
|
|
5387
|
+
},
|
|
5388
|
+
default: {
|
|
5389
|
+
bodyMapper: ErrorModel
|
|
5390
|
+
}
|
|
5391
|
+
},
|
|
5392
|
+
urlParameters: [
|
|
5393
|
+
$host,
|
|
5394
|
+
resourceGroupName,
|
|
5395
|
+
clusterName,
|
|
5396
|
+
subscriptionId,
|
|
5397
|
+
nextLink
|
|
5398
|
+
],
|
|
5399
|
+
headerParameters: [accept],
|
|
5400
|
+
serializer: serializer$1
|
|
5401
|
+
};
|
|
4881
5402
|
|
|
4882
5403
|
/*
|
|
4883
5404
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -4886,6 +5407,7 @@ const listOperationSpec$1 = {
|
|
|
4886
5407
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4887
5408
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4888
5409
|
*/
|
|
5410
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4889
5411
|
/** Class containing Services operations. */
|
|
4890
5412
|
class ServicesImpl {
|
|
4891
5413
|
/**
|
|
@@ -4895,6 +5417,71 @@ class ServicesImpl {
|
|
|
4895
5417
|
constructor(client) {
|
|
4896
5418
|
this.client = client;
|
|
4897
5419
|
}
|
|
5420
|
+
/**
|
|
5421
|
+
* Gets all service resources created or in the process of being created in the Service Fabric
|
|
5422
|
+
* application resource.
|
|
5423
|
+
* @param resourceGroupName The name of the resource group.
|
|
5424
|
+
* @param clusterName The name of the cluster resource.
|
|
5425
|
+
* @param applicationName The name of the application resource.
|
|
5426
|
+
* @param options The options parameters.
|
|
5427
|
+
*/
|
|
5428
|
+
list(resourceGroupName, clusterName, applicationName, options) {
|
|
5429
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, applicationName, options);
|
|
5430
|
+
return {
|
|
5431
|
+
next() {
|
|
5432
|
+
return iter.next();
|
|
5433
|
+
},
|
|
5434
|
+
[Symbol.asyncIterator]() {
|
|
5435
|
+
return this;
|
|
5436
|
+
},
|
|
5437
|
+
byPage: (settings) => {
|
|
5438
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5439
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5440
|
+
}
|
|
5441
|
+
return this.listPagingPage(resourceGroupName, clusterName, applicationName, options, settings);
|
|
5442
|
+
}
|
|
5443
|
+
};
|
|
5444
|
+
}
|
|
5445
|
+
listPagingPage(resourceGroupName, clusterName, applicationName, options, settings) {
|
|
5446
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5447
|
+
let result;
|
|
5448
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5449
|
+
if (!continuationToken) {
|
|
5450
|
+
result = yield tslib.__await(this._list(resourceGroupName, clusterName, applicationName, options));
|
|
5451
|
+
let page = result.value || [];
|
|
5452
|
+
continuationToken = result.nextLink;
|
|
5453
|
+
setContinuationToken(page, continuationToken);
|
|
5454
|
+
yield yield tslib.__await(page);
|
|
5455
|
+
}
|
|
5456
|
+
while (continuationToken) {
|
|
5457
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, clusterName, applicationName, continuationToken, options));
|
|
5458
|
+
continuationToken = result.nextLink;
|
|
5459
|
+
let page = result.value || [];
|
|
5460
|
+
setContinuationToken(page, continuationToken);
|
|
5461
|
+
yield yield tslib.__await(page);
|
|
5462
|
+
}
|
|
5463
|
+
});
|
|
5464
|
+
}
|
|
5465
|
+
listPagingAll(resourceGroupName, clusterName, applicationName, options) {
|
|
5466
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
5467
|
+
var _a, e_1, _b, _c;
|
|
5468
|
+
try {
|
|
5469
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, applicationName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
5470
|
+
_c = _f.value;
|
|
5471
|
+
_d = false;
|
|
5472
|
+
const page = _c;
|
|
5473
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5474
|
+
}
|
|
5475
|
+
}
|
|
5476
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5477
|
+
finally {
|
|
5478
|
+
try {
|
|
5479
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
5480
|
+
}
|
|
5481
|
+
finally { if (e_1) throw e_1.error; }
|
|
5482
|
+
}
|
|
5483
|
+
});
|
|
5484
|
+
}
|
|
4898
5485
|
/**
|
|
4899
5486
|
* Get a Service Fabric service resource created or in the process of being created in the Service
|
|
4900
5487
|
* Fabric application resource.
|
|
@@ -4923,7 +5510,7 @@ class ServicesImpl {
|
|
|
4923
5510
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4924
5511
|
return this.client.sendOperationRequest(args, spec);
|
|
4925
5512
|
});
|
|
4926
|
-
const
|
|
5513
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4927
5514
|
var _a;
|
|
4928
5515
|
let currentRawResponse = undefined;
|
|
4929
5516
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4942,16 +5529,20 @@ class ServicesImpl {
|
|
|
4942
5529
|
}
|
|
4943
5530
|
};
|
|
4944
5531
|
});
|
|
4945
|
-
const lro =
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
5532
|
+
const lro = createLroSpec({
|
|
5533
|
+
sendOperationFn,
|
|
5534
|
+
args: {
|
|
5535
|
+
resourceGroupName,
|
|
5536
|
+
clusterName,
|
|
5537
|
+
applicationName,
|
|
5538
|
+
serviceName,
|
|
5539
|
+
parameters,
|
|
5540
|
+
options
|
|
5541
|
+
},
|
|
5542
|
+
spec: createOrUpdateOperationSpec
|
|
5543
|
+
});
|
|
5544
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5545
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4955
5546
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4956
5547
|
});
|
|
4957
5548
|
yield poller.poll();
|
|
@@ -4989,7 +5580,7 @@ class ServicesImpl {
|
|
|
4989
5580
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4990
5581
|
return this.client.sendOperationRequest(args, spec);
|
|
4991
5582
|
});
|
|
4992
|
-
const
|
|
5583
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4993
5584
|
var _a;
|
|
4994
5585
|
let currentRawResponse = undefined;
|
|
4995
5586
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5008,16 +5599,20 @@ class ServicesImpl {
|
|
|
5008
5599
|
}
|
|
5009
5600
|
};
|
|
5010
5601
|
});
|
|
5011
|
-
const lro =
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5602
|
+
const lro = createLroSpec({
|
|
5603
|
+
sendOperationFn,
|
|
5604
|
+
args: {
|
|
5605
|
+
resourceGroupName,
|
|
5606
|
+
clusterName,
|
|
5607
|
+
applicationName,
|
|
5608
|
+
serviceName,
|
|
5609
|
+
parameters,
|
|
5610
|
+
options
|
|
5611
|
+
},
|
|
5612
|
+
spec: updateOperationSpec
|
|
5613
|
+
});
|
|
5614
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5615
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5021
5616
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5022
5617
|
});
|
|
5023
5618
|
yield poller.poll();
|
|
@@ -5054,7 +5649,7 @@ class ServicesImpl {
|
|
|
5054
5649
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5055
5650
|
return this.client.sendOperationRequest(args, spec);
|
|
5056
5651
|
});
|
|
5057
|
-
const
|
|
5652
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5058
5653
|
var _a;
|
|
5059
5654
|
let currentRawResponse = undefined;
|
|
5060
5655
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5073,9 +5668,19 @@ class ServicesImpl {
|
|
|
5073
5668
|
}
|
|
5074
5669
|
};
|
|
5075
5670
|
});
|
|
5076
|
-
const lro =
|
|
5077
|
-
|
|
5078
|
-
|
|
5671
|
+
const lro = createLroSpec({
|
|
5672
|
+
sendOperationFn,
|
|
5673
|
+
args: {
|
|
5674
|
+
resourceGroupName,
|
|
5675
|
+
clusterName,
|
|
5676
|
+
applicationName,
|
|
5677
|
+
serviceName,
|
|
5678
|
+
options
|
|
5679
|
+
},
|
|
5680
|
+
spec: deleteOperationSpec
|
|
5681
|
+
});
|
|
5682
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5683
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5079
5684
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5080
5685
|
});
|
|
5081
5686
|
yield poller.poll();
|
|
@@ -5105,9 +5710,20 @@ class ServicesImpl {
|
|
|
5105
5710
|
* @param applicationName The name of the application resource.
|
|
5106
5711
|
* @param options The options parameters.
|
|
5107
5712
|
*/
|
|
5108
|
-
|
|
5713
|
+
_list(resourceGroupName, clusterName, applicationName, options) {
|
|
5109
5714
|
return this.client.sendOperationRequest({ resourceGroupName, clusterName, applicationName, options }, listOperationSpec);
|
|
5110
5715
|
}
|
|
5716
|
+
/**
|
|
5717
|
+
* ListNext
|
|
5718
|
+
* @param resourceGroupName The name of the resource group.
|
|
5719
|
+
* @param clusterName The name of the cluster resource.
|
|
5720
|
+
* @param applicationName The name of the application resource.
|
|
5721
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
5722
|
+
* @param options The options parameters.
|
|
5723
|
+
*/
|
|
5724
|
+
_listNext(resourceGroupName, clusterName, applicationName, nextLink, options) {
|
|
5725
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, applicationName, nextLink, options }, listNextOperationSpec);
|
|
5726
|
+
}
|
|
5111
5727
|
}
|
|
5112
5728
|
// Operation Specifications
|
|
5113
5729
|
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -5248,6 +5864,28 @@ const listOperationSpec = {
|
|
|
5248
5864
|
headerParameters: [accept],
|
|
5249
5865
|
serializer
|
|
5250
5866
|
};
|
|
5867
|
+
const listNextOperationSpec = {
|
|
5868
|
+
path: "{nextLink}",
|
|
5869
|
+
httpMethod: "GET",
|
|
5870
|
+
responses: {
|
|
5871
|
+
200: {
|
|
5872
|
+
bodyMapper: ServiceResourceList
|
|
5873
|
+
},
|
|
5874
|
+
default: {
|
|
5875
|
+
bodyMapper: ErrorModel
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
5878
|
+
urlParameters: [
|
|
5879
|
+
$host,
|
|
5880
|
+
resourceGroupName,
|
|
5881
|
+
clusterName,
|
|
5882
|
+
subscriptionId,
|
|
5883
|
+
nextLink,
|
|
5884
|
+
applicationName
|
|
5885
|
+
],
|
|
5886
|
+
headerParameters: [accept],
|
|
5887
|
+
serializer
|
|
5888
|
+
};
|
|
5251
5889
|
|
|
5252
5890
|
/*
|
|
5253
5891
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -5279,7 +5917,7 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
|
|
|
5279
5917
|
requestContentType: "application/json; charset=utf-8",
|
|
5280
5918
|
credential: credentials
|
|
5281
5919
|
};
|
|
5282
|
-
const packageDetails = `azsdk-js-arm-servicefabric/
|
|
5920
|
+
const packageDetails = `azsdk-js-arm-servicefabric/3.0.1`;
|
|
5283
5921
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5284
5922
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5285
5923
|
: `${packageDetails}`;
|