@classmethod<EOL><INDENT>def from_config(cls, gitlab_id=None, config_files=None):<DEDENT>
config = gitlab.config.GitlabConfigParser(gitlab_id=gitlab_id,<EOL>config_files=config_files)<EOL>return cls(config.url, private_token=config.private_token,<EOL>oauth_token=config.oauth_token,<EOL>ssl_verify=config.ssl_verify, timeout=config.timeout,<EOL>http_username=config.http_username,<EOL>http_password=config.http_password,<EOL>api_version=config.api_version,<EOL>per_page=config.per_page)<EOL>
Create a Gitlab connection from configuration files.

        Args:
            gitlab_id (str): ID of the configuration section.
            config_files list[str]: List of paths to configuration files.

        Returns:
            (gitlab.Gitlab): A Gitlab connection.

        Raises:
            gitlab.config.GitlabDataError: If the configuration is not correct.