import { Capi } from '@tencent-sdk/capi'; import { ActionType } from '../apis'; import { EventConnectionCreateInputs, EventConnectionDetail, EventConnectionListResponse, EventConnectionOutputs, EventConnectionUpdateInfo, } from '../interface'; import { RegionType } from '../../interface'; export default class ConnectionEntity { capi: Capi; region: RegionType; constructor(capi: Capi, region: RegionType); request({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; removeRequest({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; /** 查询事件连接器详情, PS: 接口还未上线 */ getById(eventBusId: string, connectionId: string): Promise; /** 查询事件连接器列表 */ list(eventBusId: string): Promise; /** 创建事件连接器 */ create(connConf: EventConnectionCreateInputs): Promise; /** 更新事件连接器 */ update(connConf: EventConnectionUpdateInfo): Promise; /** 删除事件连接器 */ delete(eventBusId: string, connectionId: string): Promise; }