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

io.logicdrop.openapi.jersey.api.PlatformServicesApi 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.OperationRequest;
import io.logicdrop.openapi.models.OperationResponse;
import io.logicdrop.openapi.models.OperationTargetResponse;

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


public class PlatformServicesApi {
  private ApiClient apiClient;

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

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

  public ApiClient getApiClient() {
    return apiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  /**
   * List managed services
   * Get manges targets
   * @param service Service (required)
   * @param operationRequest Operation request (required)
   * @param data Include data (optional)
   * @return List<OperationTargetResponse>
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 Retrieved targets -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public List listManagedServices(String service, OperationRequest operationRequest, String data) throws ApiException { return listManagedServicesWithHttpInfo(service, operationRequest, data).getData(); } /** * List managed services * Get manges targets * @param service Service (required) * @param operationRequest Operation request (required) * @param data Include data (optional) * @return ApiResponse<List<OperationTargetResponse>> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Retrieved targets -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse> listManagedServicesWithHttpInfo(String service, OperationRequest operationRequest, String data) throws ApiException { Object localVarPostBody = operationRequest; // verify the required parameter 'service' is set if (service == null) { throw new ApiException(400, "Missing the required parameter 'service' when calling listManagedServices"); } // verify the required parameter 'operationRequest' is set if (operationRequest == null) { throw new ApiException(400, "Missing the required parameter 'operationRequest' when calling listManagedServices"); } // create path and map variables String localVarPath = "/manage/{service}" .replaceAll("\\{" + "service" + "\\}", apiClient.escapeString(service.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "data", data)); 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("PlatformServicesApi.listManagedServices", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Manage service * Perform managed operation * @param service Service (required) * @param operationRequest Operation request (required) * @return OperationResponse * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Operations response -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public OperationResponse manageService(String service, OperationRequest operationRequest) throws ApiException { return manageServiceWithHttpInfo(service, operationRequest).getData(); } /** * Manage service * Perform managed operation * @param service Service (required) * @param operationRequest Operation request (required) * @return ApiResponse<OperationResponse> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Operations response -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not found -
500 Backend Error -
*/ public ApiResponse manageServiceWithHttpInfo(String service, OperationRequest operationRequest) throws ApiException { Object localVarPostBody = operationRequest; // verify the required parameter 'service' is set if (service == null) { throw new ApiException(400, "Missing the required parameter 'service' when calling manageService"); } // verify the required parameter 'operationRequest' is set if (operationRequest == null) { throw new ApiException(400, "Missing the required parameter 'operationRequest' when calling manageService"); } // create path and map variables String localVarPath = "/manage/{service}" .replaceAll("\\{" + "service" + "\\}", apiClient.escapeString(service.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("PlatformServicesApi.manageService", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Platform details * Retrieve information * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad request -
500 Backend Error -
*/ public void platformInfo() throws ApiException { platformInfoWithHttpInfo(); } /** * Platform details * Retrieve information * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad request -
500 Backend Error -
*/ public ApiResponse platformInfoWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/info"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" }; return apiClient.invokeAPI("PlatformServicesApi.platformInfo", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy