/// <summary> /// Associates a group of robots with and dissociates another group of robots /// from the given environment. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Write. /// /// Required permissions: Environments.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The environment id. /// </param> /// <param name='body'> /// <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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task SetRobotsByIdAsync(this IEnvironments operations, long key, EnvironmentsSetRobotsParameters body = default(EnvironmentsSetRobotsParameters), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.SetRobotsByIdWithHttpMessagesAsync(key, body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Associates a group of robots with and dissociates another group of robots /// from the given environment. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Write. /// /// Required permissions: Environments.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The environment id. /// </param> /// <param name='body'> /// <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 key, EnvironmentsSetRobotsParameters body = default(EnvironmentsSetRobotsParameters), long?xUIPATHOrganizationUnitId = default(long?)) { operations.SetRobotsByIdAsync(key, body, xUIPATHOrganizationUnitId).GetAwaiter().GetResult(); }