Class IAMPolicyMasksImpl

java.lang.Object
com.eqixiac.equinix.iam.client.implementation.IAMPolicyMasksImpl
All Implemented Interfaces:
IAMPolicyMasks

public class IAMPolicyMasksImpl extends Object implements IAMPolicyMasks
  • Constructor Details

    • IAMPolicyMasksImpl

      public IAMPolicyMasksImpl()
  • Method Details

    • list

      public PolicyMaskList list(String projectId)
      Description copied from interface: IAMPolicyMasks
      Lists the policy masks of a project (first page).
      Specified by:
      list in interface IAMPolicyMasks
      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 policy masks
    • list

      public PolicyMaskList list(String projectId, String pageToken, Integer pageSize)
      Description copied from interface: IAMPolicyMasks
      Lists the policy masks of a project, controlling pagination.
      Specified by:
      list in interface IAMPolicyMasks
      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 policy masks
    • create

      public PolicyMask create(String projectId, CreatePolicyMaskRequest request)
      Description copied from interface: IAMPolicyMasks
      Creates a new policy mask in a project.
      Specified by:
      create in interface IAMPolicyMasks
      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))
      request - the policy mask to create
      Returns:
      the created policy mask
    • getByUuid

      public PolicyMask getByUuid(String projectId, String policyMaskId)
      Description copied from interface: IAMPolicyMasks
      Retrieves a single policy mask by id.
      Specified by:
      getByUuid in interface IAMPolicyMasks
      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))
      policyMaskId - the policy mask identifier
      Returns:
      the matching policy mask
    • update

      public PolicyMask update(String projectId, String policyMaskId, UpdatePolicyMaskRequest request)
      Description copied from interface: IAMPolicyMasks
      Updates a policy mask.
      Specified by:
      update in interface IAMPolicyMasks
      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))
      policyMaskId - the policy mask identifier
      request - the update (the request's lastRev guards against concurrent updates)
      Returns:
      the updated policy mask
    • delete

      public Boolean delete(String projectId, String policyMaskId, String lastRev)
      Description copied from interface: IAMPolicyMasks
      Deletes a policy mask.

      The spec requires the policy mask's last-known revision in the request body for optimistic-concurrency-controlled deletion.

      Specified by:
      delete in interface IAMPolicyMasks
      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))
      policyMaskId - the policy mask identifier
      lastRev - the last-known revision of the mask (required; from PolicyMask.getRev())
      Returns:
      true if the deletion request was accepted
    • enable

      public PolicyMask enable(String projectId, String policyMaskId, String lastRev)
      Description copied from interface: IAMPolicyMasks
      Enables a previously disabled policy mask.
      Specified by:
      enable in interface IAMPolicyMasks
      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))
      policyMaskId - the policy mask identifier
      lastRev - the last-known revision of the mask (for concurrency control), or null
      Returns:
      the updated policy mask
    • disable

      public PolicyMask disable(String projectId, String policyMaskId, String lastRev)
      Description copied from interface: IAMPolicyMasks
      Disables a policy mask.
      Specified by:
      disable in interface IAMPolicyMasks
      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))
      policyMaskId - the policy mask identifier
      lastRev - the last-known revision of the mask (for concurrency control), or null
      Returns:
      the updated policy mask