Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.DataResult;
import io.logicdrop.openapi.models.IdentityApplication;
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 ClientServicesApi {
private ApiClient apiClient;
public ClientServicesApi() {
this(Configuration.getDefaultApiClient());
}
public ClientServicesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* 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 adminRotateApiKey1(String client, String keyid) throws ApiException {
return adminRotateApiKey1WithHttpInfo(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 adminRotateApiKey1WithHttpInfo(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 adminRotateApiKey1");
}
// verify the required parameter 'keyid' is set
if (keyid == null) {
throw new ApiException(400, "Missing the required parameter 'keyid' when calling adminRotateApiKey1");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.adminRotateApiKey1", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* 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 createAPIKey(String client) throws ApiException {
return createAPIKeyWithHttpInfo(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 createAPIKeyWithHttpInfo(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 createAPIKey");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.createAPIKey", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create application
* Create a client application
* @param client Client name (required)
* @param identityApplication Update request (required)
* @return IdentityApplication
* @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 IdentityApplication createApplication(String client, IdentityApplication identityApplication) throws ApiException {
return createApplicationWithHttpInfo(client, identityApplication).getData();
}
/**
* Create application
* Create a client application
* @param client Client name (required)
* @param identityApplication Update request (required)
* @return ApiResponse<IdentityApplication>
* @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 createApplicationWithHttpInfo(String client, IdentityApplication identityApplication) throws ApiException {
Object localVarPostBody = identityApplication;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling createApplication");
}
// verify the required parameter 'identityApplication' is set
if (identityApplication == null) {
throw new ApiException(400, "Missing the required parameter 'identityApplication' when calling createApplication");
}
// create path and map variables
String localVarPath = "/clients/{client}/applications"
.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("ClientServicesApi.createApplication", 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 deleteApiKey(String client, String keyid) throws ApiException {
return deleteApiKeyWithHttpInfo(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 deleteApiKeyWithHttpInfo(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 deleteApiKey");
}
// verify the required parameter 'keyid' is set
if (keyid == null) {
throw new ApiException(400, "Missing the required parameter 'keyid' when calling deleteApiKey");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.deleteApiKey", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete application
* Delete a client application
* @param client Client name (required)
* @param id Application id (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 deleteApplication(String client, String id) throws ApiException {
return deleteApplicationWithHttpInfo(client, id).getData();
}
/**
* Delete application
* Delete a client application
* @param client Client name (required)
* @param id Application id (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 deleteApplicationWithHttpInfo(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 deleteApplication");
}
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling deleteApplication");
}
// create path and map variables
String localVarPath = "/clients/{client}/applications/{id}"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.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("ClientServicesApi.deleteApplication", 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 deleteClient(String client) throws ApiException {
return deleteClientWithHttpInfo(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 deleteClientWithHttpInfo(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 deleteClient");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.deleteClient", 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 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 deleteUser(String client, String email) throws ApiException {
return deleteUserWithHttpInfo(client, email).getData();
}
/**
* Delete user
* Delete client user
* @param client Client name (required)
* @param email User email (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 deleteUserWithHttpInfo(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 deleteUser");
}
// verify the required parameter 'email' is set
if (email == null) {
throw new ApiException(400, "Missing the required parameter 'email' when calling deleteUser");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.deleteUser", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* 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 getApiKeys(String client, String id) throws ApiException {
return getApiKeysWithHttpInfo(client, id).getData();
}
/**
* 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> getApiKeysWithHttpInfo(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 getApiKeys");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.getApiKeys", localVarPath, "GET", 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 getClient(String client) throws ApiException {
return getClientWithHttpInfo(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 getClientWithHttpInfo(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 getClient");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.getClient", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get secret
* Get a client application secret
* @param client Client name (required)
* @param id Application id (required)
* @return String
* @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 String getSecret(String client, String id) throws ApiException {
return getSecretWithHttpInfo(client, id).getData();
}
/**
* Get secret
* Get a client application secret
* @param client Client name (required)
* @param id Application id (required)
* @return ApiResponse<String>
* @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 getSecretWithHttpInfo(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 getSecret");
}
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getSecret");
}
// create path and map variables
String localVarPath = "/clients/{client}/applications/{id}"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.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("ClientServicesApi.getSecret", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Invite user
* Invites a user
* @param client Client name (required)
* @param user 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 inviteUser(String client, User user) throws ApiException {
return inviteUserWithHttpInfo(client, user).getData();
}
/**
* Invite user
* Invites a user
* @param client Client name (required)
* @param user 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 inviteUserWithHttpInfo(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 inviteUser");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling inviteUser");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.inviteUser", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get applications
* Gets client applications
* @param client Client name (required)
* @return List<IdentityApplication>
* @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 listApplications(String client) throws ApiException {
return listApplicationsWithHttpInfo(client).getData();
}
/**
* Get applications
* Gets client applications
* @param client Client name (required)
* @return ApiResponse<List<IdentityApplication>>
* @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> listApplicationsWithHttpInfo(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 listApplications");
}
// create path and map variables
String localVarPath = "/clients/{client}/applications"
.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("ClientServicesApi.listApplications", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List users
* Gets users
* @param client Client name (required)
* @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 listUsers(String client) throws ApiException {
return listUsersWithHttpInfo(client).getData();
}
/**
* List users
* Gets users
* @param client Client name (required)
* @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> listUsersWithHttpInfo(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 listUsers");
}
// create path and map variables
String localVarPath = "/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();
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("ClientServicesApi.listUsers", 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 resetUserPassword(String client, String email) throws ApiException {
return resetUserPasswordWithHttpInfo(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 resetUserPasswordWithHttpInfo(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 resetUserPassword");
}
// verify the required parameter 'email' is set
if (email == null) {
throw new ApiException(400, "Missing the required parameter 'email' when calling resetUserPassword");
}
// create path and map variables
String localVarPath = "/clients/{client}/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("ClientServicesApi.resetUserPassword", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Rotate secret
* Rotate secret for a client application
* @param client Client name (required)
* @param id Application id (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 rotateSecret(String client, String id) throws ApiException {
rotateSecretWithHttpInfo(client, id);
}
/**
* Rotate secret
* Rotate secret for a client application
* @param client Client name (required)
* @param id Application id (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 rotateSecretWithHttpInfo(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 rotateSecret");
}
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling rotateSecret");
}
// create path and map variables
String localVarPath = "/clients/{client}/applications/{id}/rotate"
.replaceAll("\\{" + "client" + "\\}", apiClient.escapeString(client.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 = {
};
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("ClientServicesApi.rotateSecret", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Update client
* Updates one client
* @param client Client name (required)
* @param model 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 updateClient(String client, Client model) throws ApiException {
return updateClientWithHttpInfo(client, model).getData();
}
/**
* Update client
* Updates one client
* @param client Client name (required)
* @param model 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 updateClientWithHttpInfo(String client, Client 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 updateClient");
}
// verify the required parameter 'model' is set
if (model == null) {
throw new ApiException(400, "Missing the required parameter 'model' when calling updateClient");
}
// create path and map variables
String localVarPath = "/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 = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api", "jwt", "oauth2" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("ClientServicesApi.updateClient", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update user
* Updates client user
* @param client Client name (required)
* @param email User email (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 updateUser(String client, String email, User user) throws ApiException {
return updateUserWithHttpInfo(client, email, user).getData();
}
/**
* Update user
* Updates client user
* @param client Client name (required)
* @param email User email (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 updateUserWithHttpInfo(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 updateUser");
}
// verify the required parameter 'email' is set
if (email == null) {
throw new ApiException(400, "Missing the required parameter 'email' when calling updateUser");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
}
// create path and map variables
String localVarPath = "/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("ClientServicesApi.updateUser", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}