/// <summary>
 /// Create or update service task
 /// </summary>
 /// <remarks>
 /// The service tasks resource is a nested, proxy-only resource representing
 /// work performed by a DMS instance. The PATCH method updates an existing
 /// service task, but since service tasks have no mutable custom properties,
 /// there is little reason to do so.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='parameters'>
 /// Information about the task
 /// </param>
 /// <param name='groupName'>
 /// Name of the resource group
 /// </param>
 /// <param name='serviceName'>
 /// Name of the service
 /// </param>
 /// <param name='taskName'>
 /// Name of the Task
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ProjectTask> UpdateAsync(this IServiceTasksOperations operations, ProjectTask parameters, string groupName, string serviceName, string taskName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(parameters, groupName, serviceName, taskName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }