All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.katalon.testops.api.api.ProjectConfigurationResourceControllerApi Maven / Gradle / Ivy

package com.katalon.testops.api.api;

import com.katalon.testops.api.ApiClient;

import com.katalon.testops.api.model.ProjectConfigurationResource;
import com.katalon.testops.api.model.TimeZoneResource;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@Component("com.katalon.testops.api.api.ProjectConfigurationResourceControllerApi")
public class ProjectConfigurationResourceControllerApi {
    private ApiClient apiClient;

    public ProjectConfigurationResourceControllerApi() {
        this(new ApiClient());
    }

    @Autowired
    public ProjectConfigurationResourceControllerApi(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return apiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    /**
     * 
     * 
     * 

200 - OK * @param id (required) * @param name (required) * @return ProjectConfigurationResource * @throws RestClientException if an error occurs while attempting to invoke the API */ public ProjectConfigurationResource get14(Long id, String name) throws RestClientException { return get14WithHttpInfo(id, name).getBody(); } /** * * *

200 - OK * @param id (required) * @param name (required) * @return ResponseEntity<ProjectConfigurationResource> * @throws RestClientException if an error occurs while attempting to invoke the API */ public ResponseEntity get14WithHttpInfo(Long id, String name) throws RestClientException { Object postBody = null; // verify the required parameter 'id' is set if (id == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'id' when calling get14"); } // verify the required parameter 'name' is set if (name == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'name' when calling get14"); } // create path and map variables final Map uriVariables = new HashMap(); uriVariables.put("id", id); String path = apiClient.expandPath("/api/v1/project-configurations/{id}", uriVariables); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "name", name)); final String[] localVarAccepts = { "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] contentTypes = { }; final MediaType contentType = apiClient.selectHeaderContentType(contentTypes); String[] authNames = new String[] { "basicScheme" }; ParameterizedTypeReference returnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI(path, HttpMethod.GET, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, contentType, authNames, returnType); } /** * * *

200 - OK * @return List<TimeZoneResource> * @throws RestClientException if an error occurs while attempting to invoke the API */ public List listTimeZones() throws RestClientException { return listTimeZonesWithHttpInfo().getBody(); } /** * * *

200 - OK * @return ResponseEntity<List<TimeZoneResource>> * @throws RestClientException if an error occurs while attempting to invoke the API */ public ResponseEntity> listTimeZonesWithHttpInfo() throws RestClientException { Object postBody = null; String path = apiClient.expandPath("/api/v1/time-zones", Collections.emptyMap()); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); final String[] localVarAccepts = { "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] contentTypes = { }; final MediaType contentType = apiClient.selectHeaderContentType(contentTypes); String[] authNames = new String[] { "basicScheme" }; ParameterizedTypeReference> returnType = new ParameterizedTypeReference>() {}; return apiClient.invokeAPI(path, HttpMethod.GET, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, contentType, authNames, returnType); } /** * * *

200 - OK * @param id (required) * @param projectConfigurationResource (required) * @return ProjectConfigurationResource * @throws RestClientException if an error occurs while attempting to invoke the API */ public ProjectConfigurationResource update8(Long id, ProjectConfigurationResource projectConfigurationResource) throws RestClientException { return update8WithHttpInfo(id, projectConfigurationResource).getBody(); } /** * * *

200 - OK * @param id (required) * @param projectConfigurationResource (required) * @return ResponseEntity<ProjectConfigurationResource> * @throws RestClientException if an error occurs while attempting to invoke the API */ public ResponseEntity update8WithHttpInfo(Long id, ProjectConfigurationResource projectConfigurationResource) throws RestClientException { Object postBody = projectConfigurationResource; // verify the required parameter 'id' is set if (id == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'id' when calling update8"); } // verify the required parameter 'projectConfigurationResource' is set if (projectConfigurationResource == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'projectConfigurationResource' when calling update8"); } // create path and map variables final Map uriVariables = new HashMap(); uriVariables.put("id", id); String path = apiClient.expandPath("/api/v1/project-configurations/{id}", uriVariables); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); final String[] localVarAccepts = { "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] contentTypes = { "application/json" }; final MediaType contentType = apiClient.selectHeaderContentType(contentTypes); String[] authNames = new String[] { "basicScheme" }; ParameterizedTypeReference returnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI(path, HttpMethod.POST, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, contentType, authNames, returnType); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy