Documentation
¶
Index ¶
- Constants
- func DataSourceTencentCloudTagKeys() *schema.Resource
- func DiffTags(oldTags, newTags map[string]interface{}) (replaceTags map[string]string, deleteTags []string)
- func ResourceTencentCloudTag() *schema.Resource
- func ResourceTencentCloudTagAttachment() *schema.Resource
- func ResourceTencentCloudTagAttachmentV2() *schema.Resource
- type TagService
- func (me *TagService) DeleteTagResourceById(ctx context.Context, tagKey string, tagValue string) (errRet error)
- func (me *TagService) DeleteTagTagAttachmentById(ctx context.Context, tagKey string, resource string) (errRet error)
- func (me *TagService) DescribeProjectById(ctx context.Context, projectId uint64) (project *tag.Project, disable *uint64, errRet error)
- func (me *TagService) DescribeProjects(ctx context.Context, param map[string]interface{}) (project []*tag.Project, errRet error)
- func (me *TagService) DescribeResourceTags(ctx context.Context, serviceType, resourceType, region, resourceId string) (tags map[string]string, err error)
- func (me *TagService) DescribeTagAttachmentV2ById(ctx context.Context, tagKey string, resourceName string) (tagRes *tag.Tag, errRet error)
- func (me *TagService) DescribeTagKeysByFilter(ctx context.Context, param map[string]interface{}) (ret []*string, errRet error)
- func (me *TagService) DescribeTagResourceById(ctx context.Context, tagKey string, tagValue string) (tagRes *tag.Tag, errRet error)
- func (me *TagService) DescribeTagTagAttachmentById(ctx context.Context, tagKey string, tagValue string, resource string) (resourceTag *tag.ResourceTagMapping, errRet error)
- func (me *TagService) DisableProjectById(ctx context.Context, projectId uint64) (errRet error)
- func (me *TagService) ModifyTags(ctx context.Context, resourceName string, replaceTags map[string]string, ...) error
Constants ¶
View Source
const DESCRIBE_TAGS_LIMIT = 20
Variables ¶
This section is empty.
Functions ¶
func DataSourceTencentCloudTagKeys ¶ added in v1.82.25
func ResourceTencentCloudTag ¶
func ResourceTencentCloudTagAttachmentV2 ¶ added in v1.83.25
Types ¶
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func NewTagService ¶
func NewTagService(client *connectivity.TencentCloudClient) TagService
func (*TagService) DeleteTagResourceById ¶
func (*TagService) DeleteTagTagAttachmentById ¶
func (*TagService) DescribeProjectById ¶
func (*TagService) DescribeProjects ¶
func (*TagService) DescribeResourceTags ¶
func (*TagService) DescribeTagAttachmentV2ById ¶ added in v1.83.25
func (me *TagService) DescribeTagAttachmentV2ById(ctx context.Context, tagKey string, resourceName string) (tagRes *tag.Tag, errRet error)
DescribeTagAttachmentV2ById queries the tag binding of a single tag key on a single resource via GetResources, the same query path used by tag_attachment. The resource six-segment is passed to GetResources as-is, so no field decomposition is needed. It returns the *tag.Tag whose TagKey equals tagKey, or nil if the resource or the tag key is not found.
func (*TagService) DescribeTagKeysByFilter ¶ added in v1.82.25
func (*TagService) DescribeTagResourceById ¶
func (*TagService) DescribeTagTagAttachmentById ¶
func (me *TagService) DescribeTagTagAttachmentById(ctx context.Context, tagKey string, tagValue string, resource string) (resourceTag *tag.ResourceTagMapping, errRet error)
func (*TagService) DisableProjectById ¶
func (me *TagService) DisableProjectById(ctx context.Context, projectId uint64) (errRet error)
func (*TagService) ModifyTags ¶
Click to show internal directories.
Click to hide internal directories.