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

io.logicdrop.openapi.jersey.api.ProjectServicesApi Maven / Gradle / Ivy

package io.logicdrop.openapi.jersey.api;

import io.logicdrop.openapi.jersey.ApiException;
import io.logicdrop.openapi.jersey.ApiClient;
import io.logicdrop.openapi.jersey.ApiResponse;
import io.logicdrop.openapi.jersey.Configuration;
import io.logicdrop.openapi.jersey.Pair;

import javax.ws.rs.core.GenericType;

import io.logicdrop.openapi.models.Archive;
import io.logicdrop.openapi.models.ArtifactReference;
import io.logicdrop.openapi.models.ArtifactResponse;
import io.logicdrop.openapi.models.DataResult;
import io.logicdrop.openapi.models.DeleteArtifactRequest;
import io.logicdrop.openapi.models.InlineResponse200;
import io.logicdrop.openapi.models.Project;
import io.logicdrop.openapi.models.UpdateArtifactRequest;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class ProjectServicesApi {
  private ApiClient apiClient;

  public ProjectServicesApi() {
    this(Configuration.getDefaultApiClient());
  }

  public ProjectServicesApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  public ApiClient getApiClient() {
    return apiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  /**
   * Delete archive
   * 
   * @param client Client name (required)
   * @param project Project name (required)
   * @param id Archive Id (required)
   * @return DataResult
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public DataResult deleteArchive(String client, String project, String id) throws ApiException { return deleteArchiveWithHttpInfo(client, project, id).getData(); } /** * Delete archive * * @param client Client name (required) * @param project Project name (required) * @param id Archive Id (required) * @return ApiResponse<DataResult> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse deleteArchiveWithHttpInfo(String client, String project, String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling deleteArchive"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deleteArchive"); } // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling deleteArchive"); } // create path and map variables String localVarPath = "/projects/{client}/{project}/archives/{id}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.deleteArchive", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete project * * @param client Client name (required) * @param project Project name (required) * @return DeleteArtifactRequest * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public DeleteArtifactRequest deleteProject(String client, String project) throws ApiException { return deleteProjectWithHttpInfo(client, project).getData(); } /** * Delete project * * @param client Client name (required) * @param project Project name (required) * @return ApiResponse<DeleteArtifactRequest> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse deleteProjectWithHttpInfo(String client, String project) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling deleteProject"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling deleteProject"); } // create path and map variables String localVarPath = "/projects/{client}/{project}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.deleteProject", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete projects * * @param client Client name (required) * @param deleteArtifactRequest Delete request (required) * @return ArtifactResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ArtifactResponse deleteProjects(String client, DeleteArtifactRequest deleteArtifactRequest) throws ApiException { return deleteProjectsWithHttpInfo(client, deleteArtifactRequest).getData(); } /** * Delete projects * * @param client Client name (required) * @param deleteArtifactRequest Delete request (required) * @return ApiResponse<ArtifactResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse deleteProjectsWithHttpInfo(String client, DeleteArtifactRequest deleteArtifactRequest) throws ApiException { Object localVarPostBody = deleteArtifactRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling deleteProjects"); } // verify the required parameter 'deleteArtifactRequest' is set if (deleteArtifactRequest == null) { throw new ApiException(400, "Missing the required parameter 'deleteArtifactRequest' when calling deleteProjects"); } // create path and map variables String localVarPath = "/projects/{client}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.deleteProjects", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get archive * * @param client Client name (required) * @param project Project name (required) * @param id Archive Id (required) * @return Archive * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Archive -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public Archive getArchive(String client, String project, String id) throws ApiException { return getArchiveWithHttpInfo(client, project, id).getData(); } /** * Get archive * * @param client Client name (required) * @param project Project name (required) * @param id Archive Id (required) * @return ApiResponse<Archive> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Archive -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getArchiveWithHttpInfo(String client, String project, String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling getArchive"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getArchive"); } // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling getArchive"); } // create path and map variables String localVarPath = "/projects/{client}/{project}/archives/{id}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.getArchive", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get archive content * * @param client Client name (required) * @param project Project name (required) * @param id Archive Id (required) * @return InlineResponse200 * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Archived content -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public InlineResponse200 getArchiveContent(String client, String project, String id) throws ApiException { return getArchiveContentWithHttpInfo(client, project, id).getData(); } /** * Get archive content * * @param client Client name (required) * @param project Project name (required) * @param id Archive Id (required) * @return ApiResponse<InlineResponse200> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Archived content -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getArchiveContentWithHttpInfo(String client, String project, String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling getArchiveContent"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getArchiveContent"); } // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling getArchiveContent"); } // create path and map variables String localVarPath = "/projects/{client}/{project}/archives/{id}/content" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.getArchiveContent", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get project * Get a project * @param client Client name (required) * @param project Project name (required) * @return Project * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved record -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public Project getProject(String client, String project) throws ApiException { return getProjectWithHttpInfo(client, project).getData(); } /** * Get project * Get a project * @param client Client name (required) * @param project Project name (required) * @return ApiResponse<Project> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved record -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getProjectWithHttpInfo(String client, String project) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling getProject"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling getProject"); } // create path and map variables String localVarPath = "/projects/{client}/{project}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.getProject", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List archives * * @param client Client name (required) * @param project Project name (required) * @return List<Archive> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Archives -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listArchives(String client, String project) throws ApiException { return listArchivesWithHttpInfo(client, project).getData(); } /** * List archives * * @param client Client name (required) * @param project Project name (required) * @return ApiResponse<List<Archive>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Archives -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listArchivesWithHttpInfo(String client, String project) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling listArchives"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling listArchives"); } // create path and map variables String localVarPath = "/projects/{client}/{project}/archives" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI("ProjectServicesApi.listArchives", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List projects * Get all projects using optional simple filters * @param client Client name (required) * @return List<Project> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved records -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listProjects(String client) throws ApiException { return listProjectsWithHttpInfo(client).getData(); } /** * List projects * Get all projects using optional simple filters * @param client Client name (required) * @return ApiResponse<List<Project>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved records -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listProjectsWithHttpInfo(String client) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling listProjects"); } // create path and map variables String localVarPath = "/projects/{client}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI("ProjectServicesApi.listProjects", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List references * Get project references * @param client Client name (required) * @param project Project name (required) * @return List<ArtifactReference> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved references -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listReferences(String client, String project) throws ApiException { return listReferencesWithHttpInfo(client, project).getData(); } /** * List references * Get project references * @param client Client name (required) * @param project Project name (required) * @return ApiResponse<List<ArtifactReference>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved references -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listReferencesWithHttpInfo(String client, String project) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling listReferences"); } // verify the required parameter 'project' is set if (project == null) { throw new ApiException(400, "Missing the required parameter 'project' when calling listReferences"); } // create path and map variables String localVarPath = "/projects/{client}/{project}/references" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "project" + "\\}", apiClient.escapeString(project.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI("ProjectServicesApi.listReferences", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Save project * Saves or creates a single project (overwrite) * @param client Client name (required) * @param model Project (required) * @return Project * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved record -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public Project saveProject(String client, Project model) throws ApiException { return saveProjectWithHttpInfo(client, model).getData(); } /** * Save project * Saves or creates a single project (overwrite) * @param client Client name (required) * @param model Project (required) * @return ApiResponse<Project> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The saved record -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
409 Version Conflict -
500 Backend Error -
*/ public ApiResponse saveProjectWithHttpInfo(String client, Project model) throws ApiException { Object localVarPostBody = model; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling saveProject"); } // verify the required parameter 'model' is set if (model == null) { throw new ApiException(400, "Missing the required parameter 'model' when calling saveProject"); } // create path and map variables String localVarPath = "/projects/{client}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.saveProject", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update project * Updates one project * @param client Client name (required) * @param updateArtifactRequest Update request (required) * @return ArtifactResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ArtifactResponse updateProject(String client, UpdateArtifactRequest updateArtifactRequest) throws ApiException { return updateProjectWithHttpInfo(client, updateArtifactRequest).getData(); } /** * Update project * Updates one project * @param client Client name (required) * @param updateArtifactRequest Update request (required) * @return ApiResponse<ArtifactResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse updateProjectWithHttpInfo(String client, UpdateArtifactRequest updateArtifactRequest) throws ApiException { Object localVarPostBody = updateArtifactRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling updateProject"); } // verify the required parameter 'updateArtifactRequest' is set if (updateArtifactRequest == null) { throw new ApiException(400, "Missing the required parameter 'updateArtifactRequest' when calling updateProject"); } // create path and map variables String localVarPath = "/projects/{client}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.updateProject", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update projects * Updates multiple projects * @param client Client name (required) * @param updateArtifactRequest Update request (required) * @return ArtifactResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ArtifactResponse updateProjects(String client, UpdateArtifactRequest updateArtifactRequest) throws ApiException { return updateProjectsWithHttpInfo(client, updateArtifactRequest).getData(); } /** * Update projects * Updates multiple projects * @param client Client name (required) * @param updateArtifactRequest Update request (required) * @return ApiResponse<ArtifactResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Results of the operation -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse updateProjectsWithHttpInfo(String client, UpdateArtifactRequest updateArtifactRequest) throws ApiException { Object localVarPostBody = updateArtifactRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling updateProjects"); } // verify the required parameter 'updateArtifactRequest' is set if (updateArtifactRequest == null) { throw new ApiException(400, "Missing the required parameter 'updateArtifactRequest' when calling updateProjects"); } // create path and map variables String localVarPath = "/projects/{client}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ProjectServicesApi.updateProjects", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy