@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-10-28T09:54:00.189-05:00[America/Chicago]")
@Component(value="org.openapitools.client.api.RoleApi")
public class RoleApi
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T> T |
createRole(java.lang.Class<?> T,
IamRole instance)
Create a Role
Creates a new role
|
IamRole |
createRole(IamRole instance)
Create a Role
Creates a new role
|
void |
createRolePermission(java.lang.String roleIdOrLabel,
java.lang.String permissionType)
Create a Permission
Creates a permission specified by `permissionType` to the role
|
PagedList |
createRoleWithPaginationInfo(IamRole instance)
Create a Role
Creates a new role
|
void |
deleteRole(java.lang.String roleIdOrLabel)
Delete a Role
Deletes a role by `roleIdOrLabel`
|
void |
deleteRolePermission(java.lang.String roleIdOrLabel,
java.lang.String permissionType)
Delete a Permission
Deletes a permission from a role by `permissionType`
|
ApiClient |
getApiClient() |
IamRole |
getRole(java.lang.String roleIdOrLabel)
Retrieve a Role
Retrieves a role by `roleIdOrLabel`
|
Permission |
getRolePermission(java.lang.String roleIdOrLabel,
java.lang.String permissionType)
Retrieve a Permission
Retrieves a permission by `permissionType`
|
PagedList |
getRolePermissionWithPaginationInfo(java.lang.String roleIdOrLabel,
java.lang.String permissionType)
Retrieve a Permission
Retrieves a permission by `permissionType`
|
PagedList |
getRoleWithPaginationInfo(java.lang.String roleIdOrLabel)
Retrieve a Role
Retrieves a role by `roleIdOrLabel`
|
Permissions |
listRolePermissions(java.lang.String roleIdOrLabel)
List all Permissions
Lists all permissions of the role by `roleIdOrLabel`
|
PagedList |
listRolePermissionsWithPaginationInfo(java.lang.String roleIdOrLabel)
List all Permissions
Lists all permissions of the role by `roleIdOrLabel`
|
IamRoles |
listRoles(java.lang.String after)
List all Roles
Lists all roles with pagination support
|
PagedList |
listRolesWithPaginationInfo(java.lang.String after)
List all Roles
Lists all roles with pagination support
|
<T> T |
replaceRole(java.lang.Class<?> T,
java.lang.String roleIdOrLabel,
IamRole instance)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
IamRole |
replaceRole(java.lang.String roleIdOrLabel,
IamRole instance)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
PagedList |
replaceRoleWithPaginationInfo(java.lang.String roleIdOrLabel,
IamRole instance)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
void |
setApiClient(ApiClient apiClient) |
public RoleApi()
@Autowired public RoleApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public IamRole createRole(IamRole instance) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
instance
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic <T> T createRole(java.lang.Class<?> T, IamRole instance) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
T
- (required) - the assignable return typeinstance
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList createRoleWithPaginationInfo(IamRole instance) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
instance
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void createRolePermission(java.lang.String roleIdOrLabel, java.lang.String permissionType) throws org.springframework.web.client.RestClientException
204 - No Content
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void deleteRole(java.lang.String roleIdOrLabel) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void deleteRolePermission(java.lang.String roleIdOrLabel, java.lang.String permissionType) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic IamRole getRole(java.lang.String roleIdOrLabel) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList getRoleWithPaginationInfo(java.lang.String roleIdOrLabel) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic Permission getRolePermission(java.lang.String roleIdOrLabel, java.lang.String permissionType) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList getRolePermissionWithPaginationInfo(java.lang.String roleIdOrLabel, java.lang.String permissionType) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)permissionType
- An okta permission type (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic Permissions listRolePermissions(java.lang.String roleIdOrLabel) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList listRolePermissionsWithPaginationInfo(java.lang.String roleIdOrLabel) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic IamRoles listRoles(java.lang.String after) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
429 - Too Many Requests
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)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList listRolesWithPaginationInfo(java.lang.String after) throws org.springframework.web.client.RestClientException
200 - OK
403 - Forbidden
429 - Too Many Requests
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)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic IamRole replaceRole(java.lang.String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException
200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic <T> T replaceRole(java.lang.Class<?> T, java.lang.String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException
200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
T
- (required) - the assignable return typeroleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList replaceRoleWithPaginationInfo(java.lang.String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException
200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
roleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APICopyright © 2017-2022 Okta. All Rights Reserved.