import time


def baseline_creation_payload(id_cat, repository_id, target_id, target_type, target_name):
    """ Return payload for Baseline creation """
    return {
        "Name": "Factory Baseline" + time.strftime(":%Y:%m:%d-%H:%M:%S"),
        "Description": "Factory test1",
        "CatalogId": id_cat,
        "RepositoryId": repository_id,
        "DowngradeEnabled": True,
        "Is64Bit": True,
        "Targets": [
            {
                "Id": target_id,
                "Type": {
                    "Id": target_type,
                    "Name": target_name
                }
            }
        ]
    }