// SPDX-License-Identifier: GPL-3.0-or-later

// This file is auto-generated by scripts/generate_nymea_api.py
// Any changes made here will be lost when the files are regenerated.
// Do not edit manually.

#pragma once

#include "apiutils.h"

namespace nymea::api {

class NetworkManagerCreateWiredConnectionParams {
public:
    // wire: 'interface' (field)
    QString interface{};
    // wire: 'dns' (optional)
    std::optional<QString> dns;
    // wire: 'gateway' (optional)
    std::optional<QString> gateway;
    // wire: 'ip' (optional)
    std::optional<QString> ip;
    // wire: 'prefix' (optional)
    std::optional<quint64> prefix;
    // wire: 'type' (field)
    WiredNetworkConnectionType type{};

    static NetworkManagerCreateWiredConnectionParams fromJson(const QJsonObject &object);
    QJsonObject toJson() const;
};

} // namespace nymea::api
