示例#1
0
 /// <summary>
 /// Toggles the status of the robots (enabled/disabled)
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Robots or Robots.Write.
 ///
 /// Required permissions: Robots.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// &lt;para /&gt; disabled - If true the robots will be enabled, if false the
 /// robots will be disabled.
 /// &lt;para /&gt; robotIds - The collection of ids of the affected robots.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static void ToggleEnabledStatus(this IRobots operations, RobotsToggleEnabledStatusParameters body = default(RobotsToggleEnabledStatusParameters), long?xUIPATHOrganizationUnitId = default(long?))
 {
     operations.ToggleEnabledStatusAsync(body, xUIPATHOrganizationUnitId).GetAwaiter().GetResult();
 }