Package com.mypurecloud.sdk.v2.api
Class UsersRulesApi
java.lang.Object
com.mypurecloud.sdk.v2.api.UsersRulesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteUsersRule(DeleteUsersRuleRequest request) Delete an existing users ruledeleteUsersRule(ApiRequest<Void> request) Delete an existing users rulevoiddeleteUsersRule(String ruleId) Delete an existing users ruledeleteUsersRuleWithHttpInfo(String ruleId) Delete an existing users rulegetUsersRule(GetUsersRuleRequest request) Get a users rulegetUsersRule(ApiRequest<Void> request) Get a users rulegetUsersRule(String ruleId) Get a users ruleGet dependents for a users rulegetUsersRuleDependents(ApiRequest<Void> request) Get dependents for a users rulegetUsersRuleDependents(String ruleId, Integer pageSize, Integer pageNumber, String sortOrder) Get dependents for a users rulegetUsersRuleDependentsWithHttpInfo(String ruleId, Integer pageSize, Integer pageNumber, String sortOrder) Get dependents for a users ruleGet dependent of a users rulegetUsersRuleDependentTypeId(ApiRequest<Void> request) Get dependent of a users rulegetUsersRuleDependentTypeId(String ruleId, String ruleType, String typeId) Get dependent of a users rulegetUsersRuleDependentTypeIdWithHttpInfo(String ruleId, String ruleType, String typeId) Get dependent of a users rulegetUsersRules(GetUsersRulesRequest request) Get the list of users rulesgetUsersRules(ApiRequest<Void> request) Get the list of users rulesgetUsersRules(List<String> types, Integer pageNumber, Integer pageSize, List<String> expand, Boolean enabled, String searchTerm, String sortOrder) Get the list of users rulesGet the settings for a specific users rule typegetUsersRulesSetting(ApiRequest<Void> request) Get the settings for a specific users rule typegetUsersRulesSetting(String ruleType) Get the settings for a specific users rule typegetUsersRulesSettingWithHttpInfo(String ruleType) Get the settings for a specific users rule typegetUsersRulesWithHttpInfo(List<String> types, Integer pageNumber, Integer pageSize, List<String> expand, Boolean enabled, String searchTerm, String sortOrder) Get the list of users rulesgetUsersRuleWithHttpInfo(String ruleId) Get a users rulepatchUsersRule(PatchUsersRuleRequest request) Update an existing users rule This will update an existing users rule with the specified fields.Update an existing users rule This will update an existing users rule with the specified fields.patchUsersRule(String ruleId, UsersRulesUpdateRuleRequest body) Update an existing users rule This will update an existing users rule with the specified fields.patchUsersRuleWithHttpInfo(String ruleId, UsersRulesUpdateRuleRequest body) Update an existing users rule This will update an existing users rule with the specified fields.postUsersRules(PostUsersRulesRequest request) Create a new rule This will create a new rule with the specified fields.Create a new rule This will create a new rule with the specified fields.Create a new rule This will create a new rule with the specified fields.Query the result of a users rule This will query the result of a rule.Query the result of a users rule This will query the result of a rule.postUsersRulesQuery(UsersRulesQueryRuleRequest body, Integer pageNumber, Integer pageSize) Query the result of a users rule This will query the result of a rule.postUsersRulesQueryWithHttpInfo(UsersRulesQueryRuleRequest body, Integer pageNumber, Integer pageSize) Query the result of a users rule This will query the result of a rule.Create a new rule This will create a new rule with the specified fields.
-
Constructor Details
-
UsersRulesApi
public UsersRulesApi() -
UsersRulesApi
-
-
Method Details
-
deleteUsersRule
Delete an existing users rule- Parameters:
ruleId- The id of the rule (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteUsersRuleWithHttpInfo
Delete an existing users rule- Parameters:
ruleId- The id of the rule (required)- Throws:
IOException- if the request fails to be processed
-
deleteUsersRule
Delete an existing users rule- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteUsersRule
Delete an existing users rule- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersRule
Get a users rule- Parameters:
ruleId- The ID of the rule to retrieve (required)- Returns:
- UsersRulesRule
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRuleWithHttpInfo
Get a users rule- Parameters:
ruleId- The ID of the rule to retrieve (required)- Returns:
- UsersRulesRule
- Throws:
IOException- if the request fails to be processed
-
getUsersRule
Get a users rule- Parameters:
request- The request object- Returns:
- UsersRulesRule
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRule
Get a users rule- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersRuleDependentTypeId
public UsersRulesDependent getUsersRuleDependentTypeId(String ruleId, String ruleType, String typeId) throws IOException, ApiException Get dependent of a users rule- Parameters:
ruleId- The ID of the rule for which to retrieve dependents (required)ruleType- The type of the dependent (required)typeId- The type ID of the dependent (required)- Returns:
- UsersRulesDependent
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRuleDependentTypeIdWithHttpInfo
public ApiResponse<UsersRulesDependent> getUsersRuleDependentTypeIdWithHttpInfo(String ruleId, String ruleType, String typeId) throws IOException Get dependent of a users rule- Parameters:
ruleId- The ID of the rule for which to retrieve dependents (required)ruleType- The type of the dependent (required)typeId- The type ID of the dependent (required)- Returns:
- UsersRulesDependent
- Throws:
IOException- if the request fails to be processed
-
getUsersRuleDependentTypeId
public UsersRulesDependent getUsersRuleDependentTypeId(GetUsersRuleDependentTypeIdRequest request) throws IOException, ApiException Get dependent of a users rule- Parameters:
request- The request object- Returns:
- UsersRulesDependent
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRuleDependentTypeId
public ApiResponse<UsersRulesDependent> getUsersRuleDependentTypeId(ApiRequest<Void> request) throws IOException Get dependent of a users rule- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersRuleDependents
public UsersRulesDependentList getUsersRuleDependents(String ruleId, Integer pageSize, Integer pageNumber, String sortOrder) throws IOException, ApiException Get dependents for a users rule- Parameters:
ruleId- The ID of the rule for which to retrieve dependents (required)pageSize- Number of results per page (optional, default to 25)pageNumber- Page number (optional, default to 1)sortOrder- Sort order for dependents (by last run date, then created date) (optional, default to descending)- Returns:
- UsersRulesDependentList
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRuleDependentsWithHttpInfo
public ApiResponse<UsersRulesDependentList> getUsersRuleDependentsWithHttpInfo(String ruleId, Integer pageSize, Integer pageNumber, String sortOrder) throws IOException Get dependents for a users rule- Parameters:
ruleId- The ID of the rule for which to retrieve dependents (required)pageSize- Number of results per page (optional, default to 25)pageNumber- Page number (optional, default to 1)sortOrder- Sort order for dependents (by last run date, then created date) (optional, default to descending)- Returns:
- UsersRulesDependentList
- Throws:
IOException- if the request fails to be processed
-
getUsersRuleDependents
public UsersRulesDependentList getUsersRuleDependents(GetUsersRuleDependentsRequest request) throws IOException, ApiException Get dependents for a users rule- Parameters:
request- The request object- Returns:
- UsersRulesDependentList
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRuleDependents
public ApiResponse<UsersRulesDependentList> getUsersRuleDependents(ApiRequest<Void> request) throws IOException Get dependents for a users rule- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersRules
public UsersRulesRuleList getUsersRules(List<String> types, Integer pageNumber, Integer pageSize, List<String> expand, Boolean enabled, String searchTerm, String sortOrder) throws IOException, ApiException Get the list of users rules- Parameters:
types- The types of the rule (required)pageNumber- Page number (optional, default to 1)pageSize- Number of results per page (optional, default to 25)expand- Fields to expand in response (optional)enabled- Whether to list enabled or disabled rules (optional)searchTerm- a search term for finding a rule by name (optional)sortOrder- sort rules by name, ascending, descending (optional, default to ascending)- Returns:
- UsersRulesRuleList
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRulesWithHttpInfo
public ApiResponse<UsersRulesRuleList> getUsersRulesWithHttpInfo(List<String> types, Integer pageNumber, Integer pageSize, List<String> expand, Boolean enabled, String searchTerm, String sortOrder) throws IOException Get the list of users rules- Parameters:
types- The types of the rule (required)pageNumber- Page number (optional, default to 1)pageSize- Number of results per page (optional, default to 25)expand- Fields to expand in response (optional)enabled- Whether to list enabled or disabled rules (optional)searchTerm- a search term for finding a rule by name (optional)sortOrder- sort rules by name, ascending, descending (optional, default to ascending)- Returns:
- UsersRulesRuleList
- Throws:
IOException- if the request fails to be processed
-
getUsersRules
public UsersRulesRuleList getUsersRules(GetUsersRulesRequest request) throws IOException, ApiException Get the list of users rules- Parameters:
request- The request object- Returns:
- UsersRulesRuleList
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRules
Get the list of users rules- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUsersRulesSetting
public UsersRulesRuleSettings getUsersRulesSetting(String ruleType) throws IOException, ApiException Get the settings for a specific users rule type- Parameters:
ruleType- The type of the rule (required)- Returns:
- UsersRulesRuleSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRulesSettingWithHttpInfo
public ApiResponse<UsersRulesRuleSettings> getUsersRulesSettingWithHttpInfo(String ruleType) throws IOException Get the settings for a specific users rule type- Parameters:
ruleType- The type of the rule (required)- Returns:
- UsersRulesRuleSettings
- Throws:
IOException- if the request fails to be processed
-
getUsersRulesSetting
public UsersRulesRuleSettings getUsersRulesSetting(GetUsersRulesSettingRequest request) throws IOException, ApiException Get the settings for a specific users rule type- Parameters:
request- The request object- Returns:
- UsersRulesRuleSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUsersRulesSetting
public ApiResponse<UsersRulesRuleSettings> getUsersRulesSetting(ApiRequest<Void> request) throws IOException Get the settings for a specific users rule type- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchUsersRule
public UsersRulesRule patchUsersRule(String ruleId, UsersRulesUpdateRuleRequest body) throws IOException, ApiException Update an existing users rule This will update an existing users rule with the specified fields.- Parameters:
ruleId- The ID of the rule to update (required)body- updateRuleRequest (required)- Returns:
- UsersRulesRule
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUsersRuleWithHttpInfo
public ApiResponse<UsersRulesRule> patchUsersRuleWithHttpInfo(String ruleId, UsersRulesUpdateRuleRequest body) throws IOException Update an existing users rule This will update an existing users rule with the specified fields.- Parameters:
ruleId- The ID of the rule to update (required)body- updateRuleRequest (required)- Returns:
- UsersRulesRule
- Throws:
IOException- if the request fails to be processed
-
patchUsersRule
public UsersRulesRule patchUsersRule(PatchUsersRuleRequest request) throws IOException, ApiException Update an existing users rule This will update an existing users rule with the specified fields.- Parameters:
request- The request object- Returns:
- UsersRulesRule
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUsersRule
public ApiResponse<UsersRulesRule> patchUsersRule(ApiRequest<UsersRulesUpdateRuleRequest> request) throws IOException Update an existing users rule This will update an existing users rule with the specified fields.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postUsersRules
public UsersRulesRule postUsersRules(UsersRulesCreateRuleRequest body) throws IOException, ApiException Create a new rule This will create a new rule with the specified fields.- Parameters:
body- usersRulesCreateRuleRequest (required)- Returns:
- UsersRulesRule
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postUsersRulesWithHttpInfo
public ApiResponse<UsersRulesRule> postUsersRulesWithHttpInfo(UsersRulesCreateRuleRequest body) throws IOException Create a new rule This will create a new rule with the specified fields.- Parameters:
body- usersRulesCreateRuleRequest (required)- Returns:
- UsersRulesRule
- Throws:
IOException- if the request fails to be processed
-
postUsersRules
public UsersRulesRule postUsersRules(PostUsersRulesRequest request) throws IOException, ApiException Create a new rule This will create a new rule with the specified fields.- Parameters:
request- The request object- Returns:
- UsersRulesRule
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postUsersRules
public ApiResponse<UsersRulesRule> postUsersRules(ApiRequest<UsersRulesCreateRuleRequest> request) throws IOException Create a new rule This will create a new rule with the specified fields.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postUsersRulesQuery
public UsersRulesQueryResponse postUsersRulesQuery(UsersRulesQueryRuleRequest body, Integer pageNumber, Integer pageSize) throws IOException, ApiException Query the result of a users rule This will query the result of a rule.- Parameters:
body- usersRulesQueryRuleRequest (required)pageNumber- Page number (optional, default to 1)pageSize- Number of results per page (optional, default to 25)- Returns:
- UsersRulesQueryResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postUsersRulesQueryWithHttpInfo
public ApiResponse<UsersRulesQueryResponse> postUsersRulesQueryWithHttpInfo(UsersRulesQueryRuleRequest body, Integer pageNumber, Integer pageSize) throws IOException Query the result of a users rule This will query the result of a rule.- Parameters:
body- usersRulesQueryRuleRequest (required)pageNumber- Page number (optional, default to 1)pageSize- Number of results per page (optional, default to 25)- Returns:
- UsersRulesQueryResponse
- Throws:
IOException- if the request fails to be processed
-
postUsersRulesQuery
public UsersRulesQueryResponse postUsersRulesQuery(PostUsersRulesQueryRequest request) throws IOException, ApiException Query the result of a users rule This will query the result of a rule.- Parameters:
request- The request object- Returns:
- UsersRulesQueryResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postUsersRulesQuery
public ApiResponse<UsersRulesQueryResponse> postUsersRulesQuery(ApiRequest<UsersRulesQueryRuleRequest> request) throws IOException Query the result of a users rule This will query the result of a rule.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-