@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-01-18T04:14:02.238-06:00[America/Chicago]") @Component(value="org.openapitools.client.api.RoleApi") public class RoleApi extends Object
Modifier and Type | Method and Description |
---|---|
<T> T |
createRole(Class<?> T,
IamRole instance)
Create a Role
Creates a new role
|
IamRole |
createRole(IamRole instance)
Create a Role
Creates a new role
|
void |
createRolePermission(String roleIdOrLabel,
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(String roleIdOrLabel)
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`
|
ApiClient |
getApiClient() |
IamRole |
getRole(String roleIdOrLabel)
Retrieve a Role
Retrieves a role by `roleIdOrLabel`
|
Permission |
getRolePermission(String roleIdOrLabel,
String permissionType)
Retrieve a Permission
Retrieves a permission by `permissionType`
|
PagedList |
getRolePermissionWithPaginationInfo(String roleIdOrLabel,
String permissionType)
Retrieve a Permission
Retrieves a permission by `permissionType`
|
PagedList |
getRoleWithPaginationInfo(String roleIdOrLabel)
Retrieve a Role
Retrieves a role by `roleIdOrLabel`
|
Permissions |
listRolePermissions(String roleIdOrLabel)
List all Permissions
Lists all permissions of the role by `roleIdOrLabel`
|
PagedList |
listRolePermissionsWithPaginationInfo(String roleIdOrLabel)
List all Permissions
Lists all permissions of the role by `roleIdOrLabel`
|
IamRoles |
listRoles(String after)
List all Roles
Lists all roles with pagination support
|
PagedList |
listRolesWithPaginationInfo(String after)
List all Roles
Lists all roles with pagination support
|
<T> T |
replaceRole(Class<?> T,
String roleIdOrLabel,
IamRole instance)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
IamRole |
replaceRole(String roleIdOrLabel,
IamRole instance)
Replace a Role
Replaces a role by `roleIdOrLabel`
|
PagedList |
replaceRoleWithPaginationInfo(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(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(String roleIdOrLabel, 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(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(String roleIdOrLabel, 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(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(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(String roleIdOrLabel, 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(String roleIdOrLabel, 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(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(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(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(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(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(Class<?> T, 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(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–2023 Okta. All rights reserved.