/// <summary>
 /// Creates a new release.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Write.
 ///
 /// Required permissions: Processes.Create.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='releaseDto'>
 /// The entity to post
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReleaseDto> PostAsync(this IReleases operations, ReleaseDto releaseDto, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PostWithHttpMessagesAsync(releaseDto, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }