2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-12-24 13:28:38 +00:00
gl-store-s3.js/node_modules/aws-sdk/scripts/lib/get-operation-shape-names.js
2019-05-08 11:43:08 +01:00

20 lines
595 B
JavaScript

function getOperationShapeNames(model) {
var operationShapeNames = [];
var operations = model.operations;
for (var operationName of Object.keys(operations)) {
var operation = operations[operationName];
if (operation.input && operation.input.shape) {
operationShapeNames.push(operation.input.shape);
}
if (operation.output && operation.output.shape) {
operationShapeNames.push(operation.output.shape);
}
}
return operationShapeNames;
};
module.exports = {
getOperationShapeNames: getOperationShapeNames
};