/** * @file src/vod/Notification.ts * @author leeight */ import BceBaseClient from '../bce_base_client'; import type { BceResponse } from '../types/common'; import type { VodClientConfig, NotificationConfig } from './types'; /** * 音视频通知接口 * https://cloud.baidu.com/doc/VOD/API.html#.E9.80.9A.E7.9F.A5.E6.8E.A5.E5.8F.A3 */ export default class Notification extends BceBaseClient { /** * 构造函数 * @param config VOD 客户端配置 */ constructor(config: VodClientConfig); /** * 构建请求URL * @param extraPaths 额外路径段 * @returns 构建的URL */ private _buildUrl; /** * 创建通知 * * @param name 通知名称 * @param endpoint 通知端点 * @returns Promise 解析为创建响应 */ create(name: string, endpoint: string): Promise>; /** * 查询通知 * * @param name 通知名称 * @returns Promise 解析为通知信息 */ get(name: string): Promise>; /** * 通知列表 * * @returns Promise 解析为通知列表 */ listAll(): Promise>; /** * 删除通知 * * @param name 通知名称 * @returns Promise 解析为删除响应 */ remove(name: string): Promise>; } //# sourceMappingURL=Notification.d.ts.map