import { ActionType } from './apis'; import { RegionType, CapiCredentials, TagInput } from './../interface'; import { Capi } from '@tencent-sdk/capi'; import { TagData, TagGetResourceTagsInputs, TagGetScfResourceTags, TagAttachTagsInputs, TagDetachTagsInputs, TagDeployInputs, TagDeployResourceTagsInputs, } from './interface'; export default class Tag { region: RegionType; credentials: CapiCredentials; capi: Capi; constructor(credentials?: {}, region?: RegionType); request({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; getResourceTags({ resourceId, serviceType, resourcePrefix, offset, limit, }: TagGetResourceTagsInputs): Promise; getTagList(tagKeys?: string[], offset?: number, limit?: number): Promise; getTag(tag: TagData): Promise; isTagExist(tag: TagData, tagList?: TagData[]): boolean; getScfResourceTags(inputs: TagGetScfResourceTags): Promise; attachTags({ serviceType, resourcePrefix, resourceIds, tags, }: TagAttachTagsInputs): Promise; detachTags({ serviceType, resourcePrefix, resourceIds, tags, }: TagDetachTagsInputs): Promise; createTag(tag: TagData): Promise; deleteTag(tag: TagData): Promise; deleteTags(tags: TagData[]): Promise; deploy(inputs?: TagDeployInputs): Promise; deployResourceTags({ tags, resourceId, serviceType, resourcePrefix, }: TagDeployResourceTagsInputs): Promise; /** * 格式化输入标签 * @param inputs 输入标签 * @returns 格式化后的标签列表 */ formatInputTags( inputs: | Array | { [key: string]: string; }, ): TagInput[]; }