@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
17 lines • 621 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateOffer = validateOffer;
function validateOffer(body) {
if (body.throughput) {
if (body.maxThroughput) {
console.log("should be erroring");
throw new Error("Cannot specify `throughput` with `maxThroughput`");
}
if (body.autoUpgradePolicy) {
throw new Error("Cannot specify autoUpgradePolicy with throughput. Use `maxThroughput` instead");
}
}
}
//# sourceMappingURL=offers.js.map