コード例 #1
0
 /// <summary>
 /// Enables/disables a group of schedules.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Jobs or Jobs.Write.
 ///
 /// Required permissions: Schedules.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// &lt;para /&gt;Enabled - If true the schedules will be enabled, if false the
 /// schedules will be disabled.
 /// &lt;para /&gt;ScheduleIds - The collection of ids of the affected
 /// schedules.
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataValueOfBoolean> SetEnabledAsync(this IProcessSchedules operations, ProcessSetEnabledRequest body = default(ProcessSetEnabledRequest), string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SetEnabledWithHttpMessagesAsync(body, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Enables/disables a group of schedules.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Jobs or Jobs.Write.
 ///
 /// Required permissions: Schedules.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// &lt;para /&gt;Enabled - If true the schedules will be enabled, if false the
 /// schedules will be disabled.
 /// &lt;para /&gt;ScheduleIds - The collection of ids of the affected
 /// schedules.
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static ODataValueOfBoolean SetEnabled(this IProcessSchedules operations, ProcessSetEnabledRequest body = default(ProcessSetEnabledRequest), string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.SetEnabledAsync(body, expand, select, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }