def get_parent(self, log_info):
        """Get the parent container for the log sink"""
        if self.data.get('scope', 'log') == 'log':
            if log_info.scope_type != 'projects':
                raise ValueError("Invalid log subscriber scope")
            parent = "%s/%s" % (log_info.scope_type, log_info.scope_id)
        elif self.data['scope'] == 'project':
            parent = 'projects/{}'.format(
                self.data.get('scope_id', self.session.get_default_project()))
        elif self.data['scope'] == 'organization':
            parent = 'organizations/{}'.format(self.data['scope_id'])
        elif self.data['scope'] == 'folder':
            parent = 'folders/{}'.format(self.data['scope_id'])
        elif self.data['scope'] == 'billing':
            parent = 'billingAccounts/{}'.format(self.data['scope_id'])
        else:
            raise ValueError(
                'invalid log subscriber scope %s' % (self.data))
        return parent
Get the parent container for the log sink