/// <summary> /// Gets the process schedules. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='filter'> /// Filters the results, based on a Boolean condition. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='orderby'> /// Sorts the results. /// </param> /// <param name='top'> /// Returns only the first n results. /// </param> /// <param name='skip'> /// Skips the first n results. /// </param> /// <param name='count'> /// Includes a count of the matching results in the response. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueIEnumerableProcessScheduleDto> GetAsync(this IProcessSchedules operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a single process schedule based on its key. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </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 <ProcessScheduleDto> GetByIdAsync(this IProcessSchedules operations, long key, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByIdWithHttpMessagesAsync(key, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Edits a process schedule. /// </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='key'> /// </param> /// <param name='body'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ProcessScheduleDto> PutByIdAsync(this IProcessSchedules operations, long key, ProcessScheduleDto body = default(ProcessScheduleDto), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(key, body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Enables/disables a group of schedules. /// </summary> /// <remarks> /// Required permissions: Schedules.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='setEnabledParameters'> /// <para />Enabled - If true the schedules will be enabled, if false the /// schedules will be disabled. /// <para />ScheduleIds - The collection of ids of the affected /// schedules. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataResponseBoolean> SetEnabledAsync(this IProcessSchedules operations, SetEnabledParameters setEnabledParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.SetEnabledWithHttpMessagesAsync(setEnabledParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Edits a process schedule. /// </summary> /// <remarks> /// Required permissions: Schedules.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='processScheduleDto'> /// The entity to put /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ProcessScheduleDto> PutByIdAsync(this IProcessSchedules operations, long id, ProcessScheduleDto processScheduleDto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(id, processScheduleDto, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates a new process schedule. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Write. /// /// Required permissions: Schedules.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='processScheduleDto'> /// The entity to post /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ProcessScheduleDto> PostAsync(this IProcessSchedules operations, ProcessScheduleDto processScheduleDto, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(processScheduleDto, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a single process schedule based on its key. /// </summary> /// <remarks> /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ProcessScheduleDto> GetByIdAsync(this IProcessSchedules operations, long id, string expand = default(string), string select = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetByIdWithHttpMessagesAsync(id, expand, select, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <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'> /// <para />Enabled - If true the schedules will be enabled, if false the /// schedules will be disabled. /// <para />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); } }
/// <summary> /// Edits a process schedule. /// </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='id'> /// key: Id /// </param> /// <param name='processScheduleDto'> /// The entity to put /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static ProcessScheduleDto PutById(this IProcessSchedules operations, long id, ProcessScheduleDto processScheduleDto, long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.PutByIdAsync(id, processScheduleDto, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Gets the process schedules. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='filter'> /// Filters the results, based on a Boolean condition. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='orderby'> /// Sorts the results. /// </param> /// <param name='top'> /// Returns only the first n results. /// </param> /// <param name='skip'> /// Skips the first n results. /// </param> /// <param name='count'> /// Includes a count of the matching results in the response. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static ODataValueIEnumerableProcessScheduleDto Get(this IProcessSchedules operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.GetAsync(expand, filter, select, orderby, top, skip, count, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Returns a collection of all the ids of the robots associated to an schedule /// based on schedule Id. /// </summary> /// <remarks> /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The Id of the schedule for which the robot ids are fetched. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataResponseListInt64> GetRobotIdsForScheduleByKeyAsync(this IProcessSchedules operations, long key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetRobotIdsForScheduleByKeyWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes a process schedule. /// </summary> /// <remarks> /// Required permissions: Schedules.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='ifMatch'> /// If-Match header /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteByIdAsync(this IProcessSchedules operations, long id, string ifMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.DeleteByIdWithHttpMessagesAsync(id, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Creates a new process schedule. /// </summary> /// <remarks> /// Required permissions: Schedules.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='processScheduleDto'> /// The entity to post /// </param> public static ProcessScheduleDto Post(this IProcessSchedules operations, ProcessScheduleDto processScheduleDto) { return(operations.PostAsync(processScheduleDto).GetAwaiter().GetResult()); }
/// <summary> /// Gets a single process schedule based on its key. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static ProcessScheduleDto GetById(this IProcessSchedules operations, long id, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.GetByIdAsync(id, expand, select, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <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'> /// <para />Enabled - If true the schedules will be enabled, if false the /// schedules will be disabled. /// <para />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()); }
/// <summary> /// Returns a collection of all the ids of the robots associated to an schedule /// based on schedule Id. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The Id of the schedule for which the robot ids are fetched. /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='filter'> /// Restricts the set of items returned. The maximum number of expressions is /// 100. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='orderby'> /// Specifies the order in which items are returned. The maximum number of /// expressions is 5. /// </param> /// <param name='count'> /// Indicates whether the total count of items within a collection are returned /// in the result. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueOfIEnumerableOfInt64> GetRobotIdsForScheduleByKeyAsync(this IProcessSchedules operations, long key, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRobotIdsForScheduleByKeyWithHttpMessagesAsync(key, expand, filter, select, orderby, count, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a collection of all the ids of the robots associated to an schedule /// based on schedule Id. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The Id of the schedule for which the robot ids are fetched. /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='filter'> /// Restricts the set of items returned. The maximum number of expressions is /// 100. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='orderby'> /// Specifies the order in which items are returned. The maximum number of /// expressions is 5. /// </param> /// <param name='count'> /// Indicates whether the total count of items within a collection are returned /// in the result. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static ODataValueOfIEnumerableOfInt64 GetRobotIdsForScheduleByKey(this IProcessSchedules operations, long key, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.GetRobotIdsForScheduleByKeyAsync(key, expand, filter, select, orderby, count, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a process schedule. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Write. /// /// Required permissions: Schedules.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteByIdAsync(this IProcessSchedules operations, long key, long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteByIdWithHttpMessagesAsync(key, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Gets a single process schedule based on its key. /// </summary> /// <remarks> /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> public static ProcessScheduleDto GetById(this IProcessSchedules operations, long id, string expand = default(string), string select = default(string)) { return(operations.GetByIdAsync(id, expand, select).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a process schedule. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Write. /// /// Required permissions: Schedules.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='ifMatch'> /// If-Match header /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static void DeleteById(this IProcessSchedules operations, long id, string ifMatch = default(string), long?xUIPATHOrganizationUnitId = default(long?)) { operations.DeleteByIdAsync(id, ifMatch, xUIPATHOrganizationUnitId).GetAwaiter().GetResult(); }
/// <summary> /// Edits a process schedule. /// </summary> /// <remarks> /// Required permissions: Schedules.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='processScheduleDto'> /// The entity to put /// </param> public static ProcessScheduleDto PutById(this IProcessSchedules operations, long id, ProcessScheduleDto processScheduleDto) { return(operations.PutByIdAsync(id, processScheduleDto).GetAwaiter().GetResult()); }
/// <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='setEnabledParameters'> /// <para />Enabled - If true the schedules will be enabled, if false the /// schedules will be disabled. /// <para />ScheduleIds - The collection of ids of the affected /// schedules. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static ODataValueBoolean SetEnabled(this IProcessSchedules operations, SetEnabledParameters setEnabledParameters, long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.SetEnabledAsync(setEnabledParameters, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a process schedule. /// </summary> /// <remarks> /// Required permissions: Schedules.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='ifMatch'> /// If-Match header /// </param> public static void DeleteById(this IProcessSchedules operations, long id, string ifMatch = default(string)) { operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult(); }
/// <summary> /// Returns a collection of all the ids of the robots associated to an schedule /// based on schedule Id. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The Id of the schedule for which the robot ids are fetched. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static ODataValueIEnumerableInt64 GetRobotIdsForScheduleByKey(this IProcessSchedules operations, long key, long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.GetRobotIdsForScheduleByKeyAsync(key, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Enables/disables a group of schedules. /// </summary> /// <remarks> /// Required permissions: Schedules.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='setEnabledParameters'> /// <para />Enabled - If true the schedules will be enabled, if false the /// schedules will be disabled. /// <para />ScheduleIds - The collection of ids of the affected /// schedules. /// </param> public static ODataResponseBoolean SetEnabled(this IProcessSchedules operations, SetEnabledParameters setEnabledParameters) { return(operations.SetEnabledAsync(setEnabledParameters).GetAwaiter().GetResult()); }
/// <summary> /// Returns a collection of all the ids of the robots associated to an schedule /// based on schedule Id. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Read. /// /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The Id of the schedule for which the robot ids are fetched. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueIEnumerableInt64> GetRobotIdsForScheduleByKeyAsync(this IProcessSchedules operations, long key, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetRobotIdsForScheduleByKeyWithHttpMessagesAsync(key, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a collection of all the ids of the robots associated to an schedule /// based on schedule Id. /// </summary> /// <remarks> /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// The Id of the schedule for which the robot ids are fetched. /// </param> public static ODataResponseListInt64 GetRobotIdsForScheduleByKey(this IProcessSchedules operations, long key) { return(operations.GetRobotIdsForScheduleByKeyAsync(key).GetAwaiter().GetResult()); }
/// <summary> /// Activates a process schedule associated with a queue /// </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='id'> /// key: Id /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static void ActivateById(this IProcessSchedules operations, long id, long?xUIPATHOrganizationUnitId = default(long?)) { operations.ActivateByIdAsync(id, xUIPATHOrganizationUnitId).GetAwaiter().GetResult(); }
/// <summary> /// Gets the process schedules. /// </summary> /// <remarks> /// Required permissions: Schedules.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='filter'> /// Filters the results, based on a Boolean condition. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='orderby'> /// Sorts the results. /// </param> /// <param name='top'> /// Returns only the first n results. /// </param> /// <param name='skip'> /// Skips the first n results. /// </param> /// <param name='count'> /// Includes a count of the matching results in the response. /// </param> public static ODataResponseListProcessScheduleDto GetProcessSchedules(this IProcessSchedules operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?)) { return(operations.GetProcessSchedulesAsync(expand, filter, select, orderby, top, skip, count).GetAwaiter().GetResult()); }
/// <summary> /// Activates a process schedule associated with a queue /// </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='id'> /// key: Id /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ActivateByIdAsync(this IProcessSchedules operations, long id, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.ActivateByIdWithHttpMessagesAsync(id, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }