Interface AccessPolicy
- All Known Implementing Classes:
AccessPolicyJson
public interface AccessPolicy
A project-scoped IAM access policy - a set of permissions that may be granted to principals,
groups or other projects. Returned by the access policy operations
(
listAccessPolicies, createAccessPolicy, getAccessPolicy,
updateAccessPolicy, enableAccessPolicy, disableAccessPolicy).
This is a read-only response view (spec schema AccessPolicy). The polymorphic
UserRectSet permission entries are exposed as PolicyExpression values, each of
which losslessly preserves whichever oneOf form (bare string id/ERN or structured
inline-permission / reference object) was returned.
-
Method Details
-
getAccessPolicyId
String getAccessPolicyId()- Returns:
- the access policy identifier (e.g.
accesspolicy:my-policyor a managed policy id)
-
getErn
String getErn()- Returns:
- the Equinix Resource Name (ERN) of the access policy
-
getDescription
String getDescription()- Returns:
- the description of the access policy (may be
null)
-
getTags
-
getPermissions
List<PolicyExpression> getPermissions()- Returns:
- the policy's permission set entries (polymorphic
UserRectSetmembers), each as a losslessPolicyExpression
-
getIntersect
List<PolicyExpression> getIntersect()- Returns:
- the policy's
intersectpermission entries, each as a losslessPolicyExpression
-
getSubtract
List<PolicyExpression> getSubtract()- Returns:
- the policy's
subtractpermission entries, each as a losslessPolicyExpression
-
getRev
String getRev()- Returns:
- the opaque revision of the policy (used as
lastRevfor concurrency control)
-
getDisabledPolicy
Boolean getDisabledPolicy()- Returns:
truewhen the policy is disabled, otherwisenull
-
getManaged
Boolean getManaged()- Returns:
truewhen the policy is managed, otherwisenull
-
getCreatedBy
String getCreatedBy()- Returns:
- the principal that created the policy
-
getCreatedAt
String getCreatedAt()- Returns:
- the creation timestamp
-
getUpdatedBy
String getUpdatedBy()- Returns:
- the principal that last updated the policy
-
getUpdatedAt
String getUpdatedAt()- Returns:
- the last-updated timestamp
-
getApprovedAt
String getApprovedAt()- Returns:
- the approval timestamp (may be
null)
-
getApprovedBy
String getApprovedBy()- Returns:
- the principal that approved the policy (may be
null)
-