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

io.logicdrop.openapi.jersey.api.PackageServicesApi 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.ArtifactResponse;
import io.logicdrop.openapi.models.Bundle;
import java.io.File;
import io.logicdrop.openapi.models.ScaffoldRequest;
import io.logicdrop.openapi.models.ScaffoldResponse;

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


public class PackageServicesApi {
  private ApiClient apiClient;

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

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

  public ApiClient getApiClient() {
    return apiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  /**
   * Delete package
   * Delete package
   * @param client Client name (required)
   * @param _package Package name (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 deletePackage(String client, String _package) throws ApiException { return deletePackageWithHttpInfo(client, _package).getData(); } /** * Delete package * Delete package * @param client Client name (required) * @param _package Package name (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 deletePackageWithHttpInfo(String client, String _package) 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 deletePackage"); } // verify the required parameter '_package' is set if (_package == null) { throw new ApiException(400, "Missing the required parameter '_package' when calling deletePackage"); } // create path and map variables String localVarPath = "/packages/{client}/{package}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "package" + "\\}", apiClient.escapeString(_package.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("PackageServicesApi.deletePackage", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get package * Get package * @param client Client name (required) * @param _package Package name (required) * @return Bundle * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The package -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public Bundle getPackage(String client, String _package) throws ApiException { return getPackageWithHttpInfo(client, _package).getData(); } /** * Get package * Get package * @param client Client name (required) * @param _package Package name (required) * @return ApiResponse<Bundle> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The package -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse getPackageWithHttpInfo(String client, String _package) 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 getPackage"); } // verify the required parameter '_package' is set if (_package == null) { throw new ApiException(400, "Missing the required parameter '_package' when calling getPackage"); } // create path and map variables String localVarPath = "/packages/{client}/{package}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "package" + "\\}", apiClient.escapeString(_package.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("PackageServicesApi.getPackage", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * List packages * Get packages * @param client Client name (required) * @return List<Bundle> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved packages -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listPackages(String client) throws ApiException { return listPackagesWithHttpInfo(client).getData(); } /** * List packages * Get packages * @param client Client name (required) * @return ApiResponse<List<Bundle>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved packages -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listPackagesWithHttpInfo(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 listPackages"); } // create path and map variables String localVarPath = "/packages/{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("PackageServicesApi.listPackages", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Scaffold project * Scaffold project * @param client Client name (required) * @param scaffoldRequest Scaffold request (required) * @return ScaffoldResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Scaffold response -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ScaffoldResponse scaffoldProject(String client, ScaffoldRequest scaffoldRequest) throws ApiException { return scaffoldProjectWithHttpInfo(client, scaffoldRequest).getData(); } /** * Scaffold project * Scaffold project * @param client Client name (required) * @param scaffoldRequest Scaffold request (required) * @return ApiResponse<ScaffoldResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Scaffold response -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse scaffoldProjectWithHttpInfo(String client, ScaffoldRequest scaffoldRequest) throws ApiException { Object localVarPostBody = scaffoldRequest; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling scaffoldProject"); } // verify the required parameter 'scaffoldRequest' is set if (scaffoldRequest == null) { throw new ApiException(400, "Missing the required parameter 'scaffoldRequest' when calling scaffoldProject"); } // create path and map variables String localVarPath = "/packages/{client}/scaffold" .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("PackageServicesApi.scaffoldProject", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Upload packages * Upload packages(s) * @param client Client name (required) * @param file File (optional) * @return List<Bundle> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The uploaded files -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List uploadPackage(String client, File file) throws ApiException { return uploadPackageWithHttpInfo(client, file).getData(); } /** * Upload packages * Upload packages(s) * @param client Client name (required) * @param file File (optional) * @return ApiResponse<List<Bundle>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 The uploaded files -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> uploadPackageWithHttpInfo(String client, File file) 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 uploadPackage"); } // create path and map variables String localVarPath = "/packages/{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(); if (file != null) localVarFormParams.put("file", file); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI("PackageServicesApi.uploadPackage", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Upload scaffold * Upload a scaffold project * @param client Client name (required) * @param file File (optional) * @return ScaffoldResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Scaffold response -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ScaffoldResponse uploadScaffold(String client, File file) throws ApiException { return uploadScaffoldWithHttpInfo(client, file).getData(); } /** * Upload scaffold * Upload a scaffold project * @param client Client name (required) * @param file File (optional) * @return ApiResponse<ScaffoldResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Scaffold response -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse uploadScaffoldWithHttpInfo(String client, File file) 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 uploadScaffold"); } // create path and map variables String localVarPath = "/packages/{client}/scaffold/upload" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (file != null) localVarFormParams.put("file", file); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PackageServicesApi.uploadScaffold", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy