Exemple #1
0
 /// <summary>
 /// Updates VpnSite tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VpnSite.
 /// </param>
 /// <param name='vpnSiteName'>
 /// The name of the VpnSite being updated.
 /// </param>
 /// <param name='vpnSiteParameters'>
 /// Parameters supplied to update VpnSite tags.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VpnSite> BeginUpdateTagsAsync(this IVpnSitesOperations operations, string resourceGroupName, string vpnSiteName, TagsObject vpnSiteParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, vpnSiteName, vpnSiteParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Updates VpnSite tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VpnSite.
 /// </param>
 /// <param name='vpnSiteName'>
 /// The name of the VpnSite being updated.
 /// </param>
 /// <param name='tags'>
 /// Resource tags.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VpnSiteInner> BeginUpdateTagsAsync(this IVpnSitesOperations operations, string resourceGroupName, string vpnSiteName, IDictionary <string, string> tags = default(IDictionary <string, string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, vpnSiteName, tags, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }