类 TagClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.tag.TagClient
-
public class TagClient extends AbstractBceClient
Provides the client for accessing the tag service.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 TagClient()Constructs a new client to invoke service methods on tag.TagClient(BceClientConfiguration clientConfiguration)Constructs a new tag client using the client configuration to access tag.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcreateTags(CreateTagsRequest request)Create tags.voidcreateTags(List<Tag> tags)Create tags.voiddeleteTags(DeleteTagsRequest request)Delete tags.voiddeleteTags(List<Tag> tags)Delete tags.ListTagResourcesResponselistTagResources()Listing all tag resources.ListTagResourcesResponselistTagResources(ListTagResourcesRequest request)Listing tag resources.ListTagResourcesResponselistTagResources(String tagKey, String tagValue)Listing tag resources.ListTagsResponselistTags()Listing all tags.ListTagsResponselistTags(ListTagsRequest request)Listing tags.ListTagsResponselistTags(String tagKey)Listing tags.ListTagsResponselistTags(String tagKey, String tagValue)Listing tags.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
TagClient
public TagClient()
Constructs a new client to invoke service methods on tag.
-
TagClient
public TagClient(BceClientConfiguration clientConfiguration)
Constructs a new tag client using the client configuration to access tag.- 参数:
clientConfiguration- The tag client configuration options controlling how this client connects to tag service(e.g. proxy settings, retry counts, etc).
-
-
方法详细资料
-
createTags
public void createTags(List<Tag> tags)
Create tags. Tag will be ignored if it is already created. The default quota of tags is 200. Receive an exception if the total amount of tags exceeds the quota.- 参数:
tags- List of tag to be created.- 抛出:
BceClientException
-
createTags
public void createTags(CreateTagsRequest request)
Create tags. Tag will be ignored if it is already created. The default quota of tags is 200. Receive an exception if the total amount of tags exceeds the quota.- 参数:
request- The request containing all options for creating the tags.- 抛出:
BceClientException
-
listTags
public ListTagsResponse listTags()
Listing all tags.- 返回:
- Listing result
- 抛出:
BceClientException
-
listTags
public ListTagsResponse listTags(String tagKey)
Listing tags.- 参数:
tagKey- Filtered by tag key- 返回:
- Listing result
- 抛出:
BceClientException
-
listTags
public ListTagsResponse listTags(String tagKey, String tagValue)
Listing tags.- 参数:
tagKey- Filtered by tag key, set value to null if you only want to filtered by tag valuetagValue- Filtered by tag value- 返回:
- Listing result
- 抛出:
BceClientException
-
listTags
public ListTagsResponse listTags(ListTagsRequest request)
Listing tags.- 参数:
request- The request containing all options for listing the tags.- 返回:
- Listing result
- 抛出:
BceClientException
-
deleteTags
public void deleteTags(List<Tag> tags)
Delete tags. Tag will be ignored if it is not exists.- 参数:
tags- List of tag to be deleted.- 抛出:
BceClientException
-
deleteTags
public void deleteTags(DeleteTagsRequest request)
Delete tags. Tag will be ignored if it is not exists.- 参数:
request- The request containing all options for deleting the tags.- 抛出:
BceClientException
-
listTagResources
public ListTagResourcesResponse listTagResources()
Listing all tag resources.- 返回:
- Listing result
- 抛出:
BceClientException
-
listTagResources
public ListTagResourcesResponse listTagResources(String tagKey, String tagValue)
Listing tag resources. For other filter conditions(resource type, region), use thelistTagResources(ListTagResourcesRequest)method- 参数:
tagKey- Filtered by tag key, set value to null if you only want to filtered by tag valuetagValue- Filtered by tag value- 返回:
- Listing result
- 抛出:
BceClientException
-
listTagResources
public ListTagResourcesResponse listTagResources(ListTagResourcesRequest request)
Listing tag resources.- 参数:
request- The request containing all options for listing the tag resources.- 返回:
- Listing result
- 抛出:
BceClientException
-
-