Package com.okta.sdk.resource.api
Class RoleECustomApi
java.lang.Object
com.okta.sdk.resource.api.RoleECustomApi
@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 RoleECustomApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRole(CreateIamRoleRequest instance) Create a custom role Creates a custom rolecreateRole(CreateIamRoleRequest instance, Map<String, String> additionalHeaders) Create a custom role Creates a custom rolevoiddeleteRole(String roleIdOrLabel) Delete a custom role Deletes a custom role by `roleIdOrLabel`voiddeleteRole(String roleIdOrLabel, Map<String, String> additionalHeaders) Delete a custom role Deletes a custom role by `roleIdOrLabel`protected static com.fasterxml.jackson.databind.ObjectMapperRetrieve a role Retrieves a role by `roleIdOrLabel`Retrieve a role Retrieves a role by `roleIdOrLabel`List all custom roles Lists all custom roles with pagination supportList all custom roles Lists all custom roles with pagination supportreplaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance) Replace a custom role Replaces the label and description for a custom role by `roleIdOrLabel`replaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance, Map<String, String> additionalHeaders) Replace a custom role Replaces the label and description for a custom role by `roleIdOrLabel`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
RoleECustomApi
public RoleECustomApi() -
RoleECustomApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createRole
Create a custom role Creates a custom role- Parameters:
instance- (required)- Returns:
- IamRole
- Throws:
ApiException- if fails to make API call
-
createRole
public IamRole createRole(CreateIamRoleRequest instance, Map<String, String> additionalHeaders) throws ApiExceptionCreate a custom role Creates a custom role- Parameters:
instance- (required)additionalHeaders- additionalHeaders for this call- Returns:
- IamRole
- Throws:
ApiException- if fails to make API call
-
deleteRole
Delete a custom role Deletes a custom role by `roleIdOrLabel`- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Throws:
ApiException- if fails to make API call
-
deleteRole
public void deleteRole(String roleIdOrLabel, Map<String, String> additionalHeaders) throws ApiExceptionDelete a custom role Deletes a custom role by `roleIdOrLabel`- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getRole
Retrieve a role Retrieves a role by `roleIdOrLabel`- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- IamRole
- Throws:
ApiException- if fails to make API call
-
getRole
public IamRole getRole(String roleIdOrLabel, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a role Retrieves a role by `roleIdOrLabel`- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)additionalHeaders- additionalHeaders for this call- Returns:
- IamRole
- Throws:
ApiException- if fails to make API call
-
listRoles
List all custom roles Lists all custom roles with pagination support- Parameters:
after- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)- Returns:
- IamRoles
- Throws:
ApiException- if fails to make API call
-
listRoles
List all custom roles Lists all custom roles with pagination support- Parameters:
after- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)additionalHeaders- additionalHeaders for this call- Returns:
- IamRoles
- Throws:
ApiException- if fails to make API call
-
replaceRole
Replace a custom role Replaces the label and description for a custom role by `roleIdOrLabel`- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)instance- (required)- Returns:
- IamRole
- Throws:
ApiException- if fails to make API call
-
replaceRole
public IamRole replaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance, Map<String, String> additionalHeaders) throws ApiExceptionReplace a custom role Replaces the label and description for a custom role by `roleIdOrLabel`- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)instance- (required)additionalHeaders- additionalHeaders for this call- Returns:
- IamRole
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-