'Return a list of dictionaries with query parameters for
a valid disk container.
:param      disk_container: List of dictionaries with
disk_container details
:type       disk_container: ``list`` or ``dict``
:return:    Dictionary representation of the disk_container
:rtype:     ``dict``'

def _get_disk_container_params(self, disk_container):

    if (not isinstance(disk_container, (list, tuple))):
        raise AttributeError('disk_container    not    list    or    tuple')
    params = {}
    for (idx, content) in enumerate(disk_container):
        idx += 1
        if (not isinstance(content, dict)):
            raise AttributeError(('content    %s    in    disk_container    not    a    dict' % content))
        for (k, v) in content.items():
            if (not isinstance(v, dict)):
                params[('DiskContainer.%s' % k)] = str(v)
            else:
                for (key, value) in v.items():
                    params[('DiskContainer.%s.%s' % (k, key))] = str(value)
    return params
