Class ResourceRule

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<ResourceRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class ResourceRule
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<ResourceRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
    See Also:
    Serialized Form
    • Constructor Detail

      • ResourceRule

        public ResourceRule()
        No args constructor for use in serialization
    • Method Detail

      • getApiGroups

        public List<String> getApiGroups()
        APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.
      • setApiGroups

        public void setApiGroups​(List<String> apiGroups)
        APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.
      • 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. "*" means all.
      • 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. "*" means all.
      • getResources

        public List<String> getResources()
        Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups.

        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.

      • setResources

        public void setResources​(List<String> resources)
        Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups.

        "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.

      • getVerbs

        public List<String> getVerbs()
        Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
      • setVerbs

        public void setVerbs​(List<String> verbs)
        Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
      • getAdditionalProperties

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

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

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