"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const resource_1 = __importDefault(require("../base/resource"));
class SshKey extends resource_1.default {
    constructor(id, clientSession, parentApi) {
        super(clientSession, 'sshKey', id, parentApi);
    }
    async cleanup() {
        try {
            console.log(`Attempting to delete SSH Key ${this._id}.`);
            await this.purge();
        }
        catch (e) {
            console.warn(`Could not delete SSH Key ${this._id}". 
        Encountered error: ${e}`);
        }
    }
}
exports.default = SshKey;
//# sourceMappingURL=sshKey.js.map