/// <summary>
 /// Sends a PATCH to '/api/automatedtestrun/{runId}/node/{nodeId}'
 /// </summary>
 /// <param name="runId">a path parameter (no description)</param>
 /// <param name="nodeId">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 PatchAutomatedTestRunNode(string runId, string nodeId, EditResultNode model, string expand = null)
 {
     return new RestOperation("PATCH", "api/automatedtestrun/" + runId + "/node/" + nodeId + "")
         {
             Content = model,                    QueryParams =
                 {
                      {"$expand", expand},
                 }
         };
 }
 public EditResultNode Clone(bool includeLocalProperties)
 {
     var c = new EditResultNode
             {
                 Notes = Notes,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
partial         void CopyExtraPropertiesToClone(EditResultNode clone, bool includeLocalProperties);
		/// <summary>
        /// Sends a PATCH to '/api/automatedtestrun/{runId}/node/{nodeId}'  (asynchronous)
        /// </summary>
        /// <param name="runId">a path parameter (no description)</param>
        /// <param name="nodeId">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<ResultNode> PatchAutomatedTestRunNodeAsync(string runId, string nodeId, EditResultNode model, string expand = null)
        {
            var operation = Operations.PatchAutomatedTestRunNode(runId, nodeId, model, expand);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<ResultNode>();
			return result;
						
		}