/// <summary> /// Updates tags for a peering with the specified name under the given /// subscription and resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='peeringName'> /// The name of the peering. /// </param> /// <param name='tags'> /// The resource tags. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PeeringModel> UpdateAsync(this IPeeringsOperations operations, string resourceGroupName, string peeringName, ResourceTags tags, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, peeringName, tags, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates tags for a peering with the specified name under the given /// subscription and resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='peeringName'> /// The name of the peering. /// </param> /// <param name='tags'> /// The resource tags. /// </param> public static PeeringModel Update(this IPeeringsOperations operations, string resourceGroupName, string peeringName, ResourceTags tags) { return(operations.UpdateAsync(resourceGroupName, peeringName, tags).GetAwaiter().GetResult()); }