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="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class RoleECustomApi
extends Object
-
Constructor Summary
-
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 Rolevoid
deleteRole
(String roleIdOrLabel) Delete a Custom Role Deletes a Custom Role by `roleIdOrLabel`void
deleteRole
(String roleIdOrLabel, Map<String, String> additionalHeaders) Delete a Custom Role Deletes a Custom Role by `roleIdOrLabel`protected static com.fasterxml.jackson.databind.ObjectMapper
Retrieve 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`void
setApiClient
(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). (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). (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()
-