gitbeaker/packages/gitbeaker-core/src/services/UserCustomAttributes.ts

19 lines
689 B
TypeScript

import { ResourceCustomAttributes } from '../templates';
import { BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
export interface UserCustomAttributes extends ResourceCustomAttributes {
all(userId: string | number, options?: PaginatedRequestOptions);
set(userId: string | number, customAttributeId: number, value: string, options?: Sudo);
remove(userId: string | number, customAttributeId: number, options?: Sudo);
show(userId: string | number, customAttributeId: number, options?: Sudo);
}
export class UserCustomAttributes extends ResourceCustomAttributes {
constructor(options: BaseServiceOptions = {}) {
super('users', options);
}
}