pub async fn get_rules(
configuration: &Configuration,
repo_ref: &str,
page: Option<i64>,
size: Option<i64>,
query: Option<&str>,
states: Option<Vec<RuleState>>,
sort: Option<RuleSort>,
order: Option<OrderOption>,
) -> Result<Vec<RuleModel>, Error<GetRulesError>>