Exemplo n.º 1
0
 /// <summary>
 /// Delete a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> DeleteAsync(this IActionPlanTasks operations, string actionPlanTaskId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(actionPlanTaskId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// The unique identifer of the task.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ActionPlanTaskInstance> GetByIdAsync(this IActionPlanTasks operations, System.Guid actionPlanTaskId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetByIdWithHttpMessagesAsync(actionPlanTaskId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get a collection of task definitions
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskStatus'>
 /// An optional status used to filter the results. Possible values include:
 /// 'Unknown', 'Archived', 'InProgress', 'Recommended', 'Completed', 'Template'
 /// </param>
 public static ActionPlanTasksResponseActionPlanTaskInstance Get(this IActionPlanTasks operations, string actionPlanTaskStatus = default(string))
 {
     return(operations.GetAsync(actionPlanTaskStatus).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// The unique identifer of the task.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IActionPlanTasks operations, System.Guid actionPlanTaskId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(actionPlanTaskId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// The unique identifer of the task.
 /// </param>
 public static void Delete(this IActionPlanTasks operations, System.Guid actionPlanTaskId)
 {
     operations.DeleteAsync(actionPlanTaskId).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Get a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// The unique identifer of the task.
 /// </param>
 public static ActionPlanTaskInstance GetById(this IActionPlanTasks operations, System.Guid actionPlanTaskId)
 {
     return(operations.GetByIdAsync(actionPlanTaskId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Validate tracking for an action plan task
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='trackingValidation'>
 /// The tracking validation information.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ActionPlanTaskTrackingResponseActionPlanTaskTracking> ValidateTrackingAsync(this IActionPlanTasks operations, TrackingValidation trackingValidation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.ValidateTrackingWithHttpMessagesAsync(trackingValidation, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Validate tracking for an action plan task
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='trackingValidation'>
 /// The tracking validation information.
 /// </param>
 public static ActionPlanTaskTrackingResponseActionPlanTaskTracking ValidateTracking(this IActionPlanTasks operations, TrackingValidation trackingValidation)
 {
     return(operations.ValidateTrackingAsync(trackingValidation).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Patch an update for an action plan task
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTask'>
 /// The updated task
 /// </param>
 public static ActionPlanTaskInstance Update(this IActionPlanTasks operations, ActionPlanTaskInstance actionPlanTask)
 {
     return(operations.UpdateAsync(actionPlanTask).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get a collection of task definitions
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskStatus'>
 /// An optional status used to filter the results. Possible values include:
 /// 'Unknown', 'Archived', 'InProgress', 'Recommended', 'Completed', 'Template'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ActionPlanTasksResponseActionPlanTaskInstance> GetAsync(this IActionPlanTasks operations, string actionPlanTaskStatus = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(actionPlanTaskStatus, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 11
0
 /// <summary>
 /// Post a new action plan task
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTask'>
 /// </param>
 public static object Create(this IActionPlanTasks operations, ActionPlanTaskV2 actionPlanTask)
 {
     return(operations.CreateAsync(actionPlanTask).GetAwaiter().GetResult());
 }
Exemplo n.º 12
0
 /// <summary>
 /// Put an update for an action plan task
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTask'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ActionPlanTasksResponseActionPlanTaskInstanceV2> ReplaceAsync(this IActionPlanTasks operations, ActionPlanTaskInstanceV2 actionPlanTask, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.ReplaceWithHttpMessagesAsync(actionPlanTask, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 13
0
 /// <summary>
 /// Put an update for an action plan task
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTask'>
 /// </param>
 public static ActionPlanTasksResponseActionPlanTaskInstanceV2 Replace(this IActionPlanTasks operations, ActionPlanTaskInstanceV2 actionPlanTask)
 {
     return(operations.ReplaceAsync(actionPlanTask).GetAwaiter().GetResult());
 }
Exemplo n.º 14
0
 /// <summary>
 /// Get a collection of task definitions
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskStatus'>
 /// Possible values include: 'Unknown', 'Archived', 'InProgress',
 /// 'Recommended', 'Completed', 'Template'
 /// </param>
 /// <param name='maxPageSize'>
 /// The maximum number of entries to return per page. Defaults to 1000.
 /// </param>
 public static ActionPlanTasksResponseActionPlanTaskInstanceV2 Get(this IActionPlanTasks operations, string actionPlanTaskStatus = default(string), int?maxPageSize = default(int?))
 {
     return(operations.GetAsync(actionPlanTaskStatus, maxPageSize).GetAwaiter().GetResult());
 }
Exemplo n.º 15
0
 /// <summary>
 /// Delete a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// </param>
 public static object Delete(this IActionPlanTasks operations, string actionPlanTaskId)
 {
     return(operations.DeleteAsync(actionPlanTaskId).GetAwaiter().GetResult());
 }
Exemplo n.º 16
0
 /// <summary>
 /// Get a task by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='actionPlanTaskId'>
 /// </param>
 public static ActionPlanTaskInstanceV2 GetById(this IActionPlanTasks operations, string actionPlanTaskId)
 {
     return(operations.GetByIdAsync(actionPlanTaskId).GetAwaiter().GetResult());
 }