Esempio n. 1
0
 /// <summary>
 /// Associates a robot with 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='addRobotParameters'>
 /// RobotId - The associated robot Id.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AddRobotByIdAsync(this IEnvironments operations, long id, AddRobotParameters addRobotParameters = default(AddRobotParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.AddRobotByIdWithHttpMessagesAsync(id, addRobotParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Associates a robot with 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 associated Environment Id.
 /// </param>
 /// <param name='body'>
 /// RobotId - The associated robot Id.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AddRobotByIdAsync(this IEnvironments operations, long key, EnvironmentsAddRobotParameters body = default(EnvironmentsAddRobotParameters), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.AddRobotByIdWithHttpMessagesAsync(key, body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }