def elastic_pool_transform(result):
    """
    Transforms the json response for an elastic pool.
    """
    from azure.mgmt.sql.models import ElasticPoolEdition
    result.edition = result.sku.tier
    result.storageMb = result.max_size_bytes / 1024 / 1024
    is_dtu = result.sku.tier in (ElasticPoolEdition.basic.value,
        ElasticPoolEdition.standard.value, ElasticPoolEdition.premium.value)
    result.dtu = result.sku.capacity if is_dtu else None
    result.database_dtu_min = int(result.per_database_settings.min_capacity
        ) if is_dtu else None
    result.database_dtu_max = int(result.per_database_settings.max_capacity
        ) if is_dtu else None
    return result
