/// <summary> /// Modify an existing direct_reflection object Modifies any parameter (except uuid) of a direct_reflection 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 direct_reflection recipe.</param> /// <param name="recipe">A analysis_grid JSON objectr with a uuid key.</param> /// <returns>Task of ApiResponse</returns> public async System.Threading.Tasks.Task <ApiResponse <Object> > RecipeDirectReflectionGridbasedUuidPutAsyncWithHttpInfo(string uuid, DirectReflectionGridBasedSchema recipe) { // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException(400, "Missing required parameter 'uuid' when calling DirectReflectionRecipeApi->RecipeDirectReflectionGridbasedUuidPut"); } // verify the required parameter 'recipe' is set if (recipe == null) { throw new ApiException(400, "Missing required parameter 'recipe' when calling DirectReflectionRecipeApi->RecipeDirectReflectionGridbasedUuidPut"); } var localVarPath = "/recipe/direct_reflection/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("RecipeDirectReflectionGridbasedUuidPut", 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 direct_reflection object Modifies any parameter (except uuid) of a direct_reflection 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 direct_reflection recipe.</param> /// <param name="recipe">A analysis_grid JSON objectr with a uuid key.</param> /// <returns>Task of void</returns> public async System.Threading.Tasks.Task RecipeDirectReflectionGridbasedUuidPutAsync(string uuid, DirectReflectionGridBasedSchema recipe) { await RecipeDirectReflectionGridbasedUuidPutAsyncWithHttpInfo(uuid, recipe); }
/// <summary> /// Create a new direct_reflection object Adds a new direct_reflection object to the list /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="recipe">A direct_reflection JSON objectr with a uuid key.</param> /// <returns>Task of InlineResponse204</returns> public async System.Threading.Tasks.Task <InlineResponse204> RecipeDirectReflectionGridbasedPostAsync(DirectReflectionGridBasedSchema recipe) { ApiResponse <InlineResponse204> localVarResponse = await RecipeDirectReflectionGridbasedPostAsyncWithHttpInfo(recipe); return(localVarResponse.Data); }
/// <summary> /// Modify an existing direct_reflection object Modifies any parameter (except uuid) of a direct_reflection 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 direct_reflection recipe.</param> /// <param name="recipe">A analysis_grid JSON objectr with a uuid key.</param> /// <returns></returns> public void RecipeDirectReflectionGridbasedUuidPut(string uuid, DirectReflectionGridBasedSchema recipe) { RecipeDirectReflectionGridbasedUuidPutWithHttpInfo(uuid, recipe); }
/// <summary> /// Create a new direct_reflection object Adds a new direct_reflection object to the list /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="recipe">A direct_reflection JSON objectr with a uuid key.</param> /// <returns>InlineResponse204</returns> public InlineResponse204 RecipeDirectReflectionGridbasedPost(DirectReflectionGridBasedSchema recipe) { ApiResponse <InlineResponse204> localVarResponse = RecipeDirectReflectionGridbasedPostWithHttpInfo(recipe); return(localVarResponse.Data); }