@Generated(value="org.jsonschema2pojo") public class SecurityContextConstraints extends Object implements HasMetadata
Modifier and Type | Class and Description |
---|---|
static class |
SecurityContextConstraints.ApiVersion |
Constructor and Description |
---|
SecurityContextConstraints()
No args constructor for use in serialization
|
SecurityContextConstraints(Boolean allowHostDirVolumePlugin,
Boolean allowHostNetwork,
Boolean allowHostPorts,
Boolean allowPrivilegedContainer,
List<String> allowedCapabilities,
SecurityContextConstraints.ApiVersion apiVersion,
List<String> groups,
String kind,
ObjectMeta metadata,
RunAsUserStrategyOptions runAsUser,
SELinuxContextStrategyOptions seLinuxContext,
List<String> users) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
List<String> |
getAllowedCapabilities()
capabilities that are allowed to be added
|
Boolean |
getAllowHostDirVolumePlugin()
allow the use of the host dir volume plugin
|
Boolean |
getAllowHostNetwork()
allow the use of the hostNetwork in the pod spec
|
Boolean |
getAllowHostPorts()
allow the use of the host ports in the containers
|
Boolean |
getAllowPrivilegedContainer()
allow containers to run as privileged
|
SecurityContextConstraints.ApiVersion |
getApiVersion()
(Required)
|
List<String> |
getGroups()
groups allowed to use this SecurityContextConstraints
|
String |
getKind()
(Required)
|
ObjectMeta |
getMetadata() |
RunAsUserStrategyOptions |
getRunAsUser() |
SELinuxContextStrategyOptions |
getSeLinuxContext() |
List<String> |
getUsers()
users allowed to use this SecurityContextConstraints
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setAllowedCapabilities(List<String> allowedCapabilities)
capabilities that are allowed to be added
|
void |
setAllowHostDirVolumePlugin(Boolean allowHostDirVolumePlugin)
allow the use of the host dir volume plugin
|
void |
setAllowHostNetwork(Boolean allowHostNetwork)
allow the use of the hostNetwork in the pod spec
|
void |
setAllowHostPorts(Boolean allowHostPorts)
allow the use of the host ports in the containers
|
void |
setAllowPrivilegedContainer(Boolean allowPrivilegedContainer)
allow containers to run as privileged
|
void |
setApiVersion(SecurityContextConstraints.ApiVersion apiVersion)
(Required)
|
void |
setGroups(List<String> groups)
groups allowed to use this SecurityContextConstraints
|
void |
setKind(String kind)
(Required)
|
void |
setMetadata(ObjectMeta metadata) |
void |
setRunAsUser(RunAsUserStrategyOptions runAsUser) |
void |
setSeLinuxContext(SELinuxContextStrategyOptions seLinuxContext) |
void |
setUsers(List<String> users)
users allowed to use this SecurityContextConstraints
|
public SecurityContextConstraints()
public SecurityContextConstraints(Boolean allowHostDirVolumePlugin, Boolean allowHostNetwork, Boolean allowHostPorts, Boolean allowPrivilegedContainer, List<String> allowedCapabilities, SecurityContextConstraints.ApiVersion apiVersion, List<String> groups, String kind, ObjectMeta metadata, RunAsUserStrategyOptions runAsUser, SELinuxContextStrategyOptions seLinuxContext, List<String> users)
apiVersion
- users
- allowPrivilegedContainer
- allowHostDirVolumePlugin
- seLinuxContext
- runAsUser
- allowedCapabilities
- allowHostPorts
- kind
- groups
- metadata
- allowHostNetwork
- public Boolean getAllowHostDirVolumePlugin()
public void setAllowHostDirVolumePlugin(Boolean allowHostDirVolumePlugin)
allowHostDirVolumePlugin
- The allowHostDirVolumePluginpublic Boolean getAllowHostNetwork()
public void setAllowHostNetwork(Boolean allowHostNetwork)
allowHostNetwork
- The allowHostNetworkpublic Boolean getAllowHostPorts()
public void setAllowHostPorts(Boolean allowHostPorts)
allowHostPorts
- The allowHostPortspublic Boolean getAllowPrivilegedContainer()
public void setAllowPrivilegedContainer(Boolean allowPrivilegedContainer)
allowPrivilegedContainer
- The allowPrivilegedContainerpublic List<String> getAllowedCapabilities()
public void setAllowedCapabilities(List<String> allowedCapabilities)
allowedCapabilities
- The allowedCapabilitiespublic SecurityContextConstraints.ApiVersion getApiVersion()
public void setApiVersion(SecurityContextConstraints.ApiVersion apiVersion)
apiVersion
- The apiVersionpublic List<String> getGroups()
public void setGroups(List<String> groups)
groups
- The groupspublic String getKind()
getKind
in interface HasMetadata
public void setKind(String kind)
kind
- The kindpublic ObjectMeta getMetadata()
getMetadata
in interface HasMetadata
public void setMetadata(ObjectMeta metadata)
setMetadata
in interface HasMetadata
metadata
- The metadatapublic RunAsUserStrategyOptions getRunAsUser()
public void setRunAsUser(RunAsUserStrategyOptions runAsUser)
runAsUser
- The runAsUserpublic SELinuxContextStrategyOptions getSeLinuxContext()
public void setSeLinuxContext(SELinuxContextStrategyOptions seLinuxContext)
seLinuxContext
- The seLinuxContextpublic List<String> getUsers()
public void setUsers(List<String> users)
users
- The usersCopyright © 2011–2015 Red Hat. All rights reserved.