import { TagInput } from './../../interface'; import { Capi } from '@tencent-sdk/capi'; import { ApigwCreateServiceInputs, ApigwUpdateServiceInputs, ApigwCreateOrUpdateServiceOutputs, } from '../interface'; import { ActionType } from '../apis'; import UsagePlanEntity from './usage-plan'; import Tag from '../../tag'; interface Detail { InnerSubDomain: string; InternalSubDomain: string; OuterSubDomain: string; ServiceId: string; ServiceName: string; ServiceDesc: string; Protocol: string; Tags: TagInput[]; } export default class ServiceEntity { capi: Capi; usagePlan: UsagePlanEntity; tag: Tag; constructor(capi: Capi); request({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; /** * 获取 API 网关列表 * @param options 参数 * @returns 网关列表 */ list(options?: { offset?: number; limit?: number }): Promise; getById(serviceId: string): Promise; removeUsagePlan(ServiceId: string, type: 'API' | 'SERVICE'): Promise; removeById(serviceId: string): Promise; /** 创建 API 网关服务 */ create(serviceConf: ApigwCreateServiceInputs): Promise; /** 更新 API 网关服务 */ update(serviceConf: ApigwUpdateServiceInputs): Promise; release({ serviceId, environment }: { serviceId: string; environment: string }): Promise; remove({ serviceId, environment }: { serviceId: string; environment: string }): Promise; } export {};