Class IAMPolicyMasksImpl
java.lang.Object
com.eqixiac.equinix.iam.client.implementation.IAMPolicyMasksImpl
- All Implemented Interfaces:
IAMPolicyMasks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String projectId, CreatePolicyMaskRequest request) Creates a new policy mask in a project.Deletes a policy mask.Disables a policy mask.Enables a previously disabled policy mask.Retrieves a single policy mask by id.Lists the policy masks of a project (first page).Lists the policy masks of a project, controlling pagination.update(String projectId, String policyMaskId, UpdatePolicyMaskRequest request) Updates a policy mask.
-
Constructor Details
-
IAMPolicyMasksImpl
public IAMPolicyMasksImpl()
-
-
Method Details
-
list
Description copied from interface:IAMPolicyMasksLists the policy masks of a project (first page).- Specified by:
listin interfaceIAMPolicyMasks- 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 policy masks
-
list
Description copied from interface:IAMPolicyMasksLists the policy masks of a project, controlling pagination.- Specified by:
listin interfaceIAMPolicyMasks- 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 policy masks
-
create
Description copied from interface:IAMPolicyMasksCreates a new policy mask in a project.- Specified by:
createin interfaceIAMPolicyMasks- 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 policy mask to create- Returns:
- the created policy mask
-
getByUuid
Description copied from interface:IAMPolicyMasksRetrieves a single policy mask by id.- Specified by:
getByUuidin interfaceIAMPolicyMasks- 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))policyMaskId- the policy mask identifier- Returns:
- the matching policy mask
-
update
Description copied from interface:IAMPolicyMasksUpdates a policy mask.- Specified by:
updatein interfaceIAMPolicyMasks- 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))policyMaskId- the policy mask identifierrequest- the update (the request'slastRevguards against concurrent updates)- Returns:
- the updated policy mask
-
delete
Description copied from interface:IAMPolicyMasksDeletes a policy mask.The spec requires the policy mask's last-known revision in the request body for optimistic-concurrency-controlled deletion.
- Specified by:
deletein interfaceIAMPolicyMasks- 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))policyMaskId- the policy mask identifierlastRev- the last-known revision of the mask (required; fromPolicyMask.getRev())- Returns:
trueif the deletion request was accepted
-
enable
Description copied from interface:IAMPolicyMasksEnables a previously disabled policy mask.- Specified by:
enablein interfaceIAMPolicyMasks- 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))policyMaskId- the policy mask identifierlastRev- the last-known revision of the mask (for concurrency control), ornull- Returns:
- the updated policy mask
-
disable
Description copied from interface:IAMPolicyMasksDisables a policy mask.- Specified by:
disablein interfaceIAMPolicyMasks- 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))policyMaskId- the policy mask identifierlastRev- the last-known revision of the mask (for concurrency control), ornull- Returns:
- the updated policy mask
-