Package com.mypurecloud.sdk.v2.api
Class ProcessAutomationApi
java.lang.Object
com.mypurecloud.sdk.v2.api.ProcessAutomationApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a TriggerdeleteProcessautomationTrigger(ApiRequest<Void> request) Delete a TriggervoiddeleteProcessautomationTrigger(String triggerId) Delete a TriggerdeleteProcessautomationTriggerWithHttpInfo(String triggerId) Delete a TriggerRetrieve a single Trigger matching idgetProcessautomationTrigger(ApiRequest<Void> request) Retrieve a single Trigger matching idgetProcessautomationTrigger(String triggerId) Retrieve a single Trigger matching idRetrieves all triggers, optionally filtered by query parameters.getProcessautomationTriggers(ApiRequest<Void> request) Retrieves all triggers, optionally filtered by query parameters.getProcessautomationTriggers(String before, String after, String pageSize, String topicName, Boolean enabled, Boolean hasDelayBy) Retrieves all triggers, optionally filtered by query parameters.Get topics available for organizationgetProcessautomationTriggersTopics(ApiRequest<Void> request) Get topics available for organizationgetProcessautomationTriggersTopics(String before, String after, String pageSize) Get topics available for organizationgetProcessautomationTriggersTopicsWithHttpInfo(String before, String after, String pageSize) Get topics available for organizationgetProcessautomationTriggersWithHttpInfo(String before, String after, String pageSize, String topicName, Boolean enabled, Boolean hasDelayBy) Retrieves all triggers, optionally filtered by query parameters.getProcessautomationTriggerWithHttpInfo(String triggerId) Retrieve a single Trigger matching idCreate a TriggerCreate a TriggerCreate a TriggerTest the matching of all organization Triggers on given topic using provided event bodyTest the matching of all organization Triggers on given topic using provided event bodypostProcessautomationTriggersTopicTest(String topicName, String body) Test the matching of all organization Triggers on given topic using provided event bodypostProcessautomationTriggersTopicTestWithHttpInfo(String topicName, String body) Test the matching of all organization Triggers on given topic using provided event bodyCreate a TriggerTest the matching of a Trigger based on provided event bodypostProcessautomationTriggerTest(ApiRequest<String> request) Test the matching of a Trigger based on provided event bodypostProcessautomationTriggerTest(String triggerId, String body) Test the matching of a Trigger based on provided event bodypostProcessautomationTriggerTestWithHttpInfo(String triggerId, String body) Test the matching of a Trigger based on provided event bodyUpdate a TriggerUpdate a TriggerputProcessautomationTrigger(String triggerId, UpdateTriggerRequest body) Update a TriggerputProcessautomationTriggerWithHttpInfo(String triggerId, UpdateTriggerRequest body) Update a Trigger
-
Constructor Details
-
ProcessAutomationApi
public ProcessAutomationApi() -
ProcessAutomationApi
-
-
Method Details
-
deleteProcessautomationTrigger
Delete a Trigger- Parameters:
triggerId- triggerId (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteProcessautomationTriggerWithHttpInfo
public ApiResponse<Void> deleteProcessautomationTriggerWithHttpInfo(String triggerId) throws IOException Delete a Trigger- Parameters:
triggerId- triggerId (required)- Throws:
IOException- if the request fails to be processed
-
deleteProcessautomationTrigger
public void deleteProcessautomationTrigger(DeleteProcessautomationTriggerRequest request) throws IOException, ApiException Delete a Trigger- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteProcessautomationTrigger
public ApiResponse<Void> deleteProcessautomationTrigger(ApiRequest<Void> request) throws IOException Delete a Trigger- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getProcessautomationTrigger
Retrieve a single Trigger matching id- Parameters:
triggerId- triggerId (required)- Returns:
- Trigger
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getProcessautomationTriggerWithHttpInfo
public ApiResponse<Trigger> getProcessautomationTriggerWithHttpInfo(String triggerId) throws IOException Retrieve a single Trigger matching id- Parameters:
triggerId- triggerId (required)- Returns:
- Trigger
- Throws:
IOException- if the request fails to be processed
-
getProcessautomationTrigger
public Trigger getProcessautomationTrigger(GetProcessautomationTriggerRequest request) throws IOException, ApiException Retrieve a single Trigger matching id- Parameters:
request- The request object- Returns:
- Trigger
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getProcessautomationTrigger
public ApiResponse<Trigger> getProcessautomationTrigger(ApiRequest<Void> request) throws IOException Retrieve a single Trigger matching id- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getProcessautomationTriggers
public TriggerEntityListing getProcessautomationTriggers(String before, String after, String pageSize, String topicName, Boolean enabled, Boolean hasDelayBy) throws IOException, ApiException Retrieves all triggers, optionally filtered by query parameters.- Parameters:
before- The cursor that points to the start of the set of entities that has been returned. (optional)after- The cursor that points to the end of the set of entities that has been returned. (optional)pageSize- Number of entities to return. Maximum of 200. (optional)topicName- Topic name(s). Separated by commas (optional)enabled- Boolean indicating desired enabled state of triggers (optional)hasDelayBy- Boolean to filter based on delayBySeconds being set in triggers. Default returns all, true returns only those with delayBySeconds set, false returns those without delayBySeconds set. (optional)- Returns:
- TriggerEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getProcessautomationTriggersWithHttpInfo
public ApiResponse<TriggerEntityListing> getProcessautomationTriggersWithHttpInfo(String before, String after, String pageSize, String topicName, Boolean enabled, Boolean hasDelayBy) throws IOException Retrieves all triggers, optionally filtered by query parameters.- Parameters:
before- The cursor that points to the start of the set of entities that has been returned. (optional)after- The cursor that points to the end of the set of entities that has been returned. (optional)pageSize- Number of entities to return. Maximum of 200. (optional)topicName- Topic name(s). Separated by commas (optional)enabled- Boolean indicating desired enabled state of triggers (optional)hasDelayBy- Boolean to filter based on delayBySeconds being set in triggers. Default returns all, true returns only those with delayBySeconds set, false returns those without delayBySeconds set. (optional)- Returns:
- TriggerEntityListing
- Throws:
IOException- if the request fails to be processed
-
getProcessautomationTriggers
public TriggerEntityListing getProcessautomationTriggers(GetProcessautomationTriggersRequest request) throws IOException, ApiException Retrieves all triggers, optionally filtered by query parameters.- Parameters:
request- The request object- Returns:
- TriggerEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getProcessautomationTriggers
public ApiResponse<TriggerEntityListing> getProcessautomationTriggers(ApiRequest<Void> request) throws IOException Retrieves all triggers, optionally filtered by query parameters.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getProcessautomationTriggersTopics
public TopicCursorEntityListing getProcessautomationTriggersTopics(String before, String after, String pageSize) throws IOException, ApiException Get topics available for organization- Parameters:
before- The cursor that points to the start of the set of entities that has been returned. (optional)after- The cursor that points to the end of the set of entities that has been returned. (optional)pageSize- Number of entities to return. Maximum of 200. (optional)- Returns:
- TopicCursorEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getProcessautomationTriggersTopicsWithHttpInfo
public ApiResponse<TopicCursorEntityListing> getProcessautomationTriggersTopicsWithHttpInfo(String before, String after, String pageSize) throws IOException Get topics available for organization- Parameters:
before- The cursor that points to the start of the set of entities that has been returned. (optional)after- The cursor that points to the end of the set of entities that has been returned. (optional)pageSize- Number of entities to return. Maximum of 200. (optional)- Returns:
- TopicCursorEntityListing
- Throws:
IOException- if the request fails to be processed
-
getProcessautomationTriggersTopics
public TopicCursorEntityListing getProcessautomationTriggersTopics(GetProcessautomationTriggersTopicsRequest request) throws IOException, ApiException Get topics available for organization- Parameters:
request- The request object- Returns:
- TopicCursorEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getProcessautomationTriggersTopics
public ApiResponse<TopicCursorEntityListing> getProcessautomationTriggersTopics(ApiRequest<Void> request) throws IOException Get topics available for organization- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postProcessautomationTriggerTest
public TestModeResults postProcessautomationTriggerTest(String triggerId, String body) throws IOException, ApiException Test the matching of a Trigger based on provided event body- Parameters:
triggerId- triggerId (required)body- eventBody (optional)- Returns:
- TestModeResults
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postProcessautomationTriggerTestWithHttpInfo
public ApiResponse<TestModeResults> postProcessautomationTriggerTestWithHttpInfo(String triggerId, String body) throws IOException Test the matching of a Trigger based on provided event body- Parameters:
triggerId- triggerId (required)body- eventBody (optional)- Returns:
- TestModeResults
- Throws:
IOException- if the request fails to be processed
-
postProcessautomationTriggerTest
public TestModeResults postProcessautomationTriggerTest(PostProcessautomationTriggerTestRequest request) throws IOException, ApiException Test the matching of a Trigger based on provided event body- Parameters:
request- The request object- Returns:
- TestModeResults
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postProcessautomationTriggerTest
public ApiResponse<TestModeResults> postProcessautomationTriggerTest(ApiRequest<String> request) throws IOException Test the matching of a Trigger based on provided event body- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postProcessautomationTriggers
public Trigger postProcessautomationTriggers(CreateTriggerRequest body) throws IOException, ApiException Create a Trigger- Parameters:
body- Input used to create a Trigger. (required)- Returns:
- Trigger
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postProcessautomationTriggersWithHttpInfo
public ApiResponse<Trigger> postProcessautomationTriggersWithHttpInfo(CreateTriggerRequest body) throws IOException Create a Trigger- Parameters:
body- Input used to create a Trigger. (required)- Returns:
- Trigger
- Throws:
IOException- if the request fails to be processed
-
postProcessautomationTriggers
public Trigger postProcessautomationTriggers(PostProcessautomationTriggersRequest request) throws IOException, ApiException Create a Trigger- Parameters:
request- The request object- Returns:
- Trigger
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postProcessautomationTriggers
public ApiResponse<Trigger> postProcessautomationTriggers(ApiRequest<CreateTriggerRequest> request) throws IOException Create a Trigger- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postProcessautomationTriggersTopicTest
public TestModeEventResults postProcessautomationTriggersTopicTest(String topicName, String body) throws IOException, ApiException Test the matching of all organization Triggers on given topic using provided event body- Parameters:
topicName- topicName (required)body- eventBody (optional)- Returns:
- TestModeEventResults
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postProcessautomationTriggersTopicTestWithHttpInfo
public ApiResponse<TestModeEventResults> postProcessautomationTriggersTopicTestWithHttpInfo(String topicName, String body) throws IOException Test the matching of all organization Triggers on given topic using provided event body- Parameters:
topicName- topicName (required)body- eventBody (optional)- Returns:
- TestModeEventResults
- Throws:
IOException- if the request fails to be processed
-
postProcessautomationTriggersTopicTest
public TestModeEventResults postProcessautomationTriggersTopicTest(PostProcessautomationTriggersTopicTestRequest request) throws IOException, ApiException Test the matching of all organization Triggers on given topic using provided event body- Parameters:
request- The request object- Returns:
- TestModeEventResults
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postProcessautomationTriggersTopicTest
public ApiResponse<TestModeEventResults> postProcessautomationTriggersTopicTest(ApiRequest<String> request) throws IOException Test the matching of all organization Triggers on given topic using provided event body- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putProcessautomationTrigger
public Trigger putProcessautomationTrigger(String triggerId, UpdateTriggerRequest body) throws IOException, ApiException Update a Trigger- Parameters:
triggerId- triggerId (required)body- Input to update Trigger. (topicName cannot be updated, a new trigger must be created to use a new topicName) (required)- Returns:
- Trigger
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putProcessautomationTriggerWithHttpInfo
public ApiResponse<Trigger> putProcessautomationTriggerWithHttpInfo(String triggerId, UpdateTriggerRequest body) throws IOException Update a Trigger- Parameters:
triggerId- triggerId (required)body- Input to update Trigger. (topicName cannot be updated, a new trigger must be created to use a new topicName) (required)- Returns:
- Trigger
- Throws:
IOException- if the request fails to be processed
-
putProcessautomationTrigger
public Trigger putProcessautomationTrigger(PutProcessautomationTriggerRequest request) throws IOException, ApiException Update a Trigger- Parameters:
request- The request object- Returns:
- Trigger
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putProcessautomationTrigger
public ApiResponse<Trigger> putProcessautomationTrigger(ApiRequest<UpdateTriggerRequest> request) throws IOException Update a Trigger- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-