Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 /// <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>
 public static void AddRobotById(this IEnvironments operations, long key, EnvironmentsAddRobotParameters body = default(EnvironmentsAddRobotParameters), long?xUIPATHOrganizationUnitId = default(long?))
 {
     operations.AddRobotByIdAsync(key, body, xUIPATHOrganizationUnitId).GetAwaiter().GetResult();
 }