示例#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>
 /// <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>
 /// 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>
 /// <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();
 }