public class TagClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTags(CreateTagsRequest request)
Create tags.
|
void |
createTags(List<Tag> tags)
Create tags.
|
void |
deleteTags(DeleteTagsRequest request)
Delete tags.
|
void |
deleteTags(List<Tag> tags)
Delete tags.
|
ListTagResourcesResponse |
listTagResources()
Listing all tag resources.
|
ListTagResourcesResponse |
listTagResources(ListTagResourcesRequest request)
Listing tag resources.
|
ListTagResourcesResponse |
listTagResources(String tagKey,
String tagValue)
Listing tag resources.
|
ListTagsResponse |
listTags()
Listing all tags.
|
ListTagsResponse |
listTags(ListTagsRequest request)
Listing tags.
|
ListTagsResponse |
listTags(String tagKey)
Listing tags.
|
ListTagsResponse |
listTags(String tagKey,
String tagValue)
Listing tags.
|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic TagClient()
public TagClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The tag client configuration options controlling how this client
connects to tag service(e.g. proxy settings, retry counts, etc).public void createTags(List<Tag> tags)
tags - List of tag to be created.BceClientExceptionpublic void createTags(CreateTagsRequest request)
request - The request containing all options for creating the tags.BceClientExceptionpublic ListTagsResponse listTags()
BceClientExceptionpublic ListTagsResponse listTags(String tagKey)
tagKey - Filtered by tag keyBceClientExceptionpublic ListTagsResponse listTags(String tagKey, String tagValue)
tagKey - Filtered by tag key, set value to null
if you only want to filtered by tag valuetagValue - Filtered by tag valueBceClientExceptionpublic ListTagsResponse listTags(ListTagsRequest request)
request - The request containing all options for listing the tags.BceClientExceptionpublic void deleteTags(List<Tag> tags)
tags - List of tag to be deleted.BceClientExceptionpublic void deleteTags(DeleteTagsRequest request)
request - The request containing all options for deleting the tags.BceClientExceptionpublic ListTagResourcesResponse listTagResources()
BceClientExceptionpublic ListTagResourcesResponse listTagResources(String tagKey, String tagValue)
listTagResources(ListTagResourcesRequest) methodtagKey - Filtered by tag key, set value to null
if you only want to filtered by tag valuetagValue - Filtered by tag valueBceClientExceptionpublic ListTagResourcesResponse listTagResources(ListTagResourcesRequest request)
request - The request containing all options for listing the tag resources.BceClientExceptionCopyright © 2022. All rights reserved.