/// <summary> /// Updates VirtualHub tags. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name of the VirtualHub. /// </param> /// <param name='virtualHubName'> /// The name of the VirtualHub. /// </param> /// <param name='virtualHubParameters'> /// Parameters supplied to update VirtualHub tags. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VirtualHub> UpdateTagsAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, TagsObject virtualHubParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, virtualHubName, virtualHubParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates VirtualHub tags. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name of the VirtualHub. /// </param> /// <param name='virtualHubName'> /// The name of the VirtualHub. /// </param> /// <param name='tags'> /// Resource tags. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VirtualHubInner> UpdateTagsAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, IDictionary <string, string> tags = default(IDictionary <string, string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, virtualHubName, tags, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }