code: def lifecycle_rules(self, rules):
          
          rules = [dict(rule) for rule in rules]  # Convert helpers if needed
          self._patch_property("lifecycle", {"rule": rules})
docs: Set lifestyle rules configured for this bucket.
  
          See https://cloud.google.com/storage/docs/lifecycle and
               https://cloud.google.com/storage/docs/json_api/v1/buckets
  
          :type entries: list of dictionaries
          :param entries: A sequence of mappings describing each lifecycle rule.