/// <summary>
 /// Detect human faces in an image and returns face locations, and optionally
 /// with faceIds, landmarks, and attributes.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='url'>
 /// Publicly reachable URL of an image
 /// </param>
 /// <param name='returnFaceId'>
 /// A value indicating whether the operation should return faceIds of detected
 /// faces.
 /// </param>
 /// <param name='returnFaceLandmarks'>
 /// A value indicating whether the operation should return landmarks of the
 /// detected faces.
 /// </param>
 /// <param name='returnFaceAttributes'>
 /// Analyze and return the one or more specified face attributes in the
 /// comma-separated string like "returnFaceAttributes=age,gender". Supported
 /// face attributes include age, gender, headPose, smile, facialHair, glasses
 /// and emotion. Note that each face attribute analysis has additional
 /// computational and time cost.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <DetectedFace> > DetectWithUrlAsync(this IFaceOperations operations, string url, bool?returnFaceId = true, bool?returnFaceLandmarks = false, IList <FaceAttributeType> returnFaceAttributes = default(IList <FaceAttributeType>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DetectWithUrlWithHttpMessagesAsync(url, returnFaceId, returnFaceLandmarks, returnFaceAttributes, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }