(self, rule_uuid)
Get a Sigma object from a rule uuid.

        Args:
            rule_uuid: Id of the sigma rule.
Get a Sigma object from a rule uuid.
Get a Sigma object from a rule uuid .
def from_rule_uuid(self, rule_uuid):
        """Get a Sigma object from a rule uuid.

        Args:
            rule_uuid: Id of the sigma rule.

        """
        self.resource_uri = f'sigma/rule/{rule_uuid}'

        self.lazyload_data(refresh_cache=True)
        objects = self.data.get('objects')
        if not objects:
            logger.error('Unable to parse rule with given text')
            raise ValueError('No rules found.')
        rule_dict = objects[0]
        for key, value in rule_dict.items():
            self.set_value(key, value)
def from_rule_uuid ( self , rule_uuid ) : self . resource_uri = f'sigma/rule/{rule_uuid}' self . lazyload_data ( refresh_cache = True ) objects = self . data . get ( 'objects' ) if not objects : logger . error ( 'Unable to parse rule with given text' ) raise ValueError ( 'No rules found.' ) rule_dict = objects [ 0 ] for key , value in rule_dict . items ( ) : self . set_value ( key , value )