Package io.fabric8.openshift.api.model
Class RunAsUserStrategyOptions
- java.lang.Object
-
- io.fabric8.openshift.api.model.RunAsUserStrategyOptions
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RunAsUserStrategyOptionsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RunAsUserStrategyOptions extends Object implements io.fabric8.kubernetes.api.builder.Editable<RunAsUserStrategyOptionsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RunAsUserStrategyOptions()No args constructor for use in serializationRunAsUserStrategyOptions(String type, Long uid, Long uidRangeMax, Long uidRangeMin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunAsUserStrategyOptionsBuilderedit()Map<String,Object>getAdditionalProperties()StringgetType()type is the strategy that will dictate what RunAsUser is used in the SecurityContext.LonggetUid()uid is the user id that containers must run as.LonggetUidRangeMax()uidRangeMax defines the max value for a strategy that allocates by range.LonggetUidRangeMin()uidRangeMin defines the min value for a strategy that allocates by range.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetType(String type)type is the strategy that will dictate what RunAsUser is used in the SecurityContext.voidsetUid(Long uid)uid is the user id that containers must run as.voidsetUidRangeMax(Long uidRangeMax)uidRangeMax defines the max value for a strategy that allocates by range.voidsetUidRangeMin(Long uidRangeMin)uidRangeMin defines the min value for a strategy that allocates by range.RunAsUserStrategyOptionsBuildertoBuilder()
-
-
-
Method Detail
-
getType
public String getType()
type is the strategy that will dictate what RunAsUser is used in the SecurityContext.
-
setType
public void setType(String type)
type is the strategy that will dictate what RunAsUser is used in the SecurityContext.
-
getUid
public Long getUid()
uid is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids.
-
setUid
public void setUid(Long uid)
uid is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids.
-
getUidRangeMax
public Long getUidRangeMax()
uidRangeMax defines the max value for a strategy that allocates by range.
-
setUidRangeMax
public void setUidRangeMax(Long uidRangeMax)
uidRangeMax defines the max value for a strategy that allocates by range.
-
getUidRangeMin
public Long getUidRangeMin()
uidRangeMin defines the min value for a strategy that allocates by range.
-
setUidRangeMin
public void setUidRangeMin(Long uidRangeMin)
uidRangeMin defines the min value for a strategy that allocates by range.
-
edit
public RunAsUserStrategyOptionsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RunAsUserStrategyOptionsBuilder>
-
toBuilder
public RunAsUserStrategyOptionsBuilder toBuilder()
-
-