你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TagOperations Interface

Implements

public interface TagOperations
extends HasManager<ResourceManager>

Entry point to tag management API.

Method Summary

Modifier and Type Method and Description
abstract TagResource updateTags(Resource resource, Map<String,String> tags)

Updates the tags of the Azure resource.

abstract TagResource updateTags(String resourceId, Map<String,String> tags)

Updates the tags of the Azure resource.

abstract Mono<TagResource> updateTagsAsync(Resource resource, Map<String,String> tags)

Updates the tags of the Azure resource.

abstract Mono<TagResource> updateTagsAsync(String resourceId, Map<String,String> tags)

Updates the tags of the Azure resource.

Method Details

updateTags

public abstract TagResource updateTags(Resource resource, Map tags)

Updates the tags of the Azure resource.

Parameters:

resource - the Azure resource to have its tags updated
tags - the tags

Returns:

the resource with updated tags

updateTags

public abstract TagResource updateTags(String resourceId, Map tags)

Updates the tags of the Azure resource.

Parameters:

resourceId - the ID of the Azure resource to have its tags updated
tags - the tags

Returns:

the resource with updated tags

updateTagsAsync

public abstract Mono updateTagsAsync(Resource resource, Map tags)

Updates the tags of the Azure resource.

Parameters:

resource - the Azure resource to have its tags updated
tags - the tags

Returns:

the resource with updated tags

updateTagsAsync

public abstract Mono updateTagsAsync(String resourceId, Map tags)

Updates the tags of the Azure resource.

Parameters:

resourceId - the ID of the Azure resource to have its tags updated
tags - the tags

Returns:

the resource with updated tags

Applies to