/// <summary>
 /// Get a release with hash 'release_hash' or the 'latest' from all the
 /// distribution groups assigned to the current user.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appSecret'>
 /// The secret of the target application
 /// </param>
 /// <param name='releaseHash'>
 /// The hash of the release or 'latest' to get the latest release from all the
 /// distribution groups assigned to the current user.
 /// </param>
 /// <param name='udid'>
 /// When passing `udid` in the query string, a provisioning check for the given
 /// device ID will be done. Will be ignored for non-iOS platforms.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetLatestByHashAsync(this IReleases operations, string appSecret, string releaseHash, string udid = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLatestByHashWithHttpMessagesAsync(appSecret, releaseHash, udid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }