Documentation
¶
Index ¶
- Constants
- type AddResourceTagRequest
- type AddResourceTagResponse
- type Client
- func (c *Client) AddResourceTag(request *AddResourceTagRequest) (response *AddResourceTagResponse, err error)
- func (c *Client) CreateTag(request *CreateTagRequest) (response *CreateTagResponse, err error)
- func (c *Client) DeleteResourceTag(request *DeleteResourceTagRequest) (response *DeleteResourceTagResponse, err error)
- func (c *Client) DeleteTag(request *DeleteTagRequest) (response *DeleteTagResponse, err error)
- func (c *Client) DescribeResourceTagsByResourceIds(request *DescribeResourceTagsByResourceIdsRequest) (response *DescribeResourceTagsByResourceIdsResponse, err error)
- func (c *Client) DescribeResourcesByTags(request *DescribeResourcesByTagsRequest) (response *DescribeResourcesByTagsResponse, err error)
- func (c *Client) DescribeTagKeys(request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error)
- func (c *Client) DescribeTagValues(request *DescribeTagValuesRequest) (response *DescribeTagValuesResponse, err error)
- func (c *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)
- func (c *Client) ModifyResourceTags(request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)
- func (c *Client) UpdateResourceTagValue(request *UpdateResourceTagValueRequest) (response *UpdateResourceTagValueResponse, err error)
- type CreateTagRequest
- type CreateTagResponse
- type DeleteResourceTagRequest
- type DeleteResourceTagResponse
- type DeleteTagRequest
- type DeleteTagResponse
- type DescribeResourceTagsByResourceIdsRequest
- type DescribeResourceTagsByResourceIdsResponse
- type DescribeResourcesByTagsRequest
- type DescribeResourcesByTagsResponse
- type DescribeTagKeysRequest
- type DescribeTagKeysResponse
- type DescribeTagValuesRequest
- type DescribeTagValuesResponse
- type DescribeTagsRequest
- type DescribeTagsResponse
- type ModifyResourceTagsRequest
- type ModifyResourceTagsResponse
- type ResourceTag
- type Tag
- type TagFilter
- type TagKeyObject
- type TagResource
- type TagWithDelete
- type UpdateResourceTagValueRequest
- type UpdateResourceTagValueResponse
Constants ¶
View Source
const APIVersion = "2018-08-13"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddResourceTagRequest ¶
type AddResourceTagRequest struct {
*tchttp.BaseRequest
// 标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 标签值
TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
// 资源六段式描述
Resource *string `json:"Resource,omitempty" name:"Resource"`
}
func NewAddResourceTagRequest ¶
func NewAddResourceTagRequest() (request *AddResourceTagRequest)
func (*AddResourceTagRequest) FromJsonString ¶
func (r *AddResourceTagRequest) FromJsonString(s string) error
func (*AddResourceTagRequest) ToJsonString ¶
func (r *AddResourceTagRequest) ToJsonString() string
type AddResourceTagResponse ¶
type AddResourceTagResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*AddResourceTagResponse) ToJsonString ¶
func (r *AddResourceTagResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, 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)
本接口用于给标签关联资源
func (*Client) CreateTag ¶
func (c *Client) CreateTag(request *CreateTagRequest) (response *CreateTagResponse, err error)
本接口用于创建一对标签键和标签值
func (*Client) DeleteResourceTag ¶
func (c *Client) DeleteResourceTag(request *DeleteResourceTagRequest) (response *DeleteResourceTagResponse, err error)
本接口用于解除标签和资源的关联关系
func (*Client) DeleteTag ¶
func (c *Client) DeleteTag(request *DeleteTagRequest) (response *DeleteTagResponse, err error)
本接口用于删除一对标签键和标签值
func (*Client) DescribeResourceTagsByResourceIds ¶
func (c *Client) DescribeResourceTagsByResourceIds(request *DescribeResourceTagsByResourceIdsRequest) (response *DescribeResourceTagsByResourceIdsResponse, err error)
用于查询已有资源标签键值对
func (*Client) DescribeResourcesByTags ¶
func (c *Client) DescribeResourcesByTags(request *DescribeResourcesByTagsRequest) (response *DescribeResourcesByTagsResponse, err error)
通过标签查询资源列表
func (*Client) DescribeTagKeys ¶
func (c *Client) DescribeTagKeys(request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error)
用于查询已建立的标签列表中的标签键。
func (*Client) DescribeTagValues ¶
func (c *Client) DescribeTagValues(request *DescribeTagValuesRequest) (response *DescribeTagValuesResponse, err error)
用于查询已建立的标签列表中的标签值。
func (*Client) DescribeTags ¶
func (c *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)
用于查询已建立的标签列表。
func (*Client) ModifyResourceTags ¶
func (c *Client) ModifyResourceTags(request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)
本接口用于修改资源关联的所有标签
func (*Client) UpdateResourceTagValue ¶
func (c *Client) UpdateResourceTagValue(request *UpdateResourceTagValueRequest) (response *UpdateResourceTagValueResponse, err error)
本接口用于修改资源已关联的标签值(标签键不变)
type CreateTagRequest ¶
type CreateTagRequest struct {
*tchttp.BaseRequest
// 标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 标签值
TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
}
func NewCreateTagRequest ¶
func NewCreateTagRequest() (request *CreateTagRequest)
func (*CreateTagRequest) FromJsonString ¶
func (r *CreateTagRequest) FromJsonString(s string) error
func (*CreateTagRequest) ToJsonString ¶
func (r *CreateTagRequest) ToJsonString() string
type CreateTagResponse ¶
type CreateTagResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*CreateTagResponse) ToJsonString ¶
func (r *CreateTagResponse) ToJsonString() string
type DeleteResourceTagRequest ¶
type DeleteResourceTagRequest struct {
*tchttp.BaseRequest
// 标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 资源六段式描述
Resource *string `json:"Resource,omitempty" name:"Resource"`
}
func NewDeleteResourceTagRequest ¶
func NewDeleteResourceTagRequest() (request *DeleteResourceTagRequest)
func (*DeleteResourceTagRequest) FromJsonString ¶
func (r *DeleteResourceTagRequest) FromJsonString(s string) error
func (*DeleteResourceTagRequest) ToJsonString ¶
func (r *DeleteResourceTagRequest) ToJsonString() string
type DeleteResourceTagResponse ¶
type DeleteResourceTagResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DeleteResourceTagResponse) ToJsonString ¶
func (r *DeleteResourceTagResponse) ToJsonString() string
type DeleteTagRequest ¶
type DeleteTagRequest struct {
*tchttp.BaseRequest
// 需要删除的标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 需要删除的标签值
TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
}
func NewDeleteTagRequest ¶
func NewDeleteTagRequest() (request *DeleteTagRequest)
func (*DeleteTagRequest) FromJsonString ¶
func (r *DeleteTagRequest) FromJsonString(s string) error
func (*DeleteTagRequest) ToJsonString ¶
func (r *DeleteTagRequest) ToJsonString() string
type DeleteTagResponse ¶
type DeleteTagResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DeleteTagResponse) ToJsonString ¶
func (r *DeleteTagResponse) ToJsonString() string
type DescribeResourceTagsByResourceIdsRequest ¶
type DescribeResourceTagsByResourceIdsRequest struct {
*tchttp.BaseRequest
// 业务类型
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 资源前缀
ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"`
// 资源唯一标记
ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds" list`
// 资源所在地域
ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"`
// 数据偏移量,默认为 0, 必须为Limit参数的整数倍
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小,默认为 15
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewDescribeResourceTagsByResourceIdsRequest ¶
func NewDescribeResourceTagsByResourceIdsRequest() (request *DescribeResourceTagsByResourceIdsRequest)
func (*DescribeResourceTagsByResourceIdsRequest) FromJsonString ¶
func (r *DescribeResourceTagsByResourceIdsRequest) FromJsonString(s string) error
func (*DescribeResourceTagsByResourceIdsRequest) ToJsonString ¶
func (r *DescribeResourceTagsByResourceIdsRequest) ToJsonString() string
type DescribeResourceTagsByResourceIdsResponse ¶
type DescribeResourceTagsByResourceIdsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果总数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 数据位移偏量
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 标签列表
Tags []*TagResource `json:"Tags,omitempty" name:"Tags" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DescribeResourceTagsByResourceIdsResponse) ToJsonString ¶
func (r *DescribeResourceTagsByResourceIdsResponse) ToJsonString() string
type DescribeResourcesByTagsRequest ¶
type DescribeResourcesByTagsRequest struct {
*tchttp.BaseRequest
// 标签过滤数组
TagFilters []*TagFilter `json:"TagFilters,omitempty" name:"TagFilters" list`
// 创建标签者uin
CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"`
// 数据偏移量,默认为 0, 必须为Limit参数的整数倍
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小,默认为 15
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 资源前缀
ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"`
// 资源唯一标记
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 资源所在地域
ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"`
// 业务类型
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
}
func NewDescribeResourcesByTagsRequest ¶
func NewDescribeResourcesByTagsRequest() (request *DescribeResourcesByTagsRequest)
func (*DescribeResourcesByTagsRequest) FromJsonString ¶
func (r *DescribeResourcesByTagsRequest) FromJsonString(s string) error
func (*DescribeResourcesByTagsRequest) ToJsonString ¶
func (r *DescribeResourcesByTagsRequest) ToJsonString() string
type DescribeResourcesByTagsResponse ¶
type DescribeResourcesByTagsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果总数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 数据位移偏量
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小
// 注意:此字段可能返回 null,表示取不到有效值。
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 资源标签
Rows []*ResourceTag `json:"Rows,omitempty" name:"Rows" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DescribeResourcesByTagsResponse) ToJsonString ¶
func (r *DescribeResourcesByTagsResponse) ToJsonString() string
type DescribeTagKeysRequest ¶
type DescribeTagKeysRequest struct {
*tchttp.BaseRequest
// 创建者用户 Uin,不传或为空只将 Uin 作为条件查询
CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"`
// 数据偏移量,默认为 0, 必须为Limit参数的整数倍
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小,默认为 15
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewDescribeTagKeysRequest ¶
func NewDescribeTagKeysRequest() (request *DescribeTagKeysRequest)
func (*DescribeTagKeysRequest) FromJsonString ¶
func (r *DescribeTagKeysRequest) FromJsonString(s string) error
func (*DescribeTagKeysRequest) ToJsonString ¶
func (r *DescribeTagKeysRequest) ToJsonString() string
type DescribeTagKeysResponse ¶
type DescribeTagKeysResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果总数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 数据位移偏量
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 标签列表
Tags []*string `json:"Tags,omitempty" name:"Tags" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DescribeTagKeysResponse) ToJsonString ¶
func (r *DescribeTagKeysResponse) ToJsonString() string
type DescribeTagValuesRequest ¶
type DescribeTagValuesRequest struct {
*tchttp.BaseRequest
// 标签键列表
TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys" list`
// 创建者用户 Uin,不传或为空只将 Uin 作为条件查询
CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"`
// 数据偏移量,默认为 0, 必须为Limit参数的整数倍
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小,默认为 15
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func NewDescribeTagValuesRequest ¶
func NewDescribeTagValuesRequest() (request *DescribeTagValuesRequest)
func (*DescribeTagValuesRequest) FromJsonString ¶
func (r *DescribeTagValuesRequest) FromJsonString(s string) error
func (*DescribeTagValuesRequest) ToJsonString ¶
func (r *DescribeTagValuesRequest) ToJsonString() string
type DescribeTagValuesResponse ¶
type DescribeTagValuesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果总数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 数据位移偏量
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 标签列表
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DescribeTagValuesResponse) ToJsonString ¶
func (r *DescribeTagValuesResponse) ToJsonString() string
type DescribeTagsRequest ¶
type DescribeTagsRequest struct {
*tchttp.BaseRequest
// 标签键,与标签值同时存在或同时不存在,不存在时表示查询该用户所有标签
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 标签值,与标签键同时存在或同时不存在,不存在时表示查询该用户所有标签
TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
// 数据偏移量,默认为 0, 必须为Limit参数的整数倍
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小,默认为 15
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 创建者用户 Uin,不传或为空只将 Uin 作为条件查询
CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"`
}
func NewDescribeTagsRequest ¶
func NewDescribeTagsRequest() (request *DescribeTagsRequest)
func (*DescribeTagsRequest) FromJsonString ¶
func (r *DescribeTagsRequest) FromJsonString(s string) error
func (*DescribeTagsRequest) ToJsonString ¶
func (r *DescribeTagsRequest) ToJsonString() string
type DescribeTagsResponse ¶
type DescribeTagsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果总数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 数据位移偏量
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页大小
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 标签列表
Tags []*TagWithDelete `json:"Tags,omitempty" name:"Tags" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*DescribeTagsResponse) ToJsonString ¶
func (r *DescribeTagsResponse) ToJsonString() string
type ModifyResourceTagsRequest ¶
type ModifyResourceTagsRequest struct {
*tchttp.BaseRequest
// 资源的六段式描述
Resource *string `json:"Resource,omitempty" name:"Resource"`
// 需要增加或修改的标签集合。如果Resource描述的资源未关联输入的标签键,则增加关联;若已关联,则将该资源关联的键对应的标签值修改为输入值。本接口中ReplaceTags和DeleteTags二者必须存在其一,且二者不能包含相同的标签键
ReplaceTags []*Tag `json:"ReplaceTags,omitempty" name:"ReplaceTags" list`
// 需要解关联的标签集合。本接口中ReplaceTags和DeleteTags二者必须存在其一,且二者不能包含相同的标签键
DeleteTags []*TagKeyObject `json:"DeleteTags,omitempty" name:"DeleteTags" list`
}
func NewModifyResourceTagsRequest ¶
func NewModifyResourceTagsRequest() (request *ModifyResourceTagsRequest)
func (*ModifyResourceTagsRequest) FromJsonString ¶
func (r *ModifyResourceTagsRequest) FromJsonString(s string) error
func (*ModifyResourceTagsRequest) ToJsonString ¶
func (r *ModifyResourceTagsRequest) ToJsonString() string
type ModifyResourceTagsResponse ¶
type ModifyResourceTagsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*ModifyResourceTagsResponse) ToJsonString ¶
func (r *ModifyResourceTagsResponse) ToJsonString() string
type ResourceTag ¶
type ResourceTag struct {
// 资源所在地域
// 注意:此字段可能返回 null,表示取不到有效值。
ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"`
// 业务类型
// 注意:此字段可能返回 null,表示取不到有效值。
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 资源前缀
// 注意:此字段可能返回 null,表示取不到有效值。
ResourcePrefix *string `json:"ResourcePrefix,omitempty" name:"ResourcePrefix"`
// 资源唯一标记
// 注意:此字段可能返回 null,表示取不到有效值。
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 资源标签
// 注意:此字段可能返回 null,表示取不到有效值。
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
}
type TagKeyObject ¶
type TagKeyObject struct {
// 标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
}
type TagResource ¶
type TagResource struct {
// 标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 标签值
TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
// 资源ID
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 标签键MD5值
TagKeyMd5 *string `json:"TagKeyMd5,omitempty" name:"TagKeyMd5"`
// 标签值MD5值
TagValueMd5 *string `json:"TagValueMd5,omitempty" name:"TagValueMd5"`
}
type TagWithDelete ¶
type UpdateResourceTagValueRequest ¶
type UpdateResourceTagValueRequest struct {
*tchttp.BaseRequest
// 资源关联的标签键
TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
// 修改后的标签值
TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
// 资源的六段式描述
Resource *string `json:"Resource,omitempty" name:"Resource"`
}
func NewUpdateResourceTagValueRequest ¶
func NewUpdateResourceTagValueRequest() (request *UpdateResourceTagValueRequest)
func (*UpdateResourceTagValueRequest) FromJsonString ¶
func (r *UpdateResourceTagValueRequest) FromJsonString(s string) error
func (*UpdateResourceTagValueRequest) ToJsonString ¶
func (r *UpdateResourceTagValueRequest) ToJsonString() string
type UpdateResourceTagValueResponse ¶
type UpdateResourceTagValueResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
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
func (*UpdateResourceTagValueResponse) ToJsonString ¶
func (r *UpdateResourceTagValueResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.