Interface IAMRoleAssignments
- All Known Implementing Classes:
IAMRoleAssignmentsImpl
public interface IAMRoleAssignments
Client interface for IAM role assignments - associating a principal with a role within a scope.
Supports listing assignments for a scope
(GET /v1/roleAssignments, operationId listRoleAssignments), creating an
assignment (POST /v1/roleAssignments, operationId createRoleAssignment),
retrieving one by id (GET /v1/roleAssignments/{roleAssignmentId}, operationId
getRoleAssignment) and deleting one
(DELETE /v1/roleAssignments/{roleAssignmentId}, operationId deleteRoleAssignment).
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateRoleAssignmentRequest request) Creates a new role assignment.Deletes a role assignment by its identifier.Retrieves a single role assignment by its identifier.Lists the role assignments for a given scope (first page).Lists the role assignments for a given scope, controlling pagination.
-
Method Details
-
list
Lists the role assignments for a given scope (first page).- Parameters:
assignmentScopeId- the id of the scope object (required)assignmentScopeType- the type of the scope object, e.g.PROJECT(required)- Returns:
- the first page of role assignments
-
list
RoleAssignmentList list(String assignmentScopeId, String assignmentScopeType, String pageToken, Integer pageSize) Lists the role assignments for a given scope, controlling pagination.- Parameters:
assignmentScopeId- the id of the scope object (required)assignmentScopeType- the type of the scope object, e.g.PROJECT(required)pageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server default- Returns:
- the requested page of role assignments
-
create
Creates a new role assignment.- Parameters:
request- the role assignment to create (principal, role and scope)- Returns:
- the created role assignment
-
getByUuid
Retrieves a single role assignment by its identifier.- Parameters:
roleAssignmentId- the role assignment identifier- Returns:
- the matching role assignment
-
delete
-