def list_resources(self):
    optional_list_method_params = ['name']
    optional_kwargs = dict(((param, self.module.params[param]) for param in optional_list_method_params if (self.module.params.get(param) is not None)))
    return oci_common_utils.list_all_resources(self.client.list_access_rules, waas_policy_id=self.module.params.get('waas_policy_id'), **optional_kwargs)
def list_resources(self):
    optional_list_method_params = ['name']
    optional_kwargs = dict(((param, self.module.params[param]) for param in optional_list_method_params if (self.module.params.get(param) is not None)))
    return oci_common_utils.list_all_resources(self.client.list_access_rules, waas_policy_id=self.module.params.get('waas_policy_id'), **optional_kwargs)