Esempio n. 1
0
 /// <summary>
 /// Removes a DNS zone from a 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='zoneName'>
 /// The name of the zone without a terminating dot.
 /// </param>
 /// <param name='ifMatch'>
 /// Defines the If-Match condition. The delete operation will be performed
 /// only if the ETag of the zone on the server matches this value.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// Defines the If-None-Match condition. The delete operation will be
 /// performed only if the ETag of the zone on the server does not match this
 /// value.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ZoneDeleteResult> DeleteAsync(this IZonesOperations operations, string resourceGroupName, string zoneName, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, zoneName, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Deletes a DNS zone. WARNING: All DNS records in the zone will also be
 /// deleted. This operation cannot be undone.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='zoneName'>
 /// The name of the DNS zone (without a terminating dot).
 /// </param>
 /// <param name='ifMatch'>
 /// The etag of the DNS zone. Omit this value to always delete the current
 /// zone. Specify the last-seen etag value to prevent accidentally deleting any
 /// concurrent changes.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IZonesOperations operations, string resourceGroupName, string zoneName, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, zoneName, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }