Ejemplo n.º 1
0
 /// <summary>
 /// Creates or updates a virtual network link to the specified Private DNS
 /// zone.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='privateZoneName'>
 /// The name of the Private DNS zone (without a terminating dot).
 /// </param>
 /// <param name='virtualNetworkLinkName'>
 /// The name of the virtual network link.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the CreateOrUpdate operation.
 /// </param>
 /// <param name='ifMatch'>
 /// The ETag of the virtual network link to the Private DNS zone. Omit this
 /// value to always overwrite the current virtual network link. Specify the
 /// last-seen ETag value to prevent accidentally overwriting any concurrent
 /// changes.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// Set to '*' to allow a new virtual network link to the Private DNS zone to
 /// be created, but to prevent updating an existing link. Other values will be
 /// ignored.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VirtualNetworkLinkInner> BeginCreateOrUpdateAsync(this IVirtualNetworkLinksOperations operations, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, VirtualNetworkLinkInner parameters, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }