ravendb
Version:
RavenDB client for Node.js
28 lines • 897 B
JavaScript
import { RavenCommand } from "../../../Http/RavenCommand.js";
export class GetServerWideBackupConfigurationsOperation {
getCommand(conventions) {
return new GetServerWideBackupConfigurationsCommand();
}
get resultType() {
return "CommandResult";
}
}
class GetServerWideBackupConfigurationsCommand extends RavenCommand {
get isReadRequest() {
return true;
}
createRequest(node) {
const uri = node.url + "/admin/configuration/server-wide/tasks?type=Backup";
return {
method: "GET",
uri
};
}
async setResponseAsync(bodyStream, fromCache) {
let body = null;
const result = await this._defaultPipeline(_ => body = _).process(bodyStream);
this.result = result["results"];
return body;
}
}
//# sourceMappingURL=GetServerWideBackupConfigurationsOperation.js.map