Class IAMPrincipalPoliciesImpl

java.lang.Object
com.eqixiac.equinix.iam.client.implementation.IAMPrincipalPoliciesImpl
All Implemented Interfaces:
IAMPrincipalPolicies

public class IAMPrincipalPoliciesImpl extends Object implements IAMPrincipalPolicies
  • Constructor Details

    • IAMPrincipalPoliciesImpl

      public IAMPrincipalPoliciesImpl()
  • Method Details

    • list

      public PrincipalPolicyList list(String projectId)
      Description copied from interface: IAMPrincipalPolicies
      Lists the principal policies of a project (first page).
      Specified by:
      list in interface IAMPrincipalPolicies
      Parameters:
      projectId - the IAM project id, project:<id> (for example project:abc-123); a bare Resource Manager UUID is rejected, convert it with ProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))
      Returns:
      the first page of principal policies
    • list

      public PrincipalPolicyList list(String projectId, String pageToken, Integer pageSize)
      Description copied from interface: IAMPrincipalPolicies
      Lists the principal policies of a project, controlling pagination.
      Specified by:
      list in interface IAMPrincipalPolicies
      Parameters:
      projectId - the IAM project id, project:<id> (for example project:abc-123); a bare Resource Manager UUID is rejected, convert it with ProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))
      pageToken - the opaque page token from a prior response, or null for the first page
      pageSize - the maximum number of results per page, or null for the server default
      Returns:
      the requested page of principal policies
    • getByUuid

      public PrincipalPolicy getByUuid(String projectId, String userPrincipal)
      Description copied from interface: IAMPrincipalPolicies
      Retrieves the principal policy for a single user principal.
      Specified by:
      getByUuid in interface IAMPrincipalPolicies
      Parameters:
      projectId - the IAM project id, project:<id> (for example project:abc-123); a bare Resource Manager UUID is rejected, convert it with ProjectIds.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: IAMPrincipalPolicies
      Updates a principal policy.
      Specified by:
      update in interface IAMPrincipalPolicies
      Parameters:
      projectId - the IAM project id, project:<id> (for example project:abc-123); a bare Resource Manager UUID is rejected, convert it with ProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))
      userPrincipal - the user principal identifier
      request - the update (the request's lastRev guards against concurrent updates)
      Returns:
      the updated principal policy
    • enable

      public PrincipalPolicy enable(String projectId, String userPrincipal, String lastRev)
      Description copied from interface: IAMPrincipalPolicies
      Enables a previously disabled principal policy.
      Specified by:
      enable in interface IAMPrincipalPolicies
      Parameters:
      projectId - the IAM project id, project:<id> (for example project:abc-123); a bare Resource Manager UUID is rejected, convert it with ProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))
      userPrincipal - the user principal identifier
      lastRev - the last-known revision of the policy (for concurrency control), or null
      Returns:
      the updated principal policy
    • disable

      public PrincipalPolicy disable(String projectId, String userPrincipal, String lastRev)
      Description copied from interface: IAMPrincipalPolicies
      Disables a principal policy.
      Specified by:
      disable in interface IAMPrincipalPolicies
      Parameters:
      projectId - the IAM project id, project:<id> (for example project:abc-123); a bare Resource Manager UUID is rejected, convert it with ProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))
      userPrincipal - the user principal identifier
      lastRev - the last-known revision of the policy (for concurrency control), or null
      Returns:
      the updated principal policy