Package io.fabric8.openshift.api.model
Class GroupRestriction
- java.lang.Object
-
- io.fabric8.openshift.api.model.GroupRestriction
-
- All Implemented Interfaces:
Editable<GroupRestrictionBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class GroupRestriction extends Object implements Editable<GroupRestrictionBuilder>, 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 Summary
Constructors Constructor Description GroupRestriction()No args constructor for use in serializationGroupRestriction(List<String> groups, List<LabelSelector> labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupRestrictionBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getGroups()groups is a list of groups used to match against an individual user's groups.List<LabelSelector>getLabels()Selectors specifies a list of label selectors over group labels.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetGroups(List<String> groups)groups is a list of groups used to match against an individual user's groups.voidsetLabels(List<LabelSelector> labels)Selectors specifies a list of label selectors over group labels.GroupRestrictionBuildertoBuilder()
-
-
-
Constructor Detail
-
GroupRestriction
public GroupRestriction()
No args constructor for use in serialization
-
GroupRestriction
public GroupRestriction(List<String> groups, List<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<LabelSelector> getLabels()
Selectors specifies a list of label selectors over group labels.
-
setLabels
public void setLabels(List<LabelSelector> labels)
Selectors specifies a list of label selectors over group labels.
-
edit
public GroupRestrictionBuilder edit()
- Specified by:
editin interfaceEditable<GroupRestrictionBuilder>
-
toBuilder
public GroupRestrictionBuilder toBuilder()
-
-