Package com.okta.sdk.resource.api
Class RoleECustomPermissionApi
java.lang.Object
com.okta.sdk.resource.api.RoleECustomPermissionApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class RoleECustomPermissionApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) Create a custom role permission Creates a permission (specified by `permissionType`) for a custom rolevoidcreateRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String, String> additionalHeaders) Create a custom role permission Creates a permission (specified by `permissionType`) for a custom rolevoiddeleteRolePermission(String roleIdOrLabel, String permissionType) Delete a custom role permission Deletes a permission (identified by `permissionType`) from a custom rolevoiddeleteRolePermission(String roleIdOrLabel, String permissionType, Map<String, String> additionalHeaders) Delete a custom role permission Deletes a permission (identified by `permissionType`) from a custom roleprotected static com.fasterxml.jackson.databind.ObjectMappergetRolePermission(String roleIdOrLabel, String permissionType) Retrieve a custom role permission Retrieves a permission (identified by `permissionType`) for a custom rolegetRolePermission(String roleIdOrLabel, String permissionType, Map<String, String> additionalHeaders) Retrieve a custom role permission Retrieves a permission (identified by `permissionType`) for a custom rolelistRolePermissions(String roleIdOrLabel) List all custom role permissions Lists all permissions for a custom role by `roleIdOrLabel`listRolePermissions(String roleIdOrLabel, Map<String, String> additionalHeaders) List all custom role permissions Lists all permissions for a custom role by `roleIdOrLabel`replaceRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) Replace a custom role permission Replaces a permission (specified by `permissionType`) for a custom rolereplaceRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String, String> additionalHeaders) Replace a custom role permission Replaces a permission (specified by `permissionType`) for a custom rolevoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
RoleECustomPermissionApi
public RoleECustomPermissionApi() -
RoleECustomPermissionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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](/openapi/okta-management/guides/permissions) (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 ApiExceptionCreate 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](/openapi/okta-management/guides/permissions) (required)instance- (optional)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
deleteRolePermission
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](/openapi/okta-management/guides/permissions) (required)- Throws:
ApiException- if fails to make API call
-
deleteRolePermission
public void deleteRolePermission(String roleIdOrLabel, String permissionType, Map<String, String> additionalHeaders) throws ApiExceptionDelete 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](/openapi/okta-management/guides/permissions) (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](/openapi/okta-management/guides/permissions) (required)- Returns:
- Permission
- Throws:
ApiException- if fails to make API call
-
getRolePermission
public Permission getRolePermission(String roleIdOrLabel, String permissionType, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve 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](/openapi/okta-management/guides/permissions) (required)additionalHeaders- additionalHeaders for this call- Returns:
- Permission
- Throws:
ApiException- if fails to make API call
-
listRolePermissions
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 ApiExceptionList 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](/openapi/okta-management/guides/permissions) (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 ApiExceptionReplace 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](/openapi/okta-management/guides/permissions) (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()
-