Class RoleApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TcreateRole(Class<?> T, IamRole instance) Create a Role Creates a new rolecreateRole(IamRole instance) Create a Role Creates a new rolevoidcreateRolePermission(String roleIdOrLabel, String permissionType) Create a Permission Creates a permission specified by `permissionType` to the roleorg.springframework.http.ResponseEntity<Void>createRolePermissionWithHttpInfo(String roleIdOrLabel, String permissionType) Create a Permission Creates a permission specified by `permissionType` to the roleorg.springframework.http.ResponseEntity<IamRole>createRoleWithHttpInfo(IamRole instance) Create a Role Creates a new rolecreateRoleWithPaginationInfo(IamRole instance) Create a Role Creates a new rolevoiddeleteRole(String roleIdOrLabel) Delete a Role Deletes a role by `roleIdOrLabel`voiddeleteRolePermission(String roleIdOrLabel, String permissionType) Delete a Permission Deletes a permission from a role by `permissionType`org.springframework.http.ResponseEntity<Void>deleteRolePermissionWithHttpInfo(String roleIdOrLabel, String permissionType) Delete a Permission Deletes a permission from a role by `permissionType`org.springframework.http.ResponseEntity<Void>deleteRoleWithHttpInfo(String roleIdOrLabel) Delete a Role Deletes a role by `roleIdOrLabel`Retrieve a Role Retrieves a role by `roleIdOrLabel`getRolePermission(String roleIdOrLabel, String permissionType) Retrieve a Permission Retrieves a permission by `permissionType`org.springframework.http.ResponseEntity<Permission>getRolePermissionWithHttpInfo(String roleIdOrLabel, String permissionType) Retrieve a Permission Retrieves a permission by `permissionType`getRolePermissionWithPaginationInfo(String roleIdOrLabel, String permissionType) Retrieve a Permission Retrieves a permission by `permissionType`org.springframework.http.ResponseEntity<IamRole>getRoleWithHttpInfo(String roleIdOrLabel) Retrieve a Role Retrieves a role by `roleIdOrLabel`getRoleWithPaginationInfo(String roleIdOrLabel) Retrieve a Role Retrieves a role by `roleIdOrLabel`listRolePermissions(String roleIdOrLabel) List all Permissions Lists all permissions of the role by `roleIdOrLabel`org.springframework.http.ResponseEntity<Permissions>listRolePermissionsWithHttpInfo(String roleIdOrLabel) List all Permissions Lists all permissions of the role by `roleIdOrLabel`listRolePermissionsWithPaginationInfo(String roleIdOrLabel) List all Permissions Lists all permissions of the role by `roleIdOrLabel`List all Roles Lists all roles with pagination supportorg.springframework.http.ResponseEntity<IamRoles>listRolesWithHttpInfo(String after) List all Roles Lists all roles with pagination supportList all Roles Lists all roles with pagination support<T> TreplaceRole(Class<?> T, String roleIdOrLabel, IamRole instance) Replace a Role Replaces a role by `roleIdOrLabel`replaceRole(String roleIdOrLabel, IamRole instance) Replace a Role Replaces a role by `roleIdOrLabel`org.springframework.http.ResponseEntity<IamRole>replaceRoleWithHttpInfo(String roleIdOrLabel, IamRole instance) Replace a Role Replaces a role by `roleIdOrLabel`replaceRoleWithPaginationInfo(String roleIdOrLabel, IamRole instance) Replace a Role Replaces a role by `roleIdOrLabel`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
RoleApi
public RoleApi() -
RoleApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createRole
public IamRole createRole(IamRole instance) throws org.springframework.web.client.RestClientException Create a Role Creates a new role200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
instance- (required)- Returns:
- IamRole
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
createRole
public <T> T createRole(Class<?> T, IamRole instance) throws org.springframework.web.client.RestClientException Create a Role Creates a new role200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
T- (required) - the assignable return typeinstance- (required)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
createRoleWithHttpInfo
public org.springframework.http.ResponseEntity<IamRole> createRoleWithHttpInfo(IamRole instance) throws org.springframework.web.client.RestClientException Create a Role Creates a new role200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
instance- (required)- Returns:
- ResponseEntity<IamRole>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
createRoleWithPaginationInfo
public PagedList createRoleWithPaginationInfo(IamRole instance) throws org.springframework.web.client.RestClientException Create a Role Creates a new role200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
instance- (required)- Returns:
- ResponseEntity<IamRole>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
createRolePermission
public void createRolePermission(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Create a Permission Creates a permission specified by `permissionType` to the role204 - No Content
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
createRolePermissionWithHttpInfo
public org.springframework.http.ResponseEntity<Void> createRolePermissionWithHttpInfo(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Create a Permission Creates a permission specified by `permissionType` to the role204 - No Content
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
deleteRole
public void deleteRole(String roleIdOrLabel) throws org.springframework.web.client.RestClientException Delete a Role Deletes a role by `roleIdOrLabel`204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
deleteRoleWithHttpInfo
public org.springframework.http.ResponseEntity<Void> deleteRoleWithHttpInfo(String roleIdOrLabel) throws org.springframework.web.client.RestClientException Delete a Role Deletes a role by `roleIdOrLabel`204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
deleteRolePermission
public void deleteRolePermission(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Delete a Permission Deletes a permission from a role by `permissionType`204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
deleteRolePermissionWithHttpInfo
public org.springframework.http.ResponseEntity<Void> deleteRolePermissionWithHttpInfo(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Delete a Permission Deletes a permission from a role by `permissionType`204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
getRole
public IamRole getRole(String roleIdOrLabel) throws org.springframework.web.client.RestClientException Retrieve a Role Retrieves a role by `roleIdOrLabel`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- IamRole
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
getRoleWithHttpInfo
public org.springframework.http.ResponseEntity<IamRole> getRoleWithHttpInfo(String roleIdOrLabel) throws org.springframework.web.client.RestClientException Retrieve a Role Retrieves a role by `roleIdOrLabel`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- ResponseEntity<IamRole>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
getRoleWithPaginationInfo
public PagedList getRoleWithPaginationInfo(String roleIdOrLabel) throws org.springframework.web.client.RestClientException Retrieve a Role Retrieves a role by `roleIdOrLabel`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- ResponseEntity<IamRole>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
getRolePermission
public Permission getRolePermission(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Retrieve a Permission Retrieves a permission by `permissionType`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Returns:
- Permission
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
getRolePermissionWithHttpInfo
public org.springframework.http.ResponseEntity<Permission> getRolePermissionWithHttpInfo(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Retrieve a Permission Retrieves a permission by `permissionType`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Returns:
- ResponseEntity<Permission>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
getRolePermissionWithPaginationInfo
public PagedList getRolePermissionWithPaginationInfo(String roleIdOrLabel, String permissionType) throws org.springframework.web.client.RestClientException Retrieve a Permission Retrieves a permission by `permissionType`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)permissionType- An okta permission type (required)- Returns:
- ResponseEntity<Permission>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
listRolePermissions
public Permissions listRolePermissions(String roleIdOrLabel) throws org.springframework.web.client.RestClientException List all Permissions Lists all permissions of the role by `roleIdOrLabel`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- Permissions
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
listRolePermissionsWithHttpInfo
public org.springframework.http.ResponseEntity<Permissions> listRolePermissionsWithHttpInfo(String roleIdOrLabel) throws org.springframework.web.client.RestClientException List all Permissions Lists all permissions of the role by `roleIdOrLabel`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- ResponseEntity<Permissions>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
listRolePermissionsWithPaginationInfo
public PagedList listRolePermissionsWithPaginationInfo(String roleIdOrLabel) throws org.springframework.web.client.RestClientException List all Permissions Lists all permissions of the role by `roleIdOrLabel`200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- ResponseEntity<Permissions>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
listRoles
List all Roles Lists all roles with pagination support200 - OK
403 - Forbidden
429 - Too Many Requests
- 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](/#pagination) for more information. (optional)- Returns:
- IamRoles
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
listRolesWithHttpInfo
public org.springframework.http.ResponseEntity<IamRoles> listRolesWithHttpInfo(String after) throws org.springframework.web.client.RestClientException List all Roles Lists all roles with pagination support200 - OK
403 - Forbidden
429 - Too Many Requests
- 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](/#pagination) for more information. (optional)- Returns:
- ResponseEntity<IamRoles>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
listRolesWithPaginationInfo
public PagedList listRolesWithPaginationInfo(String after) throws org.springframework.web.client.RestClientException List all Roles Lists all roles with pagination support200 - OK
403 - Forbidden
429 - Too Many Requests
- 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](/#pagination) for more information. (optional)- Returns:
- ResponseEntity<IamRoles>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
replaceRole
public IamRole replaceRole(String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException Replace a Role Replaces a role by `roleIdOrLabel`200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)instance- (required)- Returns:
- IamRole
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
replaceRole
public <T> T replaceRole(Class<?> T, String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException Replace a Role Replaces a role by `roleIdOrLabel`200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
T- (required) - the assignable return typeroleIdOrLabel- `id` or `label` of the role (required)instance- (required)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
replaceRoleWithHttpInfo
public org.springframework.http.ResponseEntity<IamRole> replaceRoleWithHttpInfo(String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException Replace a Role Replaces a role by `roleIdOrLabel`200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)instance- (required)- Returns:
- ResponseEntity<IamRole>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
replaceRoleWithPaginationInfo
public PagedList replaceRoleWithPaginationInfo(String roleIdOrLabel, IamRole instance) throws org.springframework.web.client.RestClientException Replace a Role Replaces a role by `roleIdOrLabel`200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
roleIdOrLabel- `id` or `label` of the role (required)instance- (required)- Returns:
- ResponseEntity<IamRole>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-