Package io.fabric8.openshift.api.model
Class GroupRestriction
- java.lang.Object
-
- io.fabric8.openshift.api.model.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 Summary
Constructors Constructor Description GroupRestriction()No args constructor for use in serializationGroupRestriction(List<String> groups, List<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.LabelSelector> labels)Selectors specifies a list of label selectors over group labels.GroupRestrictionBuildertoBuilder()
-
-
-
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.
-
edit
public GroupRestrictionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<GroupRestrictionBuilder>
-
toBuilder
public GroupRestrictionBuilder toBuilder()
-
-