@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class RoleApi extends Object
Modifier and Type | Method and Description |
---|---|
IamRole |
createRole(CreateIamRoleRequest instance)
Create a Role
Creates a new role
|
IamRole |
createRole(CreateIamRoleRequest instance,
Map<String,String> additionalHeaders)
Create a Role
Creates a new role
|
void |
createRolePermission(String roleIdOrLabel,
String permissionType,
CreateUpdateIamRolePermissionRequest instance)
Create a Permission
Creates a permission specified by `permissionType` to the role
|
void |
createRolePermission(String roleIdOrLabel,
String permissionType,
CreateUpdateIamRolePermissionRequest instance,
Map<String,String> additionalHeaders)
Create a Permission
Creates a permission specified by `permissionType` to the role
|
void |
deleteRole(String roleIdOrLabel)
Delete a Role
Deletes a role by `roleIdOrLabel`
|
void |
deleteRole(String roleIdOrLabel,
Map<String,String> additionalHeaders)
Delete a Role
Deletes a role by `roleIdOrLabel`
|
void |
deleteRolePermission(String roleIdOrLabel,
String permissionType)
Delete a Permission
Deletes a permission from a role by `permissionType`
|
void |
deleteRolePermission(String roleIdOrLabel,
String permissionType,
Map<String,String> additionalHeaders)
Delete a Permission
Deletes a permission from a role by `permissionType`
|
ApiClient |
getApiClient() |
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
IamRole |
getRole(String roleIdOrLabel)
Retrieve a Role
Retrieves a role by `roleIdOrLabel`
|
IamRole |
getRole(String roleIdOrLabel,
Map<String,String> additionalHeaders)
Retrieve a Role
Retrieves a role by `roleIdOrLabel`
|
Permission |
getRolePermission(String roleIdOrLabel,
String permissionType)
Retrieve a Permission
Retrieves a permission by `permissionType`
|
Permission |
getRolePermission(String roleIdOrLabel,
String permissionType,
Map<String,String> additionalHeaders)
Retrieve a Permission
Retrieves a permission by `permissionType`
|
Permissions |
listRolePermissions(String roleIdOrLabel)
List all Permissions
Lists all permissions of the role by `roleIdOrLabel`
|
Permissions |
listRolePermissions(String roleIdOrLabel,
Map<String,String> additionalHeaders)
List all Permissions
Lists all permissions of the role by `roleIdOrLabel`
|
IamRoles |
listRoles(String after)
List all Roles
Lists all roles with pagination support
|
IamRoles |
listRoles(String after,
Map<String,String> additionalHeaders)
List all Roles
Lists all roles with pagination support
|
IamRole |
replaceRole(String roleIdOrLabel,
UpdateIamRoleRequest instance)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
IamRole |
replaceRole(String roleIdOrLabel,
UpdateIamRoleRequest instance,
Map<String,String> additionalHeaders)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
Permission |
replaceRolePermission(String roleIdOrLabel,
String permissionType,
CreateUpdateIamRolePermissionRequest instance)
Replace a Permission
Replaces a permission specified by `permissionType` in the role
|
Permission |
replaceRolePermission(String roleIdOrLabel,
String permissionType,
CreateUpdateIamRolePermissionRequest instance,
Map<String,String> additionalHeaders)
Replace a Permission
Replaces a permission specified by `permissionType` in the role
|
void |
setApiClient(ApiClient apiClient) |
public RoleApi()
public RoleApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public IamRole createRole(CreateIamRoleRequest instance) throws ApiException
instance
- (required)ApiException
- if fails to make API callpublic IamRole createRole(CreateIamRoleRequest instance, Map<String,String> additionalHeaders) throws ApiException
instance
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void createRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)instance
- (optional)ApiException
- if fails to make API callpublic void createRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)instance
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deleteRole(String roleIdOrLabel) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)ApiException
- if fails to make API callpublic void deleteRole(String roleIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deleteRolePermission(String roleIdOrLabel, String permissionType) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)ApiException
- if fails to make API callpublic void deleteRolePermission(String roleIdOrLabel, String permissionType, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic IamRole getRole(String roleIdOrLabel) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)ApiException
- if fails to make API callpublic IamRole getRole(String roleIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Permission getRolePermission(String roleIdOrLabel, String permissionType) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)ApiException
- if fails to make API callpublic Permission getRolePermission(String roleIdOrLabel, String permissionType, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Permissions listRolePermissions(String roleIdOrLabel) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)ApiException
- if fails to make API callpublic Permissions listRolePermissions(String roleIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic IamRoles listRoles(String after) throws ApiException
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](/#pagination) for more information. (optional)ApiException
- if fails to make API callpublic IamRoles listRoles(String after, Map<String,String> additionalHeaders) throws ApiException
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](/#pagination) for more information. (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic IamRole replaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)ApiException
- if fails to make API callpublic IamRole replaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Permission replaceRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)instance
- (optional)ApiException
- if fails to make API callpublic Permission replaceRolePermission(String roleIdOrLabel, String permissionType, CreateUpdateIamRolePermissionRequest instance, Map<String,String> additionalHeaders) throws ApiException
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)instance
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.