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 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.ErrorBody;
import com.mypurecloud.sdk.model.OrphanRecording;
import com.mypurecloud.sdk.model.Recording;
import com.mypurecloud.sdk.model.Annotation;
import com.mypurecloud.sdk.model.LocalEncryptionConfigurationListing;
import com.mypurecloud.sdk.model.LocalEncryptionConfiguration;
import com.mypurecloud.sdk.model.PolicyEntityListing;
import com.mypurecloud.sdk.model.Policy;
import com.mypurecloud.sdk.model.OrphanRecordingListing;
import com.mypurecloud.sdk.model.EncryptionKeyEntityListing;
import com.mypurecloud.sdk.model.KeyRotationSchedule;
import com.mypurecloud.sdk.model.RecordingSettings;
import com.mypurecloud.sdk.model.ScreenRecordingSessionListing;
import com.mypurecloud.sdk.model.ScreenRecordingSessionRequest;
import com.mypurecloud.sdk.model.LocalEncryptionKeyRequest;
import com.mypurecloud.sdk.model.EncryptionKey;
import com.mypurecloud.sdk.model.PolicyCreate;
import com.mypurecloud.sdk.model.OrphanUpdateRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class RecordingApi {
private ApiClient pcapiClient;
public RecordingApi() {
this(Configuration.getDefaultApiClient());
}
public RecordingApi(ApiClient apiClient) {
this.pcapiClient = apiClient;
}
public ApiClient getApiClient() {
return pcapiClient;
}
public void setApiClient(ApiClient apiClient) {
this.pcapiClient = apiClient;
}
/**
* Delete annotation
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @param annotationId Annotation ID (required)
* @throws ApiException if fails to make API call
*/
public void deleteConversationIdRecordingsRecordingIdAnnotationsAnnotationId(String conversationId, String recordingId, String annotationId) throws ApiException {
deleteConversationIdRecordingsRecordingIdAnnotationsAnnotationIdWithHttpInfo(conversationId, recordingId, annotationId);
}
/**
* Delete annotation
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @param annotationId Annotation ID (required)
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteConversationIdRecordingsRecordingIdAnnotationsAnnotationIdWithHttpInfo(String conversationId, String recordingId, String annotationId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling deleteConversationIdRecordingsRecordingIdAnnotationsAnnotationId");
}
// verify the required parameter 'recordingId' is set
if (recordingId == null) {
throw new ApiException(400, "Missing the required parameter 'recordingId' when calling deleteConversationIdRecordingsRecordingIdAnnotationsAnnotationId");
}
// verify the required parameter 'annotationId' is set
if (annotationId == null) {
throw new ApiException(400, "Missing the required parameter 'annotationId' when calling deleteConversationIdRecordingsRecordingIdAnnotationsAnnotationId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()))
.replaceAll("\\{" + "recordingId" + "\\}", pcapiClient.escapeString(recordingId.toString()))
.replaceAll("\\{" + "annotationId" + "\\}", pcapiClient.escapeString(annotationId.toString()));
// 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, null);
}
/**
* Delete media retention policies
* Bulk delete of media retention policies, this will only delete the polices that match the ids specified in the query param.
* @param ids (required)
* @return String
* @throws ApiException if fails to make API call
*/
public String deleteMediaretentionpolicies(String ids) throws ApiException {
return deleteMediaretentionpoliciesWithHttpInfo(ids).getResponseObject();
}
/**
* Delete media retention policies
* Bulk delete of media retention policies, this will only delete the polices that match the ids specified in the query param.
* @param ids (required)
* @return String
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteMediaretentionpoliciesWithHttpInfo(String ids) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'ids' is set
if (ids == null) {
throw new ApiException(400, "Missing the required parameter 'ids' when calling deleteMediaretentionpolicies");
}
// create path and map variables
String pclocalVarPath = "/api/v2/recording/mediaretentionpolicies".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "ids", ids));
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 a media retention policy
*
* @param policyId Policy ID (required)
* @return String
* @throws ApiException if fails to make API call
*/
public String deleteMediaretentionpoliciesPolicyId(String policyId) throws ApiException {
return deleteMediaretentionpoliciesPolicyIdWithHttpInfo(policyId).getResponseObject();
}
/**
* Delete a media retention policy
*
* @param policyId Policy ID (required)
* @return String
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteMediaretentionpoliciesPolicyIdWithHttpInfo(String policyId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException(400, "Missing the required parameter 'policyId' when calling deleteMediaretentionpoliciesPolicyId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/recording/mediaretentionpolicies/{policyId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "policyId" + "\\}", pcapiClient.escapeString(policyId.toString()));
// 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() {});
}
/**
* Deletes a single orphan recording
*
* @param orphanId Orphan ID (required)
* @return OrphanRecording
* @throws ApiException if fails to make API call
*/
public OrphanRecording deleteOrphanId(String orphanId) throws ApiException {
return deleteOrphanIdWithHttpInfo(orphanId).getResponseObject();
}
/**
* Deletes a single orphan recording
*
* @param orphanId Orphan ID (required)
* @return OrphanRecording
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteOrphanIdWithHttpInfo(String orphanId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'orphanId' is set
if (orphanId == null) {
throw new ApiException(400, "Missing the required parameter 'orphanId' when calling deleteOrphanId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/orphanrecordings/{orphanId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "orphanId" + "\\}", pcapiClient.escapeString(orphanId.toString()));
// 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 all of a Conversation's Recordings.
*
* @param conversationId Conversation ID (required)
* @param maxWaitMs The maximum number of milliseconds to wait for the recording to be ready. Must be a positive value. (optional, default to 5000)
* @param formatId The desired media format (optional, default to WEBM)
* @return List
* @throws ApiException if fails to make API call
*/
public List getConversationIdRecordings(String conversationId, Integer maxWaitMs, String formatId) throws ApiException {
return getConversationIdRecordingsWithHttpInfo(conversationId, maxWaitMs, formatId).getResponseObject();
}
/**
* Get all of a Conversation's Recordings.
*
* @param conversationId Conversation ID (required)
* @param maxWaitMs The maximum number of milliseconds to wait for the recording to be ready. Must be a positive value. (optional, default to 5000)
* @param formatId The desired media format (optional, default to WEBM)
* @return List
* @throws ApiException if fails to make API call
*/
public ApiResponse> getConversationIdRecordingsWithHttpInfo(String conversationId, Integer maxWaitMs, String formatId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling getConversationIdRecordings");
}
// create path and map variables
String pclocalVarPath = "/api/v2/conversations/{conversationId}/recordings".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "maxWaitMs", maxWaitMs));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "formatId", formatId));
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>() {});
}
/**
* Gets a specific recording.
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @param formatId The desired media format. (optional, default to WEBM)
* @param download requesting a download format of the recording (optional, default to false)
* @param fileName the name of the downloaded fileName (optional)
* @return Recording
* @throws ApiException if fails to make API call
*/
public Recording getConversationIdRecordingsRecordingId(String conversationId, String recordingId, String formatId, Boolean download, String fileName) throws ApiException {
return getConversationIdRecordingsRecordingIdWithHttpInfo(conversationId, recordingId, formatId, download, fileName).getResponseObject();
}
/**
* Gets a specific recording.
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @param formatId The desired media format. (optional, default to WEBM)
* @param download requesting a download format of the recording (optional, default to false)
* @param fileName the name of the downloaded fileName (optional)
* @return Recording
* @throws ApiException if fails to make API call
*/
public ApiResponse getConversationIdRecordingsRecordingIdWithHttpInfo(String conversationId, String recordingId, String formatId, Boolean download, String fileName) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling getConversationIdRecordingsRecordingId");
}
// verify the required parameter 'recordingId' is set
if (recordingId == null) {
throw new ApiException(400, "Missing the required parameter 'recordingId' when calling getConversationIdRecordingsRecordingId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/conversations/{conversationId}/recordings/{recordingId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()))
.replaceAll("\\{" + "recordingId" + "\\}", pcapiClient.escapeString(recordingId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "formatId", formatId));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "download", download));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "fileName", fileName));
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 annotations for recording
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @return List
* @throws ApiException if fails to make API call
*/
public List getConversationIdRecordingsRecordingIdAnnotations(String conversationId, String recordingId) throws ApiException {
return getConversationIdRecordingsRecordingIdAnnotationsWithHttpInfo(conversationId, recordingId).getResponseObject();
}
/**
* Get annotations for recording
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @return List
* @throws ApiException if fails to make API call
*/
public ApiResponse> getConversationIdRecordingsRecordingIdAnnotationsWithHttpInfo(String conversationId, String recordingId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling getConversationIdRecordingsRecordingIdAnnotations");
}
// verify the required parameter 'recordingId' is set
if (recordingId == null) {
throw new ApiException(400, "Missing the required parameter 'recordingId' when calling getConversationIdRecordingsRecordingIdAnnotations");
}
// create path and map variables
String pclocalVarPath = "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()))
.replaceAll("\\{" + "recordingId" + "\\}", pcapiClient.escapeString(recordingId.toString()));
// 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 annotation
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @param annotationId Annotation ID (required)
* @return Annotation
* @throws ApiException if fails to make API call
*/
public Annotation getConversationIdRecordingsRecordingIdAnnotationsAnnotationId(String conversationId, String recordingId, String annotationId) throws ApiException {
return getConversationIdRecordingsRecordingIdAnnotationsAnnotationIdWithHttpInfo(conversationId, recordingId, annotationId).getResponseObject();
}
/**
* Get annotation
*
* @param conversationId Conversation ID (required)
* @param recordingId Recording ID (required)
* @param annotationId Annotation ID (required)
* @return Annotation
* @throws ApiException if fails to make API call
*/
public ApiResponse getConversationIdRecordingsRecordingIdAnnotationsAnnotationIdWithHttpInfo(String conversationId, String recordingId, String annotationId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling getConversationIdRecordingsRecordingIdAnnotationsAnnotationId");
}
// verify the required parameter 'recordingId' is set
if (recordingId == null) {
throw new ApiException(400, "Missing the required parameter 'recordingId' when calling getConversationIdRecordingsRecordingIdAnnotationsAnnotationId");
}
// verify the required parameter 'annotationId' is set
if (annotationId == null) {
throw new ApiException(400, "Missing the required parameter 'annotationId' when calling getConversationIdRecordingsRecordingIdAnnotationsAnnotationId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()))
.replaceAll("\\{" + "recordingId" + "\\}", pcapiClient.escapeString(recordingId.toString()))
.replaceAll("\\{" + "annotationId" + "\\}", pcapiClient.escapeString(annotationId.toString()));
// 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() {});
}
/**
* gets a list local key settings data
*
* @return LocalEncryptionConfigurationListing
* @throws ApiException if fails to make API call
*/
public LocalEncryptionConfigurationListing getLocalkeysSettings() throws ApiException {
return getLocalkeysSettingsWithHttpInfo().getResponseObject();
}
/**
* gets a list local key settings data
*
* @return LocalEncryptionConfigurationListing
* @throws ApiException if fails to make API call
*/
public ApiResponse getLocalkeysSettingsWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/recording/localkeys/settings".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 the local encryption settings
*
* @param settingsId Settings Id (required)
* @return LocalEncryptionConfiguration
* @throws ApiException if fails to make API call
*/
public LocalEncryptionConfiguration getLocalkeysSettingsSettingsId(String settingsId) throws ApiException {
return getLocalkeysSettingsSettingsIdWithHttpInfo(settingsId).getResponseObject();
}
/**
* Get the local encryption settings
*
* @param settingsId Settings Id (required)
* @return LocalEncryptionConfiguration
* @throws ApiException if fails to make API call
*/
public ApiResponse getLocalkeysSettingsSettingsIdWithHttpInfo(String settingsId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'settingsId' is set
if (settingsId == null) {
throw new ApiException(400, "Missing the required parameter 'settingsId' when calling getLocalkeysSettingsSettingsId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/recording/localkeys/settings/{settingsId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "settingsId" + "\\}", pcapiClient.escapeString(settingsId.toString()));
// 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() {});
}
/**
* Gets media retention policy list with query options to filter on name and enabled.
* for a less verbose response, add summary=true to this endpoint
* @param pageSize The total page size requested (optional, default to 25)
* @param pageNumber The page number requested (optional, default to 1)
* @param sortBy variable name requested to sort by (optional)
* @param expand variable name requested by expand list (optional)
* @param nextPage next page token (optional)
* @param previousPage Previous page token (optional)
* @param name the policy name - used for filtering results in searches. (optional)
* @param enabled checks to see if policy is enabled - use enabled = true or enabled = false (optional)
* @param summary provides a less verbose response of policy lists. (optional, default to false)
* @param hasErrors provides a way to fetch all policies with errors or policies that do not have errors (optional)
* @return PolicyEntityListing
* @throws ApiException if fails to make API call
*/
public PolicyEntityListing getMediaretentionpolicies(Integer pageSize, Integer pageNumber, String sortBy, List