Class 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 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)