import { RegionType } from '../interface'; import { Capi } from '@tencent-sdk/capi'; import { ApigwTrigger } from '../triggers'; import { CapiCredentials } from '../interface'; import { ActionType } from './apis'; import { ApigwDeployInputs, ApigwDeployOutputs, ApigwRemoveInputs, ApigwDeployWithServiceIdInputs, } from './interface'; import ServiceEntity from './entities/service'; import ApiEntity from './entities/api'; import UsagePlanEntity from './entities/usage-plan'; import CustomDomainEntity from './entities/custom-domain'; import TagClient from '../tag'; export default class Apigw { credentials: CapiCredentials; capi: Capi; trigger: ApigwTrigger; region: RegionType; service: ServiceEntity; api: ApiEntity; customDomain: CustomDomainEntity; usagePlan: UsagePlanEntity; tagClient: TagClient; constructor(credentials: CapiCredentials, region?: RegionType); request({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; removeRequest({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; formatApigwOutputs(outputs: ApigwDeployOutputs): ApigwDeployOutputs; /** 部署 API 网关 */ deploy(inputs: ApigwDeployInputs): Promise; remove(inputs: ApigwRemoveInputs): Promise; deployWIthInputServiceId(inputs: ApigwDeployWithServiceIdInputs): Promise; }