devopness-sdk-js
Version:
Devopness API JS/TS SDK - Painless essential DevOps to everyone
33 lines (32 loc) • 1.13 kB
TypeScript
/**
* devopness API
* Devopness API - Painless essential DevOps to everyone
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiBaseService } from "../../../services/ApiBaseService";
import { ApiResponse } from "../../../common/ApiResponse";
import { SshKey } from '../../generated/models';
/**
* ProjectsSSHKeysApiService - Auto-generated
*/
export declare class ProjectsSSHKeysApiService extends ApiBaseService {
/**
*
* @summary Create a SSH key and link it to the given project
* @param {number} projectId The project numeric Id
* @param {SshKey} sshKey A JSON object containing SSH key data
*/
addSshKeyToProject(projectId: number, sshKey: SshKey): Promise<ApiResponse<SshKey>>;
/**
*
* @summary Return a list of all SSH keys added to a project
* @param {number} projectId The project numeric Id
*/
listProjectSshKeys(projectId: number): Promise<ApiResponse<Array<SshKey>>>;
}