def _require_min_api_version(self, version):
        """Check mininum verson requirement

        Raise an exception if the version of the api is less than the given
        version.

        :param version: The minimum required version.
        """
        actual_version = self._get_resource_root().version
        version = max(version, self._api_version())
        if actual_version < version:
            raise ex.CMApiVersionError(
                _("API version %(minv)s is required but %(acv)s is in use.")
                % {'minv': version, 'acv': actual_version})
dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/client/types.py/BaseApiResource._require_min_api_version/original