コード例 #1
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>
 public static void SetRobotsById(this IEnvironments operations, long id, SetRobotsParameters setRobotsParameters)
 {
     operations.SetRobotsByIdAsync(id, setRobotsParameters).GetAwaiter().GetResult();
 }
コード例 #2
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='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();
 }
コード例 #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();
 }