Package io.fabric8.openshift.api.model
Class PolicyRule
- java.lang.Object
-
- io.fabric8.openshift.api.model.PolicyRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PolicyRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PolicyRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<PolicyRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyRuleBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getApiGroups()apiGroups is the name of the APIGroup that contains the resources.ObjectgetAttributeRestrictions()PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.List<String>getNonResourceURLs()NonResourceURLsSlice is a set of partial urls that a user should have access to.List<String>getResourceNames()resourceNames is an optional white list of names that the rule applies to.List<String>getResources()resources is a list of resources this rule applies to.List<String>getVerbs()verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiGroups(List<String> apiGroups)apiGroups is the name of the APIGroup that contains the resources.voidsetAttributeRestrictions(Object attributeRestrictions)PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.voidsetNonResourceURLs(List<String> nonResourceURLs)NonResourceURLsSlice is a set of partial urls that a user should have access to.voidsetResourceNames(List<String> resourceNames)resourceNames is an optional white list of names that the rule applies to.voidsetResources(List<String> resources)resources is a list of resources this rule applies to.voidsetVerbs(List<String> verbs)verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.PolicyRuleBuildertoBuilder()
-
-
-
Method Detail
-
getApiGroups
public List<String> getApiGroups()
apiGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed
-
setApiGroups
public void setApiGroups(List<String> apiGroups)
apiGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed
-
getAttributeRestrictions
public Object getAttributeRestrictions()
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
-
setAttributeRestrictions
public void setAttributeRestrictions(Object attributeRestrictions)
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
-
getNonResourceURLs
public List<String> getNonResourceURLs()
NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different.
-
setNonResourceURLs
public void setNonResourceURLs(List<String> nonResourceURLs)
NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different.
-
getResourceNames
public List<String> getResourceNames()
resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
-
setResourceNames
public void setResourceNames(List<String> resourceNames)
resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
-
getResources
public List<String> getResources()
resources is a list of resources this rule applies to. ResourceAll represents all resources.
-
setResources
public void setResources(List<String> resources)
resources is a list of resources this rule applies to. ResourceAll represents all resources.
-
getVerbs
public List<String> getVerbs()
verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
-
setVerbs
public void setVerbs(List<String> verbs)
verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
-
edit
public PolicyRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PolicyRuleBuilder>
-
toBuilder
public PolicyRuleBuilder toBuilder()
-
-