def cli_cosmosdb_table_throughput_migrate(client,
                                          resource_group_name,
                                          account_name,
                                          table_name,
                                          throughput_type):
    """Migrate an Azure Cosmos DB table throughput"""
    if throughput_type == "autoscale":
        return client.migrate_table_to_autoscale(resource_group_name, account_name, table_name)
    return client.migrate_table_to_manual_throughput(resource_group_name, account_name, table_name)