Class RoleECustomPermissionApi

java.lang.Object
com.okta.sdk.resource.api.RoleECustomPermissionApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T08:35:59.300824-05:00[America/Chicago]", comments="Generator version: 7.8.0") public class RoleECustomPermissionApi extends Object
  • Constructor Details

    • RoleECustomPermissionApi

      public RoleECustomPermissionApi()
    • RoleECustomPermissionApi

      public RoleECustomPermissionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createRolePermission

      public void createRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) throws ApiException
      Create a Custom Role Permission Creates a permission (specified by `permissionType`) for a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      instance - (optional)
      Throws:
      ApiException - if fails to make API call
    • createRolePermission

      public void createRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String,String> additionalHeaders) throws ApiException
      Create a Custom Role Permission Creates a permission (specified by `permissionType`) for a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      instance - (optional)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • deleteRolePermission

      public void deleteRolePermission(String roleIdOrLabel, String permissionType) throws ApiException
      Delete a Custom Role Permission Deletes a permission (identified by `permissionType`) from a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      Throws:
      ApiException - if fails to make API call
    • deleteRolePermission

      public void deleteRolePermission(String roleIdOrLabel, String permissionType, Map<String,String> additionalHeaders) throws ApiException
      Delete a Custom Role Permission Deletes a permission (identified by `permissionType`) from a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getRolePermission

      public Permission getRolePermission(String roleIdOrLabel, String permissionType) throws ApiException
      Retrieve a Custom Role Permission Retrieves a permission (identified by `permissionType`) for a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      Returns:
      Permission
      Throws:
      ApiException - if fails to make API call
    • getRolePermission

      public Permission getRolePermission(String roleIdOrLabel, String permissionType, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Custom Role Permission Retrieves a permission (identified by `permissionType`) for a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Permission
      Throws:
      ApiException - if fails to make API call
    • listRolePermissions

      public Permissions listRolePermissions(String roleIdOrLabel) throws ApiException
      List all Custom Role Permissions Lists all permissions for a Custom Role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      Returns:
      Permissions
      Throws:
      ApiException - if fails to make API call
    • listRolePermissions

      public Permissions listRolePermissions(String roleIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      List all Custom Role Permissions Lists all permissions for a Custom Role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Permissions
      Throws:
      ApiException - if fails to make API call
    • replaceRolePermission

      public Permission replaceRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) throws ApiException
      Replace a Custom Role Permission Replaces a permission (specified by `permissionType`) for a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      instance - (optional)
      Returns:
      Permission
      Throws:
      ApiException - if fails to make API call
    • replaceRolePermission

      public Permission replaceRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String,String> additionalHeaders) throws ApiException
      Replace a Custom Role Permission Replaces a permission (specified by `permissionType`) for a Custom Role
      Parameters:
      roleIdOrLabel - `id` or `label` of the Role (required)
      permissionType - An okta permission type (required)
      instance - (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Permission
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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