def generate_config(context):
    """ Generate the deployment configuration. """

    resources = []
    name = context.properties.get('name', context.env['name'])

    resources = [
        {
            'name': name,
            'type': 'appengine.v1.version',
            'properties': context.properties
        }
    ]

    outputs = [
        {
            'name': 'name',
            'value': '$(ref.{}.name)'.format(name)
        },
        {
            'name': 'createTime',
            'value': '$(ref.{}.createTime)'.format(name)
        },
        {
            'name': 'versionUrl',
            'value': '$(ref.{}.versionUrl)'.format(name)
        }
    ]

    return {'resources': resources, 'outputs': outputs}