Class CreatePolicyMaskRequest
java.lang.Object
com.eqixiac.equinix.iam.model.json.creators.CreatePolicyMaskRequest
Request body for creating an IAM policy mask via
POST
/v1/projects/{projectId}/policyMasks (operationId createPolicyMask, spec schema
CreatePolicyMaskBody).
The managedPolicies/managedPermissionSets fields are a oneOf of the
literal string "none" or an array of ids, and subtract is a structured object;
each is a PolicyExpression that losslessly preserves whichever form is supplied — use
PolicyExpression.of(String) for "none",
PolicyExpression.ofStrings(java.util.List) for an id array, or
PolicyExpression.of(com.fasterxml.jackson.databind.JsonNode) for the subtract
object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Sets the description of the policy mask.managedPermissionSets(PolicyExpression managedPermissionSets) Sets the managed permission sets — either"none"or an array ofmanagedset:ids.managedPolicies(PolicyExpression managedPolicies) Sets the managed policies — either"none"or an array ofmanagedpolicy:ids.policyMaskId(String policyMaskId) Sets the policy mask identifier (required), e.g.subtract(PolicyExpression subtract) Sets thesubtractobject (carrying nestedmanagedPolicies/managedPermissionSetsarrays).Sets the user-controlled tags.
-
Constructor Details
-
CreatePolicyMaskRequest
public CreatePolicyMaskRequest()
-
-
Method Details
-
policyMaskId
Sets the policy mask identifier (required), e.g.policymask:my-mask.- Parameters:
policyMaskId- the policy mask id- Returns:
- this request for chaining
-
description
Sets the description of the policy mask.- Parameters:
description- the description- Returns:
- this request for chaining
-
tags
Sets the user-controlled tags.- Parameters:
tags- the tags- Returns:
- this request for chaining
-
managedPolicies
Sets the managed policies — either"none"or an array ofmanagedpolicy:ids.- Parameters:
managedPolicies- the managed policies as aPolicyExpression- Returns:
- this request for chaining
-
managedPermissionSets
Sets the managed permission sets — either"none"or an array ofmanagedset:ids.- Parameters:
managedPermissionSets- the managed permission sets as aPolicyExpression- Returns:
- this request for chaining
-
subtract
Sets thesubtractobject (carrying nestedmanagedPolicies/managedPermissionSetsarrays).- Parameters:
subtract- the subtract object as aPolicyExpression- Returns:
- this request for chaining
-