Class IAMPermissionSetsImpl
java.lang.Object
com.eqixiac.equinix.iam.client.implementation.IAMPermissionSetsImpl
- All Implemented Interfaces:
IAMPermissionSets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String projectId, CreatePermissionSetRequest request) Creates a new permission set in a project.Deletes a permission set.Retrieves a single permission set by id.Lists the permission sets of a project (first page).Lists the permission sets of a project, controlling pagination.update(String projectId, String permissionSetId, UpdatePermissionSetRequest request) Updates a permission set.
-
Constructor Details
-
IAMPermissionSetsImpl
public IAMPermissionSetsImpl()
-
-
Method Details
-
list
Description copied from interface:IAMPermissionSetsLists the permission sets of a project (first page).- Specified by:
listin interfaceIAMPermissionSets- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))- Returns:
- the first page of permission sets
-
list
Description copied from interface:IAMPermissionSetsLists the permission sets of a project, controlling pagination.- Specified by:
listin interfaceIAMPermissionSets- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))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 permission sets
-
create
Description copied from interface:IAMPermissionSetsCreates a new permission set in a project.- Specified by:
createin interfaceIAMPermissionSets- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))request- the permission set to create- Returns:
- the created permission set
-
getByUuid
Description copied from interface:IAMPermissionSetsRetrieves a single permission set by id.- Specified by:
getByUuidin interfaceIAMPermissionSets- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))permissionSetId- the permission set identifier- Returns:
- the matching permission set
-
update
public PermissionSet update(String projectId, String permissionSetId, UpdatePermissionSetRequest request) Description copied from interface:IAMPermissionSetsUpdates a permission set.- Specified by:
updatein interfaceIAMPermissionSets- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))permissionSetId- the permission set identifierrequest- the update (the request'slastRevguards against concurrent updates)- Returns:
- the updated permission set
-
delete
Description copied from interface:IAMPermissionSetsDeletes a permission set.The spec requires the permission set's last-known revision in the request body for optimistic-concurrency-controlled deletion.
- Specified by:
deletein interfaceIAMPermissionSets- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))permissionSetId- the permission set identifierlastRev- the last-known revision of the permission set (required; fromPermissionSet.getRev())- Returns:
trueif the deletion request was accepted
-