/// <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();
 }
 /// <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>
 public static void AddRobotById(this IEnvironments operations, long id, AddRobotParameters addRobotParameters = default(AddRobotParameters))
 {
     operations.AddRobotByIdAsync(id, addRobotParameters).GetAwaiter().GetResult();
 }
Exemple #3
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='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static void AddRobotById(this IEnvironments operations, long id, AddRobotParameters addRobotParameters = default(AddRobotParameters), long?xUIPATHOrganizationUnitId = default(long?))
 {
     operations.AddRobotByIdAsync(id, addRobotParameters, xUIPATHOrganizationUnitId).GetAwaiter().GetResult();
 }