import { Client } from './Client'; import { ListCredUsersResponse, ResStatus } from './types/Response'; import { CreateUserReq, DeleteUserReq, ListUsersReq, UpdateUserReq } from './types/User'; /** * See all [collection operation examples](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts). */ export declare class User extends Client { /** * Create user in milvus * * @param data * | Property | Type | Description | * | :-------------- | :---- | :------------------------------- | * | username | String | username | * | password | String | user password | * * * @return * | Property | Description | * | :-------------| :-------- | * | error_code | Error code number | * | reason | Error cause| * * #### Example * * ``` * milvusClient.userManager.createUser({ * username: NAME, * password: PASSWORD, * }); * ``` */ createUser(data: CreateUserReq): Promise; /** * Update user in milvus * * @param data * | Property | Type | Description | * | :-------------- | :---- | :------------------------------- | * | username | String | username | * | password | String | user password | * * * @return * | Property | Description | * | :-------------| :-------- | * | error_code | Error code number | * | reason | Error cause| * * #### Example * * ``` * milvusClient.userManager.createUser({ * username: NAME, * password: PASSWORD, * }); * ``` */ updateUser(data: UpdateUserReq): Promise; /** * Delete user in milvus * * @param data * | Property | Type | Description | * | :-------------- | :---- | :------------------------------- | * | username | String | username | * * * @return * | Property | Description | * | :-------------| :-------- | * | error_code | Error code number | * | reason | Error cause| * * #### Example * * ``` * milvusClient.userManager.deleteUser({ * username: NAME, * }); * ``` */ deleteUser(data: DeleteUserReq): Promise; /** * List user in milvus * * @return * | Property | Description | * | :-------------| :-------- | * | status | { error_code: number, reason: string }| * | usernames | string[] | * * #### Example * * ``` * milvusClient.userManager.listUsers(); * ``` */ listUsers(data?: ListUsersReq): Promise; }