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 Details

    • GroupRuleApi

      public GroupRuleApi()
    • GroupRuleApi

      public GroupRuleApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • activateGroupRule

      public void activateGroupRule(String groupRuleId) throws ApiException
      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 ApiException
      Activate 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

      public GroupRule createGroupRule(CreateGroupRuleRequest groupRule) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GroupRule
      Throws:
      ApiException - if fails to make API call
    • deactivateGroupRule

      public void deactivateGroupRule(String groupRuleId) throws ApiException
      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 ApiException
      Deactivate 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

      public void deleteGroupRule(String groupRuleId, Boolean removeUsers) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getGroupRule

      public GroupRule getGroupRule(String groupRuleId, String expand) throws ApiException
      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 ApiException
      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)
      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 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<GroupRule>
      Throws:
      ApiException - if fails to make API call
    • replaceGroupRule

      public GroupRule replaceGroupRule(String groupRuleId, GroupRule groupRule) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GroupRule
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()