@codiac.io/codiac-cli 1.2.232 → 1.2.233
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/README.md +2 -2
- package/dist/apis/codiac-api/gen/client.d.ts +144 -0
- package/dist/apis/codiac-api/gen/client.js +1735 -19
- package/dist/apis/codiac-api/gen/client.js.map +1 -1
- package/dist/apis/codiac-api/gen/contracts.d.ts +104 -33
- package/dist/apis/codiac-api/gen/contracts.js +3 -4
- package/dist/apis/codiac-api/gen/contracts.js.map +1 -1
- package/dist/apis/codiac-relay/gen/client.d.ts +2 -1
- package/dist/apis/codiac-relay/gen/client.js +13 -0
- package/dist/apis/codiac-relay/gen/client.js.map +1 -1
- package/dist/apis/codiac-relay/gen/contracts.d.ts +206 -6
- package/dist/apis/codiac-relay/gen/contracts.js +8 -1
- package/dist/apis/codiac-relay/gen/contracts.js.map +1 -1
- package/dist/command-base-exec.d.ts +18 -0
- package/dist/command-base-exec.js +71 -0
- package/dist/command-base-exec.js.map +1 -0
- package/dist/commands/cabinet/list.js +1 -0
- package/dist/commands/cabinet/list.js.map +1 -1
- package/dist/commands/cluster/scaling/update.d.ts +48 -0
- package/dist/commands/cluster/scaling/update.js +230 -0
- package/dist/commands/cluster/scaling/update.js.map +1 -0
- package/dist/commands/config/add.js +1 -0
- package/dist/commands/config/add.js.map +1 -1
- package/dist/relay/relay-container.js +1 -1
- package/dist/uilogic/cloud-provider-contextualizer.js +5 -2
- package/dist/uilogic/cloud-provider-contextualizer.js.map +1 -1
- package/oclif.manifest.json +106 -1
- package/package.json +8 -8
|
@@ -276,6 +276,19 @@ class AuthOperations {
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
+
EntityAclUpdatePartialWhere(request, options) {
|
|
280
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
try {
|
|
282
|
+
let url = this.core.buildUrl("/auth/acls/partial-where(/)", request, false);
|
|
283
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
284
|
+
let response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
285
|
+
return response;
|
|
286
|
+
}
|
|
287
|
+
catch (err) {
|
|
288
|
+
throw err;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
}
|
|
279
292
|
EntityAclUpdatePartialMany(request, options) {
|
|
280
293
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
281
294
|
try {
|
|
@@ -549,6 +562,19 @@ class AuthOperations {
|
|
|
549
562
|
}
|
|
550
563
|
});
|
|
551
564
|
}
|
|
565
|
+
RoleUpdatePartialWhere(request, options) {
|
|
566
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
try {
|
|
568
|
+
let url = this.core.buildUrl("/auth/roles/partial-where(/)", request, false);
|
|
569
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
570
|
+
let response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
571
|
+
return response;
|
|
572
|
+
}
|
|
573
|
+
catch (err) {
|
|
574
|
+
throw err;
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
}
|
|
552
578
|
RoleUpdatePartialMany(request, options) {
|
|
553
579
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
554
580
|
try {
|
|
@@ -1132,6 +1158,42 @@ class ActivityBaseCruds {
|
|
|
1132
1158
|
return (result.output);
|
|
1133
1159
|
});
|
|
1134
1160
|
}
|
|
1161
|
+
/** Performs the given operation on each existing ActivityBase that satisfies the given criteria. */
|
|
1162
|
+
tryUpdatePartialWhere(request, options) {
|
|
1163
|
+
var _a, _b;
|
|
1164
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1165
|
+
let response = new contracts_1.BatchResult(false);
|
|
1166
|
+
try {
|
|
1167
|
+
let url = this.core.buildUrl("/activities/partial-where(/)", {}, false);
|
|
1168
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
1169
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
1170
|
+
}
|
|
1171
|
+
catch (err) {
|
|
1172
|
+
response.error = err;
|
|
1173
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ActivityBase, ActivityCriteriaBase>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
1174
|
+
}
|
|
1175
|
+
finally {
|
|
1176
|
+
return response;
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
UpdatePartialWhere(request, options) {
|
|
1181
|
+
var _a;
|
|
1182
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1183
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
1184
|
+
if (result.error) {
|
|
1185
|
+
throw result.error;
|
|
1186
|
+
}
|
|
1187
|
+
else if (result.failures && result.failures.length > 0) {
|
|
1188
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
1189
|
+
throw new Error(`UpdatePartialWhere ActivityBase incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
1190
|
+
}
|
|
1191
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
1192
|
+
throw new Error(`UpdatePartialWhere ActivityBase failed without error. ${result.message || ""}`);
|
|
1193
|
+
}
|
|
1194
|
+
return (result.successes);
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1135
1197
|
/** Overwrites the given properties for each existing ActivityBase. */
|
|
1136
1198
|
tryUpdatePartialMany(request, options) {
|
|
1137
1199
|
var _a, _b;
|
|
@@ -1608,6 +1670,42 @@ class CabinetCreateActivityCruds {
|
|
|
1608
1670
|
return (result.output);
|
|
1609
1671
|
});
|
|
1610
1672
|
}
|
|
1673
|
+
/** Performs the given operation on each existing CabinetCreateActivity that satisfies the given criteria. */
|
|
1674
|
+
tryUpdatePartialWhere(request, options) {
|
|
1675
|
+
var _a, _b;
|
|
1676
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1677
|
+
let response = new contracts_1.BatchResult(false);
|
|
1678
|
+
try {
|
|
1679
|
+
let url = this.core.buildUrl("/activities/cabinet-create/partial-where(/)", {}, false);
|
|
1680
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
1681
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
1682
|
+
}
|
|
1683
|
+
catch (err) {
|
|
1684
|
+
response.error = err;
|
|
1685
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<CabinetCreateActivity, CabinetCreateActivityCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
1686
|
+
}
|
|
1687
|
+
finally {
|
|
1688
|
+
return response;
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
UpdatePartialWhere(request, options) {
|
|
1693
|
+
var _a;
|
|
1694
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
1695
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
1696
|
+
if (result.error) {
|
|
1697
|
+
throw result.error;
|
|
1698
|
+
}
|
|
1699
|
+
else if (result.failures && result.failures.length > 0) {
|
|
1700
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
1701
|
+
throw new Error(`UpdatePartialWhere CabinetCreateActivity incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
1702
|
+
}
|
|
1703
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
1704
|
+
throw new Error(`UpdatePartialWhere CabinetCreateActivity failed without error. ${result.message || ""}`);
|
|
1705
|
+
}
|
|
1706
|
+
return (result.successes);
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1611
1709
|
/** Overwrites the given properties for each existing CabinetCreateActivity. */
|
|
1612
1710
|
tryUpdatePartialMany(request, options) {
|
|
1613
1711
|
var _a, _b;
|
|
@@ -2084,6 +2182,42 @@ class ConfigDeploymentActivityCruds {
|
|
|
2084
2182
|
return (result.output);
|
|
2085
2183
|
});
|
|
2086
2184
|
}
|
|
2185
|
+
/** Performs the given operation on each existing ConfigDeploymentActivity that satisfies the given criteria. */
|
|
2186
|
+
tryUpdatePartialWhere(request, options) {
|
|
2187
|
+
var _a, _b;
|
|
2188
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
2189
|
+
let response = new contracts_1.BatchResult(false);
|
|
2190
|
+
try {
|
|
2191
|
+
let url = this.core.buildUrl("/activities/config-deployment/partial-where(/)", {}, false);
|
|
2192
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
2193
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
2194
|
+
}
|
|
2195
|
+
catch (err) {
|
|
2196
|
+
response.error = err;
|
|
2197
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ConfigDeploymentActivity, ConfigDeploymentActivityCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
2198
|
+
}
|
|
2199
|
+
finally {
|
|
2200
|
+
return response;
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
UpdatePartialWhere(request, options) {
|
|
2205
|
+
var _a;
|
|
2206
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
2207
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
2208
|
+
if (result.error) {
|
|
2209
|
+
throw result.error;
|
|
2210
|
+
}
|
|
2211
|
+
else if (result.failures && result.failures.length > 0) {
|
|
2212
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
2213
|
+
throw new Error(`UpdatePartialWhere ConfigDeploymentActivity incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
2214
|
+
}
|
|
2215
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
2216
|
+
throw new Error(`UpdatePartialWhere ConfigDeploymentActivity failed without error. ${result.message || ""}`);
|
|
2217
|
+
}
|
|
2218
|
+
return (result.successes);
|
|
2219
|
+
});
|
|
2220
|
+
}
|
|
2087
2221
|
/** Overwrites the given properties for each existing ConfigDeploymentActivity. */
|
|
2088
2222
|
tryUpdatePartialMany(request, options) {
|
|
2089
2223
|
var _a, _b;
|
|
@@ -2560,6 +2694,42 @@ class DeploymentActivityCruds {
|
|
|
2560
2694
|
return (result.output);
|
|
2561
2695
|
});
|
|
2562
2696
|
}
|
|
2697
|
+
/** Performs the given operation on each existing DeploymentActivity that satisfies the given criteria. */
|
|
2698
|
+
tryUpdatePartialWhere(request, options) {
|
|
2699
|
+
var _a, _b;
|
|
2700
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
2701
|
+
let response = new contracts_1.BatchResult(false);
|
|
2702
|
+
try {
|
|
2703
|
+
let url = this.core.buildUrl("/activities/deployment/partial-where(/)", {}, false);
|
|
2704
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
2705
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
2706
|
+
}
|
|
2707
|
+
catch (err) {
|
|
2708
|
+
response.error = err;
|
|
2709
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<DeploymentActivity, DeploymentActivityCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
2710
|
+
}
|
|
2711
|
+
finally {
|
|
2712
|
+
return response;
|
|
2713
|
+
}
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
UpdatePartialWhere(request, options) {
|
|
2717
|
+
var _a;
|
|
2718
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
2719
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
2720
|
+
if (result.error) {
|
|
2721
|
+
throw result.error;
|
|
2722
|
+
}
|
|
2723
|
+
else if (result.failures && result.failures.length > 0) {
|
|
2724
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
2725
|
+
throw new Error(`UpdatePartialWhere DeploymentActivity incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
2726
|
+
}
|
|
2727
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
2728
|
+
throw new Error(`UpdatePartialWhere DeploymentActivity failed without error. ${result.message || ""}`);
|
|
2729
|
+
}
|
|
2730
|
+
return (result.successes);
|
|
2731
|
+
});
|
|
2732
|
+
}
|
|
2563
2733
|
/** Overwrites the given properties for each existing DeploymentActivity. */
|
|
2564
2734
|
tryUpdatePartialMany(request, options) {
|
|
2565
2735
|
var _a, _b;
|
|
@@ -3036,6 +3206,42 @@ class VersionCreateActivityCruds {
|
|
|
3036
3206
|
return (result.output);
|
|
3037
3207
|
});
|
|
3038
3208
|
}
|
|
3209
|
+
/** Performs the given operation on each existing VersionCreateActivity that satisfies the given criteria. */
|
|
3210
|
+
tryUpdatePartialWhere(request, options) {
|
|
3211
|
+
var _a, _b;
|
|
3212
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
3213
|
+
let response = new contracts_1.BatchResult(false);
|
|
3214
|
+
try {
|
|
3215
|
+
let url = this.core.buildUrl("/activities/version-create/partial-where(/)", {}, false);
|
|
3216
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
3217
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
3218
|
+
}
|
|
3219
|
+
catch (err) {
|
|
3220
|
+
response.error = err;
|
|
3221
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<VersionCreateActivity, VersionCreateActivityCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
3222
|
+
}
|
|
3223
|
+
finally {
|
|
3224
|
+
return response;
|
|
3225
|
+
}
|
|
3226
|
+
});
|
|
3227
|
+
}
|
|
3228
|
+
UpdatePartialWhere(request, options) {
|
|
3229
|
+
var _a;
|
|
3230
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
3231
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
3232
|
+
if (result.error) {
|
|
3233
|
+
throw result.error;
|
|
3234
|
+
}
|
|
3235
|
+
else if (result.failures && result.failures.length > 0) {
|
|
3236
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
3237
|
+
throw new Error(`UpdatePartialWhere VersionCreateActivity incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
3238
|
+
}
|
|
3239
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
3240
|
+
throw new Error(`UpdatePartialWhere VersionCreateActivity failed without error. ${result.message || ""}`);
|
|
3241
|
+
}
|
|
3242
|
+
return (result.successes);
|
|
3243
|
+
});
|
|
3244
|
+
}
|
|
3039
3245
|
/** Overwrites the given properties for each existing VersionCreateActivity. */
|
|
3040
3246
|
tryUpdatePartialMany(request, options) {
|
|
3041
3247
|
var _a, _b;
|
|
@@ -3512,6 +3718,42 @@ class AssetVersionConfigCruds {
|
|
|
3512
3718
|
return (result.output);
|
|
3513
3719
|
});
|
|
3514
3720
|
}
|
|
3721
|
+
/** Performs the given operation on each existing AssetVersionConfig that satisfies the given criteria. */
|
|
3722
|
+
tryUpdatePartialWhere(request, options) {
|
|
3723
|
+
var _a, _b;
|
|
3724
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
3725
|
+
let response = new contracts_1.BatchResult(false);
|
|
3726
|
+
try {
|
|
3727
|
+
let url = this.core.buildUrl("/asset-versions/partial-where(/)", {}, false);
|
|
3728
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
3729
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
3730
|
+
}
|
|
3731
|
+
catch (err) {
|
|
3732
|
+
response.error = err;
|
|
3733
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<AssetVersionConfig, AssetVersionConfigCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
3734
|
+
}
|
|
3735
|
+
finally {
|
|
3736
|
+
return response;
|
|
3737
|
+
}
|
|
3738
|
+
});
|
|
3739
|
+
}
|
|
3740
|
+
UpdatePartialWhere(request, options) {
|
|
3741
|
+
var _a;
|
|
3742
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
3743
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
3744
|
+
if (result.error) {
|
|
3745
|
+
throw result.error;
|
|
3746
|
+
}
|
|
3747
|
+
else if (result.failures && result.failures.length > 0) {
|
|
3748
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
3749
|
+
throw new Error(`UpdatePartialWhere AssetVersionConfig incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
3750
|
+
}
|
|
3751
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
3752
|
+
throw new Error(`UpdatePartialWhere AssetVersionConfig failed without error. ${result.message || ""}`);
|
|
3753
|
+
}
|
|
3754
|
+
return (result.successes);
|
|
3755
|
+
});
|
|
3756
|
+
}
|
|
3515
3757
|
/** Overwrites the given properties for each existing AssetVersionConfig. */
|
|
3516
3758
|
tryUpdatePartialMany(request, options) {
|
|
3517
3759
|
var _a, _b;
|
|
@@ -3988,6 +4230,42 @@ class AssetCruds {
|
|
|
3988
4230
|
return (result.output);
|
|
3989
4231
|
});
|
|
3990
4232
|
}
|
|
4233
|
+
/** Performs the given operation on each existing Asset that satisfies the given criteria. */
|
|
4234
|
+
tryUpdatePartialWhere(request, options) {
|
|
4235
|
+
var _a, _b;
|
|
4236
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4237
|
+
let response = new contracts_1.BatchResult(false);
|
|
4238
|
+
try {
|
|
4239
|
+
let url = this.core.buildUrl("/assets/partial-where(/)", {}, false);
|
|
4240
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
4241
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
4242
|
+
}
|
|
4243
|
+
catch (err) {
|
|
4244
|
+
response.error = err;
|
|
4245
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Asset, AssetCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
4246
|
+
}
|
|
4247
|
+
finally {
|
|
4248
|
+
return response;
|
|
4249
|
+
}
|
|
4250
|
+
});
|
|
4251
|
+
}
|
|
4252
|
+
UpdatePartialWhere(request, options) {
|
|
4253
|
+
var _a;
|
|
4254
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4255
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
4256
|
+
if (result.error) {
|
|
4257
|
+
throw result.error;
|
|
4258
|
+
}
|
|
4259
|
+
else if (result.failures && result.failures.length > 0) {
|
|
4260
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
4261
|
+
throw new Error(`UpdatePartialWhere Asset incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
4262
|
+
}
|
|
4263
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
4264
|
+
throw new Error(`UpdatePartialWhere Asset failed without error. ${result.message || ""}`);
|
|
4265
|
+
}
|
|
4266
|
+
return (result.successes);
|
|
4267
|
+
});
|
|
4268
|
+
}
|
|
3991
4269
|
/** Overwrites the given properties for each existing Asset. */
|
|
3992
4270
|
tryUpdatePartialMany(request, options) {
|
|
3993
4271
|
var _a, _b;
|
|
@@ -4464,6 +4742,42 @@ class EntityAclCruds {
|
|
|
4464
4742
|
return (result.output);
|
|
4465
4743
|
});
|
|
4466
4744
|
}
|
|
4745
|
+
/** Performs the given operation on each existing EntityAcl that satisfies the given criteria. */
|
|
4746
|
+
tryUpdatePartialWhere(request, options) {
|
|
4747
|
+
var _a, _b;
|
|
4748
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4749
|
+
let response = new contracts_1.BatchResult(false);
|
|
4750
|
+
try {
|
|
4751
|
+
let url = this.core.buildUrl("/auth/acls/partial-where(/)", {}, false);
|
|
4752
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
4753
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
4754
|
+
}
|
|
4755
|
+
catch (err) {
|
|
4756
|
+
response.error = err;
|
|
4757
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<EntityAcl, EntityAclCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
4758
|
+
}
|
|
4759
|
+
finally {
|
|
4760
|
+
return response;
|
|
4761
|
+
}
|
|
4762
|
+
});
|
|
4763
|
+
}
|
|
4764
|
+
UpdatePartialWhere(request, options) {
|
|
4765
|
+
var _a;
|
|
4766
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4767
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
4768
|
+
if (result.error) {
|
|
4769
|
+
throw result.error;
|
|
4770
|
+
}
|
|
4771
|
+
else if (result.failures && result.failures.length > 0) {
|
|
4772
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
4773
|
+
throw new Error(`UpdatePartialWhere EntityAcl incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
4774
|
+
}
|
|
4775
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
4776
|
+
throw new Error(`UpdatePartialWhere EntityAcl failed without error. ${result.message || ""}`);
|
|
4777
|
+
}
|
|
4778
|
+
return (result.successes);
|
|
4779
|
+
});
|
|
4780
|
+
}
|
|
4467
4781
|
/** Overwrites the given properties for each existing EntityAcl. */
|
|
4468
4782
|
tryUpdatePartialMany(request, options) {
|
|
4469
4783
|
var _a, _b;
|
|
@@ -4940,44 +5254,80 @@ class AuthRoleCruds {
|
|
|
4940
5254
|
return (result.output);
|
|
4941
5255
|
});
|
|
4942
5256
|
}
|
|
4943
|
-
/**
|
|
4944
|
-
|
|
5257
|
+
/** Performs the given operation on each existing AuthRole that satisfies the given criteria. */
|
|
5258
|
+
tryUpdatePartialWhere(request, options) {
|
|
4945
5259
|
var _a, _b;
|
|
4946
5260
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4947
5261
|
let response = new contracts_1.BatchResult(false);
|
|
4948
5262
|
try {
|
|
4949
|
-
let url = this.core.buildUrl("/auth/roles/partial(/)", {}, false);
|
|
5263
|
+
let url = this.core.buildUrl("/auth/roles/partial-where(/)", {}, false);
|
|
4950
5264
|
let headers = options ? headersFrom(options) : undefined;
|
|
4951
5265
|
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
4952
5266
|
}
|
|
4953
5267
|
catch (err) {
|
|
4954
5268
|
response.error = err;
|
|
4955
|
-
response.message = `Error performing
|
|
5269
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<AuthRole, AuthRoleCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
4956
5270
|
}
|
|
4957
5271
|
finally {
|
|
4958
5272
|
return response;
|
|
4959
5273
|
}
|
|
4960
5274
|
});
|
|
4961
5275
|
}
|
|
4962
|
-
|
|
5276
|
+
UpdatePartialWhere(request, options) {
|
|
4963
5277
|
var _a;
|
|
4964
5278
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4965
|
-
let result = yield this.
|
|
5279
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
4966
5280
|
if (result.error) {
|
|
4967
5281
|
throw result.error;
|
|
4968
5282
|
}
|
|
4969
5283
|
else if (result.failures && result.failures.length > 0) {
|
|
4970
5284
|
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
4971
|
-
throw new Error(`
|
|
5285
|
+
throw new Error(`UpdatePartialWhere AuthRole incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
4972
5286
|
}
|
|
4973
5287
|
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
4974
|
-
throw new Error(`
|
|
5288
|
+
throw new Error(`UpdatePartialWhere AuthRole failed without error. ${result.message || ""}`);
|
|
4975
5289
|
}
|
|
4976
5290
|
return (result.successes);
|
|
4977
5291
|
});
|
|
4978
5292
|
}
|
|
4979
|
-
/**
|
|
4980
|
-
|
|
5293
|
+
/** Overwrites the given properties for each existing AuthRole. */
|
|
5294
|
+
tryUpdatePartialMany(request, options) {
|
|
5295
|
+
var _a, _b;
|
|
5296
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5297
|
+
let response = new contracts_1.BatchResult(false);
|
|
5298
|
+
try {
|
|
5299
|
+
let url = this.core.buildUrl("/auth/roles/partial(/)", {}, false);
|
|
5300
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
5301
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
5302
|
+
}
|
|
5303
|
+
catch (err) {
|
|
5304
|
+
response.error = err;
|
|
5305
|
+
response.message = `Error performing updatePartialMany Array<AuthRole>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
5306
|
+
}
|
|
5307
|
+
finally {
|
|
5308
|
+
return response;
|
|
5309
|
+
}
|
|
5310
|
+
});
|
|
5311
|
+
}
|
|
5312
|
+
updatePartialMany(request, options) {
|
|
5313
|
+
var _a;
|
|
5314
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5315
|
+
let result = yield this.tryUpdatePartialMany(request, options);
|
|
5316
|
+
if (result.error) {
|
|
5317
|
+
throw result.error;
|
|
5318
|
+
}
|
|
5319
|
+
else if (result.failures && result.failures.length > 0) {
|
|
5320
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
5321
|
+
throw new Error(`updatePartialMany AuthRole incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
5322
|
+
}
|
|
5323
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
5324
|
+
throw new Error(`updatePartialMany AuthRole failed without error. ${result.message || ""}`);
|
|
5325
|
+
}
|
|
5326
|
+
return (result.successes);
|
|
5327
|
+
});
|
|
5328
|
+
}
|
|
5329
|
+
/** Saves each given input as a new AuthRole, or updates existing if it already exists. Identity is based either on the existence of a valid id property on the entity submitted or the response from the database (based on unique indexes / primary keys). */
|
|
5330
|
+
tryUpsertMany(request, options) {
|
|
4981
5331
|
var _a, _b;
|
|
4982
5332
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
4983
5333
|
let response = new contracts_1.BatchResult(false);
|
|
@@ -5490,6 +5840,42 @@ class BuildPipelineCruds {
|
|
|
5490
5840
|
return (result.output);
|
|
5491
5841
|
});
|
|
5492
5842
|
}
|
|
5843
|
+
/** Performs the given operation on each existing BuildPipeline that satisfies the given criteria. */
|
|
5844
|
+
tryUpdatePartialWhere(request, options) {
|
|
5845
|
+
var _a, _b;
|
|
5846
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5847
|
+
let response = new contracts_1.BatchResult(false);
|
|
5848
|
+
try {
|
|
5849
|
+
let url = this.core.buildUrl("/build-pipelines/partial-where(/)", {}, false);
|
|
5850
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
5851
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
5852
|
+
}
|
|
5853
|
+
catch (err) {
|
|
5854
|
+
response.error = err;
|
|
5855
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<BuildPipeline, BuildPipelineCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
5856
|
+
}
|
|
5857
|
+
finally {
|
|
5858
|
+
return response;
|
|
5859
|
+
}
|
|
5860
|
+
});
|
|
5861
|
+
}
|
|
5862
|
+
UpdatePartialWhere(request, options) {
|
|
5863
|
+
var _a;
|
|
5864
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5865
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
5866
|
+
if (result.error) {
|
|
5867
|
+
throw result.error;
|
|
5868
|
+
}
|
|
5869
|
+
else if (result.failures && result.failures.length > 0) {
|
|
5870
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
5871
|
+
throw new Error(`UpdatePartialWhere BuildPipeline incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
5872
|
+
}
|
|
5873
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
5874
|
+
throw new Error(`UpdatePartialWhere BuildPipeline failed without error. ${result.message || ""}`);
|
|
5875
|
+
}
|
|
5876
|
+
return (result.successes);
|
|
5877
|
+
});
|
|
5878
|
+
}
|
|
5493
5879
|
/** Overwrites the given properties for each existing BuildPipeline. */
|
|
5494
5880
|
tryUpdatePartialMany(request, options) {
|
|
5495
5881
|
var _a, _b;
|
|
@@ -5966,6 +6352,42 @@ class BuildCruds {
|
|
|
5966
6352
|
return (result.output);
|
|
5967
6353
|
});
|
|
5968
6354
|
}
|
|
6355
|
+
/** Performs the given operation on each existing Build that satisfies the given criteria. */
|
|
6356
|
+
tryUpdatePartialWhere(request, options) {
|
|
6357
|
+
var _a, _b;
|
|
6358
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
6359
|
+
let response = new contracts_1.BatchResult(false);
|
|
6360
|
+
try {
|
|
6361
|
+
let url = this.core.buildUrl("/builds/partial-where(/)", {}, false);
|
|
6362
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
6363
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
6364
|
+
}
|
|
6365
|
+
catch (err) {
|
|
6366
|
+
response.error = err;
|
|
6367
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Build, BuildCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
6368
|
+
}
|
|
6369
|
+
finally {
|
|
6370
|
+
return response;
|
|
6371
|
+
}
|
|
6372
|
+
});
|
|
6373
|
+
}
|
|
6374
|
+
UpdatePartialWhere(request, options) {
|
|
6375
|
+
var _a;
|
|
6376
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
6377
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
6378
|
+
if (result.error) {
|
|
6379
|
+
throw result.error;
|
|
6380
|
+
}
|
|
6381
|
+
else if (result.failures && result.failures.length > 0) {
|
|
6382
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
6383
|
+
throw new Error(`UpdatePartialWhere Build incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
6384
|
+
}
|
|
6385
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
6386
|
+
throw new Error(`UpdatePartialWhere Build failed without error. ${result.message || ""}`);
|
|
6387
|
+
}
|
|
6388
|
+
return (result.successes);
|
|
6389
|
+
});
|
|
6390
|
+
}
|
|
5969
6391
|
/** Overwrites the given properties for each existing Build. */
|
|
5970
6392
|
tryUpdatePartialMany(request, options) {
|
|
5971
6393
|
var _a, _b;
|
|
@@ -6442,6 +6864,42 @@ class CabinetCruds {
|
|
|
6442
6864
|
return (result.output);
|
|
6443
6865
|
});
|
|
6444
6866
|
}
|
|
6867
|
+
/** Performs the given operation on each existing Cabinet that satisfies the given criteria. */
|
|
6868
|
+
tryUpdatePartialWhere(request, options) {
|
|
6869
|
+
var _a, _b;
|
|
6870
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
6871
|
+
let response = new contracts_1.BatchResult(false);
|
|
6872
|
+
try {
|
|
6873
|
+
let url = this.core.buildUrl("/cabinets/partial-where(/)", {}, false);
|
|
6874
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
6875
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
6876
|
+
}
|
|
6877
|
+
catch (err) {
|
|
6878
|
+
response.error = err;
|
|
6879
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Cabinet, CabinetCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
6880
|
+
}
|
|
6881
|
+
finally {
|
|
6882
|
+
return response;
|
|
6883
|
+
}
|
|
6884
|
+
});
|
|
6885
|
+
}
|
|
6886
|
+
UpdatePartialWhere(request, options) {
|
|
6887
|
+
var _a;
|
|
6888
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
6889
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
6890
|
+
if (result.error) {
|
|
6891
|
+
throw result.error;
|
|
6892
|
+
}
|
|
6893
|
+
else if (result.failures && result.failures.length > 0) {
|
|
6894
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
6895
|
+
throw new Error(`UpdatePartialWhere Cabinet incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
6896
|
+
}
|
|
6897
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
6898
|
+
throw new Error(`UpdatePartialWhere Cabinet failed without error. ${result.message || ""}`);
|
|
6899
|
+
}
|
|
6900
|
+
return (result.successes);
|
|
6901
|
+
});
|
|
6902
|
+
}
|
|
6445
6903
|
/** Overwrites the given properties for each existing Cabinet. */
|
|
6446
6904
|
tryUpdatePartialMany(request, options) {
|
|
6447
6905
|
var _a, _b;
|
|
@@ -6918,6 +7376,42 @@ class ClusterDefCruds {
|
|
|
6918
7376
|
return (result.output);
|
|
6919
7377
|
});
|
|
6920
7378
|
}
|
|
7379
|
+
/** Performs the given operation on each existing ClusterDef that satisfies the given criteria. */
|
|
7380
|
+
tryUpdatePartialWhere(request, options) {
|
|
7381
|
+
var _a, _b;
|
|
7382
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7383
|
+
let response = new contracts_1.BatchResult(false);
|
|
7384
|
+
try {
|
|
7385
|
+
let url = this.core.buildUrl("/cluster-defs/partial-where(/)", {}, false);
|
|
7386
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
7387
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
7388
|
+
}
|
|
7389
|
+
catch (err) {
|
|
7390
|
+
response.error = err;
|
|
7391
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ClusterDef, ClusterDefCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
7392
|
+
}
|
|
7393
|
+
finally {
|
|
7394
|
+
return response;
|
|
7395
|
+
}
|
|
7396
|
+
});
|
|
7397
|
+
}
|
|
7398
|
+
UpdatePartialWhere(request, options) {
|
|
7399
|
+
var _a;
|
|
7400
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7401
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
7402
|
+
if (result.error) {
|
|
7403
|
+
throw result.error;
|
|
7404
|
+
}
|
|
7405
|
+
else if (result.failures && result.failures.length > 0) {
|
|
7406
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
7407
|
+
throw new Error(`UpdatePartialWhere ClusterDef incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
7408
|
+
}
|
|
7409
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
7410
|
+
throw new Error(`UpdatePartialWhere ClusterDef failed without error. ${result.message || ""}`);
|
|
7411
|
+
}
|
|
7412
|
+
return (result.successes);
|
|
7413
|
+
});
|
|
7414
|
+
}
|
|
6921
7415
|
/** Overwrites the given properties for each existing ClusterDef. */
|
|
6922
7416
|
tryUpdatePartialMany(request, options) {
|
|
6923
7417
|
var _a, _b;
|
|
@@ -7394,6 +7888,42 @@ class ClusterGrantCruds {
|
|
|
7394
7888
|
return (result.output);
|
|
7395
7889
|
});
|
|
7396
7890
|
}
|
|
7891
|
+
/** Performs the given operation on each existing ClusterGrant that satisfies the given criteria. */
|
|
7892
|
+
tryUpdatePartialWhere(request, options) {
|
|
7893
|
+
var _a, _b;
|
|
7894
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7895
|
+
let response = new contracts_1.BatchResult(false);
|
|
7896
|
+
try {
|
|
7897
|
+
let url = this.core.buildUrl("/cluster-grants/partial-where(/)", {}, false);
|
|
7898
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
7899
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
7900
|
+
}
|
|
7901
|
+
catch (err) {
|
|
7902
|
+
response.error = err;
|
|
7903
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ClusterGrant, ClusterGrantCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
7904
|
+
}
|
|
7905
|
+
finally {
|
|
7906
|
+
return response;
|
|
7907
|
+
}
|
|
7908
|
+
});
|
|
7909
|
+
}
|
|
7910
|
+
UpdatePartialWhere(request, options) {
|
|
7911
|
+
var _a;
|
|
7912
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7913
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
7914
|
+
if (result.error) {
|
|
7915
|
+
throw result.error;
|
|
7916
|
+
}
|
|
7917
|
+
else if (result.failures && result.failures.length > 0) {
|
|
7918
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
7919
|
+
throw new Error(`UpdatePartialWhere ClusterGrant incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
7920
|
+
}
|
|
7921
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
7922
|
+
throw new Error(`UpdatePartialWhere ClusterGrant failed without error. ${result.message || ""}`);
|
|
7923
|
+
}
|
|
7924
|
+
return (result.successes);
|
|
7925
|
+
});
|
|
7926
|
+
}
|
|
7397
7927
|
/** Overwrites the given properties for each existing ClusterGrant. */
|
|
7398
7928
|
tryUpdatePartialMany(request, options) {
|
|
7399
7929
|
var _a, _b;
|
|
@@ -7870,6 +8400,42 @@ class ClusterCruds {
|
|
|
7870
8400
|
return (result.output);
|
|
7871
8401
|
});
|
|
7872
8402
|
}
|
|
8403
|
+
/** Performs the given operation on each existing Cluster that satisfies the given criteria. */
|
|
8404
|
+
tryUpdatePartialWhere(request, options) {
|
|
8405
|
+
var _a, _b;
|
|
8406
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8407
|
+
let response = new contracts_1.BatchResult(false);
|
|
8408
|
+
try {
|
|
8409
|
+
let url = this.core.buildUrl("/clusters/partial-where(/)", {}, false);
|
|
8410
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
8411
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
8412
|
+
}
|
|
8413
|
+
catch (err) {
|
|
8414
|
+
response.error = err;
|
|
8415
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Cluster, ClusterCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
8416
|
+
}
|
|
8417
|
+
finally {
|
|
8418
|
+
return response;
|
|
8419
|
+
}
|
|
8420
|
+
});
|
|
8421
|
+
}
|
|
8422
|
+
UpdatePartialWhere(request, options) {
|
|
8423
|
+
var _a;
|
|
8424
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8425
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
8426
|
+
if (result.error) {
|
|
8427
|
+
throw result.error;
|
|
8428
|
+
}
|
|
8429
|
+
else if (result.failures && result.failures.length > 0) {
|
|
8430
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
8431
|
+
throw new Error(`UpdatePartialWhere Cluster incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
8432
|
+
}
|
|
8433
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
8434
|
+
throw new Error(`UpdatePartialWhere Cluster failed without error. ${result.message || ""}`);
|
|
8435
|
+
}
|
|
8436
|
+
return (result.successes);
|
|
8437
|
+
});
|
|
8438
|
+
}
|
|
7873
8439
|
/** Overwrites the given properties for each existing Cluster. */
|
|
7874
8440
|
tryUpdatePartialMany(request, options) {
|
|
7875
8441
|
var _a, _b;
|
|
@@ -8346,6 +8912,42 @@ class CommentCruds {
|
|
|
8346
8912
|
return (result.output);
|
|
8347
8913
|
});
|
|
8348
8914
|
}
|
|
8915
|
+
/** Performs the given operation on each existing Comment that satisfies the given criteria. */
|
|
8916
|
+
tryUpdatePartialWhere(request, options) {
|
|
8917
|
+
var _a, _b;
|
|
8918
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8919
|
+
let response = new contracts_1.BatchResult(false);
|
|
8920
|
+
try {
|
|
8921
|
+
let url = this.core.buildUrl("/comments/partial-where(/)", {}, false);
|
|
8922
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
8923
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
8924
|
+
}
|
|
8925
|
+
catch (err) {
|
|
8926
|
+
response.error = err;
|
|
8927
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Comment, CommentCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
8928
|
+
}
|
|
8929
|
+
finally {
|
|
8930
|
+
return response;
|
|
8931
|
+
}
|
|
8932
|
+
});
|
|
8933
|
+
}
|
|
8934
|
+
UpdatePartialWhere(request, options) {
|
|
8935
|
+
var _a;
|
|
8936
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8937
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
8938
|
+
if (result.error) {
|
|
8939
|
+
throw result.error;
|
|
8940
|
+
}
|
|
8941
|
+
else if (result.failures && result.failures.length > 0) {
|
|
8942
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
8943
|
+
throw new Error(`UpdatePartialWhere Comment incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
8944
|
+
}
|
|
8945
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
8946
|
+
throw new Error(`UpdatePartialWhere Comment failed without error. ${result.message || ""}`);
|
|
8947
|
+
}
|
|
8948
|
+
return (result.successes);
|
|
8949
|
+
});
|
|
8950
|
+
}
|
|
8349
8951
|
/** Overwrites the given properties for each existing Comment. */
|
|
8350
8952
|
tryUpdatePartialMany(request, options) {
|
|
8351
8953
|
var _a, _b;
|
|
@@ -8822,6 +9424,42 @@ class ConfigChangeCruds {
|
|
|
8822
9424
|
return (result.output);
|
|
8823
9425
|
});
|
|
8824
9426
|
}
|
|
9427
|
+
/** Performs the given operation on each existing ConfigChange that satisfies the given criteria. */
|
|
9428
|
+
tryUpdatePartialWhere(request, options) {
|
|
9429
|
+
var _a, _b;
|
|
9430
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9431
|
+
let response = new contracts_1.BatchResult(false);
|
|
9432
|
+
try {
|
|
9433
|
+
let url = this.core.buildUrl("/config-changes/partial-where(/)", {}, false);
|
|
9434
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
9435
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
9436
|
+
}
|
|
9437
|
+
catch (err) {
|
|
9438
|
+
response.error = err;
|
|
9439
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ConfigChange, ConfigChangeCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
9440
|
+
}
|
|
9441
|
+
finally {
|
|
9442
|
+
return response;
|
|
9443
|
+
}
|
|
9444
|
+
});
|
|
9445
|
+
}
|
|
9446
|
+
UpdatePartialWhere(request, options) {
|
|
9447
|
+
var _a;
|
|
9448
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9449
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
9450
|
+
if (result.error) {
|
|
9451
|
+
throw result.error;
|
|
9452
|
+
}
|
|
9453
|
+
else if (result.failures && result.failures.length > 0) {
|
|
9454
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
9455
|
+
throw new Error(`UpdatePartialWhere ConfigChange incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
9456
|
+
}
|
|
9457
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
9458
|
+
throw new Error(`UpdatePartialWhere ConfigChange failed without error. ${result.message || ""}`);
|
|
9459
|
+
}
|
|
9460
|
+
return (result.successes);
|
|
9461
|
+
});
|
|
9462
|
+
}
|
|
8825
9463
|
/** Overwrites the given properties for each existing ConfigChange. */
|
|
8826
9464
|
tryUpdatePartialMany(request, options) {
|
|
8827
9465
|
var _a, _b;
|
|
@@ -9298,6 +9936,42 @@ class ContainerFootprintCruds {
|
|
|
9298
9936
|
return (result.output);
|
|
9299
9937
|
});
|
|
9300
9938
|
}
|
|
9939
|
+
/** Performs the given operation on each existing ContainerFootprint that satisfies the given criteria. */
|
|
9940
|
+
tryUpdatePartialWhere(request, options) {
|
|
9941
|
+
var _a, _b;
|
|
9942
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9943
|
+
let response = new contracts_1.BatchResult(false);
|
|
9944
|
+
try {
|
|
9945
|
+
let url = this.core.buildUrl("/container-footprints/partial-where(/)", {}, false);
|
|
9946
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
9947
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
9948
|
+
}
|
|
9949
|
+
catch (err) {
|
|
9950
|
+
response.error = err;
|
|
9951
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ContainerFootprint, ContainerFootprintCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
9952
|
+
}
|
|
9953
|
+
finally {
|
|
9954
|
+
return response;
|
|
9955
|
+
}
|
|
9956
|
+
});
|
|
9957
|
+
}
|
|
9958
|
+
UpdatePartialWhere(request, options) {
|
|
9959
|
+
var _a;
|
|
9960
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9961
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
9962
|
+
if (result.error) {
|
|
9963
|
+
throw result.error;
|
|
9964
|
+
}
|
|
9965
|
+
else if (result.failures && result.failures.length > 0) {
|
|
9966
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
9967
|
+
throw new Error(`UpdatePartialWhere ContainerFootprint incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
9968
|
+
}
|
|
9969
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
9970
|
+
throw new Error(`UpdatePartialWhere ContainerFootprint failed without error. ${result.message || ""}`);
|
|
9971
|
+
}
|
|
9972
|
+
return (result.successes);
|
|
9973
|
+
});
|
|
9974
|
+
}
|
|
9301
9975
|
/** Overwrites the given properties for each existing ContainerFootprint. */
|
|
9302
9976
|
tryUpdatePartialMany(request, options) {
|
|
9303
9977
|
var _a, _b;
|
|
@@ -9774,6 +10448,42 @@ class CspTenantProfileCruds {
|
|
|
9774
10448
|
return (result.output);
|
|
9775
10449
|
});
|
|
9776
10450
|
}
|
|
10451
|
+
/** Performs the given operation on each existing CspTenantProfile that satisfies the given criteria. */
|
|
10452
|
+
tryUpdatePartialWhere(request, options) {
|
|
10453
|
+
var _a, _b;
|
|
10454
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10455
|
+
let response = new contracts_1.BatchResult(false);
|
|
10456
|
+
try {
|
|
10457
|
+
let url = this.core.buildUrl("/csp-tenant-profiles/partial-where(/)", {}, false);
|
|
10458
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
10459
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
10460
|
+
}
|
|
10461
|
+
catch (err) {
|
|
10462
|
+
response.error = err;
|
|
10463
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<CspTenantProfile, CspTenantProfileCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
10464
|
+
}
|
|
10465
|
+
finally {
|
|
10466
|
+
return response;
|
|
10467
|
+
}
|
|
10468
|
+
});
|
|
10469
|
+
}
|
|
10470
|
+
UpdatePartialWhere(request, options) {
|
|
10471
|
+
var _a;
|
|
10472
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10473
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
10474
|
+
if (result.error) {
|
|
10475
|
+
throw result.error;
|
|
10476
|
+
}
|
|
10477
|
+
else if (result.failures && result.failures.length > 0) {
|
|
10478
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
10479
|
+
throw new Error(`UpdatePartialWhere CspTenantProfile incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
10480
|
+
}
|
|
10481
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
10482
|
+
throw new Error(`UpdatePartialWhere CspTenantProfile failed without error. ${result.message || ""}`);
|
|
10483
|
+
}
|
|
10484
|
+
return (result.successes);
|
|
10485
|
+
});
|
|
10486
|
+
}
|
|
9777
10487
|
/** Overwrites the given properties for each existing CspTenantProfile. */
|
|
9778
10488
|
tryUpdatePartialMany(request, options) {
|
|
9779
10489
|
var _a, _b;
|
|
@@ -10244,10 +10954,46 @@ class DeployAttemptCruds {
|
|
|
10244
10954
|
if (result.error) {
|
|
10245
10955
|
throw result.error;
|
|
10246
10956
|
}
|
|
10247
|
-
else if (result.success == false || result.output == undefined) {
|
|
10248
|
-
throw new Error(`create DeployAttempt failed without error. ${result.message || ""}`);
|
|
10957
|
+
else if (result.success == false || result.output == undefined) {
|
|
10958
|
+
throw new Error(`create DeployAttempt failed without error. ${result.message || ""}`);
|
|
10959
|
+
}
|
|
10960
|
+
return (result.output);
|
|
10961
|
+
});
|
|
10962
|
+
}
|
|
10963
|
+
/** Performs the given operation on each existing DeployAttempt that satisfies the given criteria. */
|
|
10964
|
+
tryUpdatePartialWhere(request, options) {
|
|
10965
|
+
var _a, _b;
|
|
10966
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10967
|
+
let response = new contracts_1.BatchResult(false);
|
|
10968
|
+
try {
|
|
10969
|
+
let url = this.core.buildUrl("/deploy-attempts/partial-where(/)", {}, false);
|
|
10970
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
10971
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
10972
|
+
}
|
|
10973
|
+
catch (err) {
|
|
10974
|
+
response.error = err;
|
|
10975
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<DeployAttempt, DeployAttemptCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
10976
|
+
}
|
|
10977
|
+
finally {
|
|
10978
|
+
return response;
|
|
10979
|
+
}
|
|
10980
|
+
});
|
|
10981
|
+
}
|
|
10982
|
+
UpdatePartialWhere(request, options) {
|
|
10983
|
+
var _a;
|
|
10984
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10985
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
10986
|
+
if (result.error) {
|
|
10987
|
+
throw result.error;
|
|
10988
|
+
}
|
|
10989
|
+
else if (result.failures && result.failures.length > 0) {
|
|
10990
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
10991
|
+
throw new Error(`UpdatePartialWhere DeployAttempt incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
10992
|
+
}
|
|
10993
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
10994
|
+
throw new Error(`UpdatePartialWhere DeployAttempt failed without error. ${result.message || ""}`);
|
|
10249
10995
|
}
|
|
10250
|
-
return (result.
|
|
10996
|
+
return (result.successes);
|
|
10251
10997
|
});
|
|
10252
10998
|
}
|
|
10253
10999
|
/** Overwrites the given properties for each existing DeployAttempt. */
|
|
@@ -10726,6 +11472,42 @@ class DeployPipelineCruds {
|
|
|
10726
11472
|
return (result.output);
|
|
10727
11473
|
});
|
|
10728
11474
|
}
|
|
11475
|
+
/** Performs the given operation on each existing DeployPipeline that satisfies the given criteria. */
|
|
11476
|
+
tryUpdatePartialWhere(request, options) {
|
|
11477
|
+
var _a, _b;
|
|
11478
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11479
|
+
let response = new contracts_1.BatchResult(false);
|
|
11480
|
+
try {
|
|
11481
|
+
let url = this.core.buildUrl("/deploy-pipelines/partial-where(/)", {}, false);
|
|
11482
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
11483
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
11484
|
+
}
|
|
11485
|
+
catch (err) {
|
|
11486
|
+
response.error = err;
|
|
11487
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<DeployPipeline, DeployPipelineCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
11488
|
+
}
|
|
11489
|
+
finally {
|
|
11490
|
+
return response;
|
|
11491
|
+
}
|
|
11492
|
+
});
|
|
11493
|
+
}
|
|
11494
|
+
UpdatePartialWhere(request, options) {
|
|
11495
|
+
var _a;
|
|
11496
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11497
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
11498
|
+
if (result.error) {
|
|
11499
|
+
throw result.error;
|
|
11500
|
+
}
|
|
11501
|
+
else if (result.failures && result.failures.length > 0) {
|
|
11502
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
11503
|
+
throw new Error(`UpdatePartialWhere DeployPipeline incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
11504
|
+
}
|
|
11505
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
11506
|
+
throw new Error(`UpdatePartialWhere DeployPipeline failed without error. ${result.message || ""}`);
|
|
11507
|
+
}
|
|
11508
|
+
return (result.successes);
|
|
11509
|
+
});
|
|
11510
|
+
}
|
|
10729
11511
|
/** Overwrites the given properties for each existing DeployPipeline. */
|
|
10730
11512
|
tryUpdatePartialMany(request, options) {
|
|
10731
11513
|
var _a, _b;
|
|
@@ -11202,6 +11984,42 @@ class DeploymentCruds {
|
|
|
11202
11984
|
return (result.output);
|
|
11203
11985
|
});
|
|
11204
11986
|
}
|
|
11987
|
+
/** Performs the given operation on each existing Deployment that satisfies the given criteria. */
|
|
11988
|
+
tryUpdatePartialWhere(request, options) {
|
|
11989
|
+
var _a, _b;
|
|
11990
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11991
|
+
let response = new contracts_1.BatchResult(false);
|
|
11992
|
+
try {
|
|
11993
|
+
let url = this.core.buildUrl("/deployments/partial-where(/)", {}, false);
|
|
11994
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
11995
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
11996
|
+
}
|
|
11997
|
+
catch (err) {
|
|
11998
|
+
response.error = err;
|
|
11999
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Deployment, DeploymentCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
12000
|
+
}
|
|
12001
|
+
finally {
|
|
12002
|
+
return response;
|
|
12003
|
+
}
|
|
12004
|
+
});
|
|
12005
|
+
}
|
|
12006
|
+
UpdatePartialWhere(request, options) {
|
|
12007
|
+
var _a;
|
|
12008
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12009
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
12010
|
+
if (result.error) {
|
|
12011
|
+
throw result.error;
|
|
12012
|
+
}
|
|
12013
|
+
else if (result.failures && result.failures.length > 0) {
|
|
12014
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
12015
|
+
throw new Error(`UpdatePartialWhere Deployment incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
12016
|
+
}
|
|
12017
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
12018
|
+
throw new Error(`UpdatePartialWhere Deployment failed without error. ${result.message || ""}`);
|
|
12019
|
+
}
|
|
12020
|
+
return (result.successes);
|
|
12021
|
+
});
|
|
12022
|
+
}
|
|
11205
12023
|
/** Overwrites the given properties for each existing Deployment. */
|
|
11206
12024
|
tryUpdatePartialMany(request, options) {
|
|
11207
12025
|
var _a, _b;
|
|
@@ -11678,6 +12496,42 @@ class EnterpriseRunStateCruds {
|
|
|
11678
12496
|
return (result.output);
|
|
11679
12497
|
});
|
|
11680
12498
|
}
|
|
12499
|
+
/** Performs the given operation on each existing EnterpriseRunState that satisfies the given criteria. */
|
|
12500
|
+
tryUpdatePartialWhere(request, options) {
|
|
12501
|
+
var _a, _b;
|
|
12502
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12503
|
+
let response = new contracts_1.BatchResult(false);
|
|
12504
|
+
try {
|
|
12505
|
+
let url = this.core.buildUrl("/enterprise-run-states/partial-where(/)", {}, false);
|
|
12506
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
12507
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
12508
|
+
}
|
|
12509
|
+
catch (err) {
|
|
12510
|
+
response.error = err;
|
|
12511
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<EnterpriseRunState, EnterpriseRunStateCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
12512
|
+
}
|
|
12513
|
+
finally {
|
|
12514
|
+
return response;
|
|
12515
|
+
}
|
|
12516
|
+
});
|
|
12517
|
+
}
|
|
12518
|
+
UpdatePartialWhere(request, options) {
|
|
12519
|
+
var _a;
|
|
12520
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12521
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
12522
|
+
if (result.error) {
|
|
12523
|
+
throw result.error;
|
|
12524
|
+
}
|
|
12525
|
+
else if (result.failures && result.failures.length > 0) {
|
|
12526
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
12527
|
+
throw new Error(`UpdatePartialWhere EnterpriseRunState incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
12528
|
+
}
|
|
12529
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
12530
|
+
throw new Error(`UpdatePartialWhere EnterpriseRunState failed without error. ${result.message || ""}`);
|
|
12531
|
+
}
|
|
12532
|
+
return (result.successes);
|
|
12533
|
+
});
|
|
12534
|
+
}
|
|
11681
12535
|
/** Overwrites the given properties for each existing EnterpriseRunState. */
|
|
11682
12536
|
tryUpdatePartialMany(request, options) {
|
|
11683
12537
|
var _a, _b;
|
|
@@ -12154,6 +13008,42 @@ class EnterpriseVersionConfigCruds {
|
|
|
12154
13008
|
return (result.output);
|
|
12155
13009
|
});
|
|
12156
13010
|
}
|
|
13011
|
+
/** Performs the given operation on each existing EnterpriseVersionConfig that satisfies the given criteria. */
|
|
13012
|
+
tryUpdatePartialWhere(request, options) {
|
|
13013
|
+
var _a, _b;
|
|
13014
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13015
|
+
let response = new contracts_1.BatchResult(false);
|
|
13016
|
+
try {
|
|
13017
|
+
let url = this.core.buildUrl("/enterprise-versions/partial-where(/)", {}, false);
|
|
13018
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
13019
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
13020
|
+
}
|
|
13021
|
+
catch (err) {
|
|
13022
|
+
response.error = err;
|
|
13023
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<EnterpriseVersionConfig, EnterpriseVersionConfigCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
13024
|
+
}
|
|
13025
|
+
finally {
|
|
13026
|
+
return response;
|
|
13027
|
+
}
|
|
13028
|
+
});
|
|
13029
|
+
}
|
|
13030
|
+
UpdatePartialWhere(request, options) {
|
|
13031
|
+
var _a;
|
|
13032
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13033
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
13034
|
+
if (result.error) {
|
|
13035
|
+
throw result.error;
|
|
13036
|
+
}
|
|
13037
|
+
else if (result.failures && result.failures.length > 0) {
|
|
13038
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
13039
|
+
throw new Error(`UpdatePartialWhere EnterpriseVersionConfig incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
13040
|
+
}
|
|
13041
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
13042
|
+
throw new Error(`UpdatePartialWhere EnterpriseVersionConfig failed without error. ${result.message || ""}`);
|
|
13043
|
+
}
|
|
13044
|
+
return (result.successes);
|
|
13045
|
+
});
|
|
13046
|
+
}
|
|
12157
13047
|
/** Overwrites the given properties for each existing EnterpriseVersionConfig. */
|
|
12158
13048
|
tryUpdatePartialMany(request, options) {
|
|
12159
13049
|
var _a, _b;
|
|
@@ -12630,6 +13520,42 @@ class EnterpriseCruds {
|
|
|
12630
13520
|
return (result.output);
|
|
12631
13521
|
});
|
|
12632
13522
|
}
|
|
13523
|
+
/** Performs the given operation on each existing Enterprise that satisfies the given criteria. */
|
|
13524
|
+
tryUpdatePartialWhere(request, options) {
|
|
13525
|
+
var _a, _b;
|
|
13526
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13527
|
+
let response = new contracts_1.BatchResult(false);
|
|
13528
|
+
try {
|
|
13529
|
+
let url = this.core.buildUrl("/enterprises/partial-where(/)", {}, false);
|
|
13530
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
13531
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
13532
|
+
}
|
|
13533
|
+
catch (err) {
|
|
13534
|
+
response.error = err;
|
|
13535
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Enterprise, EnterpriseCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
13536
|
+
}
|
|
13537
|
+
finally {
|
|
13538
|
+
return response;
|
|
13539
|
+
}
|
|
13540
|
+
});
|
|
13541
|
+
}
|
|
13542
|
+
UpdatePartialWhere(request, options) {
|
|
13543
|
+
var _a;
|
|
13544
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13545
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
13546
|
+
if (result.error) {
|
|
13547
|
+
throw result.error;
|
|
13548
|
+
}
|
|
13549
|
+
else if (result.failures && result.failures.length > 0) {
|
|
13550
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
13551
|
+
throw new Error(`UpdatePartialWhere Enterprise incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
13552
|
+
}
|
|
13553
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
13554
|
+
throw new Error(`UpdatePartialWhere Enterprise failed without error. ${result.message || ""}`);
|
|
13555
|
+
}
|
|
13556
|
+
return (result.successes);
|
|
13557
|
+
});
|
|
13558
|
+
}
|
|
12633
13559
|
/** Overwrites the given properties for each existing Enterprise. */
|
|
12634
13560
|
tryUpdatePartialMany(request, options) {
|
|
12635
13561
|
var _a, _b;
|
|
@@ -13106,6 +14032,42 @@ class EnvironmentCruds {
|
|
|
13106
14032
|
return (result.output);
|
|
13107
14033
|
});
|
|
13108
14034
|
}
|
|
14035
|
+
/** Performs the given operation on each existing Environment that satisfies the given criteria. */
|
|
14036
|
+
tryUpdatePartialWhere(request, options) {
|
|
14037
|
+
var _a, _b;
|
|
14038
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14039
|
+
let response = new contracts_1.BatchResult(false);
|
|
14040
|
+
try {
|
|
14041
|
+
let url = this.core.buildUrl("/environments/partial-where(/)", {}, false);
|
|
14042
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
14043
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
14044
|
+
}
|
|
14045
|
+
catch (err) {
|
|
14046
|
+
response.error = err;
|
|
14047
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Environment, EnvironmentCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
14048
|
+
}
|
|
14049
|
+
finally {
|
|
14050
|
+
return response;
|
|
14051
|
+
}
|
|
14052
|
+
});
|
|
14053
|
+
}
|
|
14054
|
+
UpdatePartialWhere(request, options) {
|
|
14055
|
+
var _a;
|
|
14056
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14057
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
14058
|
+
if (result.error) {
|
|
14059
|
+
throw result.error;
|
|
14060
|
+
}
|
|
14061
|
+
else if (result.failures && result.failures.length > 0) {
|
|
14062
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
14063
|
+
throw new Error(`UpdatePartialWhere Environment incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
14064
|
+
}
|
|
14065
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
14066
|
+
throw new Error(`UpdatePartialWhere Environment failed without error. ${result.message || ""}`);
|
|
14067
|
+
}
|
|
14068
|
+
return (result.successes);
|
|
14069
|
+
});
|
|
14070
|
+
}
|
|
13109
14071
|
/** Overwrites the given properties for each existing Environment. */
|
|
13110
14072
|
tryUpdatePartialMany(request, options) {
|
|
13111
14073
|
var _a, _b;
|
|
@@ -13582,6 +14544,42 @@ class FileStoreDefCruds {
|
|
|
13582
14544
|
return (result.output);
|
|
13583
14545
|
});
|
|
13584
14546
|
}
|
|
14547
|
+
/** Performs the given operation on each existing FileStoreDef that satisfies the given criteria. */
|
|
14548
|
+
tryUpdatePartialWhere(request, options) {
|
|
14549
|
+
var _a, _b;
|
|
14550
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14551
|
+
let response = new contracts_1.BatchResult(false);
|
|
14552
|
+
try {
|
|
14553
|
+
let url = this.core.buildUrl("/file-stores/partial-where(/)", {}, false);
|
|
14554
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
14555
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
14556
|
+
}
|
|
14557
|
+
catch (err) {
|
|
14558
|
+
response.error = err;
|
|
14559
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<FileStoreDef, FileStoreDefCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
14560
|
+
}
|
|
14561
|
+
finally {
|
|
14562
|
+
return response;
|
|
14563
|
+
}
|
|
14564
|
+
});
|
|
14565
|
+
}
|
|
14566
|
+
UpdatePartialWhere(request, options) {
|
|
14567
|
+
var _a;
|
|
14568
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14569
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
14570
|
+
if (result.error) {
|
|
14571
|
+
throw result.error;
|
|
14572
|
+
}
|
|
14573
|
+
else if (result.failures && result.failures.length > 0) {
|
|
14574
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
14575
|
+
throw new Error(`UpdatePartialWhere FileStoreDef incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
14576
|
+
}
|
|
14577
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
14578
|
+
throw new Error(`UpdatePartialWhere FileStoreDef failed without error. ${result.message || ""}`);
|
|
14579
|
+
}
|
|
14580
|
+
return (result.successes);
|
|
14581
|
+
});
|
|
14582
|
+
}
|
|
13585
14583
|
/** Overwrites the given properties for each existing FileStoreDef. */
|
|
13586
14584
|
tryUpdatePartialMany(request, options) {
|
|
13587
14585
|
var _a, _b;
|
|
@@ -14058,6 +15056,42 @@ class ScopedHostNameConfigCruds {
|
|
|
14058
15056
|
return (result.output);
|
|
14059
15057
|
});
|
|
14060
15058
|
}
|
|
15059
|
+
/** Performs the given operation on each existing ScopedHostNameConfig that satisfies the given criteria. */
|
|
15060
|
+
tryUpdatePartialWhere(request, options) {
|
|
15061
|
+
var _a, _b;
|
|
15062
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15063
|
+
let response = new contracts_1.BatchResult(false);
|
|
15064
|
+
try {
|
|
15065
|
+
let url = this.core.buildUrl("/host-names/partial-where(/)", {}, false);
|
|
15066
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
15067
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
15068
|
+
}
|
|
15069
|
+
catch (err) {
|
|
15070
|
+
response.error = err;
|
|
15071
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ScopedHostNameConfig, ScopedHostNameConfigCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
15072
|
+
}
|
|
15073
|
+
finally {
|
|
15074
|
+
return response;
|
|
15075
|
+
}
|
|
15076
|
+
});
|
|
15077
|
+
}
|
|
15078
|
+
UpdatePartialWhere(request, options) {
|
|
15079
|
+
var _a;
|
|
15080
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15081
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
15082
|
+
if (result.error) {
|
|
15083
|
+
throw result.error;
|
|
15084
|
+
}
|
|
15085
|
+
else if (result.failures && result.failures.length > 0) {
|
|
15086
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
15087
|
+
throw new Error(`UpdatePartialWhere ScopedHostNameConfig incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
15088
|
+
}
|
|
15089
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
15090
|
+
throw new Error(`UpdatePartialWhere ScopedHostNameConfig failed without error. ${result.message || ""}`);
|
|
15091
|
+
}
|
|
15092
|
+
return (result.successes);
|
|
15093
|
+
});
|
|
15094
|
+
}
|
|
14061
15095
|
/** Overwrites the given properties for each existing ScopedHostNameConfig. */
|
|
14062
15096
|
tryUpdatePartialMany(request, options) {
|
|
14063
15097
|
var _a, _b;
|
|
@@ -14531,7 +15565,43 @@ class ImageRegistryCruds {
|
|
|
14531
15565
|
else if (result.success == false || result.output == undefined) {
|
|
14532
15566
|
throw new Error(`create ImageRegistry failed without error. ${result.message || ""}`);
|
|
14533
15567
|
}
|
|
14534
|
-
return (result.output);
|
|
15568
|
+
return (result.output);
|
|
15569
|
+
});
|
|
15570
|
+
}
|
|
15571
|
+
/** Performs the given operation on each existing ImageRegistry that satisfies the given criteria. */
|
|
15572
|
+
tryUpdatePartialWhere(request, options) {
|
|
15573
|
+
var _a, _b;
|
|
15574
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15575
|
+
let response = new contracts_1.BatchResult(false);
|
|
15576
|
+
try {
|
|
15577
|
+
let url = this.core.buildUrl("/image-registries/partial-where(/)", {}, false);
|
|
15578
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
15579
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
15580
|
+
}
|
|
15581
|
+
catch (err) {
|
|
15582
|
+
response.error = err;
|
|
15583
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ImageRegistry, ImageRegistryCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
15584
|
+
}
|
|
15585
|
+
finally {
|
|
15586
|
+
return response;
|
|
15587
|
+
}
|
|
15588
|
+
});
|
|
15589
|
+
}
|
|
15590
|
+
UpdatePartialWhere(request, options) {
|
|
15591
|
+
var _a;
|
|
15592
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15593
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
15594
|
+
if (result.error) {
|
|
15595
|
+
throw result.error;
|
|
15596
|
+
}
|
|
15597
|
+
else if (result.failures && result.failures.length > 0) {
|
|
15598
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
15599
|
+
throw new Error(`UpdatePartialWhere ImageRegistry incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
15600
|
+
}
|
|
15601
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
15602
|
+
throw new Error(`UpdatePartialWhere ImageRegistry failed without error. ${result.message || ""}`);
|
|
15603
|
+
}
|
|
15604
|
+
return (result.successes);
|
|
14535
15605
|
});
|
|
14536
15606
|
}
|
|
14537
15607
|
/** Overwrites the given properties for each existing ImageRegistry. */
|
|
@@ -15010,6 +16080,42 @@ class ImageCruds {
|
|
|
15010
16080
|
return (result.output);
|
|
15011
16081
|
});
|
|
15012
16082
|
}
|
|
16083
|
+
/** Performs the given operation on each existing Image that satisfies the given criteria. */
|
|
16084
|
+
tryUpdatePartialWhere(request, options) {
|
|
16085
|
+
var _a, _b;
|
|
16086
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16087
|
+
let response = new contracts_1.BatchResult(false);
|
|
16088
|
+
try {
|
|
16089
|
+
let url = this.core.buildUrl("/images/partial-where(/)", {}, false);
|
|
16090
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
16091
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
16092
|
+
}
|
|
16093
|
+
catch (err) {
|
|
16094
|
+
response.error = err;
|
|
16095
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Image, ImageCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
16096
|
+
}
|
|
16097
|
+
finally {
|
|
16098
|
+
return response;
|
|
16099
|
+
}
|
|
16100
|
+
});
|
|
16101
|
+
}
|
|
16102
|
+
UpdatePartialWhere(request, options) {
|
|
16103
|
+
var _a;
|
|
16104
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16105
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
16106
|
+
if (result.error) {
|
|
16107
|
+
throw result.error;
|
|
16108
|
+
}
|
|
16109
|
+
else if (result.failures && result.failures.length > 0) {
|
|
16110
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
16111
|
+
throw new Error(`UpdatePartialWhere Image incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
16112
|
+
}
|
|
16113
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
16114
|
+
throw new Error(`UpdatePartialWhere Image failed without error. ${result.message || ""}`);
|
|
16115
|
+
}
|
|
16116
|
+
return (result.successes);
|
|
16117
|
+
});
|
|
16118
|
+
}
|
|
15013
16119
|
/** Overwrites the given properties for each existing Image. */
|
|
15014
16120
|
tryUpdatePartialMany(request, options) {
|
|
15015
16121
|
var _a, _b;
|
|
@@ -15486,6 +16592,42 @@ class SetupJournalCruds {
|
|
|
15486
16592
|
return (result.output);
|
|
15487
16593
|
});
|
|
15488
16594
|
}
|
|
16595
|
+
/** Performs the given operation on each existing SetupJournal that satisfies the given criteria. */
|
|
16596
|
+
tryUpdatePartialWhere(request, options) {
|
|
16597
|
+
var _a, _b;
|
|
16598
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16599
|
+
let response = new contracts_1.BatchResult(false);
|
|
16600
|
+
try {
|
|
16601
|
+
let url = this.core.buildUrl("/journals/partial-where(/)", {}, false);
|
|
16602
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
16603
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
16604
|
+
}
|
|
16605
|
+
catch (err) {
|
|
16606
|
+
response.error = err;
|
|
16607
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<SetupJournal, SetupJournalCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
16608
|
+
}
|
|
16609
|
+
finally {
|
|
16610
|
+
return response;
|
|
16611
|
+
}
|
|
16612
|
+
});
|
|
16613
|
+
}
|
|
16614
|
+
UpdatePartialWhere(request, options) {
|
|
16615
|
+
var _a;
|
|
16616
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16617
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
16618
|
+
if (result.error) {
|
|
16619
|
+
throw result.error;
|
|
16620
|
+
}
|
|
16621
|
+
else if (result.failures && result.failures.length > 0) {
|
|
16622
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
16623
|
+
throw new Error(`UpdatePartialWhere SetupJournal incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
16624
|
+
}
|
|
16625
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
16626
|
+
throw new Error(`UpdatePartialWhere SetupJournal failed without error. ${result.message || ""}`);
|
|
16627
|
+
}
|
|
16628
|
+
return (result.successes);
|
|
16629
|
+
});
|
|
16630
|
+
}
|
|
15489
16631
|
/** Overwrites the given properties for each existing SetupJournal. */
|
|
15490
16632
|
tryUpdatePartialMany(request, options) {
|
|
15491
16633
|
var _a, _b;
|
|
@@ -15962,6 +17104,42 @@ class KitCruds {
|
|
|
15962
17104
|
return (result.output);
|
|
15963
17105
|
});
|
|
15964
17106
|
}
|
|
17107
|
+
/** Performs the given operation on each existing Kit that satisfies the given criteria. */
|
|
17108
|
+
tryUpdatePartialWhere(request, options) {
|
|
17109
|
+
var _a, _b;
|
|
17110
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17111
|
+
let response = new contracts_1.BatchResult(false);
|
|
17112
|
+
try {
|
|
17113
|
+
let url = this.core.buildUrl("/kits/partial-where(/)", {}, false);
|
|
17114
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
17115
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
17116
|
+
}
|
|
17117
|
+
catch (err) {
|
|
17118
|
+
response.error = err;
|
|
17119
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Kit, KitCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
17120
|
+
}
|
|
17121
|
+
finally {
|
|
17122
|
+
return response;
|
|
17123
|
+
}
|
|
17124
|
+
});
|
|
17125
|
+
}
|
|
17126
|
+
UpdatePartialWhere(request, options) {
|
|
17127
|
+
var _a;
|
|
17128
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17129
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
17130
|
+
if (result.error) {
|
|
17131
|
+
throw result.error;
|
|
17132
|
+
}
|
|
17133
|
+
else if (result.failures && result.failures.length > 0) {
|
|
17134
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
17135
|
+
throw new Error(`UpdatePartialWhere Kit incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
17136
|
+
}
|
|
17137
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
17138
|
+
throw new Error(`UpdatePartialWhere Kit failed without error. ${result.message || ""}`);
|
|
17139
|
+
}
|
|
17140
|
+
return (result.successes);
|
|
17141
|
+
});
|
|
17142
|
+
}
|
|
15965
17143
|
/** Overwrites the given properties for each existing Kit. */
|
|
15966
17144
|
tryUpdatePartialMany(request, options) {
|
|
15967
17145
|
var _a, _b;
|
|
@@ -16438,6 +17616,42 @@ class KvpStoreDefCruds {
|
|
|
16438
17616
|
return (result.output);
|
|
16439
17617
|
});
|
|
16440
17618
|
}
|
|
17619
|
+
/** Performs the given operation on each existing KvpStoreDef that satisfies the given criteria. */
|
|
17620
|
+
tryUpdatePartialWhere(request, options) {
|
|
17621
|
+
var _a, _b;
|
|
17622
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17623
|
+
let response = new contracts_1.BatchResult(false);
|
|
17624
|
+
try {
|
|
17625
|
+
let url = this.core.buildUrl("/kvp-stores/partial-where(/)", {}, false);
|
|
17626
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
17627
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
17628
|
+
}
|
|
17629
|
+
catch (err) {
|
|
17630
|
+
response.error = err;
|
|
17631
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<KvpStoreDef, KvpStoreDefCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
17632
|
+
}
|
|
17633
|
+
finally {
|
|
17634
|
+
return response;
|
|
17635
|
+
}
|
|
17636
|
+
});
|
|
17637
|
+
}
|
|
17638
|
+
UpdatePartialWhere(request, options) {
|
|
17639
|
+
var _a;
|
|
17640
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17641
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
17642
|
+
if (result.error) {
|
|
17643
|
+
throw result.error;
|
|
17644
|
+
}
|
|
17645
|
+
else if (result.failures && result.failures.length > 0) {
|
|
17646
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
17647
|
+
throw new Error(`UpdatePartialWhere KvpStoreDef incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
17648
|
+
}
|
|
17649
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
17650
|
+
throw new Error(`UpdatePartialWhere KvpStoreDef failed without error. ${result.message || ""}`);
|
|
17651
|
+
}
|
|
17652
|
+
return (result.successes);
|
|
17653
|
+
});
|
|
17654
|
+
}
|
|
16441
17655
|
/** Overwrites the given properties for each existing KvpStoreDef. */
|
|
16442
17656
|
tryUpdatePartialMany(request, options) {
|
|
16443
17657
|
var _a, _b;
|
|
@@ -16914,6 +18128,42 @@ class LabelCruds {
|
|
|
16914
18128
|
return (result.output);
|
|
16915
18129
|
});
|
|
16916
18130
|
}
|
|
18131
|
+
/** Performs the given operation on each existing Label that satisfies the given criteria. */
|
|
18132
|
+
tryUpdatePartialWhere(request, options) {
|
|
18133
|
+
var _a, _b;
|
|
18134
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18135
|
+
let response = new contracts_1.BatchResult(false);
|
|
18136
|
+
try {
|
|
18137
|
+
let url = this.core.buildUrl("/labels/partial-where(/)", {}, false);
|
|
18138
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
18139
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
18140
|
+
}
|
|
18141
|
+
catch (err) {
|
|
18142
|
+
response.error = err;
|
|
18143
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Label, LabelCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
18144
|
+
}
|
|
18145
|
+
finally {
|
|
18146
|
+
return response;
|
|
18147
|
+
}
|
|
18148
|
+
});
|
|
18149
|
+
}
|
|
18150
|
+
UpdatePartialWhere(request, options) {
|
|
18151
|
+
var _a;
|
|
18152
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18153
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
18154
|
+
if (result.error) {
|
|
18155
|
+
throw result.error;
|
|
18156
|
+
}
|
|
18157
|
+
else if (result.failures && result.failures.length > 0) {
|
|
18158
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
18159
|
+
throw new Error(`UpdatePartialWhere Label incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
18160
|
+
}
|
|
18161
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
18162
|
+
throw new Error(`UpdatePartialWhere Label failed without error. ${result.message || ""}`);
|
|
18163
|
+
}
|
|
18164
|
+
return (result.successes);
|
|
18165
|
+
});
|
|
18166
|
+
}
|
|
16917
18167
|
/** Overwrites the given properties for each existing Label. */
|
|
16918
18168
|
tryUpdatePartialMany(request, options) {
|
|
16919
18169
|
var _a, _b;
|
|
@@ -17390,6 +18640,42 @@ class NodePoolDefCruds {
|
|
|
17390
18640
|
return (result.output);
|
|
17391
18641
|
});
|
|
17392
18642
|
}
|
|
18643
|
+
/** Performs the given operation on each existing NodePoolDef that satisfies the given criteria. */
|
|
18644
|
+
tryUpdatePartialWhere(request, options) {
|
|
18645
|
+
var _a, _b;
|
|
18646
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18647
|
+
let response = new contracts_1.BatchResult(false);
|
|
18648
|
+
try {
|
|
18649
|
+
let url = this.core.buildUrl("/node-pools/partial-where(/)", {}, false);
|
|
18650
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
18651
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
18652
|
+
}
|
|
18653
|
+
catch (err) {
|
|
18654
|
+
response.error = err;
|
|
18655
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<NodePoolDef, NodePoolDefCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
18656
|
+
}
|
|
18657
|
+
finally {
|
|
18658
|
+
return response;
|
|
18659
|
+
}
|
|
18660
|
+
});
|
|
18661
|
+
}
|
|
18662
|
+
UpdatePartialWhere(request, options) {
|
|
18663
|
+
var _a;
|
|
18664
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18665
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
18666
|
+
if (result.error) {
|
|
18667
|
+
throw result.error;
|
|
18668
|
+
}
|
|
18669
|
+
else if (result.failures && result.failures.length > 0) {
|
|
18670
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
18671
|
+
throw new Error(`UpdatePartialWhere NodePoolDef incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
18672
|
+
}
|
|
18673
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
18674
|
+
throw new Error(`UpdatePartialWhere NodePoolDef failed without error. ${result.message || ""}`);
|
|
18675
|
+
}
|
|
18676
|
+
return (result.successes);
|
|
18677
|
+
});
|
|
18678
|
+
}
|
|
17393
18679
|
/** Overwrites the given properties for each existing NodePoolDef. */
|
|
17394
18680
|
tryUpdatePartialMany(request, options) {
|
|
17395
18681
|
var _a, _b;
|
|
@@ -17866,6 +19152,42 @@ class ProbeCruds {
|
|
|
17866
19152
|
return (result.output);
|
|
17867
19153
|
});
|
|
17868
19154
|
}
|
|
19155
|
+
/** Performs the given operation on each existing Probe that satisfies the given criteria. */
|
|
19156
|
+
tryUpdatePartialWhere(request, options) {
|
|
19157
|
+
var _a, _b;
|
|
19158
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19159
|
+
let response = new contracts_1.BatchResult(false);
|
|
19160
|
+
try {
|
|
19161
|
+
let url = this.core.buildUrl("/probes/partial-where(/)", {}, false);
|
|
19162
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
19163
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
19164
|
+
}
|
|
19165
|
+
catch (err) {
|
|
19166
|
+
response.error = err;
|
|
19167
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Probe, ProbeCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
19168
|
+
}
|
|
19169
|
+
finally {
|
|
19170
|
+
return response;
|
|
19171
|
+
}
|
|
19172
|
+
});
|
|
19173
|
+
}
|
|
19174
|
+
UpdatePartialWhere(request, options) {
|
|
19175
|
+
var _a;
|
|
19176
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19177
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
19178
|
+
if (result.error) {
|
|
19179
|
+
throw result.error;
|
|
19180
|
+
}
|
|
19181
|
+
else if (result.failures && result.failures.length > 0) {
|
|
19182
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
19183
|
+
throw new Error(`UpdatePartialWhere Probe incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
19184
|
+
}
|
|
19185
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
19186
|
+
throw new Error(`UpdatePartialWhere Probe failed without error. ${result.message || ""}`);
|
|
19187
|
+
}
|
|
19188
|
+
return (result.successes);
|
|
19189
|
+
});
|
|
19190
|
+
}
|
|
17869
19191
|
/** Overwrites the given properties for each existing Probe. */
|
|
17870
19192
|
tryUpdatePartialMany(request, options) {
|
|
17871
19193
|
var _a, _b;
|
|
@@ -18342,6 +19664,42 @@ class ProductVersionConfigCruds {
|
|
|
18342
19664
|
return (result.output);
|
|
18343
19665
|
});
|
|
18344
19666
|
}
|
|
19667
|
+
/** Performs the given operation on each existing ProductVersionConfig that satisfies the given criteria. */
|
|
19668
|
+
tryUpdatePartialWhere(request, options) {
|
|
19669
|
+
var _a, _b;
|
|
19670
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19671
|
+
let response = new contracts_1.BatchResult(false);
|
|
19672
|
+
try {
|
|
19673
|
+
let url = this.core.buildUrl("/product-versions/partial-where(/)", {}, false);
|
|
19674
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
19675
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
19676
|
+
}
|
|
19677
|
+
catch (err) {
|
|
19678
|
+
response.error = err;
|
|
19679
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ProductVersionConfig, ProductVersionConfigCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
19680
|
+
}
|
|
19681
|
+
finally {
|
|
19682
|
+
return response;
|
|
19683
|
+
}
|
|
19684
|
+
});
|
|
19685
|
+
}
|
|
19686
|
+
UpdatePartialWhere(request, options) {
|
|
19687
|
+
var _a;
|
|
19688
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19689
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
19690
|
+
if (result.error) {
|
|
19691
|
+
throw result.error;
|
|
19692
|
+
}
|
|
19693
|
+
else if (result.failures && result.failures.length > 0) {
|
|
19694
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
19695
|
+
throw new Error(`UpdatePartialWhere ProductVersionConfig incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
19696
|
+
}
|
|
19697
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
19698
|
+
throw new Error(`UpdatePartialWhere ProductVersionConfig failed without error. ${result.message || ""}`);
|
|
19699
|
+
}
|
|
19700
|
+
return (result.successes);
|
|
19701
|
+
});
|
|
19702
|
+
}
|
|
18345
19703
|
/** Overwrites the given properties for each existing ProductVersionConfig. */
|
|
18346
19704
|
tryUpdatePartialMany(request, options) {
|
|
18347
19705
|
var _a, _b;
|
|
@@ -18815,7 +20173,43 @@ class ProductCruds {
|
|
|
18815
20173
|
else if (result.success == false || result.output == undefined) {
|
|
18816
20174
|
throw new Error(`create Product failed without error. ${result.message || ""}`);
|
|
18817
20175
|
}
|
|
18818
|
-
return (result.output);
|
|
20176
|
+
return (result.output);
|
|
20177
|
+
});
|
|
20178
|
+
}
|
|
20179
|
+
/** Performs the given operation on each existing Product that satisfies the given criteria. */
|
|
20180
|
+
tryUpdatePartialWhere(request, options) {
|
|
20181
|
+
var _a, _b;
|
|
20182
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20183
|
+
let response = new contracts_1.BatchResult(false);
|
|
20184
|
+
try {
|
|
20185
|
+
let url = this.core.buildUrl("/products/partial-where(/)", {}, false);
|
|
20186
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
20187
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
20188
|
+
}
|
|
20189
|
+
catch (err) {
|
|
20190
|
+
response.error = err;
|
|
20191
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Product, ProductCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
20192
|
+
}
|
|
20193
|
+
finally {
|
|
20194
|
+
return response;
|
|
20195
|
+
}
|
|
20196
|
+
});
|
|
20197
|
+
}
|
|
20198
|
+
UpdatePartialWhere(request, options) {
|
|
20199
|
+
var _a;
|
|
20200
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20201
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
20202
|
+
if (result.error) {
|
|
20203
|
+
throw result.error;
|
|
20204
|
+
}
|
|
20205
|
+
else if (result.failures && result.failures.length > 0) {
|
|
20206
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
20207
|
+
throw new Error(`UpdatePartialWhere Product incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
20208
|
+
}
|
|
20209
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
20210
|
+
throw new Error(`UpdatePartialWhere Product failed without error. ${result.message || ""}`);
|
|
20211
|
+
}
|
|
20212
|
+
return (result.successes);
|
|
18819
20213
|
});
|
|
18820
20214
|
}
|
|
18821
20215
|
/** Overwrites the given properties for each existing Product. */
|
|
@@ -18970,10 +20364,8 @@ class ScopedSettingCruds {
|
|
|
18970
20364
|
let response = new contracts_1.ListResult(false);
|
|
18971
20365
|
try {
|
|
18972
20366
|
let serializerMap = {
|
|
18973
|
-
"
|
|
18974
|
-
"
|
|
18975
|
-
"enterprise": "StringFilter",
|
|
18976
|
-
"targetCabinet": "StringFilter"
|
|
20367
|
+
"code": "StringFilter",
|
|
20368
|
+
"name": "StringFilter"
|
|
18977
20369
|
};
|
|
18978
20370
|
let values = this.core.applyPropertySerializers(request, serializerMap);
|
|
18979
20371
|
let url = this.core.buildUrl("/settings(/)", values, true);
|
|
@@ -19296,6 +20688,42 @@ class ScopedSettingCruds {
|
|
|
19296
20688
|
return (result.output);
|
|
19297
20689
|
});
|
|
19298
20690
|
}
|
|
20691
|
+
/** Performs the given operation on each existing ScopedSetting that satisfies the given criteria. */
|
|
20692
|
+
tryUpdatePartialWhere(request, options) {
|
|
20693
|
+
var _a, _b;
|
|
20694
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20695
|
+
let response = new contracts_1.BatchResult(false);
|
|
20696
|
+
try {
|
|
20697
|
+
let url = this.core.buildUrl("/settings/partial-where(/)", {}, false);
|
|
20698
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
20699
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
20700
|
+
}
|
|
20701
|
+
catch (err) {
|
|
20702
|
+
response.error = err;
|
|
20703
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ScopedSetting, ScopedSettingCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
20704
|
+
}
|
|
20705
|
+
finally {
|
|
20706
|
+
return response;
|
|
20707
|
+
}
|
|
20708
|
+
});
|
|
20709
|
+
}
|
|
20710
|
+
UpdatePartialWhere(request, options) {
|
|
20711
|
+
var _a;
|
|
20712
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20713
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
20714
|
+
if (result.error) {
|
|
20715
|
+
throw result.error;
|
|
20716
|
+
}
|
|
20717
|
+
else if (result.failures && result.failures.length > 0) {
|
|
20718
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
20719
|
+
throw new Error(`UpdatePartialWhere ScopedSetting incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
20720
|
+
}
|
|
20721
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
20722
|
+
throw new Error(`UpdatePartialWhere ScopedSetting failed without error. ${result.message || ""}`);
|
|
20723
|
+
}
|
|
20724
|
+
return (result.successes);
|
|
20725
|
+
});
|
|
20726
|
+
}
|
|
19299
20727
|
/** Overwrites the given properties for each existing ScopedSetting. */
|
|
19300
20728
|
tryUpdatePartialMany(request, options) {
|
|
19301
20729
|
var _a, _b;
|
|
@@ -19772,6 +21200,42 @@ class SnapshotCruds {
|
|
|
19772
21200
|
return (result.output);
|
|
19773
21201
|
});
|
|
19774
21202
|
}
|
|
21203
|
+
/** Performs the given operation on each existing Snapshot that satisfies the given criteria. */
|
|
21204
|
+
tryUpdatePartialWhere(request, options) {
|
|
21205
|
+
var _a, _b;
|
|
21206
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21207
|
+
let response = new contracts_1.BatchResult(false);
|
|
21208
|
+
try {
|
|
21209
|
+
let url = this.core.buildUrl("/snapshots/partial-where(/)", {}, false);
|
|
21210
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
21211
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
21212
|
+
}
|
|
21213
|
+
catch (err) {
|
|
21214
|
+
response.error = err;
|
|
21215
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Snapshot, SnapshotCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
21216
|
+
}
|
|
21217
|
+
finally {
|
|
21218
|
+
return response;
|
|
21219
|
+
}
|
|
21220
|
+
});
|
|
21221
|
+
}
|
|
21222
|
+
UpdatePartialWhere(request, options) {
|
|
21223
|
+
var _a;
|
|
21224
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21225
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
21226
|
+
if (result.error) {
|
|
21227
|
+
throw result.error;
|
|
21228
|
+
}
|
|
21229
|
+
else if (result.failures && result.failures.length > 0) {
|
|
21230
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
21231
|
+
throw new Error(`UpdatePartialWhere Snapshot incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
21232
|
+
}
|
|
21233
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
21234
|
+
throw new Error(`UpdatePartialWhere Snapshot failed without error. ${result.message || ""}`);
|
|
21235
|
+
}
|
|
21236
|
+
return (result.successes);
|
|
21237
|
+
});
|
|
21238
|
+
}
|
|
19775
21239
|
/** Overwrites the given properties for each existing Snapshot. */
|
|
19776
21240
|
tryUpdatePartialMany(request, options) {
|
|
19777
21241
|
var _a, _b;
|
|
@@ -20248,6 +21712,42 @@ class SourceRepoCruds {
|
|
|
20248
21712
|
return (result.output);
|
|
20249
21713
|
});
|
|
20250
21714
|
}
|
|
21715
|
+
/** Performs the given operation on each existing SourceRepo that satisfies the given criteria. */
|
|
21716
|
+
tryUpdatePartialWhere(request, options) {
|
|
21717
|
+
var _a, _b;
|
|
21718
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21719
|
+
let response = new contracts_1.BatchResult(false);
|
|
21720
|
+
try {
|
|
21721
|
+
let url = this.core.buildUrl("/source-repos/partial-where(/)", {}, false);
|
|
21722
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
21723
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
21724
|
+
}
|
|
21725
|
+
catch (err) {
|
|
21726
|
+
response.error = err;
|
|
21727
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<SourceRepo, SourceRepoCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
21728
|
+
}
|
|
21729
|
+
finally {
|
|
21730
|
+
return response;
|
|
21731
|
+
}
|
|
21732
|
+
});
|
|
21733
|
+
}
|
|
21734
|
+
UpdatePartialWhere(request, options) {
|
|
21735
|
+
var _a;
|
|
21736
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21737
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
21738
|
+
if (result.error) {
|
|
21739
|
+
throw result.error;
|
|
21740
|
+
}
|
|
21741
|
+
else if (result.failures && result.failures.length > 0) {
|
|
21742
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
21743
|
+
throw new Error(`UpdatePartialWhere SourceRepo incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
21744
|
+
}
|
|
21745
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
21746
|
+
throw new Error(`UpdatePartialWhere SourceRepo failed without error. ${result.message || ""}`);
|
|
21747
|
+
}
|
|
21748
|
+
return (result.successes);
|
|
21749
|
+
});
|
|
21750
|
+
}
|
|
20251
21751
|
/** Overwrites the given properties for each existing SourceRepo. */
|
|
20252
21752
|
tryUpdatePartialMany(request, options) {
|
|
20253
21753
|
var _a, _b;
|
|
@@ -20724,6 +22224,42 @@ class SubscriptionCruds {
|
|
|
20724
22224
|
return (result.output);
|
|
20725
22225
|
});
|
|
20726
22226
|
}
|
|
22227
|
+
/** Performs the given operation on each existing Subscription that satisfies the given criteria. */
|
|
22228
|
+
tryUpdatePartialWhere(request, options) {
|
|
22229
|
+
var _a, _b;
|
|
22230
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22231
|
+
let response = new contracts_1.BatchResult(false);
|
|
22232
|
+
try {
|
|
22233
|
+
let url = this.core.buildUrl("/subscriptions/partial-where(/)", {}, false);
|
|
22234
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
22235
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
22236
|
+
}
|
|
22237
|
+
catch (err) {
|
|
22238
|
+
response.error = err;
|
|
22239
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Subscription, SubscriptionCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
22240
|
+
}
|
|
22241
|
+
finally {
|
|
22242
|
+
return response;
|
|
22243
|
+
}
|
|
22244
|
+
});
|
|
22245
|
+
}
|
|
22246
|
+
UpdatePartialWhere(request, options) {
|
|
22247
|
+
var _a;
|
|
22248
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22249
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
22250
|
+
if (result.error) {
|
|
22251
|
+
throw result.error;
|
|
22252
|
+
}
|
|
22253
|
+
else if (result.failures && result.failures.length > 0) {
|
|
22254
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
22255
|
+
throw new Error(`UpdatePartialWhere Subscription incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
22256
|
+
}
|
|
22257
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
22258
|
+
throw new Error(`UpdatePartialWhere Subscription failed without error. ${result.message || ""}`);
|
|
22259
|
+
}
|
|
22260
|
+
return (result.successes);
|
|
22261
|
+
});
|
|
22262
|
+
}
|
|
20727
22263
|
/** Overwrites the given properties for each existing Subscription. */
|
|
20728
22264
|
tryUpdatePartialMany(request, options) {
|
|
20729
22265
|
var _a, _b;
|
|
@@ -21200,6 +22736,42 @@ class TagCruds {
|
|
|
21200
22736
|
return (result.output);
|
|
21201
22737
|
});
|
|
21202
22738
|
}
|
|
22739
|
+
/** Performs the given operation on each existing Tag that satisfies the given criteria. */
|
|
22740
|
+
tryUpdatePartialWhere(request, options) {
|
|
22741
|
+
var _a, _b;
|
|
22742
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22743
|
+
let response = new contracts_1.BatchResult(false);
|
|
22744
|
+
try {
|
|
22745
|
+
let url = this.core.buildUrl("/tags/partial-where(/)", {}, false);
|
|
22746
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
22747
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
22748
|
+
}
|
|
22749
|
+
catch (err) {
|
|
22750
|
+
response.error = err;
|
|
22751
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<Tag, TagCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
22752
|
+
}
|
|
22753
|
+
finally {
|
|
22754
|
+
return response;
|
|
22755
|
+
}
|
|
22756
|
+
});
|
|
22757
|
+
}
|
|
22758
|
+
UpdatePartialWhere(request, options) {
|
|
22759
|
+
var _a;
|
|
22760
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22761
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
22762
|
+
if (result.error) {
|
|
22763
|
+
throw result.error;
|
|
22764
|
+
}
|
|
22765
|
+
else if (result.failures && result.failures.length > 0) {
|
|
22766
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
22767
|
+
throw new Error(`UpdatePartialWhere Tag incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
22768
|
+
}
|
|
22769
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
22770
|
+
throw new Error(`UpdatePartialWhere Tag failed without error. ${result.message || ""}`);
|
|
22771
|
+
}
|
|
22772
|
+
return (result.successes);
|
|
22773
|
+
});
|
|
22774
|
+
}
|
|
21203
22775
|
/** Overwrites the given properties for each existing Tag. */
|
|
21204
22776
|
tryUpdatePartialMany(request, options) {
|
|
21205
22777
|
var _a, _b;
|
|
@@ -21676,6 +23248,42 @@ class CodiacTenantCruds {
|
|
|
21676
23248
|
return (result.output);
|
|
21677
23249
|
});
|
|
21678
23250
|
}
|
|
23251
|
+
/** Performs the given operation on each existing CodiacTenant that satisfies the given criteria. */
|
|
23252
|
+
tryUpdatePartialWhere(request, options) {
|
|
23253
|
+
var _a, _b;
|
|
23254
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23255
|
+
let response = new contracts_1.BatchResult(false);
|
|
23256
|
+
try {
|
|
23257
|
+
let url = this.core.buildUrl("/tenants/partial-where(/)", {}, false);
|
|
23258
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
23259
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
23260
|
+
}
|
|
23261
|
+
catch (err) {
|
|
23262
|
+
response.error = err;
|
|
23263
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<CodiacTenant, CodiacTenantCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
23264
|
+
}
|
|
23265
|
+
finally {
|
|
23266
|
+
return response;
|
|
23267
|
+
}
|
|
23268
|
+
});
|
|
23269
|
+
}
|
|
23270
|
+
UpdatePartialWhere(request, options) {
|
|
23271
|
+
var _a;
|
|
23272
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23273
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
23274
|
+
if (result.error) {
|
|
23275
|
+
throw result.error;
|
|
23276
|
+
}
|
|
23277
|
+
else if (result.failures && result.failures.length > 0) {
|
|
23278
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
23279
|
+
throw new Error(`UpdatePartialWhere CodiacTenant incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
23280
|
+
}
|
|
23281
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
23282
|
+
throw new Error(`UpdatePartialWhere CodiacTenant failed without error. ${result.message || ""}`);
|
|
23283
|
+
}
|
|
23284
|
+
return (result.successes);
|
|
23285
|
+
});
|
|
23286
|
+
}
|
|
21679
23287
|
/** Overwrites the given properties for each existing CodiacTenant. */
|
|
21680
23288
|
tryUpdatePartialMany(request, options) {
|
|
21681
23289
|
var _a, _b;
|
|
@@ -22152,6 +23760,42 @@ class VersionConfigCruds {
|
|
|
22152
23760
|
return (result.output);
|
|
22153
23761
|
});
|
|
22154
23762
|
}
|
|
23763
|
+
/** Performs the given operation on each existing VersionConfig that satisfies the given criteria. */
|
|
23764
|
+
tryUpdatePartialWhere(request, options) {
|
|
23765
|
+
var _a, _b;
|
|
23766
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23767
|
+
let response = new contracts_1.BatchResult(false);
|
|
23768
|
+
try {
|
|
23769
|
+
let url = this.core.buildUrl("/version-configs/partial-where(/)", {}, false);
|
|
23770
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
23771
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
23772
|
+
}
|
|
23773
|
+
catch (err) {
|
|
23774
|
+
response.error = err;
|
|
23775
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<VersionConfig, VersionConfigCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
23776
|
+
}
|
|
23777
|
+
finally {
|
|
23778
|
+
return response;
|
|
23779
|
+
}
|
|
23780
|
+
});
|
|
23781
|
+
}
|
|
23782
|
+
UpdatePartialWhere(request, options) {
|
|
23783
|
+
var _a;
|
|
23784
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23785
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
23786
|
+
if (result.error) {
|
|
23787
|
+
throw result.error;
|
|
23788
|
+
}
|
|
23789
|
+
else if (result.failures && result.failures.length > 0) {
|
|
23790
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
23791
|
+
throw new Error(`UpdatePartialWhere VersionConfig incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
23792
|
+
}
|
|
23793
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
23794
|
+
throw new Error(`UpdatePartialWhere VersionConfig failed without error. ${result.message || ""}`);
|
|
23795
|
+
}
|
|
23796
|
+
return (result.successes);
|
|
23797
|
+
});
|
|
23798
|
+
}
|
|
22155
23799
|
/** Overwrites the given properties for each existing VersionConfig. */
|
|
22156
23800
|
tryUpdatePartialMany(request, options) {
|
|
22157
23801
|
var _a, _b;
|
|
@@ -22628,6 +24272,42 @@ class WorkFlowStrategyCruds {
|
|
|
22628
24272
|
return (result.output);
|
|
22629
24273
|
});
|
|
22630
24274
|
}
|
|
24275
|
+
/** Performs the given operation on each existing WorkFlowStrategy that satisfies the given criteria. */
|
|
24276
|
+
tryUpdatePartialWhere(request, options) {
|
|
24277
|
+
var _a, _b;
|
|
24278
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24279
|
+
let response = new contracts_1.BatchResult(false);
|
|
24280
|
+
try {
|
|
24281
|
+
let url = this.core.buildUrl("/workflow-strategies/partial-where(/)", {}, false);
|
|
24282
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
24283
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
24284
|
+
}
|
|
24285
|
+
catch (err) {
|
|
24286
|
+
response.error = err;
|
|
24287
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<WorkFlowStrategy, WorkFlowStrategyCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
24288
|
+
}
|
|
24289
|
+
finally {
|
|
24290
|
+
return response;
|
|
24291
|
+
}
|
|
24292
|
+
});
|
|
24293
|
+
}
|
|
24294
|
+
UpdatePartialWhere(request, options) {
|
|
24295
|
+
var _a;
|
|
24296
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24297
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
24298
|
+
if (result.error) {
|
|
24299
|
+
throw result.error;
|
|
24300
|
+
}
|
|
24301
|
+
else if (result.failures && result.failures.length > 0) {
|
|
24302
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
24303
|
+
throw new Error(`UpdatePartialWhere WorkFlowStrategy incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
24304
|
+
}
|
|
24305
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
24306
|
+
throw new Error(`UpdatePartialWhere WorkFlowStrategy failed without error. ${result.message || ""}`);
|
|
24307
|
+
}
|
|
24308
|
+
return (result.successes);
|
|
24309
|
+
});
|
|
24310
|
+
}
|
|
22631
24311
|
/** Overwrites the given properties for each existing WorkFlowStrategy. */
|
|
22632
24312
|
tryUpdatePartialMany(request, options) {
|
|
22633
24313
|
var _a, _b;
|
|
@@ -23104,6 +24784,42 @@ class ZombiePeriodCruds {
|
|
|
23104
24784
|
return (result.output);
|
|
23105
24785
|
});
|
|
23106
24786
|
}
|
|
24787
|
+
/** Performs the given operation on each existing ZombiePeriod that satisfies the given criteria. */
|
|
24788
|
+
tryUpdatePartialWhere(request, options) {
|
|
24789
|
+
var _a, _b;
|
|
24790
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24791
|
+
let response = new contracts_1.BatchResult(false);
|
|
24792
|
+
try {
|
|
24793
|
+
let url = this.core.buildUrl("/zombie-periods/partial-where(/)", {}, false);
|
|
24794
|
+
let headers = options ? headersFrom(options) : undefined;
|
|
24795
|
+
response = yield this.core.makeHttpCall(codiac_common_1.httpRestVerb.PATCH, url, request, headers);
|
|
24796
|
+
}
|
|
24797
|
+
catch (err) {
|
|
24798
|
+
response.error = err;
|
|
24799
|
+
response.message = `Error performing UpdatePartialWhere UpdatePartialWhereRequest<ZombiePeriod, ZombiePeriodCriteria>: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : ""}.`;
|
|
24800
|
+
}
|
|
24801
|
+
finally {
|
|
24802
|
+
return response;
|
|
24803
|
+
}
|
|
24804
|
+
});
|
|
24805
|
+
}
|
|
24806
|
+
UpdatePartialWhere(request, options) {
|
|
24807
|
+
var _a;
|
|
24808
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24809
|
+
let result = yield this.tryUpdatePartialWhere(request, options);
|
|
24810
|
+
if (result.error) {
|
|
24811
|
+
throw result.error;
|
|
24812
|
+
}
|
|
24813
|
+
else if (result.failures && result.failures.length > 0) {
|
|
24814
|
+
let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
|
|
24815
|
+
throw new Error(`UpdatePartialWhere ZombiePeriod incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
|
|
24816
|
+
}
|
|
24817
|
+
else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
|
|
24818
|
+
throw new Error(`UpdatePartialWhere ZombiePeriod failed without error. ${result.message || ""}`);
|
|
24819
|
+
}
|
|
24820
|
+
return (result.successes);
|
|
24821
|
+
});
|
|
24822
|
+
}
|
|
23107
24823
|
/** Overwrites the given properties for each existing ZombiePeriod. */
|
|
23108
24824
|
tryUpdatePartialMany(request, options) {
|
|
23109
24825
|
var _a, _b;
|