예제 #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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ToggleEnabledStatusAsync(this IRobots operations, RobotsToggleEnabledStatusParameters body = default(RobotsToggleEnabledStatusParameters), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.ToggleEnabledStatusWithHttpMessagesAsync(body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #2
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();
 }