Documentation ¶
Index ¶
- Constants
- type AddResourceTagRequest
- type AddResourceTagResponse
- type AttachResourcesTagRequest
- type AttachResourcesTagResponse
- type Client
- func (c *Client) AddResourceTag(request *AddResourceTagRequest) (response *AddResourceTagResponse, err error)
- func (c *Client) AddResourceTagWithContext(ctx context.Context, request *AddResourceTagRequest) (response *AddResourceTagResponse, err error)
- func (c *Client) AttachResourcesTag(request *AttachResourcesTagRequest) (response *AttachResourcesTagResponse, err error)
- func (c *Client) AttachResourcesTagWithContext(ctx context.Context, request *AttachResourcesTagRequest) (response *AttachResourcesTagResponse, err error)
- func (c *Client) CreateTag(request *CreateTagRequest) (response *CreateTagResponse, err error)
- func (c *Client) CreateTagWithContext(ctx context.Context, request *CreateTagRequest) (response *CreateTagResponse, err error)
- func (c *Client) DeleteResourceTag(request *DeleteResourceTagRequest) (response *DeleteResourceTagResponse, err error)
- func (c *Client) DeleteResourceTagWithContext(ctx context.Context, request *DeleteResourceTagRequest) (response *DeleteResourceTagResponse, err error)
- func (c *Client) DeleteTag(request *DeleteTagRequest) (response *DeleteTagResponse, err error)
- func (c *Client) DeleteTagWithContext(ctx context.Context, request *DeleteTagRequest) (response *DeleteTagResponse, err error)
- func (c *Client) DescribeResourceTags(request *DescribeResourceTagsRequest) (response *DescribeResourceTagsResponse, err error)
- func (c *Client) DescribeResourceTagsByResourceIds(request *DescribeResourceTagsByResourceIdsRequest) (response *DescribeResourceTagsByResourceIdsResponse, err error)
- func (c *Client) DescribeResourceTagsByResourceIdsSeq(request *DescribeResourceTagsByResourceIdsSeqRequest) (response *DescribeResourceTagsByResourceIdsSeqResponse, err error)
- func (c *Client) DescribeResourceTagsByResourceIdsSeqWithContext(ctx context.Context, request *DescribeResourceTagsByResourceIdsSeqRequest) (response *DescribeResourceTagsByResourceIdsSeqResponse, err error)
- func (c *Client) DescribeResourceTagsByResourceIdsWithContext(ctx context.Context, request *DescribeResourceTagsByResourceIdsRequest) (response *DescribeResourceTagsByResourceIdsResponse, err error)
- func (c *Client) DescribeResourceTagsByTagKeys(request *DescribeResourceTagsByTagKeysRequest) (response *DescribeResourceTagsByTagKeysResponse, err error)
- func (c *Client) DescribeResourceTagsByTagKeysWithContext(ctx context.Context, request *DescribeResourceTagsByTagKeysRequest) (response *DescribeResourceTagsByTagKeysResponse, err error)
- func (c *Client) DescribeResourceTagsWithContext(ctx context.Context, request *DescribeResourceTagsRequest) (response *DescribeResourceTagsResponse, err error)
- func (c *Client) DescribeResourcesByTags(request *DescribeResourcesByTagsRequest) (response *DescribeResourcesByTagsResponse, err error)
- func (c *Client) DescribeResourcesByTagsUnion(request *DescribeResourcesByTagsUnionRequest) (response *DescribeResourcesByTagsUnionResponse, err error)
- func (c *Client) DescribeResourcesByTagsUnionWithContext(ctx context.Context, request *DescribeResourcesByTagsUnionRequest) (response *DescribeResourcesByTagsUnionResponse, err error)
- func (c *Client) DescribeResourcesByTagsWithContext(ctx context.Context, request *DescribeResourcesByTagsRequest) (response *DescribeResourcesByTagsResponse, err error)
- func (c *Client) DescribeTagKeys(request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error)
- func (c *Client) DescribeTagKeysWithContext(ctx context.Context, request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error)
- func (c *Client) DescribeTagValues(request *DescribeTagValuesRequest) (response *DescribeTagValuesResponse, err error)
- func (c *Client) DescribeTagValuesSeq(request *DescribeTagValuesSeqRequest) (response *DescribeTagValuesSeqResponse, err error)
- func (c *Client) DescribeTagValuesSeqWithContext(ctx context.Context, request *DescribeTagValuesSeqRequest) (response *DescribeTagValuesSeqResponse, err error)
- func (c *Client) DescribeTagValuesWithContext(ctx context.Context, request *DescribeTagValuesRequest) (response *DescribeTagValuesResponse, err error)
- func (c *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)
- func (c *Client) DescribeTagsSeq(request *DescribeTagsSeqRequest) (response *DescribeTagsSeqResponse, err error)
- func (c *Client) DescribeTagsSeqWithContext(ctx context.Context, request *DescribeTagsSeqRequest) (response *DescribeTagsSeqResponse, err error)
- func (c *Client) DescribeTagsWithContext(ctx context.Context, request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)
- func (c *Client) DetachResourcesTag(request *DetachResourcesTagRequest) (response *DetachResourcesTagResponse, err error)
- func (c *Client) DetachResourcesTagWithContext(ctx context.Context, request *DetachResourcesTagRequest) (response *DetachResourcesTagResponse, err error)
- func (c *Client) ModifyResourceTags(request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)
- func (c *Client) ModifyResourceTagsWithContext(ctx context.Context, request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)
- func (c *Client) ModifyResourcesTagValue(request *ModifyResourcesTagValueRequest) (response *ModifyResourcesTagValueResponse, err error)
- func (c *Client) ModifyResourcesTagValueWithContext(ctx context.Context, request *ModifyResourcesTagValueRequest) (response *ModifyResourcesTagValueResponse, err error)
- func (c *Client) UpdateResourceTagValue(request *UpdateResourceTagValueRequest) (response *UpdateResourceTagValueResponse, err error)
- func (c *Client) UpdateResourceTagValueWithContext(ctx context.Context, request *UpdateResourceTagValueRequest) (response *UpdateResourceTagValueResponse, err error)
- type CreateTagRequest
- type CreateTagResponse
- type DeleteResourceTagRequest
- type DeleteResourceTagResponse
- type DeleteTagRequest
- type DeleteTagResponse
- type DescribeResourceTagsByResourceIdsRequest
- type DescribeResourceTagsByResourceIdsResponse
- type DescribeResourceTagsByResourceIdsSeqRequest
- type DescribeResourceTagsByResourceIdsSeqResponse
- type DescribeResourceTagsByTagKeysRequest
- type DescribeResourceTagsByTagKeysResponse
- type DescribeResourceTagsRequest
- type DescribeResourceTagsResponse
- type DescribeResourcesByTagsRequest
- type DescribeResourcesByTagsResponse
- type DescribeResourcesByTagsUnionRequest
- type DescribeResourcesByTagsUnionResponse
- type DescribeTagKeysRequest
- type DescribeTagKeysResponse
- type DescribeTagValuesRequest
- type DescribeTagValuesResponse
- type DescribeTagValuesSeqRequest
- type DescribeTagValuesSeqResponse
- type DescribeTagsRequest
- type DescribeTagsResponse
- type DescribeTagsSeqRequest
- type DescribeTagsSeqResponse
- type DetachResourcesTagRequest
- type DetachResourcesTagResponse
- type ModifyResourceTagsRequest
- type ModifyResourceTagsResponse
- type ModifyResourcesTagValueRequest
- type ModifyResourcesTagValueResponse
- type ResourceIdTag
- type ResourceTag
- type Tag
- type TagFilter
- type TagKeyObject
- type TagResource
- type TagWithDelete
- type UpdateResourceTagValueRequest
- type UpdateResourceTagValueResponse
Constants ¶
const ( // CAM authentication failed. AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // The `appId` of resources in one single request must be the same. FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" // Tags associated with resources cannot be deleted. FAILEDOPERATION_TAGATTACHEDRESOURCE = "FailedOperation.TagAttachedResource" // Incorrect parameter. INVALIDPARAMETER = "InvalidParameter" // System reserved tag keys `qcloud`, `tencent` and `project` cannot be created. INVALIDPARAMETER_RESERVEDTAGKEY = "InvalidParameter.ReservedTagKey" // `Tag` parameter error. INVALIDPARAMETER_TAG = "InvalidParameter.Tag" // `DeleteTags` cannot contain the elements in `ReplaceTags` or `AddTags`. INVALIDPARAMETERVALUE_DELETETAGSPARAMERROR = "InvalidParameterValue.DeleteTagsParamError" // Offset error. INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" // Region error. INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" // System reserved tag keys `qcloud`, `tencent` and `project` cannot be created. INVALIDPARAMETERVALUE_RESERVEDTAGKEY = "InvalidParameterValue.ReservedTagKey" // Resource description error. INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" // Resource ID error. INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" // Resource prefix error. INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" // Service type error. INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" // `TagFilters` parameter error INVALIDPARAMETERVALUE_TAGFILTERS = "InvalidParameterValue.TagFilters" // Tag filtering arrays reached the upper limit 6 when querying resources by tag. INVALIDPARAMETERVALUE_TAGFILTERSLENGTHEXCEEDED = "InvalidParameterValue.TagFiltersLengthExceeded" // Tag key contains illegal characters. INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" // Tag key cannot be empty. INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" // Tag key length exceeds limit. INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" // Tag value contains illegal characters. INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" // Tag value length exceeds limit. INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" // `Uin` parameter is invalid. INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid" // The number of tags associated with the resource exceeds the limit. LIMITEXCEEDED_RESOURCEATTACHEDTAGS = "LimitExceeded.ResourceAttachedTags" // The number of resources requested at a time reaches the upper limit. LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" // The number of created tag keys reaches the limit of 1,000. LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" // Each tag key can have up to 1,000 values. LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" // Operation denied. OPERATIONDENIED = "OperationDenied" // Tag already exists. RESOURCEINUSE_TAGDUPLICATE = "ResourceInUse.TagDuplicate" // The corresponding tag key has already been associated with the resource. RESOURCEINUSE_TAGKEYATTACHED = "ResourceInUse.TagKeyAttached" // The tag key associated with the resource doesn’t exist. RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound" // Tag does not exist. RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist" )
const APIVersion = "2018-08-13"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddResourceTagRequest ¶
type AddResourceTagRequest struct { *tchttp.BaseRequest // Tag key. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // [Six-segment resource description](https://cloud.tencent.com/document/product/598/10606) Resource *string `json:"Resource,omitempty" name:"Resource"` }
func NewAddResourceTagRequest ¶
func NewAddResourceTagRequest() (request *AddResourceTagRequest)
func (*AddResourceTagRequest) FromJsonString ¶
func (r *AddResourceTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddResourceTagRequest) ToJsonString ¶
func (r *AddResourceTagRequest) ToJsonString() string
type AddResourceTagResponse ¶
type AddResourceTagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddResourceTagResponse ¶
func NewAddResourceTagResponse() (response *AddResourceTagResponse)
func (*AddResourceTagResponse) FromJsonString ¶
func (r *AddResourceTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddResourceTagResponse) ToJsonString ¶
func (r *AddResourceTagResponse) ToJsonString() string
type AttachResourcesTagRequest ¶
type AttachResourcesTagRequest struct { *tchttp.BaseRequest // Resource service name ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource ID array, which can contain up to 50 resources ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Tag key TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // Resource region. This field is not required for resources that do not have the region attribute ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Resource prefix, which is not required for COS buckets ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` }
func NewAttachResourcesTagRequest ¶
func NewAttachResourcesTagRequest() (request *AttachResourcesTagRequest)
func (*AttachResourcesTagRequest) FromJsonString ¶
func (r *AttachResourcesTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachResourcesTagRequest) ToJsonString ¶
func (r *AttachResourcesTagRequest) ToJsonString() string
type AttachResourcesTagResponse ¶
type AttachResourcesTagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachResourcesTagResponse ¶
func NewAttachResourcesTagResponse() (response *AttachResourcesTagResponse)
func (*AttachResourcesTagResponse) FromJsonString ¶
func (r *AttachResourcesTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachResourcesTagResponse) ToJsonString ¶
func (r *AttachResourcesTagResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddResourceTag ¶
func (c *Client) AddResourceTag(request *AddResourceTagRequest) (response *AddResourceTagResponse, err error)
AddResourceTag This API is used to associate resources with tags.
error code that may be returned:
INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" RESOURCEINUSE_TAGKEYATTACHED = "ResourceInUse.TagKeyAttached"
func (*Client) AddResourceTagWithContext ¶
func (c *Client) AddResourceTagWithContext(ctx context.Context, request *AddResourceTagRequest) (response *AddResourceTagResponse, err error)
AddResourceTag This API is used to associate resources with tags.
error code that may be returned:
INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" RESOURCEINUSE_TAGKEYATTACHED = "ResourceInUse.TagKeyAttached"
func (*Client) AttachResourcesTag ¶
func (c *Client) AttachResourcesTag(request *AttachResourcesTagRequest) (response *AttachResourcesTagResponse, err error)
AttachResourcesTag This API is used to associate a tag with multiple resources.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" LIMITEXCEEDED_RESOURCEATTACHEDTAGS = "LimitExceeded.ResourceAttachedTags" LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE_TAGKEYATTACHED = "ResourceInUse.TagKeyAttached" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) AttachResourcesTagWithContext ¶
func (c *Client) AttachResourcesTagWithContext(ctx context.Context, request *AttachResourcesTagRequest) (response *AttachResourcesTagResponse, err error)
AttachResourcesTag This API is used to associate a tag with multiple resources.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" LIMITEXCEEDED_RESOURCEATTACHEDTAGS = "LimitExceeded.ResourceAttachedTags" LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE_TAGKEYATTACHED = "ResourceInUse.TagKeyAttached" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) CreateTag ¶
func (c *Client) CreateTag(request *CreateTagRequest) (response *CreateTagResponse, err error)
CreateTag This API is used to create a tag key and tag value pair.
error code that may be returned:
INVALIDPARAMETER_RESERVEDTAGKEY = "InvalidParameter.ReservedTagKey" INVALIDPARAMETERVALUE_RESERVEDTAGKEY = "InvalidParameterValue.ReservedTagKey" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" RESOURCEINUSE_TAGDUPLICATE = "ResourceInUse.TagDuplicate"
func (*Client) CreateTagWithContext ¶
func (c *Client) CreateTagWithContext(ctx context.Context, request *CreateTagRequest) (response *CreateTagResponse, err error)
CreateTag This API is used to create a tag key and tag value pair.
error code that may be returned:
INVALIDPARAMETER_RESERVEDTAGKEY = "InvalidParameter.ReservedTagKey" INVALIDPARAMETERVALUE_RESERVEDTAGKEY = "InvalidParameterValue.ReservedTagKey" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" RESOURCEINUSE_TAGDUPLICATE = "ResourceInUse.TagDuplicate"
func (*Client) DeleteResourceTag ¶
func (c *Client) DeleteResourceTag(request *DeleteResourceTagRequest) (response *DeleteResourceTagResponse, err error)
DeleteResourceTag This API is used to unassociate tags and resources.
error code that may be returned:
INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
func (*Client) DeleteResourceTagWithContext ¶
func (c *Client) DeleteResourceTagWithContext(ctx context.Context, request *DeleteResourceTagRequest) (response *DeleteResourceTagResponse, err error)
DeleteResourceTag This API is used to unassociate tags and resources.
error code that may be returned:
INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
func (*Client) DeleteTag ¶
func (c *Client) DeleteTag(request *DeleteTagRequest) (response *DeleteTagResponse, err error)
DeleteTag This API is used to delete a tag key and tag value pair.
error code that may be returned:
FAILEDOPERATION_TAGATTACHEDRESOURCE = "FailedOperation.TagAttachedResource" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) DeleteTagWithContext ¶
func (c *Client) DeleteTagWithContext(ctx context.Context, request *DeleteTagRequest) (response *DeleteTagResponse, err error)
DeleteTag This API is used to delete a tag key and tag value pair.
error code that may be returned:
FAILEDOPERATION_TAGATTACHEDRESOURCE = "FailedOperation.TagAttachedResource" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) DescribeResourceTags ¶
func (c *Client) DescribeResourceTags(request *DescribeResourceTagsRequest) (response *DescribeResourceTagsResponse, err error)
DescribeResourceTags This API is used to query the tags associated with a resource.
error code that may be returned:
FAILEDOPERATION_TAGATTACHEDRESOURCE = "FailedOperation.TagAttachedResource" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) DescribeResourceTagsByResourceIds ¶
func (c *Client) DescribeResourceTagsByResourceIds(request *DescribeResourceTagsByResourceIdsRequest) (response *DescribeResourceTagsByResourceIdsResponse, err error)
DescribeResourceTagsByResourceIds This API is used to query tag key and value pairs for existing resources.
error code that may be returned:
INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourceTagsByResourceIdsSeq ¶
func (c *Client) DescribeResourceTagsByResourceIdsSeq(request *DescribeResourceTagsByResourceIdsSeqRequest) (response *DescribeResourceTagsByResourceIdsSeqResponse, err error)
DescribeResourceTagsByResourceIdsSeq This API is used to view the tags associated with a resource in sequence.
error code that may be returned:
INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourceTagsByResourceIdsSeqWithContext ¶
func (c *Client) DescribeResourceTagsByResourceIdsSeqWithContext(ctx context.Context, request *DescribeResourceTagsByResourceIdsSeqRequest) (response *DescribeResourceTagsByResourceIdsSeqResponse, err error)
DescribeResourceTagsByResourceIdsSeq This API is used to view the tags associated with a resource in sequence.
error code that may be returned:
INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourceTagsByResourceIdsWithContext ¶
func (c *Client) DescribeResourceTagsByResourceIdsWithContext(ctx context.Context, request *DescribeResourceTagsByResourceIdsRequest) (response *DescribeResourceTagsByResourceIdsResponse, err error)
DescribeResourceTagsByResourceIds This API is used to query tag key and value pairs for existing resources.
error code that may be returned:
INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourceTagsByTagKeys ¶
func (c *Client) DescribeResourceTagsByTagKeys(request *DescribeResourceTagsByTagKeysRequest) (response *DescribeResourceTagsByTagKeysResponse, err error)
DescribeResourceTagsByTagKeys This API is used to get resource tags based on tag keys.
error code that may be returned:
INVALIDPARAMETER_TAG = "InvalidParameter.Tag" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded"
func (*Client) DescribeResourceTagsByTagKeysWithContext ¶
func (c *Client) DescribeResourceTagsByTagKeysWithContext(ctx context.Context, request *DescribeResourceTagsByTagKeysRequest) (response *DescribeResourceTagsByTagKeysResponse, err error)
DescribeResourceTagsByTagKeys This API is used to get resource tags based on tag keys.
error code that may be returned:
INVALIDPARAMETER_TAG = "InvalidParameter.Tag" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded"
func (*Client) DescribeResourceTagsWithContext ¶
func (c *Client) DescribeResourceTagsWithContext(ctx context.Context, request *DescribeResourceTagsRequest) (response *DescribeResourceTagsResponse, err error)
DescribeResourceTags This API is used to query the tags associated with a resource.
error code that may be returned:
FAILEDOPERATION_TAGATTACHEDRESOURCE = "FailedOperation.TagAttachedResource" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) DescribeResourcesByTags ¶
func (c *Client) DescribeResourcesByTags(request *DescribeResourcesByTagsRequest) (response *DescribeResourcesByTagsResponse, err error)
DescribeResourcesByTags This API is used to query resources by tags.
error code that may be returned:
INVALIDPARAMETERVALUE_TAGFILTERS = "InvalidParameterValue.TagFilters" INVALIDPARAMETERVALUE_TAGFILTERSLENGTHEXCEEDED = "InvalidParameterValue.TagFiltersLengthExceeded" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourcesByTagsUnion ¶
func (c *Client) DescribeResourcesByTagsUnion(request *DescribeResourcesByTagsUnionRequest) (response *DescribeResourcesByTagsUnionResponse, err error)
DescribeResourcesByTagsUnion This API is used to query resource list by tags.
error code that may be returned:
INVALIDPARAMETERVALUE_TAGFILTERS = "InvalidParameterValue.TagFilters" INVALIDPARAMETERVALUE_TAGFILTERSLENGTHEXCEEDED = "InvalidParameterValue.TagFiltersLengthExceeded" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourcesByTagsUnionWithContext ¶
func (c *Client) DescribeResourcesByTagsUnionWithContext(ctx context.Context, request *DescribeResourcesByTagsUnionRequest) (response *DescribeResourcesByTagsUnionResponse, err error)
DescribeResourcesByTagsUnion This API is used to query resource list by tags.
error code that may be returned:
INVALIDPARAMETERVALUE_TAGFILTERS = "InvalidParameterValue.TagFilters" INVALIDPARAMETERVALUE_TAGFILTERSLENGTHEXCEEDED = "InvalidParameterValue.TagFiltersLengthExceeded" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeResourcesByTagsWithContext ¶
func (c *Client) DescribeResourcesByTagsWithContext(ctx context.Context, request *DescribeResourcesByTagsRequest) (response *DescribeResourcesByTagsResponse, err error)
DescribeResourcesByTags This API is used to query resources by tags.
error code that may be returned:
INVALIDPARAMETERVALUE_TAGFILTERS = "InvalidParameterValue.TagFilters" INVALIDPARAMETERVALUE_TAGFILTERSLENGTHEXCEEDED = "InvalidParameterValue.TagFiltersLengthExceeded" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagKeys ¶
func (c *Client) DescribeTagKeys(request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error)
DescribeTagKeys This API is used to query tag keys in an existing tag list.
error code that may be returned:
INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagKeysWithContext ¶
func (c *Client) DescribeTagKeysWithContext(ctx context.Context, request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error)
DescribeTagKeys This API is used to query tag keys in an existing tag list.
error code that may be returned:
INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagValues ¶
func (c *Client) DescribeTagValues(request *DescribeTagValuesRequest) (response *DescribeTagValuesResponse, err error)
DescribeTagValues This API is used to query tag values in an existing tag list.
error code that may be returned:
INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagValuesSeq ¶
func (c *Client) DescribeTagValuesSeq(request *DescribeTagValuesSeqRequest) (response *DescribeTagValuesSeqResponse, err error)
DescribeTagValuesSeq This API is used to query tag values in a created tag list.
error code that may be returned:
INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagValuesSeqWithContext ¶
func (c *Client) DescribeTagValuesSeqWithContext(ctx context.Context, request *DescribeTagValuesSeqRequest) (response *DescribeTagValuesSeqResponse, err error)
DescribeTagValuesSeq This API is used to query tag values in a created tag list.
error code that may be returned:
INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagValuesWithContext ¶
func (c *Client) DescribeTagValuesWithContext(ctx context.Context, request *DescribeTagValuesRequest) (response *DescribeTagValuesResponse, err error)
DescribeTagValues This API is used to query tag values in an existing tag list.
error code that may be returned:
INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTags ¶
func (c *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)
DescribeTags This API is used to query existing tag lists.
error code that may be returned:
INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagsSeq ¶
func (c *Client) DescribeTagsSeq(request *DescribeTagsSeqRequest) (response *DescribeTagsSeqResponse, err error)
DescribeTagsSeq This API is used to query the created tag lists.
error code that may be returned:
INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagsSeqWithContext ¶
func (c *Client) DescribeTagsSeqWithContext(ctx context.Context, request *DescribeTagsSeqRequest) (response *DescribeTagsSeqResponse, err error)
DescribeTagsSeq This API is used to query the created tag lists.
error code that may be returned:
INVALIDPARAMETERVALUE_OFFSETINVALID = "InvalidParameterValue.OffsetInvalid" INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DescribeTagsWithContext ¶
func (c *Client) DescribeTagsWithContext(ctx context.Context, request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)
DescribeTags This API is used to query existing tag lists.
error code that may be returned:
INVALIDPARAMETERVALUE_UININVALID = "InvalidParameterValue.UinInvalid"
func (*Client) DetachResourcesTag ¶
func (c *Client) DetachResourcesTag(request *DetachResourcesTagRequest) (response *DetachResourcesTagResponse, err error)
DetachResourcesTag This API is used to unbind a tag from multiple resources.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
func (*Client) DetachResourcesTagWithContext ¶
func (c *Client) DetachResourcesTagWithContext(ctx context.Context, request *DetachResourcesTagRequest) (response *DetachResourcesTagResponse, err error)
DetachResourcesTag This API is used to unbind a tag from multiple resources.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
func (*Client) ModifyResourceTags ¶
func (c *Client) ModifyResourceTags(request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)
ModifyResourceTags This API is used to modify all tags associated with a resource.
error code that may be returned:
INVALIDPARAMETER_RESERVEDTAGKEY = "InvalidParameter.ReservedTagKey" INVALIDPARAMETER_TAG = "InvalidParameter.Tag" INVALIDPARAMETERVALUE_DELETETAGSPARAMERROR = "InvalidParameterValue.DeleteTagsParamError" INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_RESOURCEATTACHEDTAGS = "LimitExceeded.ResourceAttachedTags" LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue"
func (*Client) ModifyResourceTagsWithContext ¶
func (c *Client) ModifyResourceTagsWithContext(ctx context.Context, request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)
ModifyResourceTags This API is used to modify all tags associated with a resource.
error code that may be returned:
INVALIDPARAMETER_RESERVEDTAGKEY = "InvalidParameter.ReservedTagKey" INVALIDPARAMETER_TAG = "InvalidParameter.Tag" INVALIDPARAMETERVALUE_DELETETAGSPARAMERROR = "InvalidParameterValue.DeleteTagsParamError" INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGKEYEMPTY = "InvalidParameterValue.TagKeyEmpty" INVALIDPARAMETERVALUE_TAGKEYLENGTHEXCEEDED = "InvalidParameterValue.TagKeyLengthExceeded" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_RESOURCEATTACHEDTAGS = "LimitExceeded.ResourceAttachedTags" LIMITEXCEEDED_TAGKEY = "LimitExceeded.TagKey" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue"
func (*Client) ModifyResourcesTagValue ¶
func (c *Client) ModifyResourcesTagValue(request *ModifyResourcesTagValueRequest) (response *ModifyResourcesTagValueResponse, err error)
ModifyResourcesTagValue This API is used to modify the tag value corresponding to a tag key associated with multiple resources.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) ModifyResourcesTagValueWithContext ¶
func (c *Client) ModifyResourcesTagValueWithContext(ctx context.Context, request *ModifyResourcesTagValueRequest) (response *ModifyResourcesTagValueResponse, err error)
ModifyResourcesTagValue This API is used to modify the tag value corresponding to a tag key associated with multiple resources.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_RESOURCEAPPIDNOTSAME = "FailedOperation.ResourceAppIdNotSame" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_REGIONINVALID = "InvalidParameterValue.RegionInvalid" INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_RESOURCEIDINVALID = "InvalidParameterValue.ResourceIdInvalid" INVALIDPARAMETERVALUE_RESOURCEPREFIXINVALID = "InvalidParameterValue.ResourcePrefixInvalid" INVALIDPARAMETERVALUE_SERVICETYPEINVALID = "InvalidParameterValue.ServiceTypeInvalid" LIMITEXCEEDED_RESOURCENUMPERREQUEST = "LimitExceeded.ResourceNumPerRequest" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound" RESOURCENOTFOUND_TAGNONEXIST = "ResourceNotFound.TagNonExist"
func (*Client) UpdateResourceTagValue ¶
func (c *Client) UpdateResourceTagValue(request *UpdateResourceTagValueRequest) (response *UpdateResourceTagValueResponse, err error)
UpdateResourceTagValue This API is used to modify the values of tags associated with a resource (the tag key does not change).
error code that may be returned:
INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
func (*Client) UpdateResourceTagValueWithContext ¶
func (c *Client) UpdateResourceTagValueWithContext(ctx context.Context, request *UpdateResourceTagValueRequest) (response *UpdateResourceTagValueResponse, err error)
UpdateResourceTagValue This API is used to modify the values of tags associated with a resource (the tag key does not change).
error code that may be returned:
INVALIDPARAMETERVALUE_RESOURCEDESCRIPTIONERROR = "InvalidParameterValue.ResourceDescriptionError" INVALIDPARAMETERVALUE_TAGKEYCHARACTERILLEGAL = "InvalidParameterValue.TagKeyCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUECHARACTERILLEGAL = "InvalidParameterValue.TagValueCharacterIllegal" INVALIDPARAMETERVALUE_TAGVALUELENGTHEXCEEDED = "InvalidParameterValue.TagValueLengthExceeded" LIMITEXCEEDED_TAGVALUE = "LimitExceeded.TagValue" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
type CreateTagRequest ¶
type CreateTagRequest struct { *tchttp.BaseRequest // Tag key. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` }
func NewCreateTagRequest ¶
func NewCreateTagRequest() (request *CreateTagRequest)
func (*CreateTagRequest) FromJsonString ¶
func (r *CreateTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTagRequest) ToJsonString ¶
func (r *CreateTagRequest) ToJsonString() string
type CreateTagResponse ¶
type CreateTagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTagResponse ¶
func NewCreateTagResponse() (response *CreateTagResponse)
func (*CreateTagResponse) FromJsonString ¶
func (r *CreateTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTagResponse) ToJsonString ¶
func (r *CreateTagResponse) ToJsonString() string
type DeleteResourceTagRequest ¶
type DeleteResourceTagRequest struct { *tchttp.BaseRequest // Tag key. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // [Six-segment resource description](https://cloud.tencent.com/document/product/598/10606) Resource *string `json:"Resource,omitempty" name:"Resource"` }
func NewDeleteResourceTagRequest ¶
func NewDeleteResourceTagRequest() (request *DeleteResourceTagRequest)
func (*DeleteResourceTagRequest) FromJsonString ¶
func (r *DeleteResourceTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteResourceTagRequest) ToJsonString ¶
func (r *DeleteResourceTagRequest) ToJsonString() string
type DeleteResourceTagResponse ¶
type DeleteResourceTagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteResourceTagResponse ¶
func NewDeleteResourceTagResponse() (response *DeleteResourceTagResponse)
func (*DeleteResourceTagResponse) FromJsonString ¶
func (r *DeleteResourceTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteResourceTagResponse) ToJsonString ¶
func (r *DeleteResourceTagResponse) ToJsonString() string
type DeleteTagRequest ¶
type DeleteTagRequest struct { *tchttp.BaseRequest // The tag key to be deleted. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // The tag value to be deleted. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` }
func NewDeleteTagRequest ¶
func NewDeleteTagRequest() (request *DeleteTagRequest)
func (*DeleteTagRequest) FromJsonString ¶
func (r *DeleteTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTagRequest) ToJsonString ¶
func (r *DeleteTagRequest) ToJsonString() string
type DeleteTagResponse ¶
type DeleteTagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteTagResponse ¶
func NewDeleteTagResponse() (response *DeleteTagResponse)
func (*DeleteTagResponse) FromJsonString ¶
func (r *DeleteTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTagResponse) ToJsonString ¶
func (r *DeleteTagResponse) ToJsonString() string
type DescribeResourceTagsByResourceIdsRequest ¶
type DescribeResourceTagsByResourceIdsRequest struct { *tchttp.BaseRequest // Service type. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource prefix. ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Unique resource ID. ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // The resource's region. ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Data offset. The default value is 0. Must be an integral multiple of the `Limit` parameter. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. The default value is 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeResourceTagsByResourceIdsRequest ¶
func NewDescribeResourceTagsByResourceIdsRequest() (request *DescribeResourceTagsByResourceIdsRequest)
func (*DescribeResourceTagsByResourceIdsRequest) FromJsonString ¶
func (r *DescribeResourceTagsByResourceIdsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsByResourceIdsRequest) ToJsonString ¶
func (r *DescribeResourceTagsByResourceIdsRequest) ToJsonString() string
type DescribeResourceTagsByResourceIdsResponse ¶
type DescribeResourceTagsByResourceIdsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list. Tags []*TagResource `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourceTagsByResourceIdsResponse ¶
func NewDescribeResourceTagsByResourceIdsResponse() (response *DescribeResourceTagsByResourceIdsResponse)
func (*DescribeResourceTagsByResourceIdsResponse) FromJsonString ¶
func (r *DescribeResourceTagsByResourceIdsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsByResourceIdsResponse) ToJsonString ¶
func (r *DescribeResourceTagsByResourceIdsResponse) ToJsonString() string
type DescribeResourceTagsByResourceIdsSeqRequest ¶
type DescribeResourceTagsByResourceIdsSeqRequest struct { *tchttp.BaseRequest // Service type ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource prefix ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Unique resource ID ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Resource region ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Data offset. Default value: 0. It must be an integer multiple of the `Limit` parameter Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. Default value: 15 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeResourceTagsByResourceIdsSeqRequest ¶
func NewDescribeResourceTagsByResourceIdsSeqRequest() (request *DescribeResourceTagsByResourceIdsSeqRequest)
func (*DescribeResourceTagsByResourceIdsSeqRequest) FromJsonString ¶
func (r *DescribeResourceTagsByResourceIdsSeqRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsByResourceIdsSeqRequest) ToJsonString ¶
func (r *DescribeResourceTagsByResourceIdsSeqRequest) ToJsonString() string
type DescribeResourceTagsByResourceIdsSeqResponse ¶
type DescribeResourceTagsByResourceIdsSeqResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list Tags []*TagResource `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourceTagsByResourceIdsSeqResponse ¶
func NewDescribeResourceTagsByResourceIdsSeqResponse() (response *DescribeResourceTagsByResourceIdsSeqResponse)
func (*DescribeResourceTagsByResourceIdsSeqResponse) FromJsonString ¶
func (r *DescribeResourceTagsByResourceIdsSeqResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsByResourceIdsSeqResponse) ToJsonString ¶
func (r *DescribeResourceTagsByResourceIdsSeqResponse) ToJsonString() string
type DescribeResourceTagsByTagKeysRequest ¶
type DescribeResourceTagsByTagKeysRequest struct { *tchttp.BaseRequest // Service type ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource prefix ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Resource region ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Unique resource ID ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Resource tag key TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Number of entries per page. Default value: 400 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Data offset. Default value: 0. It must be an integer multiple of the `Limit` parameter Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeResourceTagsByTagKeysRequest ¶
func NewDescribeResourceTagsByTagKeysRequest() (request *DescribeResourceTagsByTagKeysRequest)
func (*DescribeResourceTagsByTagKeysRequest) FromJsonString ¶
func (r *DescribeResourceTagsByTagKeysRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsByTagKeysRequest) ToJsonString ¶
func (r *DescribeResourceTagsByTagKeysRequest) ToJsonString() string
type DescribeResourceTagsByTagKeysResponse ¶
type DescribeResourceTagsByTagKeysResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Resource tag Rows []*ResourceIdTag `json:"Rows,omitempty" name:"Rows"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourceTagsByTagKeysResponse ¶
func NewDescribeResourceTagsByTagKeysResponse() (response *DescribeResourceTagsByTagKeysResponse)
func (*DescribeResourceTagsByTagKeysResponse) FromJsonString ¶
func (r *DescribeResourceTagsByTagKeysResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsByTagKeysResponse) ToJsonString ¶
func (r *DescribeResourceTagsByTagKeysResponse) ToJsonString() string
type DescribeResourceTagsRequest ¶
type DescribeResourceTagsRequest struct { *tchttp.BaseRequest // Creator `uin` CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Resource region. ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Service type. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource prefix ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Unique resource ID ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Data offset. Default value: 0. It must be an integer multiple of the `Limit` parameter Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. Default value: 15 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Whether it is a COS resource ID CosResourceId *uint64 `json:"CosResourceId,omitempty" name:"CosResourceId"` }
func NewDescribeResourceTagsRequest ¶
func NewDescribeResourceTagsRequest() (request *DescribeResourceTagsRequest)
func (*DescribeResourceTagsRequest) FromJsonString ¶
func (r *DescribeResourceTagsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsRequest) ToJsonString ¶
func (r *DescribeResourceTagsRequest) ToJsonString() string
type DescribeResourceTagsResponse ¶
type DescribeResourceTagsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. // Note: this field may return null, indicating that no valid values can be obtained. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Resource tag Rows []*TagResource `json:"Rows,omitempty" name:"Rows"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourceTagsResponse ¶
func NewDescribeResourceTagsResponse() (response *DescribeResourceTagsResponse)
func (*DescribeResourceTagsResponse) FromJsonString ¶
func (r *DescribeResourceTagsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceTagsResponse) ToJsonString ¶
func (r *DescribeResourceTagsResponse) ToJsonString() string
type DescribeResourcesByTagsRequest ¶
type DescribeResourcesByTagsRequest struct { *tchttp.BaseRequest // Tag filtering arrays. TagFilters []*TagFilter `json:"TagFilters,omitempty" name:"TagFilters"` // Tag creator uin. CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Data offset. The default value is 0. Must be an integral multiple of the `Limit` parameter. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. The default value is 15. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Resource prefix. ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Unique resource ID. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // The resource's region. ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Service type. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` }
func NewDescribeResourcesByTagsRequest ¶
func NewDescribeResourcesByTagsRequest() (request *DescribeResourcesByTagsRequest)
func (*DescribeResourcesByTagsRequest) FromJsonString ¶
func (r *DescribeResourcesByTagsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourcesByTagsRequest) ToJsonString ¶
func (r *DescribeResourcesByTagsRequest) ToJsonString() string
type DescribeResourcesByTagsResponse ¶
type DescribeResourcesByTagsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. // Note: This field may return null, indicating that no valid value is found. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Resource tag. Rows []*ResourceTag `json:"Rows,omitempty" name:"Rows"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourcesByTagsResponse ¶
func NewDescribeResourcesByTagsResponse() (response *DescribeResourcesByTagsResponse)
func (*DescribeResourcesByTagsResponse) FromJsonString ¶
func (r *DescribeResourcesByTagsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourcesByTagsResponse) ToJsonString ¶
func (r *DescribeResourcesByTagsResponse) ToJsonString() string
type DescribeResourcesByTagsUnionRequest ¶
type DescribeResourcesByTagsUnionRequest struct { *tchttp.BaseRequest // Tag filtering arrays. TagFilters []*TagFilter `json:"TagFilters,omitempty" name:"TagFilters"` // Tag creator uin. CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Data offset. The default value is 0. Must be an integral multiple of the `Limit` parameter. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. The default value is 15. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Resource prefix. ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Unique resource ID. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // The resource’s region. ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Service type ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` }
func NewDescribeResourcesByTagsUnionRequest ¶
func NewDescribeResourcesByTagsUnionRequest() (request *DescribeResourcesByTagsUnionRequest)
func (*DescribeResourcesByTagsUnionRequest) FromJsonString ¶
func (r *DescribeResourcesByTagsUnionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourcesByTagsUnionRequest) ToJsonString ¶
func (r *DescribeResourcesByTagsUnionRequest) ToJsonString() string
type DescribeResourcesByTagsUnionResponse ¶
type DescribeResourcesByTagsUnionResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // The size of each page. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Resource tag. Rows []*ResourceTag `json:"Rows,omitempty" name:"Rows"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourcesByTagsUnionResponse ¶
func NewDescribeResourcesByTagsUnionResponse() (response *DescribeResourcesByTagsUnionResponse)
func (*DescribeResourcesByTagsUnionResponse) FromJsonString ¶
func (r *DescribeResourcesByTagsUnionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourcesByTagsUnionResponse) ToJsonString ¶
func (r *DescribeResourcesByTagsUnionResponse) ToJsonString() string
type DescribeTagKeysRequest ¶
type DescribeTagKeysRequest struct { *tchttp.BaseRequest // Creator `Uin`. If not specified, `Uin` is only used as the query condition. CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Data offset. The default value is 0. Must be an integral multiple of the `Limit` parameter. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. The default value is 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Whether to show project ShowProject *uint64 `json:"ShowProject,omitempty" name:"ShowProject"` }
func NewDescribeTagKeysRequest ¶
func NewDescribeTagKeysRequest() (request *DescribeTagKeysRequest)
func (*DescribeTagKeysRequest) FromJsonString ¶
func (r *DescribeTagKeysRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagKeysRequest) ToJsonString ¶
func (r *DescribeTagKeysRequest) ToJsonString() string
type DescribeTagKeysResponse ¶
type DescribeTagKeysResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list. Tags []*string `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTagKeysResponse ¶
func NewDescribeTagKeysResponse() (response *DescribeTagKeysResponse)
func (*DescribeTagKeysResponse) FromJsonString ¶
func (r *DescribeTagKeysResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagKeysResponse) ToJsonString ¶
func (r *DescribeTagKeysResponse) ToJsonString() string
type DescribeTagValuesRequest ¶
type DescribeTagValuesRequest struct { *tchttp.BaseRequest // Tag key list. TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Creator `Uin`. If not specified, `Uin` is only used as the query condition. CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Data offset. The default value is 0. Must be an integral multiple of the `Limit` parameter. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. The default value is 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeTagValuesRequest ¶
func NewDescribeTagValuesRequest() (request *DescribeTagValuesRequest)
func (*DescribeTagValuesRequest) FromJsonString ¶
func (r *DescribeTagValuesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagValuesRequest) ToJsonString ¶
func (r *DescribeTagValuesRequest) ToJsonString() string
type DescribeTagValuesResponse ¶
type DescribeTagValuesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTagValuesResponse ¶
func NewDescribeTagValuesResponse() (response *DescribeTagValuesResponse)
func (*DescribeTagValuesResponse) FromJsonString ¶
func (r *DescribeTagValuesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagValuesResponse) ToJsonString ¶
func (r *DescribeTagValuesResponse) ToJsonString() string
type DescribeTagValuesSeqRequest ¶
type DescribeTagValuesSeqRequest struct { *tchttp.BaseRequest // Tag key list TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Creator `Uin`. If this parameter is blank or left empty, only `Uin` will be used as a condition for query CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Data offset. Default value: 0. It must be an integer multiple of the `Limit` parameter Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. Default value: 15 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeTagValuesSeqRequest ¶
func NewDescribeTagValuesSeqRequest() (request *DescribeTagValuesSeqRequest)
func (*DescribeTagValuesSeqRequest) FromJsonString ¶
func (r *DescribeTagValuesSeqRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagValuesSeqRequest) ToJsonString ¶
func (r *DescribeTagValuesSeqRequest) ToJsonString() string
type DescribeTagValuesSeqResponse ¶
type DescribeTagValuesSeqResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTagValuesSeqResponse ¶
func NewDescribeTagValuesSeqResponse() (response *DescribeTagValuesSeqResponse)
func (*DescribeTagValuesSeqResponse) FromJsonString ¶
func (r *DescribeTagValuesSeqResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagValuesSeqResponse) ToJsonString ¶
func (r *DescribeTagValuesSeqResponse) ToJsonString() string
type DescribeTagsRequest ¶
type DescribeTagsRequest struct { *tchttp.BaseRequest // Tag key. Either exists or does not exist alongside the tag value. If it does not exist, all of the user's tags will be queried. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value. Either exists or does not exist alongside the tag key. If it does not exist, all of the user's tags will be queried. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // Data offset. The default value is 0. Must be an integral multiple of the `Limit` parameter. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. The default value is 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Creator `Uin`. If not specified, `Uin` is only used as the query condition. CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Tag key array, which either exists or does not exist with the tag value. If it does not exist, all tags of the user will be queried. If it is passed in together with `TagKey`, it will be used and the `TagKey` will be ignored. TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Whether to show project tag ShowProject *uint64 `json:"ShowProject,omitempty" name:"ShowProject"` }
func NewDescribeTagsRequest ¶
func NewDescribeTagsRequest() (request *DescribeTagsRequest)
func (*DescribeTagsRequest) FromJsonString ¶
func (r *DescribeTagsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagsRequest) ToJsonString ¶
func (r *DescribeTagsRequest) ToJsonString() string
type DescribeTagsResponse ¶
type DescribeTagsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Page size. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list. Tags []*TagWithDelete `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTagsResponse ¶
func NewDescribeTagsResponse() (response *DescribeTagsResponse)
func (*DescribeTagsResponse) FromJsonString ¶
func (r *DescribeTagsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagsResponse) ToJsonString ¶
func (r *DescribeTagsResponse) ToJsonString() string
type DescribeTagsSeqRequest ¶
type DescribeTagsSeqRequest struct { *tchttp.BaseRequest // Tag key, which either exists or does not exist with the tag value. If it does not exist, all tags of the user will be queried TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value, which either exists or does not exist with the tag key. If it does not exist, all tags of the user will be queried TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // Data offset. Default value: 0. It must be an integer multiple of the `Limit` parameter Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. Default value: 15 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Creator `Uin`. If this parameter is blank or left empty, only `Uin` will be used as a condition for query CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"` // Tag key array, which either exists or does not exist with the tag value. If it does not exist, all tags of the user will be queried. If it is passed in together with `TagKey`, it will be used and the `TagKey` will be ignored. TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Whether to show project tag ShowProject *uint64 `json:"ShowProject,omitempty" name:"ShowProject"` }
func NewDescribeTagsSeqRequest ¶
func NewDescribeTagsSeqRequest() (request *DescribeTagsSeqRequest)
func (*DescribeTagsSeqRequest) FromJsonString ¶
func (r *DescribeTagsSeqRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagsSeqRequest) ToJsonString ¶
func (r *DescribeTagsSeqRequest) ToJsonString() string
type DescribeTagsSeqResponse ¶
type DescribeTagsSeqResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Tag list Tags []*TagWithDelete `json:"Tags,omitempty" name:"Tags"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTagsSeqResponse ¶
func NewDescribeTagsSeqResponse() (response *DescribeTagsSeqResponse)
func (*DescribeTagsSeqResponse) FromJsonString ¶
func (r *DescribeTagsSeqResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTagsSeqResponse) ToJsonString ¶
func (r *DescribeTagsSeqResponse) ToJsonString() string
type DetachResourcesTagRequest ¶
type DetachResourcesTagRequest struct { *tchttp.BaseRequest // Resource service name ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource ID array, which can contain up to 50 resources ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Tag key to be unbound TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Resource region. This field is not required for resources that do not have the region attribute ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Resource prefix, which is not required for COS buckets ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` }
func NewDetachResourcesTagRequest ¶
func NewDetachResourcesTagRequest() (request *DetachResourcesTagRequest)
func (*DetachResourcesTagRequest) FromJsonString ¶
func (r *DetachResourcesTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachResourcesTagRequest) ToJsonString ¶
func (r *DetachResourcesTagRequest) ToJsonString() string
type DetachResourcesTagResponse ¶
type DetachResourcesTagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachResourcesTagResponse ¶
func NewDetachResourcesTagResponse() (response *DetachResourcesTagResponse)
func (*DetachResourcesTagResponse) FromJsonString ¶
func (r *DetachResourcesTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachResourcesTagResponse) ToJsonString ¶
func (r *DetachResourcesTagResponse) ToJsonString() string
type ModifyResourceTagsRequest ¶
type ModifyResourceTagsRequest struct { *tchttp.BaseRequest // [Six-segment resource description](https://cloud.tencent.com/document/product/598/10606) Resource *string `json:"Resource,omitempty" name:"Resource"` // The tags to be added or modified. If the resource described by `Resource` is not associated with the input tag keys, an association will be added. If the tag keys are already associated, the values corresponding to the associated tag keys will be modified to the input values. This API must contain either `ReplaceTags` or `DeleteTag`. And these two parameters cannot include the same tag keys. ReplaceTags []*Tag `json:"ReplaceTags,omitempty" name:"ReplaceTags"` // The tags to be unassociated. This API must contain either `ReplaceTags` or `DeleteTag`. And these two parameters cannot include the same tag keys. DeleteTags []*TagKeyObject `json:"DeleteTags,omitempty" name:"DeleteTags"` }
func NewModifyResourceTagsRequest ¶
func NewModifyResourceTagsRequest() (request *ModifyResourceTagsRequest)
func (*ModifyResourceTagsRequest) FromJsonString ¶
func (r *ModifyResourceTagsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourceTagsRequest) ToJsonString ¶
func (r *ModifyResourceTagsRequest) ToJsonString() string
type ModifyResourceTagsResponse ¶
type ModifyResourceTagsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyResourceTagsResponse ¶
func NewModifyResourceTagsResponse() (response *ModifyResourceTagsResponse)
func (*ModifyResourceTagsResponse) FromJsonString ¶
func (r *ModifyResourceTagsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourceTagsResponse) ToJsonString ¶
func (r *ModifyResourceTagsResponse) ToJsonString() string
type ModifyResourcesTagValueRequest ¶
type ModifyResourcesTagValueRequest struct { *tchttp.BaseRequest // Resource service name ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource ID array, which can contain up to 50 resources ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Tag key TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // Resource region. This field is not required for resources that do not have the region attribute ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Resource prefix, which is not required for COS buckets ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` }
func NewModifyResourcesTagValueRequest ¶
func NewModifyResourcesTagValueRequest() (request *ModifyResourcesTagValueRequest)
func (*ModifyResourcesTagValueRequest) FromJsonString ¶
func (r *ModifyResourcesTagValueRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourcesTagValueRequest) ToJsonString ¶
func (r *ModifyResourcesTagValueRequest) ToJsonString() string
type ModifyResourcesTagValueResponse ¶
type ModifyResourcesTagValueResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyResourcesTagValueResponse ¶
func NewModifyResourcesTagValueResponse() (response *ModifyResourcesTagValueResponse)
func (*ModifyResourcesTagValueResponse) FromJsonString ¶
func (r *ModifyResourcesTagValueResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourcesTagValueResponse) ToJsonString ¶
func (r *ModifyResourcesTagValueResponse) ToJsonString() string
type ResourceIdTag ¶
type ResourceIdTag struct { // Unique resource ID // Note: this field may return null, indicating that no valid values can be obtained ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Tag key-value pair // Note: this field may return null, indicating that no valid values can be obtained TagKeyValues []*Tag `json:"TagKeyValues,omitempty" name:"TagKeyValues"` }
type ResourceTag ¶
type ResourceTag struct { // The resource's region. // Note: This field may return null, indicating that no valid value is found. ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Service type. // Note: This field may return null, indicating that no valid value is found. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Resource prefix. // Note: This field may return null, indicating that no valid value is found. ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"` // Unique resource ID. // Note: This field may return null, indicating that no valid value is found. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Resource tag. // Note: This field may return null, indicating that no valid value is found. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` }
type TagKeyObject ¶
type TagKeyObject struct { // Tag key. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` }
type TagResource ¶
type TagResource struct { // Tag key. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // Resource ID. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Tag key MD5 value. TagKeyMd5 *string `json:"TagKeyMd5,omitempty" name:"TagKeyMd5"` // Tag value MD5 value. TagValueMd5 *string `json:"TagValueMd5,omitempty" name:"TagValueMd5"` // Resource type // Note: this field may return null, indicating that no valid values found. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` }
type TagWithDelete ¶
type UpdateResourceTagValueRequest ¶
type UpdateResourceTagValueRequest struct { *tchttp.BaseRequest // Tag key associated with the resource. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Modified tag value. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` // [Six-segment resource description](https://cloud.tencent.com/document/product/598/10606) Resource *string `json:"Resource,omitempty" name:"Resource"` }
func NewUpdateResourceTagValueRequest ¶
func NewUpdateResourceTagValueRequest() (request *UpdateResourceTagValueRequest)
func (*UpdateResourceTagValueRequest) FromJsonString ¶
func (r *UpdateResourceTagValueRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateResourceTagValueRequest) ToJsonString ¶
func (r *UpdateResourceTagValueRequest) ToJsonString() string
type UpdateResourceTagValueResponse ¶
type UpdateResourceTagValueResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateResourceTagValueResponse ¶
func NewUpdateResourceTagValueResponse() (response *UpdateResourceTagValueResponse)
func (*UpdateResourceTagValueResponse) FromJsonString ¶
func (r *UpdateResourceTagValueResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateResourceTagValueResponse) ToJsonString ¶
func (r *UpdateResourceTagValueResponse) ToJsonString() string