/// <param name='operations'> /// Reference to the Microsoft.Azure.Management.Dns.IZoneOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='zoneName'> /// Required. The name of the zone without a terminating dot. /// </param> /// <param name='ifMatch'> /// Optional. 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'> /// Optional. 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> /// <returns> /// The response to a Zone Delete operation. /// </returns> public static Task <ZoneDeleteResponse> DeleteAsync(this IZoneOperations operations, string resourceGroupName, string zoneName, string ifMatch, string ifNoneMatch) { return(operations.DeleteAsync(resourceGroupName, zoneName, ifMatch, ifNoneMatch, CancellationToken.None)); }
/// <summary> /// Removes a DNS zone from a resource group. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Management.Dns.IZoneOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='zoneName'> /// Required. The name of the zone without a terminating dot. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to delete a zone /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IZoneOperations operations, string resourceGroupName, string zoneName, ZoneDeleteParameters parameters) { return(operations.DeleteAsync(resourceGroupName, zoneName, parameters, CancellationToken.None)); }