/// <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'>
 /// &lt;para /&gt;addedRobotIds - The id of the robots to be associated with
 /// the environment.
 /// &lt;para /&gt;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();
 }
 /// <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'>
 /// &lt;para /&gt;addedRobotIds - The id of the robots to be associated with
 /// the environment.
 /// &lt;para /&gt;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();
 }
Example #3
0
 /// <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'>
 /// &lt;para /&gt;addedRobotIds - The id of the robots to be associated with
 /// the environment.
 /// &lt;para /&gt;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();
 }