Class IAMPrincipalPoliciesImpl
java.lang.Object
com.eqixiac.equinix.iam.client.implementation.IAMPrincipalPoliciesImpl
- All Implemented Interfaces:
IAMPrincipalPolicies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDisables a principal policy.Enables a previously disabled principal policy.Retrieves the principal policy for a single user principal.Lists the principal policies of a project (first page).Lists the principal policies of a project, controlling pagination.update(String projectId, String userPrincipal, UpdatePrincipalPolicyRequest request) Updates a principal policy.
-
Constructor Details
-
IAMPrincipalPoliciesImpl
public IAMPrincipalPoliciesImpl()
-
-
Method Details
-
list
Description copied from interface:IAMPrincipalPoliciesLists the principal policies of a project (first page).- Specified by:
listin interfaceIAMPrincipalPolicies- 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 principal policies
-
list
Description copied from interface:IAMPrincipalPoliciesLists the principal policies of a project, controlling pagination.- Specified by:
listin interfaceIAMPrincipalPolicies- 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 principal policies
-
getByUuid
Description copied from interface:IAMPrincipalPoliciesRetrieves the principal policy for a single user principal.- Specified by:
getByUuidin interfaceIAMPrincipalPolicies- 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))userPrincipal- the user principal identifier- Returns:
- the matching principal policy
-
update
public PrincipalPolicy update(String projectId, String userPrincipal, UpdatePrincipalPolicyRequest request) Description copied from interface:IAMPrincipalPoliciesUpdates a principal policy.- Specified by:
updatein interfaceIAMPrincipalPolicies- 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))userPrincipal- the user principal identifierrequest- the update (the request'slastRevguards against concurrent updates)- Returns:
- the updated principal policy
-
enable
Description copied from interface:IAMPrincipalPoliciesEnables a previously disabled principal policy.- Specified by:
enablein interfaceIAMPrincipalPolicies- 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))userPrincipal- the user principal identifierlastRev- the last-known revision of the policy (for concurrency control), ornull- Returns:
- the updated principal policy
-
disable
Description copied from interface:IAMPrincipalPoliciesDisables a principal policy.- Specified by:
disablein interfaceIAMPrincipalPolicies- 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))userPrincipal- the user principal identifierlastRev- the last-known revision of the policy (for concurrency control), ornull- Returns:
- the updated principal policy
-