/// <summary> /// Sends a PUT to '/api/scriptrun/{id}' /// </summary> /// <param name="id">a path parameter (no description)</param> /// <param name="model">a body parameter (no description)</param> /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param> /// <returns></returns> public static RestOperation UpdateScriptRun(string id, UpdateScriptRun model, string expand = null) { return new RestOperation("PUT", "api/scriptrun/" + id + "") { Content = model, QueryParams = { {"$expand", expand}, } }; }
public UpdateScriptRun Clone(bool includeLocalProperties) { var c = new UpdateScriptRun { ActualDuration = ActualDuration, AttemptToComplete = AttemptToComplete, FieldValues = FieldValues, Id = Id, WidgetValues = WidgetValues, StepResults = StepResults.Select(x=>x.Clone(includeLocalProperties)).ToList(), }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }
partial void CopyExtraPropertiesToClone(UpdateScriptRun clone, bool includeLocalProperties);
/// <summary> /// Sends a PUT to '/api/scriptrun/{id}' (asynchronous) /// </summary> /// <param name="id">a path parameter (no description)</param> /// <param name="model">a body parameter (no description)</param> /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param> /// <returns></returns> public virtual async Task<ScriptRun> UpdateScriptRunAsync(string id, UpdateScriptRun model, string expand = null) { var operation = Operations.UpdateScriptRun(id, model, expand); var response = await _client.SendAsync(operation.BuildRequest(_client)); EnsureSuccess(response); var result = await response.Content.ReadAsAsync<ScriptRun>(); return result; }