code: def security_group_rule_update(context, rule, **kwargs):
      '''Updates a security group rule.
  
      NOTE(alexm) this is non-standard functionality.
      '''
      rule.update(kwargs)
      context.session.add(rule)
      return rulf security_group_rule_update(context, rule, **kwargs):
      '''Updates a security group rule.
  
      NOTE(alexm) this is non-standard functionality.
      '''
      rule.update(kwargs)
      context.session.add(rule)
      return rule
docs: Updates a security group rule.
  
      NOTE(alexm) this is non-standard functionality.