@azure/arm-compute
Version:
A generated SDK for ComputeManagementClient.
28 lines • 931 B
JavaScript
;
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLroSpec = createLroSpec;
function createLroSpec(inputs) {
const { args, spec, sendOperationFn } = inputs;
return {
requestMethod: spec.httpMethod,
requestPath: spec.path,
sendInitialRequest: () => sendOperationFn(args, spec),
sendPollRequest: (path, options) => {
const { requestBody, ...restSpec } = spec;
return sendOperationFn(args, {
...restSpec,
httpMethod: "GET",
path,
abortSignal: options?.abortSignal,
});
},
};
}
//# sourceMappingURL=lroImpl.js.map