def list_resources(self):
    optional_list_method_params = ['sort_by', 'sort_order', 'display_name', 'lifecycle_state', 'time_created_greater_than_or_equal_to', 'time_created_less_than']
    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_certificates, compartment_id=self.module.params.get('compartment_id'), **optional_kwargs)
def list_resources(self):
    optional_list_method_params = ['sort_by', 'sort_order', 'display_name', 'lifecycle_state', 'time_created_greater_than_or_equal_to', 'time_created_less_than']
    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_certificates, compartment_id=self.module.params.get('compartment_id'), **optional_kwargs)