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="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class RoleECustomPermissionApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createRolePermission
(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) Create a Custom Role Permission Creates a permission (specified by `permissionType`) for a Custom Rolevoid
createRolePermission
(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String, String> additionalHeaders) Create a Custom Role Permission Creates a permission (specified by `permissionType`) for a Custom Rolevoid
deleteRolePermission
(String roleIdOrLabel, String permissionType) Delete a Custom Role Permission Deletes a permission (identified by `permissionType`) from a Custom Rolevoid
deleteRolePermission
(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.ObjectMapper
getRolePermission
(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 Rolevoid
setApiClient
(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 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 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 type (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 type (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 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 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 type (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 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 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 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()
-