com.mypurecloud.sdk.api.IdentityProviderApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.api;
import com.fasterxml.jackson.core.type.TypeReference;
import com.mypurecloud.sdk.ApiException;
import com.mypurecloud.sdk.ApiClient;
import com.mypurecloud.sdk.ApiResponse;
import com.mypurecloud.sdk.Configuration;
import com.mypurecloud.sdk.model.*;
import com.mypurecloud.sdk.Pair;
import com.mypurecloud.sdk.model.Empty;
import com.mypurecloud.sdk.model.ErrorBody;
import com.mypurecloud.sdk.model.ADFS;
import com.mypurecloud.sdk.model.CustomerInteractionCenter;
import com.mypurecloud.sdk.model.GSuite;
import com.mypurecloud.sdk.model.IdentityNow;
import com.mypurecloud.sdk.model.OAuthProviderEntityListing;
import com.mypurecloud.sdk.model.Okta;
import com.mypurecloud.sdk.model.OneLogin;
import com.mypurecloud.sdk.model.PingIdentity;
import com.mypurecloud.sdk.model.PureCloud;
import com.mypurecloud.sdk.model.Salesforce;
import com.mypurecloud.sdk.model.OAuthProvider;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class IdentityProviderApi {
private ApiClient pcapiClient;
public IdentityProviderApi() {
this(Configuration.getDefaultApiClient());
}
public IdentityProviderApi(ApiClient apiClient) {
this.pcapiClient = apiClient;
}
public ApiClient getApiClient() {
return pcapiClient;
}
public void setApiClient(ApiClient apiClient) {
this.pcapiClient = apiClient;
}
/**
* Delete ADFS Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteAdfs() throws ApiException {
return deleteAdfsWithHttpInfo().getResponseObject();
}
/**
* Delete ADFS Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteAdfsWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/adfs".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete Customer Interaction Center (CIC) Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteCic() throws ApiException {
return deleteCicWithHttpInfo().getResponseObject();
}
/**
* Delete Customer Interaction Center (CIC) Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteCicWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/cic".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete G Suite Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteGsuite() throws ApiException {
return deleteGsuiteWithHttpInfo().getResponseObject();
}
/**
* Delete G Suite Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteGsuiteWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/gsuite".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete IdentityNow Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteIdentitynow() throws ApiException {
return deleteIdentitynowWithHttpInfo().getResponseObject();
}
/**
* Delete IdentityNow Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteIdentitynowWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/identitynow".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete Okta Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteOkta() throws ApiException {
return deleteOktaWithHttpInfo().getResponseObject();
}
/**
* Delete Okta Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteOktaWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/okta".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete OneLogin Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteOnelogin() throws ApiException {
return deleteOneloginWithHttpInfo().getResponseObject();
}
/**
* Delete OneLogin Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteOneloginWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/onelogin".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete Ping Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deletePing() throws ApiException {
return deletePingWithHttpInfo().getResponseObject();
}
/**
* Delete Ping Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deletePingWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/ping".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete PureCloud Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deletePurecloud() throws ApiException {
return deletePurecloudWithHttpInfo().getResponseObject();
}
/**
* Delete PureCloud Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deletePurecloudWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/purecloud".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Delete Salesforce Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public Empty deleteSalesforce() throws ApiException {
return deleteSalesforceWithHttpInfo().getResponseObject();
}
/**
* Delete Salesforce Identity Provider
*
* @return Empty
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteSalesforceWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/salesforce".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get ADFS Identity Provider
*
* @return ADFS
* @throws ApiException if fails to make API call
*/
public ADFS getAdfs() throws ApiException {
return getAdfsWithHttpInfo().getResponseObject();
}
/**
* Get ADFS Identity Provider
*
* @return ADFS
* @throws ApiException if fails to make API call
*/
public ApiResponse getAdfsWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/adfs".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get Customer Interaction Center (CIC) Identity Provider
*
* @return CustomerInteractionCenter
* @throws ApiException if fails to make API call
*/
public CustomerInteractionCenter getCic() throws ApiException {
return getCicWithHttpInfo().getResponseObject();
}
/**
* Get Customer Interaction Center (CIC) Identity Provider
*
* @return CustomerInteractionCenter
* @throws ApiException if fails to make API call
*/
public ApiResponse getCicWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/cic".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get G Suite Identity Provider
*
* @return GSuite
* @throws ApiException if fails to make API call
*/
public GSuite getGsuite() throws ApiException {
return getGsuiteWithHttpInfo().getResponseObject();
}
/**
* Get G Suite Identity Provider
*
* @return GSuite
* @throws ApiException if fails to make API call
*/
public ApiResponse getGsuiteWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/gsuite".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get IdentityNow Provider
*
* @return IdentityNow
* @throws ApiException if fails to make API call
*/
public IdentityNow getIdentitynow() throws ApiException {
return getIdentitynowWithHttpInfo().getResponseObject();
}
/**
* Get IdentityNow Provider
*
* @return IdentityNow
* @throws ApiException if fails to make API call
*/
public ApiResponse getIdentitynowWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/identitynow".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* The list of identity providers
*
* @return OAuthProviderEntityListing
* @throws ApiException if fails to make API call
*/
public OAuthProviderEntityListing getIdentityproviders() throws ApiException {
return getIdentityprovidersWithHttpInfo().getResponseObject();
}
/**
* The list of identity providers
*
* @return OAuthProviderEntityListing
* @throws ApiException if fails to make API call
*/
public ApiResponse getIdentityprovidersWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get Okta Identity Provider
*
* @return Okta
* @throws ApiException if fails to make API call
*/
public Okta getOkta() throws ApiException {
return getOktaWithHttpInfo().getResponseObject();
}
/**
* Get Okta Identity Provider
*
* @return Okta
* @throws ApiException if fails to make API call
*/
public ApiResponse getOktaWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/okta".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get OneLogin Identity Provider
*
* @return OneLogin
* @throws ApiException if fails to make API call
*/
public OneLogin getOnelogin() throws ApiException {
return getOneloginWithHttpInfo().getResponseObject();
}
/**
* Get OneLogin Identity Provider
*
* @return OneLogin
* @throws ApiException if fails to make API call
*/
public ApiResponse getOneloginWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/onelogin".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get Ping Identity Provider
*
* @return PingIdentity
* @throws ApiException if fails to make API call
*/
public PingIdentity getPing() throws ApiException {
return getPingWithHttpInfo().getResponseObject();
}
/**
* Get Ping Identity Provider
*
* @return PingIdentity
* @throws ApiException if fails to make API call
*/
public ApiResponse getPingWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/ping".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get PureCloud Identity Provider
*
* @return PureCloud
* @throws ApiException if fails to make API call
*/
public PureCloud getPurecloud() throws ApiException {
return getPurecloudWithHttpInfo().getResponseObject();
}
/**
* Get PureCloud Identity Provider
*
* @return PureCloud
* @throws ApiException if fails to make API call
*/
public ApiResponse getPurecloudWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/purecloud".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get Salesforce Identity Provider
*
* @return Salesforce
* @throws ApiException if fails to make API call
*/
public Salesforce getSalesforce() throws ApiException {
return getSalesforceWithHttpInfo().getResponseObject();
}
/**
* Get Salesforce Identity Provider
*
* @return Salesforce
* @throws ApiException if fails to make API call
*/
public ApiResponse getSalesforceWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/salesforce".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create ADFS Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putAdfs(ADFS body) throws ApiException {
return putAdfsWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create ADFS Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putAdfsWithHttpInfo(ADFS body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putAdfs");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/adfs".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create Customer Interaction Center (CIC) Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putCic(CustomerInteractionCenter body) throws ApiException {
return putCicWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create Customer Interaction Center (CIC) Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putCicWithHttpInfo(CustomerInteractionCenter body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putCic");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/cic".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create G Suite Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putGsuite(GSuite body) throws ApiException {
return putGsuiteWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create G Suite Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putGsuiteWithHttpInfo(GSuite body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putGsuite");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/gsuite".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create IdentityNow Provider
*
* @param body Provider (required)
* @return IdentityNow
* @throws ApiException if fails to make API call
*/
public IdentityNow putIdentitynow(IdentityNow body) throws ApiException {
return putIdentitynowWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create IdentityNow Provider
*
* @param body Provider (required)
* @return IdentityNow
* @throws ApiException if fails to make API call
*/
public ApiResponse putIdentitynowWithHttpInfo(IdentityNow body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putIdentitynow");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/identitynow".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create Okta Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putOkta(Okta body) throws ApiException {
return putOktaWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create Okta Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putOktaWithHttpInfo(Okta body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putOkta");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/okta".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create OneLogin Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putOnelogin(OneLogin body) throws ApiException {
return putOneloginWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create OneLogin Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putOneloginWithHttpInfo(OneLogin body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putOnelogin");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/onelogin".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create Ping Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putPing(PingIdentity body) throws ApiException {
return putPingWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create Ping Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putPingWithHttpInfo(PingIdentity body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putPing");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/ping".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create PureCloud Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putPurecloud(PureCloud body) throws ApiException {
return putPurecloudWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create PureCloud Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putPurecloudWithHttpInfo(PureCloud body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putPurecloud");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/purecloud".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update/Create Salesforce Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public OAuthProvider putSalesforce(Salesforce body) throws ApiException {
return putSalesforceWithHttpInfo(body).getResponseObject();
}
/**
* Update/Create Salesforce Identity Provider
*
* @param body Provider (required)
* @return OAuthProvider
* @throws ApiException if fails to make API call
*/
public ApiResponse putSalesforceWithHttpInfo(Salesforce body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putSalesforce");
}
// create path and map variables
String pclocalVarPath = "/api/v2/identityproviders/salesforce".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
}