def generate_download_params(**kwags):
    """Generate parameters used when building connector for download
    """
    connector_params = {}
    if kwags.get("non_redistributable"):
        connector_params["WindowsProduct[installer_type]"] = 2

    if kwags.get("no_flash_scan"):
        flash_scan = {
            "WindowsProduct[scan_on_install]": "1",
            "MacProduct[scan_on_install]": "1",
            "LinuxProduct[scan_on_install]": "1",
        }

        connector_params.update(flash_scan)

    if kwags.get("linux_variant_id"):
        connector_params["LinuxProduct[product_variant_id]"] = kwags["linux_variant_id"]

    return connector_params