/// <summary> /// This will list all the processes filtered by package identifier and version /// cross-folder when no current folder is sent by header. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Execution or Execution.Read. /// /// Required permissions: Processes.View. /// /// Responses: /// 200 OK /// 404 If there is no release for the specified package identifier /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='packageIdentifier'> /// </param> /// <param name='version'> /// </param> /// <param name='mandatoryPermissions'> /// If in a cross-folder scenario, these represent the additional permissions /// required in the folders the data is retrieved from; all permissions in this /// set must be met /// </param> /// <param name='atLeastOnePermissions'> /// If in a cross-folder scenario, these represent the additional permissions /// required in the folders the data is retrieved from; at least one permission /// in this set must be met /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <TestReleaseVersionDto> > GetReleasesForPackageVersionAsync(this ITestAutomation operations, string packageIdentifier = default(string), string version = default(string), IList <string> mandatoryPermissions = default(IList <string>), IList <string> atLeastOnePermissions = default(IList <string>), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetReleasesForPackageVersionWithHttpMessagesAsync(packageIdentifier, version, mandatoryPermissions, atLeastOnePermissions, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Client Credentials Flow required permissions: Execution or Execution.Read. /// /// Requires authentication. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='packageIdentifier'> /// </param> /// <param name='version'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <TestReleaseVersionDto> > GetReleasesForPackageVersionAsync(this ITestAutomation operations, string packageIdentifier, string version, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetReleasesForPackageVersionWithHttpMessagesAsync(packageIdentifier, version, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }