gitlab
Version:
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
10 lines (9 loc) • 656 B
TypeScript
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure';
import { ProjectId } from '.';
declare class ProtectedBranches extends BaseService {
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>;
protect(projectId: ProjectId, branchName: string, options?: BaseRequestOptions): Promise<object>;
show(projectId: ProjectId, branchName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
unprotect(projectId: ProjectId, branchName: string, options?: Sudo): Promise<object>;
}
export default ProtectedBranches;