Package com.okta.sdk.resource.api
Class GroupRuleApi
java.lang.Object
com.okta.sdk.resource.api.GroupRuleApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class GroupRuleApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateGroupRule
(String groupRuleId) Activate a Group Rule Activates a specific Group rule by ID from your orgvoid
activateGroupRule
(String groupRuleId, Map<String, String> additionalHeaders) Activate a Group Rule Activates a specific Group rule by ID from your orgcreateGroupRule
(CreateGroupRuleRequest groupRule) Create a Group rule Creates a Group rule to dynamically add Users to the specified Group if they match the condition > **Note:** Group rules are created with the status set to `'INACTIVE'`.createGroupRule
(CreateGroupRuleRequest groupRule, Map<String, String> additionalHeaders) Create a Group rule Creates a Group rule to dynamically add Users to the specified Group if they match the condition > **Note:** Group rules are created with the status set to `'INACTIVE'`.void
deactivateGroupRule
(String groupRuleId) Deactivate a Group Rule Deactivates a specific Group rule by ID from your orgvoid
deactivateGroupRule
(String groupRuleId, Map<String, String> additionalHeaders) Deactivate a Group Rule Deactivates a specific Group rule by ID from your orgvoid
deleteGroupRule
(String groupRuleId, Boolean removeUsers) Delete a Group Rule Deletes a specific group rule by `groupRuleId`void
Delete a Group Rule Deletes a specific group rule by `groupRuleId`getGroupRule
(String groupRuleId, String expand) Retrieve a Group rule Retrieves a specific Group rule by ID from your orgRetrieve a Group rule Retrieves a specific Group rule by ID from your orgprotected static com.fasterxml.jackson.databind.ObjectMapper
listGroupRules
(Integer limit, String after, String search, String expand) List all Group rules Lists all Group rules for your orglistGroupRules
(Integer limit, String after, String search, String expand, Map<String, String> additionalHeaders) List all Group rules Lists all Group rules for your orgreplaceGroupRule
(String groupRuleId, GroupRule groupRule) Replace a Group rule Replaces a Group rule > **Notes:** You only can update rules with a Group whose status is set to `'INACTIVE'`.Replace a Group rule Replaces a Group rule > **Notes:** You only can update rules with a Group whose status is set to `'INACTIVE'`.void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
GroupRuleApi
public GroupRuleApi() -
GroupRuleApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateGroupRule
Activate a Group Rule Activates a specific Group rule by ID from your org- Parameters:
groupRuleId
- The `id` of the group rule (required)- Throws:
ApiException
- if fails to make API call
-
activateGroupRule
public void activateGroupRule(String groupRuleId, Map<String, String> additionalHeaders) throws ApiExceptionActivate a Group Rule Activates a specific Group rule by ID from your org- Parameters:
groupRuleId
- The `id` of the group rule (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
createGroupRule
Create a Group rule Creates a Group rule to dynamically add Users to the specified Group if they match the condition > **Note:** Group rules are created with the status set to `'INACTIVE'`.- Parameters:
groupRule
- (required)- Returns:
- GroupRule
- Throws:
ApiException
- if fails to make API call
-
createGroupRule
public GroupRule createGroupRule(CreateGroupRuleRequest groupRule, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Group rule Creates a Group rule to dynamically add Users to the specified Group if they match the condition > **Note:** Group rules are created with the status set to `'INACTIVE'`.- Parameters:
groupRule
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- GroupRule
- Throws:
ApiException
- if fails to make API call
-
deactivateGroupRule
Deactivate a Group Rule Deactivates a specific Group rule by ID from your org- Parameters:
groupRuleId
- The `id` of the group rule (required)- Throws:
ApiException
- if fails to make API call
-
deactivateGroupRule
public void deactivateGroupRule(String groupRuleId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate a Group Rule Deactivates a specific Group rule by ID from your org- Parameters:
groupRuleId
- The `id` of the group rule (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteGroupRule
Delete a Group Rule Deletes a specific group rule by `groupRuleId`- Parameters:
groupRuleId
- The `id` of the group rule (required)removeUsers
- If set to `true`, removes Users from Groups assigned by this rule (optional, default to false)- Throws:
ApiException
- if fails to make API call
-
deleteGroupRule
public void deleteGroupRule(String groupRuleId, Boolean removeUsers, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Group Rule Deletes a specific group rule by `groupRuleId`- Parameters:
groupRuleId
- The `id` of the group rule (required)removeUsers
- If set to `true`, removes Users from Groups assigned by this rule (optional, default to false)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getGroupRule
Retrieve a Group rule Retrieves a specific Group rule by ID from your org- Parameters:
groupRuleId
- The `id` of the group rule (required)expand
- If specified as `groupIdToGroupNameMap`, then show Group names (optional)- Returns:
- GroupRule
- Throws:
ApiException
- if fails to make API call
-
getGroupRule
public GroupRule getGroupRule(String groupRuleId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Group rule Retrieves a specific Group rule by ID from your org- Parameters:
groupRuleId
- The `id` of the group rule (required)expand
- If specified as `groupIdToGroupNameMap`, then show Group names (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- GroupRule
- Throws:
ApiException
- if fails to make API call
-
listGroupRules
public List<GroupRule> listGroupRules(Integer limit, String after, String search, String expand) throws ApiException List all Group rules Lists all Group rules for your org- Parameters:
limit
- Specifies the number of rule results in a page (optional, default to 50)after
- Specifies the pagination cursor for the next page of rules (optional)search
- Specifies the keyword to search rules for (optional)expand
- If specified as `groupIdToGroupNameMap`, then displays group names (optional)- Returns:
- List<GroupRule>
- Throws:
ApiException
- if fails to make API call
-
listGroupRules
public List<GroupRule> listGroupRules(Integer limit, String after, String search, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all Group rules Lists all Group rules for your org- Parameters:
limit
- Specifies the number of rule results in a page (optional, default to 50)after
- Specifies the pagination cursor for the next page of rules (optional)search
- Specifies the keyword to search rules for (optional)expand
- If specified as `groupIdToGroupNameMap`, then displays group names (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<GroupRule>
- Throws:
ApiException
- if fails to make API call
-
replaceGroupRule
Replace a Group rule Replaces a Group rule > **Notes:** You only can update rules with a Group whose status is set to `'INACTIVE'`. > > You currently can't update the `action` section.- Parameters:
groupRuleId
- The `id` of the group rule (required)groupRule
- (required)- Returns:
- GroupRule
- Throws:
ApiException
- if fails to make API call
-
replaceGroupRule
public GroupRule replaceGroupRule(String groupRuleId, GroupRule groupRule, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Group rule Replaces a Group rule > **Notes:** You only can update rules with a Group whose status is set to `'INACTIVE'`. > > You currently can't update the `action` section.- Parameters:
groupRuleId
- The `id` of the group rule (required)groupRule
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- GroupRule
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-