/// <summary> /// Associates a group of robots with and dissociates another group of robots /// from the given environment. /// </summary> /// <remarks> /// Required permissions: Environments.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='setRobotsParameters'> /// <para />addedRobotIds - The id of the robots to be associated with /// the environment. /// <para />removedRobotIds - The id of the robots to be dissociated from /// the environment. /// </param> public static void SetRobotsById(this IEnvironments operations, long id, SetRobotsParameters setRobotsParameters) { operations.SetRobotsByIdAsync(id, setRobotsParameters).GetAwaiter().GetResult(); }
/// <summary> /// Associates a group of robots with and dissociates another group of robots /// from the given environment. /// </summary> /// <remarks> /// Required permissions: Environments.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='setRobotsParameters'> /// <para />addedRobotIds - The id of the robots to be associated with /// the environment. /// <para />removedRobotIds - The id of the robots to be dissociated from /// the environment. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task SetRobotsByIdAsync(this IEnvironments operations, long id, SetRobotsParameters setRobotsParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.SetRobotsByIdWithHttpMessagesAsync(id, setRobotsParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Associates a group of robots with and dissociates another group of robots /// from the given environment. /// </summary> /// <remarks> /// Required permissions: Environments.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='setRobotsParameters'> /// <para />addedRobotIds - The id of the robots to be associated with /// the environment. /// <para />removedRobotIds - The id of the robots to be dissociated from /// the environment. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static void SetRobotsById(this IEnvironments operations, long id, SetRobotsParameters setRobotsParameters, long?xUIPATHOrganizationUnitId = default(long?)) { operations.SetRobotsByIdAsync(id, setRobotsParameters, xUIPATHOrganizationUnitId).GetAwaiter().GetResult(); }