Class GroupRestriction

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class GroupRestriction
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<GroupRestrictionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    GroupRestriction matches a group either by a string match on the group name or a label selector applied to group labels.
    See Also:
    Serialized Form
    • Constructor Detail

      • GroupRestriction

        public GroupRestriction()
        No args constructor for use in serialization
      • GroupRestriction

        public GroupRestriction​(List<String> groups,
                                List<io.fabric8.kubernetes.api.model.LabelSelector> labels)
    • Method Detail

      • getGroups

        public List<String> getGroups()
        groups is a list of groups used to match against an individual user's groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role.
      • setGroups

        public void setGroups​(List<String> groups)
        groups is a list of groups used to match against an individual user's groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role.
      • getLabels

        public List<io.fabric8.kubernetes.api.model.LabelSelector> getLabels()
        Selectors specifies a list of label selectors over group labels.
      • setLabels

        public void setLabels​(List<io.fabric8.kubernetes.api.model.LabelSelector> labels)
        Selectors specifies a list of label selectors over group labels.
      • getAdditionalProperties

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

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

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