'Read information and transform it
The values that are returned by BIG-IP in the f5-sdk can have encoding
attached to them as well as be completely missing in some cases.
Therefore, this method will transform the data from the BIG-IP into a
format that is more easily consumable by the rest of the class and the
parameters that are supported by the module.'

def read(self):

    p = dict()
    name = self.params['name']
    partition = self.params['partition']
    module = self.params['module']
    if (module == 'ltm'):
        r = self.api.tm.ltm.rules.rule.load(name=name, partition=partition)
    elif (module == 'gtm'):
        r = self.api.tm.gtm.rules.rule.load(name=name, partition=partition)
    if hasattr(r, 'apiAnonymous'):
        p['content'] = str(r.apiAnonymous.strip())
    p['name'] = name
    return p
