/// <summary>
 /// Sends a POST to '/api/agilerun/{runId}/step/{stepId}/incidents'
 /// </summary>
 /// <param name="runId">a path parameter (no description)</param>
 /// <param name="stepId">a path parameter (no description)</param>
 /// <param name="model">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation CreateAgileRunStepIncidentLink(string runId, string stepId, CreateAgileRunStepIncident model)
 {
     return new RestOperation("POST", "api/agilerun/" + runId + "/step/" + stepId + "/incidents")
         {
             Content = model
         };
 }
 public CreateAgileRunStepIncident Clone(bool includeLocalProperties)
 {
     var c = new CreateAgileRunStepIncident
             {
                 IncidentId = IncidentId,
                 RunId = RunId,
                 StepId = StepId,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
partial         void CopyExtraPropertiesToClone(CreateAgileRunStepIncident clone, bool includeLocalProperties);
		/// <summary>
        /// Sends a POST to '/api/agilerun/{runId}/step/{stepId}/incidents'  (asynchronous)
        /// </summary>
        /// <param name="runId">a path parameter (no description)</param>
        /// <param name="stepId">a path parameter (no description)</param>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual async Task<AgileRunStepIncident> CreateAgileRunStepIncidentLinkAsync(string runId, string stepId, CreateAgileRunStepIncident model)
        {
            var operation = Operations.CreateAgileRunStepIncidentLink(runId, stepId, model);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<AgileRunStepIncident>();
			return result;
						
		}