/// <summary>
 /// Get a release with id `release_id`. If `release_id` is `latest`, return the
 /// latest release that was distributed to the current user (from all the
 /// distribution groups).
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='releaseId'>
 /// The ID of the release, or `latest` to get the latest release from all the
 /// distribution groups assigned to the current user.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='udid'>
 /// when supplied, this call will also check if the given UDID is provisioned.
 /// Will be ignored for non-iOS platforms. The value will be returned in the
 /// property is_udid_provisioned.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetLatestByUserAsync(this IReleases operations, string releaseId, string ownerName, string appName, string udid = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLatestByUserWithHttpMessagesAsync(releaseId, ownerName, appName, udid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }