/// <summary> /// This will create a test set with source type API.This endpoint it is /// supposed to be used by API integration. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: TestSets or TestSets.Write. /// /// Required permissions: TestSets.Create. /// /// Responses: /// 201 Created returns test set Id /// 403 If the caller doesn't have permissions to create a test set /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <long?> CreateTestSetForReleaseVersionAsync(this ITestAutomation operations, BuildTestSetRequestMessage body = default(BuildTestSetRequestMessage), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateTestSetForReleaseVersionWithHttpMessagesAsync(body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// This will create a test set with source type API.This endpoint it is /// supposed to be used by API integration. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: TestSets or TestSets.Write. /// /// Required permissions: TestSets.Create. /// /// Responses: /// 201 Created returns test set Id /// 403 If the caller doesn't have permissions to create a test set /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static long?CreateTestSetForReleaseVersion(this ITestAutomation operations, BuildTestSetRequestMessage body = default(BuildTestSetRequestMessage), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.CreateTestSetForReleaseVersionAsync(body, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }