/// <summary> /// Update an existing Test Set /// </summary> /// <remarks> /// Client Credentials Flow required permissions: TestSets or TestSets.Write. /// /// Required permissions: TestSets.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='testSetDto'> /// The entity to put /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TestSetDto> PutByIdAsync(this ITestSets operations, long id, TestSetDto testSetDto, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(id, testSetDto, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update an existing Test Set /// </summary> /// <remarks> /// Client Credentials Flow required permissions: TestSets or TestSets.Write. /// /// Required permissions: TestSets.Edit. /// /// Responses: /// 200 Returns the updated Test Set /// 403 If the caller doesn't have permissions to update Test Sets /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// ID of the Test Set to be updated /// </param> /// <param name='body'> /// Update information /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TestSetDto> PutByIdAsync(this ITestSets operations, long key, TestSetDto body = default(TestSetDto), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(key, body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }