def check(self):
        """Check that the resource exists.

        :raises ResourceNotFound: if the resource doesn't exists
        """
        if self.fq_name:
            self['uuid'] = self._check_fq_name(self.fq_name)
        elif self.uuid:
            self['fq_name'] = self._check_uuid(self.uuid)
        return True
def check ( self ) : if self . fq_name : self [ 'uuid' ] = self . _check_fq_name ( self . fq_name ) elif self . uuid : self [ 'fq_name' ] = self . _check_uuid ( self . uuid ) return True
Check that the resource exists.

        :raises ResourceNotFound: if the resource doesn't exists