/// <summary>
 /// Checks whether a resource exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the resource to check. The name
 /// is case insensitive.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// The resource provider of the resource to check.
 /// </param>
 /// <param name='parentResourcePath'>
 /// The parent resource identity.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource to check whether it exists.
 /// </param>
 /// <param name='apiVersion'>
 /// The API version to use for the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <bool> CheckExistenceAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckExistenceWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }