@read_only.setter<EOL><INDENT>def read_only(self, read_only):<DEDENT>
self._read_only = read_only<EOL>
Sets the read_only of this PolicyV1beta1AllowedHostPath.
when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.

:param read_only: The read_only of this PolicyV1beta1AllowedHostPath.
:type: bool