/// <summary> /// Update the status of an Execution to `ended`. /// </summary> /// <param name="pathFlowSid"> The SID of the Flow </param> /// <param name="pathSid"> The SID of the Execution resource to update </param> /// <param name="status"> The status of the Execution </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Execution </returns> public static ExecutionResource Update(string pathFlowSid, string pathSid, ExecutionResource.StatusEnum status, ITwilioRestClient client = null) { var options = new UpdateExecutionOptions(pathFlowSid, pathSid, status); return(Update(options, client)); }
/// <summary> /// Update the status of an Execution to `ended`. /// </summary> /// <param name="pathFlowSid"> The SID of the Flow </param> /// <param name="pathSid"> The SID of the Execution resource to update </param> /// <param name="status"> The status of the Execution </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Execution </returns> public static async System.Threading.Tasks.Task <ExecutionResource> UpdateAsync(string pathFlowSid, string pathSid, ExecutionResource.StatusEnum status, ITwilioRestClient client = null) { var options = new UpdateExecutionOptions(pathFlowSid, pathSid, status); return(await UpdateAsync(options, client)); }
/// <summary> /// Construct a new UpdateExecutionOptions /// </summary> /// <param name="pathFlowSid"> The SID of the Flow </param> /// <param name="pathSid"> The SID of the Execution resource to update </param> /// <param name="status"> The status of the Execution </param> public UpdateExecutionOptions(string pathFlowSid, string pathSid, ExecutionResource.StatusEnum status) { PathFlowSid = pathFlowSid; PathSid = pathSid; Status = status; }