/// <summary> /// Modify an existing radiation object Modifies any parameter (except uuid) of a radiation recipe object by completely replacing the definition object. A finer grain method can be set up later. /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="uuid">The unique identifier of the radiation recipe.</param> /// <param name="recipe">A radiation JSON objectr with a uuid key.</param> /// <returns>Task of ApiResponse</returns> public async System.Threading.Tasks.Task <ApiResponse <Object> > RecipeRadiationGridbasedUuidPutAsyncWithHttpInfo(string uuid, RadiationGridBasedSchema recipe) { // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException(400, "Missing required parameter 'uuid' when calling RadiationRecipeApi->RecipeRadiationGridbasedUuidPut"); } // verify the required parameter 'recipe' is set if (recipe == null) { throw new ApiException(400, "Missing required parameter 'recipe' when calling RadiationRecipeApi->RecipeRadiationGridbasedUuidPut"); } var localVarPath = "/recipe/radiation/gridbased/{uuid}"; var localVarPathParams = new Dictionary <String, String>(); var localVarQueryParams = new List <KeyValuePair <String, String> >(); var localVarHeaderParams = new Dictionary <String, String>(Configuration.DefaultHeader); var localVarFormParams = new Dictionary <String, String>(); var localVarFileParams = new Dictionary <String, FileParameter>(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) { localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); } if (uuid != null) { localVarPathParams.Add("uuid", Configuration.ApiClient.ParameterToString(uuid)); // path parameter } if (recipe != null && recipe.GetType() != typeof(byte[])) { localVarPostBody = Configuration.ApiClient.Serialize(recipe); // http body (model) parameter } else { localVarPostBody = recipe; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("RecipeRadiationGridbasedUuidPut", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <Object>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), null)); }
/// <summary> /// Modify an existing radiation object Modifies any parameter (except uuid) of a radiation recipe object by completely replacing the definition object. A finer grain method can be set up later. /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="uuid">The unique identifier of the radiation recipe.</param> /// <param name="recipe">A radiation JSON objectr with a uuid key.</param> /// <returns>Task of void</returns> public async System.Threading.Tasks.Task RecipeRadiationGridbasedUuidPutAsync(string uuid, RadiationGridBasedSchema recipe) { await RecipeRadiationGridbasedUuidPutAsyncWithHttpInfo(uuid, recipe); }
/// <summary> /// Create a new radiation object Adds a new radiation object to the list /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="recipe">A radiation JSON objectr with a uuid key.</param> /// <returns>Task of InlineResponse204</returns> public async System.Threading.Tasks.Task <InlineResponse204> RecipeRadiationGridbasedPostAsync(RadiationGridBasedSchema recipe) { ApiResponse <InlineResponse204> localVarResponse = await RecipeRadiationGridbasedPostAsyncWithHttpInfo(recipe); return(localVarResponse.Data); }
/// <summary> /// Modify an existing radiation object Modifies any parameter (except uuid) of a radiation recipe object by completely replacing the definition object. A finer grain method can be set up later. /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="uuid">The unique identifier of the radiation recipe.</param> /// <param name="recipe">A radiation JSON objectr with a uuid key.</param> /// <returns></returns> public void RecipeRadiationGridbasedUuidPut(string uuid, RadiationGridBasedSchema recipe) { RecipeRadiationGridbasedUuidPutWithHttpInfo(uuid, recipe); }
/// <summary> /// Create a new radiation object Adds a new radiation object to the list /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="recipe">A radiation JSON objectr with a uuid key.</param> /// <returns>InlineResponse204</returns> public InlineResponse204 RecipeRadiationGridbasedPost(RadiationGridBasedSchema recipe) { ApiResponse <InlineResponse204> localVarResponse = RecipeRadiationGridbasedPostWithHttpInfo(recipe); return(localVarResponse.Data); }