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

io.logicdrop.openapi.jersey.api.AdminServicesApi 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.Client;
import io.logicdrop.openapi.models.ClientSubscription;
import io.logicdrop.openapi.models.DataResult;
import io.logicdrop.openapi.models.IdentityMessage;
import io.logicdrop.openapi.models.User;

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


public class AdminServicesApi {
  private ApiClient apiClient;

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

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

  public ApiClient getApiClient() {
    return apiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  /**
   * Create an API key
   * Create a client API key
   * @param client Client name (required)
   * @return User
   * @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 No records match -
500 Backend Error -
*/ public User adminCreateAPIKey(String client) throws ApiException { return adminCreateAPIKeyWithHttpInfo(client).getData(); } /** * Create an API key * Create a client API key * @param client Client name (required) * @return ApiResponse<User> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminCreateAPIKeyWithHttpInfo(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 adminCreateAPIKey"); } // create path and map variables String localVarPath = "/admin/clients/{client}/apikeys" .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("AdminServicesApi.adminCreateAPIKey", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete API key * Delete client API key * @param client Client name (required) * @param keyId API key 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 No records match -
500 Backend Error -
*/ public DataResult adminDeleteApiKey(String client, String keyId) throws ApiException { return adminDeleteApiKeyWithHttpInfo(client, keyId).getData(); } /** * Delete API key * Delete client API key * @param client Client name (required) * @param keyId API key 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 No records match -
500 Backend Error -
*/ public ApiResponse adminDeleteApiKeyWithHttpInfo(String client, String keyId) 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 adminDeleteApiKey"); } // verify the required parameter 'keyId' is set if (keyId == null) { throw new ApiException(400, "Missing the required parameter 'keyId' when calling adminDeleteApiKey"); } // create path and map variables String localVarPath = "/admin/clients/{client}/apikeys/{keyId}" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "keyId" + "\\}", apiClient.escapeString(keyId.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("AdminServicesApi.adminDeleteApiKey", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete client * Delete a client * @param client Client name (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 No records match -
500 Backend Error -
*/ public DataResult adminDeleteClient(String client) throws ApiException { return adminDeleteClientWithHttpInfo(client).getData(); } /** * Delete client * Delete a client * @param client Client name (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 No records match -
500 Backend Error -
*/ public ApiResponse adminDeleteClientWithHttpInfo(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 adminDeleteClient"); } // create path and map variables String localVarPath = "/admin/clients/{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("AdminServicesApi.adminDeleteClient", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete user * Delete client user * @param client Client name (required) * @param email User email (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 No records match -
500 Backend Error -
*/ public DataResult adminDeleteUser(String client, String email) throws ApiException { return adminDeleteUserWithHttpInfo(client, email).getData(); } /** * Delete user * Delete client user * @param client Client name (required) * @param email User email (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 No records match -
500 Backend Error -
*/ public ApiResponse adminDeleteUserWithHttpInfo(String client, String email) 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 adminDeleteUser"); } // verify the required parameter 'email' is set if (email == null) { throw new ApiException(400, "Missing the required parameter 'email' when calling adminDeleteUser"); } // create path and map variables String localVarPath = "/admin/clients/{client}/users" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "email", email)); 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("AdminServicesApi.adminDeleteUser", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get client * Get client using optional simple filters * @param client Client name (required) * @return Client * @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 No records match -
500 Backend Error -
*/ public Client adminGetClient(String client) throws ApiException { return adminGetClientWithHttpInfo(client).getData(); } /** * Get client * Get client using optional simple filters * @param client Client name (required) * @return ApiResponse<Client> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminGetClientWithHttpInfo(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 adminGetClient"); } // create path and map variables String localVarPath = "/admin/clients/{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("AdminServicesApi.adminGetClient", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get user permissions * Get user permissions * @param email Subscriber Email (required) * @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 No records match -
500 Backend Error -
*/ public void adminGetPermissions(String email) throws ApiException { adminGetPermissionsWithHttpInfo(email); } /** * Get user permissions * Get user permissions * @param email Subscriber Email (required) * @return ApiResponse<Void> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminGetPermissionsWithHttpInfo(String email) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'email' is set if (email == null) { throw new ApiException(400, "Missing the required parameter 'email' when calling adminGetPermissions"); } // create path and map variables String localVarPath = "/admin/users"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "email", email)); 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" }; return apiClient.invokeAPI("AdminServicesApi.adminGetPermissions", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** * Invite a user * Invites a client user * @param client Client name (required) * @param user Update request (required) * @return User * @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 No records match -
500 Backend Error -
*/ public User adminInviteUser(String client, User user) throws ApiException { return adminInviteUserWithHttpInfo(client, user).getData(); } /** * Invite a user * Invites a client user * @param client Client name (required) * @param user Update request (required) * @return ApiResponse<User> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminInviteUserWithHttpInfo(String client, User user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling adminInviteUser"); } // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling adminInviteUser"); } // create path and map variables String localVarPath = "/admin/clients/{client}/users/invite" .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("AdminServicesApi.adminInviteUser", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Admin List API keys * Get client API keys * @param client Client name (required) * @param id API Key ID (optional) * @return List<Client> * @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 No records match -
500 Backend Error -
*/ public List adminListApiKeys(String client, String id) throws ApiException { return adminListApiKeysWithHttpInfo(client, id).getData(); } /** * Admin List API keys * Get client API keys * @param client Client name (required) * @param id API Key ID (optional) * @return ApiResponse<List<Client>> * @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 No records match -
500 Backend Error -
*/ public ApiResponse> adminListApiKeysWithHttpInfo(String client, 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 adminListApiKeys"); } // create path and map variables String localVarPath = "/admin/clients/{client}/apikeys" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "id", id)); 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("AdminServicesApi.adminListApiKeys", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get clients * Get all clients using optional simple filters * @return List<Client> * @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 No records match -
500 Backend Error -
*/ public List adminListClients() throws ApiException { return adminListClientsWithHttpInfo().getData(); } /** * Get clients * Get all clients using optional simple filters * @return ApiResponse<List<Client>> * @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 No records match -
500 Backend Error -
*/ public ApiResponse> adminListClientsWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/admin/clients"; // 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("AdminServicesApi.adminListClients", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Admin List users * Get all client users * @param client Client name (required) * @param email Subscriber Email (optional) * @return List<Client> * @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 No records match -
500 Backend Error -
*/ public List adminListUsers(String client, String email) throws ApiException { return adminListUsersWithHttpInfo(client, email).getData(); } /** * Admin List users * Get all client users * @param client Client name (required) * @param email Subscriber Email (optional) * @return ApiResponse<List<Client>> * @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 No records match -
500 Backend Error -
*/ public ApiResponse> adminListUsersWithHttpInfo(String client, String email) 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 adminListUsers"); } // create path and map variables String localVarPath = "/admin/clients/{client}/users" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "email", email)); 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("AdminServicesApi.adminListUsers", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Initiate password reset flow * Initiate user password reset flow * @param client Client name (required) * @param email User email (required) * @return IdentityMessage * @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 No records match -
500 Backend Error -
*/ public IdentityMessage adminResetUserPassword(String client, String email) throws ApiException { return adminResetUserPasswordWithHttpInfo(client, email).getData(); } /** * Initiate password reset flow * Initiate user password reset flow * @param client Client name (required) * @param email User email (required) * @return ApiResponse<IdentityMessage> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminResetUserPasswordWithHttpInfo(String client, String email) 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 adminResetUserPassword"); } // verify the required parameter 'email' is set if (email == null) { throw new ApiException(400, "Missing the required parameter 'email' when calling adminResetUserPassword"); } // create path and map variables String localVarPath = "/admin/clients/{client}/users/password/reset" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "email", email)); 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("AdminServicesApi.adminResetUserPassword", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Rotate API key * Rotate client API key * @param client Client name (required) * @param keyid API Key ID (required) * @return IdentityMessage * @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 No records match -
500 Backend Error -
*/ public IdentityMessage adminRotateApiKey(String client, String keyid) throws ApiException { return adminRotateApiKeyWithHttpInfo(client, keyid).getData(); } /** * Rotate API key * Rotate client API key * @param client Client name (required) * @param keyid API Key ID (required) * @return ApiResponse<IdentityMessage> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminRotateApiKeyWithHttpInfo(String client, String keyid) 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 adminRotateApiKey"); } // verify the required parameter 'keyid' is set if (keyid == null) { throw new ApiException(400, "Missing the required parameter 'keyid' when calling adminRotateApiKey"); } // create path and map variables String localVarPath = "/admin/clients/{client}/apikeys/{keyid}/rotate" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())) .replaceAll("\\{" + "keyid" + "\\}", apiClient.escapeString(keyid.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("AdminServicesApi.adminRotateApiKey", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update client * Updates one client * @param clientName Client name (required) * @param client Update request (required) * @return Client * @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 No records match -
500 Backend Error -
*/ public Client adminUpdateClient(String clientName, Client client) throws ApiException { return adminUpdateClientWithHttpInfo(clientName, client).getData(); } /** * Update client * Updates one client * @param clientName Client name (required) * @param client Update request (required) * @return ApiResponse<Client> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminUpdateClientWithHttpInfo(String clientName, Client client) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'clientName' is set if (clientName == null) { throw new ApiException(400, "Missing the required parameter 'clientName' when calling adminUpdateClient"); } // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling adminUpdateClient"); } // create path and map variables String localVarPath = "/admin/clients/{client}" .replaceAll("\\{" + "clientName" + "\\}", apiClient.escapeString(clientName.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("AdminServicesApi.adminUpdateClient", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update client status * Updates client status * @param client Client name (required) * @return Client * @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 No records match -
500 Backend Error -
*/ public Client adminUpdateStatus(String client) throws ApiException { return adminUpdateStatusWithHttpInfo(client).getData(); } /** * Update client status * Updates client status * @param client Client name (required) * @return ApiResponse<Client> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminUpdateStatusWithHttpInfo(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 adminUpdateStatus"); } // create path and map variables String localVarPath = "/admin/clients/{client}/status" .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("AdminServicesApi.adminUpdateStatus", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update client subscription * Updates client subscription * @param client Client name (required) * @param clientSubscription Update request (required) * @return Client * @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 No records match -
500 Backend Error -
*/ public Client adminUpdateSubscription(String client, ClientSubscription clientSubscription) throws ApiException { return adminUpdateSubscriptionWithHttpInfo(client, clientSubscription).getData(); } /** * Update client subscription * Updates client subscription * @param client Client name (required) * @param clientSubscription Update request (required) * @return ApiResponse<Client> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminUpdateSubscriptionWithHttpInfo(String client, ClientSubscription clientSubscription) throws ApiException { Object localVarPostBody = clientSubscription; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling adminUpdateSubscription"); } // verify the required parameter 'clientSubscription' is set if (clientSubscription == null) { throw new ApiException(400, "Missing the required parameter 'clientSubscription' when calling adminUpdateSubscription"); } // create path and map variables String localVarPath = "/admin/clients/{client}/subscription" .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("AdminServicesApi.adminUpdateSubscription", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update user * Updates user * @param client Client name (required) * @param email User email (required) * @param user User to upadate (required) * @return User * @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 No records match -
500 Backend Error -
*/ public User adminUpdateUser(String client, String email, User user) throws ApiException { return adminUpdateUserWithHttpInfo(client, email, user).getData(); } /** * Update user * Updates user * @param client Client name (required) * @param email User email (required) * @param user User to upadate (required) * @return ApiResponse<User> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminUpdateUserWithHttpInfo(String client, String email, User user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling adminUpdateUser"); } // verify the required parameter 'email' is set if (email == null) { throw new ApiException(400, "Missing the required parameter 'email' when calling adminUpdateUser"); } // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling adminUpdateUser"); } // create path and map variables String localVarPath = "/admin/clients/{client}/users" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "email", email)); 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("AdminServicesApi.adminUpdateUser", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update user password * Updates user password * @param client Client name (required) * @param email User email (required) * @param password User password (required) * @return IdentityMessage * @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 No records match -
500 Backend Error -
*/ public IdentityMessage adminUpdateUserPassword(String client, String email, String password) throws ApiException { return adminUpdateUserPasswordWithHttpInfo(client, email, password).getData(); } /** * Update user password * Updates user password * @param client Client name (required) * @param email User email (required) * @param password User password (required) * @return ApiResponse<IdentityMessage> * @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 No records match -
500 Backend Error -
*/ public ApiResponse adminUpdateUserPasswordWithHttpInfo(String client, String email, String password) 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 adminUpdateUserPassword"); } // verify the required parameter 'email' is set if (email == null) { throw new ApiException(400, "Missing the required parameter 'email' when calling adminUpdateUserPassword"); } // verify the required parameter 'password' is set if (password == null) { throw new ApiException(400, "Missing the required parameter 'password' when calling adminUpdateUserPassword"); } // create path and map variables String localVarPath = "/admin/clients/{client}/users/password" .replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "email", email)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password)); 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("AdminServicesApi.adminUpdateUserPassword", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy