Package net.stickycode.kuuty.model.v18
Class IoK8sApiPolicyV1beta1AllowedHostPath
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiPolicyV1beta1AllowedHostPath
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiPolicyV1beta1AllowedHostPath extends Object
AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PATH_PREFIXstatic StringJSON_PROPERTY_READ_ONLY
-
Constructor Summary
Constructors Constructor Description IoK8sApiPolicyV1beta1AllowedHostPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPathPrefix()pathPrefix is the path prefix that the host volume must match.BooleangetReadOnly()when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.inthashCode()IoK8sApiPolicyV1beta1AllowedHostPathpathPrefix(String pathPrefix)IoK8sApiPolicyV1beta1AllowedHostPathreadOnly(Boolean readOnly)voidsetPathPrefix(String pathPrefix)voidsetReadOnly(Boolean readOnly)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PATH_PREFIX
public static final String JSON_PROPERTY_PATH_PREFIX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_READ_ONLY
public static final String JSON_PROPERTY_READ_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
pathPrefix
public IoK8sApiPolicyV1beta1AllowedHostPath pathPrefix(String pathPrefix)
-
getPathPrefix
@Nullable public String getPathPrefix()
pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`- Returns:
- pathPrefix
-
setPathPrefix
public void setPathPrefix(String pathPrefix)
-
readOnly
public IoK8sApiPolicyV1beta1AllowedHostPath readOnly(Boolean readOnly)
-
getReadOnly
@Nullable public Boolean getReadOnly()
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
-