/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

//workaround to access protected functions
#define protected public

// default includes
#include <shiboken.h>
#ifndef QT_NO_VERSION_TAGGING
#  define QT_NO_VERSION_TAGGING
#endif
#include <QDebug>
#include <pysidesignal.h>
#include <pysideproperty.h>
#include <pyside.h>
#include <pysideqenum.h>
#include <feature_select.h>
QT_WARNING_DISABLE_DEPRECATED

#include <typeinfo>
#include <signalmanager.h>
#include <pysidemetafunction.h>
#include <iterator>

// module include
#include "pyside6_qtnetworkauth_python.h"

// main header
#include "qoauth1_wrapper.h"

// inner classes

#include <cctype>
#include <cstring>



template <class T>
static const char *typeNameOf(const T &t)
{
    const char *typeName =  typeid(t).name();
    auto size = std::strlen(typeName);
#if defined(Q_CC_MSVC) // MSVC: "class QPaintDevice * __ptr64"
    if (auto lastStar = strchr(typeName, '*')) {
        // MSVC: "class QPaintDevice * __ptr64"
        while (*--lastStar == ' ') {
        }
        size = lastStar - typeName + 1;
    }
#else // g++, Clang: "QPaintDevice *" -> "P12QPaintDevice"
    if (size > 2 && typeName[0] == 'P' && std::isdigit(typeName[1])) {
        ++typeName;
        --size;
    }
#endif
    char *result = new char[size + 1];
    result[size] = '\0';
    memcpy(result, typeName, size);
    return result;
}

// Native ---------------------------------------------------------

void QOAuth1Wrapper::resetPyMethodCache()
{
    std::fill_n(m_PyMethodCache, sizeof(m_PyMethodCache) / sizeof(m_PyMethodCache[0]), false);
}

QOAuth1Wrapper::QOAuth1Wrapper(QNetworkAccessManager * manager, QObject * parent) : QOAuth1(manager, parent)
{
    resetPyMethodCache();
    // ... middle
}

QOAuth1Wrapper::QOAuth1Wrapper(QObject * parent) : QOAuth1(parent)
{
    resetPyMethodCache();
    // ... middle
}

QOAuth1Wrapper::QOAuth1Wrapper(const QString & clientIdentifier, const QString & clientSharedSecret, QNetworkAccessManager * manager, QObject * parent) : QOAuth1(clientIdentifier, clientSharedSecret, manager, parent)
{
    resetPyMethodCache();
    // ... middle
}

void QOAuth1Wrapper::childEvent(QChildEvent * event)
{
    if (m_PyMethodCache[0]) {
        return this->::QObject::childEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "childEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[0] = true;
        return this->::QObject::childEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QCHILDEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QOAuth1Wrapper::connectNotify(const QMetaMethod & signal)
{
    if (m_PyMethodCache[1]) {
        return this->::QObject::connectNotify(signal);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "connectNotify";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[1] = true;
        return this->::QObject::connectNotify(signal);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMETAMETHOD_IDX], &signal)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QOAuth1Wrapper::customEvent(QEvent * event)
{
    if (m_PyMethodCache[2]) {
        return this->::QObject::customEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "customEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[2] = true;
        return this->::QObject::customEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

QNetworkReply * QOAuth1Wrapper::deleteResource(const QUrl & url, const QMap<QString,QVariant > & parameters)
{
    if (m_PyMethodCache[3])
        return this->::QOAuth1::deleteResource(url, parameters);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return nullptr;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "deleteResource";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[3] = true;
        return this->::QOAuth1::deleteResource(url, parameters);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &url),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], &parameters)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return nullptr;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.deleteResource",
            reinterpret_cast<PyTypeObject *>(Shiboken::SbkType< QNetworkReply >())->tp_name,
            Py_TYPE(pyResult)->tp_name);
        return nullptr;
    }
    ::QNetworkReply *cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QOAuth1Wrapper::disconnectNotify(const QMetaMethod & signal)
{
    if (m_PyMethodCache[4]) {
        return this->::QObject::disconnectNotify(signal);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "disconnectNotify";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[4] = true;
        return this->::QObject::disconnectNotify(signal);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMETAMETHOD_IDX], &signal)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

bool QOAuth1Wrapper::event(QEvent * event)
{
    if (m_PyMethodCache[5])
        return this->::QObject::event(event);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return false;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "event";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[5] = true;
        return this->::QObject::event(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return false;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.event",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

bool QOAuth1Wrapper::eventFilter(QObject * watched, QEvent * event)
{
    if (m_PyMethodCache[6])
        return this->::QObject::eventFilter(watched, event);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return false;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "eventFilter";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[6] = true;
        return this->::QObject::eventFilter(watched, event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], watched),
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg2 = PyTuple_GET_ITEM(pyArgs, 1)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg2)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 1));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return false;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.eventFilter",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

QNetworkReply * QOAuth1Wrapper::get(const QUrl & url, const QMap<QString,QVariant > & parameters)
{
    if (m_PyMethodCache[7])
        return this->::QOAuth1::get(url, parameters);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return nullptr;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "get";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[7] = true;
        return this->::QOAuth1::get(url, parameters);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &url),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], &parameters)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return nullptr;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.get",
            reinterpret_cast<PyTypeObject *>(Shiboken::SbkType< QNetworkReply >())->tp_name,
            Py_TYPE(pyResult)->tp_name);
        return nullptr;
    }
    ::QNetworkReply *cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QOAuth1Wrapper::grant()
{
    if (m_PyMethodCache[8]) {
        return this->::QOAuth1::grant();
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "grant";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[8] = true;
        return this->::QOAuth1::grant();
    }

    Shiboken::AutoDecRef pyArgs(PyTuple_New(0));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

QNetworkReply * QOAuth1Wrapper::head(const QUrl & url, const QMap<QString,QVariant > & parameters)
{
    if (m_PyMethodCache[9])
        return this->::QOAuth1::head(url, parameters);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return nullptr;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "head";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[9] = true;
        return this->::QOAuth1::head(url, parameters);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &url),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], &parameters)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return nullptr;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.head",
            reinterpret_cast<PyTypeObject *>(Shiboken::SbkType< QNetworkReply >())->tp_name,
            Py_TYPE(pyResult)->tp_name);
        return nullptr;
    }
    ::QNetworkReply *cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

QNetworkReply * QOAuth1Wrapper::post(const QUrl & url, const QMap<QString,QVariant > & parameters)
{
    if (m_PyMethodCache[11])
        return this->::QOAuth1::post(url, parameters);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return nullptr;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "post";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[11] = true;
        return this->::QOAuth1::post(url, parameters);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &url),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], &parameters)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return nullptr;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.post",
            reinterpret_cast<PyTypeObject *>(Shiboken::SbkType< QNetworkReply >())->tp_name,
            Py_TYPE(pyResult)->tp_name);
        return nullptr;
    }
    ::QNetworkReply *cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QOAuth1Wrapper::prepareRequest(QNetworkRequest * request, const QByteArray & verb, const QByteArray & body)
{
    if (m_PyMethodCache[12]) {
        return this->::QOAuth1::prepareRequest(request, verb, body);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "prepareRequest";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[12] = true;
        return this->::QOAuth1::prepareRequest(request, verb, body);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NNN)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREQUEST_IDX], request),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], &verb),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], &body)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

QNetworkReply * QOAuth1Wrapper::put(const QUrl & url, const QMap<QString,QVariant > & parameters)
{
    if (m_PyMethodCache[13])
        return this->::QOAuth1::put(url, parameters);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return nullptr;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "put";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[13] = true;
        return this->::QOAuth1::put(url, parameters);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &url),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], &parameters)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return nullptr;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QOAuth1.put",
            reinterpret_cast<PyTypeObject *>(Shiboken::SbkType< QNetworkReply >())->tp_name,
            Py_TYPE(pyResult)->tp_name);
        return nullptr;
    }
    ::QNetworkReply *cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QOAuth1Wrapper::resourceOwnerAuthorization(const QUrl & url, const QMultiMap<QString,QVariant > & parameters)
{
    if (m_PyMethodCache[14]) {
        return this->::QAbstractOAuth::resourceOwnerAuthorization(url, parameters);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "resourceOwnerAuthorization";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[14] = true;
        return this->::QAbstractOAuth::resourceOwnerAuthorization(url, parameters);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &url),
        Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMULTIMAP_QSTRING_QVARIANT_IDX], &parameters)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QOAuth1Wrapper::timerEvent(QTimerEvent * event)
{
    if (m_PyMethodCache[15]) {
        return this->::QObject::timerEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "timerEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[15] = true;
        return this->::QObject::timerEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QTIMEREVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

const QMetaObject *QOAuth1Wrapper::metaObject() const
{
    if (QObject::d_ptr->metaObject)
        return QObject::d_ptr->dynamicMetaObject();
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf == nullptr)
        return QOAuth1::metaObject();
    return PySide::SignalManager::retrieveMetaObject(reinterpret_cast<PyObject *>(pySelf));
}

int QOAuth1Wrapper::qt_metacall(QMetaObject::Call call, int id, void **args)
{
    int result = QOAuth1::qt_metacall(call, id, args);
    return result < 0 ? result : PySide::SignalManager::qt_metacall(this, call, id, args);
}

void *QOAuth1Wrapper::qt_metacast(const char *_clname)
{
    if (!_clname)
        return {};
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf && PySide::inherits(Py_TYPE(pySelf), _clname))
        return static_cast<void *>(const_cast< QOAuth1Wrapper *>(this));
    return QOAuth1::qt_metacast(_clname);
}

QOAuth1Wrapper::~QOAuth1Wrapper()
{
    SbkObject *wrapper = Shiboken::BindingManager::instance().retrieveWrapper(this);
    Shiboken::Object::destroy(wrapper, this);
}

// Target ---------------------------------------------------------

extern "C" {
static int
Sbk_QOAuth1_Init(PyObject *self, PyObject *args, PyObject *kwds)
{
    const QMetaObject *metaObject;
    SbkObject *sbkSelf = reinterpret_cast<SbkObject *>(self);
    PySide::Feature::Select(self);
    if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType< ::QOAuth1 >()))
        return -1;

    ::QOAuth1Wrapper *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.__init__";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[4];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0, 0};

    // invalid argument lengths


    if (!PyArg_ParseTuple(args, "|OOOO:QOAuth1", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2]), &(pyArgs[3])))
        return -1;


    // Overloaded function decisor
    // 0: QOAuth1::QOAuth1(QNetworkAccessManager*,QObject*)
    // 1: QOAuth1::QOAuth1(QObject*)
    // 2: QOAuth1::QOAuth1(QString,QString,QNetworkAccessManager*,QObject*)
    if (numArgs == 0) {
        overloadId = 1; // QOAuth1(QObject*)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKACCESSMANAGER_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // QOAuth1(QNetworkAccessManager*,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 0; // QOAuth1(QNetworkAccessManager*,QObject*)
        }
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0])))) {
        overloadId = 1; // QOAuth1(QObject*)
    } else if (numArgs >= 3
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[1])))
        && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKACCESSMANAGER_IDX], (pyArgs[2])))) {
        if (numArgs == 3) {
            overloadId = 2; // QOAuth1(QString,QString,QNetworkAccessManager*,QObject*)
        } else if (numArgs >= 4
            && (pythonToCpp[3] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[3])))) {
            overloadId = 2; // QOAuth1(QString,QString,QNetworkAccessManager*,QObject*)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1_Init_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // QOAuth1(QNetworkAccessManager * manager, QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[1]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QOAuth1_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[1] = value;
                        if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                            goto Sbk_QOAuth1_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QNetworkAccessManager *cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return -1;
            ::QObject *cppArg1 = nullptr;
            if (pythonToCpp[1])
                pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QOAuth1(QNetworkAccessManager*,QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QOAuth1Wrapper(cppArg0, cppArg1);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QOAuth1Wrapper(cppArg0, cppArg1);
                }

                Shiboken::Object::setParent(pyArgs[1], self);
            }
            break;
        }
        case 1: // QOAuth1(QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[0]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QOAuth1_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[0] = value;
                        if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0]))))
                            goto Sbk_QOAuth1_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QObject *cppArg0 = nullptr;
            if (pythonToCpp[0])
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // QOAuth1(QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QOAuth1Wrapper(cppArg0);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QOAuth1Wrapper(cppArg0);
                }

                Shiboken::Object::setParent(pyArgs[0], self);
            }
            break;
        }
        case 2: // QOAuth1(const QString & clientIdentifier, const QString & clientSharedSecret, QNetworkAccessManager * manager, QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[3]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QOAuth1_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[3] = value;
                        if (!(pythonToCpp[3] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[3]))))
                            goto Sbk_QOAuth1_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            ::QString cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            ::QString cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);
            if (!Shiboken::Object::isValid(pyArgs[2]))
                return -1;
            ::QNetworkAccessManager *cppArg2;
            pythonToCpp[2](pyArgs[2], &cppArg2);
            if (!Shiboken::Object::isValid(pyArgs[3]))
                return -1;
            ::QObject *cppArg3 = nullptr;
            if (pythonToCpp[3])
                pythonToCpp[3](pyArgs[3], &cppArg3);

            if (!PyErr_Occurred()) {
                // QOAuth1(QString,QString,QNetworkAccessManager*,QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QOAuth1Wrapper(cppArg0, cppArg1, cppArg2, cppArg3);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QOAuth1Wrapper(cppArg0, cppArg1, cppArg2, cppArg3);
                }

                Shiboken::Object::setParent(pyArgs[3], self);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QOAuth1 >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QOAuth1_Init_TypeError;

    Shiboken::Object::setValidCpp(sbkSelf, true);
    Shiboken::Object::setHasCppWrapper(sbkSelf, true);
    if (Shiboken::BindingManager::instance().hasWrapper(cptr)) {
        Shiboken::BindingManager::instance().releaseWrapper(Shiboken::BindingManager::instance().retrieveWrapper(cptr));
    }
    Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);

    // QObject setup
    PySide::Signal::updateSourceObject(self);
    metaObject = cptr->metaObject(); // <- init python qt properties
    if (!errInfo.isNull() && PyDict_Check(errInfo.object())) {
        if (!PySide::fillQtProperties(self, metaObject, errInfo))
            goto Sbk_QOAuth1_Init_TypeError;
    };


    return 1;

    Sbk_QOAuth1_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

static PyObject *Sbk_QOAuth1Func_clientCredentials(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.clientCredentials";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // clientCredentials()const
            QPair<QString,QString > cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->clientCredentials();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QPAIR_QSTRING_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_clientSharedSecret(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.clientSharedSecret";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // clientSharedSecret()const
            QString cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->clientSharedSecret();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_continueGrantWithVerifier(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.continueGrantWithVerifier";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QOAuth1::continueGrantWithVerifier(QString)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // continueGrantWithVerifier(QString)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_continueGrantWithVerifier_TypeError;

    // Call function/method
    {
        ::QString cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // continueGrantWithVerifier(QString)
            cppSelf->continueGrantWithVerifier(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_continueGrantWithVerifier_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_deleteResource(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.deleteResource";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_deleteResource_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_deleteResource_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:deleteResource", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QAbstractOAuth::deleteResource(QUrl,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // deleteResource(QUrl,QMap<QString,QVariant>)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1])))) {
            overloadId = 0; // deleteResource(QUrl,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_deleteResource_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_deleteResource_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1]))))
                        goto Sbk_QOAuth1Func_deleteResource_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_deleteResource_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        ::QMap<QString,QVariant > cppArg1;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // deleteResource(QUrl,QMap<QString,QVariant>)
            QNetworkReply * cppResult = Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::deleteResource(*cppArg0, cppArg1)
                : cppSelf->deleteResource(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);

            // Ownership transferences.
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_deleteResource_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_generateAuthorizationHeader(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.generateAuthorizationHeader";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QOAuth1::generateAuthorizationHeader(QMap<QString,QVariant>)->QByteArray
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArg)))) {
        overloadId = 0; // generateAuthorizationHeader(QMap<QString,QVariant>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_generateAuthorizationHeader_TypeError;

    // Call function/method
    {
        ::QMap<QString,QVariant > cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // generateAuthorizationHeader(QMap<QString,QVariant>)
            QByteArray cppResult = ::QOAuth1::generateAuthorizationHeader(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_generateAuthorizationHeader_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_get(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.get";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_get_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_get_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:get", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QAbstractOAuth::get(QUrl,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // get(QUrl,QMap<QString,QVariant>)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1])))) {
            overloadId = 0; // get(QUrl,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_get_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_get_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1]))))
                        goto Sbk_QOAuth1Func_get_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_get_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        ::QMap<QString,QVariant > cppArg1;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // get(QUrl,QMap<QString,QVariant>)
            QNetworkReply * cppResult = Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::get(*cppArg0, cppArg1)
                : cppSelf->get(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);

            // Ownership transferences.
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_get_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_grant(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.grant";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // grant()
            Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::grant()
                : cppSelf->grant();
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;
}

static PyObject *Sbk_QOAuth1Func_head(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.head";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_head_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_head_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:head", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QAbstractOAuth::head(QUrl,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // head(QUrl,QMap<QString,QVariant>)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1])))) {
            overloadId = 0; // head(QUrl,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_head_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_head_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1]))))
                        goto Sbk_QOAuth1Func_head_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_head_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        ::QMap<QString,QVariant > cppArg1;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // head(QUrl,QMap<QString,QVariant>)
            QNetworkReply * cppResult = Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::head(*cppArg0, cppArg1)
                : cppSelf->head(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);

            // Ownership transferences.
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_head_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_nonce(PyObject *self)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.nonce";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // nonce()
            QByteArray cppResult = ::QOAuth1::nonce();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_post(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.post";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_post_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_post_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:post", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QAbstractOAuth::post(QUrl,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // post(QUrl,QMap<QString,QVariant>)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1])))) {
            overloadId = 0; // post(QUrl,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_post_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_post_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1]))))
                        goto Sbk_QOAuth1Func_post_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_post_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        ::QMap<QString,QVariant > cppArg1;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // post(QUrl,QMap<QString,QVariant>)
            QNetworkReply * cppResult = Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::post(*cppArg0, cppArg1)
                : cppSelf->post(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);

            // Ownership transferences.
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_post_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_prepareRequest(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.prepareRequest";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[3];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0};

    // invalid argument lengths
    if (numArgs > 3) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_prepareRequest_TypeError;
    } else if (numArgs < 2) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_prepareRequest_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OOO:prepareRequest", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2])))
        return {};


    // Overloaded function decisor
    // 0: QAbstractOAuth::prepareRequest(QNetworkRequest*,QByteArray,QByteArray)
    if (numArgs >= 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREQUEST_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], (pyArgs[1])))) {
        if (numArgs == 2) {
            overloadId = 0; // prepareRequest(QNetworkRequest*,QByteArray,QByteArray)
        } else if (numArgs >= 3
            && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], (pyArgs[2])))) {
            overloadId = 0; // prepareRequest(QNetworkRequest*,QByteArray,QByteArray)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_prepareRequest_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_body = Shiboken::String::createStaticString("body");
            if (PyDict_Contains(kwds, key_body)) {
                value = PyDict_GetItem(kwds, key_body);
                if (value && pyArgs[2]) {
                    errInfo.reset(key_body);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_prepareRequest_TypeError;
                }
                if (value) {
                    pyArgs[2] = value;
                    if (!(pythonToCpp[2] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], (pyArgs[2]))))
                        goto Sbk_QOAuth1Func_prepareRequest_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_body);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_prepareRequest_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QNetworkRequest *cppArg0;
        pythonToCpp[0](pyArgs[0], &cppArg0);
        if (!Shiboken::Object::isValid(pyArgs[1]))
            return {};
        ::QByteArray cppArg1_local;
        ::QByteArray *cppArg1 = &cppArg1_local;
        if (pythonToCpp[1].isValue())
            pythonToCpp[1](pyArgs[1], &cppArg1_local);
        else
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!Shiboken::Object::isValid(pyArgs[2]))
            return {};
        ::QByteArray cppArg2_local = QByteArray();
        ::QByteArray *cppArg2 = &cppArg2_local;
        if (pythonToCpp[2]) {
            if (pythonToCpp[2].isValue())
                pythonToCpp[2](pyArgs[2], &cppArg2_local);
            else
                pythonToCpp[2](pyArgs[2], &cppArg2);
            }

        if (!PyErr_Occurred()) {
            // prepareRequest(QNetworkRequest*,QByteArray,QByteArray)
            Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::prepareRequest(cppArg0, *cppArg1, *cppArg2)
                : cppSelf->prepareRequest(cppArg0, *cppArg1, *cppArg2);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_prepareRequest_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_put(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.put";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_put_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_put_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:put", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QAbstractOAuth::put(QUrl,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // put(QUrl,QMap<QString,QVariant>)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1])))) {
            overloadId = 0; // put(QUrl,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_put_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_put_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1]))))
                        goto Sbk_QOAuth1Func_put_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_put_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        ::QMap<QString,QVariant > cppArg1;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // put(QUrl,QMap<QString,QVariant>)
            QNetworkReply * cppResult = Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))
                ? cppSelf->::QOAuth1::put(*cppArg0, cppArg1)
                : cppSelf->put(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);

            // Ownership transferences.
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_put_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_requestTemporaryCredentials(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.requestTemporaryCredentials";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[3];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0};

    // invalid argument lengths
    if (numArgs > 3) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError;
    } else if (numArgs < 2) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OOO:requestTemporaryCredentials", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2])))
        return {};


    // Overloaded function decisor
    // 0: QOAuth1::requestTemporaryCredentials(QNetworkAccessManager::Operation,QUrl,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtNetworkTypes[SBK_QNETWORKACCESSMANAGER_OPERATION_IDX]))->converter, (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[1])))) {
        if (numArgs == 2) {
            overloadId = 0; // requestTemporaryCredentials(QNetworkAccessManager::Operation,QUrl,QMap<QString,QVariant>)
        } else if (numArgs >= 3
            && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[2])))) {
            overloadId = 0; // requestTemporaryCredentials(QNetworkAccessManager::Operation,QUrl,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[2]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError;
                }
                if (value) {
                    pyArgs[2] = value;
                    if (!(pythonToCpp[2] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[2]))))
                        goto Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError;
            }
        }
        ::QNetworkAccessManager::Operation cppArg0{QNetworkAccessManager::UnknownOperation};
        pythonToCpp[0](pyArgs[0], &cppArg0);
        if (!Shiboken::Object::isValid(pyArgs[1]))
            return {};
        ::QUrl cppArg1_local;
        ::QUrl *cppArg1 = &cppArg1_local;
        if (pythonToCpp[1].isValue())
            pythonToCpp[1](pyArgs[1], &cppArg1_local);
        else
            pythonToCpp[1](pyArgs[1], &cppArg1);

        ::QMap<QString,QVariant > cppArg2;
        if (pythonToCpp[2])
            pythonToCpp[2](pyArgs[2], &cppArg2);

        if (!PyErr_Occurred()) {
            // requestTemporaryCredentials(QNetworkAccessManager::Operation,QUrl,QMap<QString,QVariant>)
            QNetworkReply * cppResult = cppSelf->requestTemporaryCredentials(cppArg0, *cppArg1, cppArg2);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_requestTemporaryCredentials_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_requestTokenCredentials(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.requestTokenCredentials";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[4];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0, 0};

    // invalid argument lengths
    if (numArgs > 4) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_requestTokenCredentials_TypeError;
    } else if (numArgs < 3) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QOAuth1Func_requestTokenCredentials_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OOOO:requestTokenCredentials", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2]), &(pyArgs[3])))
        return {};


    // Overloaded function decisor
    // 0: QOAuth1::requestTokenCredentials(QNetworkAccessManager::Operation,QUrl,std::pair<QString,QString>,QMap<QString,QVariant>)->QNetworkReply*
    if (numArgs >= 3
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtNetworkTypes[SBK_QNETWORKACCESSMANAGER_OPERATION_IDX]))->converter, (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArgs[1])))
        && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QPAIR_QSTRING_QSTRING_IDX], (pyArgs[2])))) {
        if (numArgs == 3) {
            overloadId = 0; // requestTokenCredentials(QNetworkAccessManager::Operation,QUrl,std::pair<QString,QString>,QMap<QString,QVariant>)
        } else if (numArgs >= 4
            && (pythonToCpp[3] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[3])))) {
            overloadId = 0; // requestTokenCredentials(QNetworkAccessManager::Operation,QUrl,std::pair<QString,QString>,QMap<QString,QVariant>)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_requestTokenCredentials_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parameters = Shiboken::String::createStaticString("parameters");
            if (PyDict_Contains(kwds, key_parameters)) {
                value = PyDict_GetItem(kwds, key_parameters);
                if (value && pyArgs[3]) {
                    errInfo.reset(key_parameters);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QOAuth1Func_requestTokenCredentials_TypeError;
                }
                if (value) {
                    pyArgs[3] = value;
                    if (!(pythonToCpp[3] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[3]))))
                        goto Sbk_QOAuth1Func_requestTokenCredentials_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parameters);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QOAuth1Func_requestTokenCredentials_TypeError;
            }
        }
        ::QNetworkAccessManager::Operation cppArg0{QNetworkAccessManager::UnknownOperation};
        pythonToCpp[0](pyArgs[0], &cppArg0);
        if (!Shiboken::Object::isValid(pyArgs[1]))
            return {};
        ::QUrl cppArg1_local;
        ::QUrl *cppArg1 = &cppArg1_local;
        if (pythonToCpp[1].isValue())
            pythonToCpp[1](pyArgs[1], &cppArg1_local);
        else
            pythonToCpp[1](pyArgs[1], &cppArg1);

        ::QPair<QString,QString > cppArg2;
        pythonToCpp[2](pyArgs[2], &cppArg2);
        ::QMap<QString,QVariant > cppArg3;
        if (pythonToCpp[3])
            pythonToCpp[3](pyArgs[3], &cppArg3);

        if (!PyErr_Occurred()) {
            // requestTokenCredentials(QNetworkAccessManager::Operation,QUrl,std::pair<QString,QString>,QMap<QString,QVariant>)
            QNetworkReply * cppResult = cppSelf->requestTokenCredentials(cppArg0, *cppArg1, cppArg2, cppArg3);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREPLY_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QOAuth1Func_requestTokenCredentials_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setClientCredentials(PyObject *self, PyObject *args)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setClientCredentials";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "setClientCredentials", 1, 2, &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QOAuth1::setClientCredentials(std::pair<QString,QString>)
    // 1: QOAuth1::setClientCredentials(QString,QString)
    if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[1])))) {
        overloadId = 1; // setClientCredentials(QString,QString)
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QPAIR_QSTRING_QSTRING_IDX], (pyArgs[0])))) {
        overloadId = 0; // setClientCredentials(std::pair<QString,QString>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setClientCredentials_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // setClientCredentials(const QPair<QString,QString > & clientCredentials)
        {
            ::QPair<QString,QString > cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // setClientCredentials(std::pair<QString,QString>)
                cppSelf->setClientCredentials(cppArg0);
            }
            break;
        }
        case 1: // setClientCredentials(const QString & clientIdentifier, const QString & clientSharedSecret)
        {
            ::QString cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            ::QString cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // setClientCredentials(QString,QString)
                cppSelf->setClientCredentials(cppArg0, cppArg1);
            }
            break;
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setClientCredentials_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setClientSharedSecret(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setClientSharedSecret";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QOAuth1::setClientSharedSecret(QString)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // setClientSharedSecret(QString)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setClientSharedSecret_TypeError;

    // Call function/method
    {
        ::QString cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setClientSharedSecret(QString)
            cppSelf->setClientSharedSecret(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setClientSharedSecret_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setSignatureMethod(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setSignatureMethod";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QOAuth1::setSignatureMethod(QOAuth1::SignatureMethod)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setSignatureMethod(QOAuth1::SignatureMethod)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setSignatureMethod_TypeError;

    // Call function/method
    {
        ::QOAuth1::SignatureMethod cppArg0{QOAuth1::SignatureMethod::Hmac_Sha1};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setSignatureMethod(QOAuth1::SignatureMethod)
            cppSelf->setSignatureMethod(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setSignatureMethod_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setTemporaryCredentialsUrl(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setTemporaryCredentialsUrl";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QOAuth1::setTemporaryCredentialsUrl(QUrl)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArg)))) {
        overloadId = 0; // setTemporaryCredentialsUrl(QUrl)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setTemporaryCredentialsUrl_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp.isValue())
            pythonToCpp(pyArg, &cppArg0_local);
        else
            pythonToCpp(pyArg, &cppArg0);


        if (!PyErr_Occurred()) {
            // setTemporaryCredentialsUrl(QUrl)
            cppSelf->setTemporaryCredentialsUrl(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setTemporaryCredentialsUrl_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setTokenCredentials(PyObject *self, PyObject *args)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setTokenCredentials";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "setTokenCredentials", 1, 2, &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QOAuth1::setTokenCredentials(std::pair<QString,QString>)
    // 1: QOAuth1::setTokenCredentials(QString,QString)
    if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[1])))) {
        overloadId = 1; // setTokenCredentials(QString,QString)
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QPAIR_QSTRING_QSTRING_IDX], (pyArgs[0])))) {
        overloadId = 0; // setTokenCredentials(std::pair<QString,QString>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setTokenCredentials_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // setTokenCredentials(const QPair<QString,QString > & tokenCredentials)
        {
            ::QPair<QString,QString > cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // setTokenCredentials(std::pair<QString,QString>)
                cppSelf->setTokenCredentials(cppArg0);
            }
            break;
        }
        case 1: // setTokenCredentials(const QString & token, const QString & tokenSecret)
        {
            ::QString cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            ::QString cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // setTokenCredentials(QString,QString)
                cppSelf->setTokenCredentials(cppArg0, cppArg1);
            }
            break;
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setTokenCredentials_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setTokenCredentialsUrl(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setTokenCredentialsUrl";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QOAuth1::setTokenCredentialsUrl(QUrl)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArg)))) {
        overloadId = 0; // setTokenCredentialsUrl(QUrl)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setTokenCredentialsUrl_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QUrl cppArg0_local;
        ::QUrl *cppArg0 = &cppArg0_local;
        if (pythonToCpp.isValue())
            pythonToCpp(pyArg, &cppArg0_local);
        else
            pythonToCpp(pyArg, &cppArg0);


        if (!PyErr_Occurred()) {
            // setTokenCredentialsUrl(QUrl)
            cppSelf->setTokenCredentialsUrl(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setTokenCredentialsUrl_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setTokenSecret(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setTokenSecret";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QOAuth1::setTokenSecret(QString)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // setTokenSecret(QString)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setTokenSecret_TypeError;

    // Call function/method
    {
        ::QString cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setTokenSecret(QString)
            cppSelf->setTokenSecret(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setTokenSecret_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_setup(PyObject *self, PyObject *args)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.setup";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[3];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "setup", 3, 3, &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2])))
        return {};


    // Overloaded function decisor
    // 0: QOAuth1::setup(QNetworkRequest*,QMap<QString,QVariant>,QNetworkAccessManager::Operation)
    // 1: QOAuth1::setup(QNetworkRequest*,QMap<QString,QVariant>,QByteArray)
    if (numArgs >= 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtNetworkTypes[SBK_QNETWORKREQUEST_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QMAP_QSTRING_QVARIANT_IDX], (pyArgs[1])))) {
        if (numArgs == 3
            && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], (pyArgs[2])))) {
            overloadId = 1; // setup(QNetworkRequest*,QMap<QString,QVariant>,QByteArray)
        } else if (numArgs == 3
            && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtNetworkTypes[SBK_QNETWORKACCESSMANAGER_OPERATION_IDX]))->converter, (pyArgs[2])))) {
            overloadId = 0; // setup(QNetworkRequest*,QMap<QString,QVariant>,QNetworkAccessManager::Operation)
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QOAuth1Func_setup_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // setup(QNetworkRequest * request, const QMap<QString,QVariant > & signingParameters, QNetworkAccessManager::Operation operation)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QNetworkRequest *cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            ::QMap<QString,QVariant > cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);
            ::QNetworkAccessManager::Operation cppArg2{QNetworkAccessManager::UnknownOperation};
            pythonToCpp[2](pyArgs[2], &cppArg2);

            if (!PyErr_Occurred()) {
                // setup(QNetworkRequest*,QMap<QString,QVariant>,QNetworkAccessManager::Operation)
                cppSelf->setup(cppArg0, cppArg1, cppArg2);
            }
            break;
        }
        case 1: // setup(QNetworkRequest * request, const QMap<QString,QVariant > & signingParameters, const QByteArray & operationVerb)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QNetworkRequest *cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            ::QMap<QString,QVariant > cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);
            if (!Shiboken::Object::isValid(pyArgs[2]))
                return {};
            ::QByteArray cppArg2_local;
            ::QByteArray *cppArg2 = &cppArg2_local;
            if (pythonToCpp[2].isValue())
                pythonToCpp[2](pyArgs[2], &cppArg2_local);
            else
                pythonToCpp[2](pyArgs[2], &cppArg2);


            if (!PyErr_Occurred()) {
                // setup(QNetworkRequest*,QMap<QString,QVariant>,QByteArray)
                cppSelf->setup(cppArg0, cppArg1, *cppArg2);
            }
            break;
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QOAuth1Func_setup_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QOAuth1Func_signatureMethod(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.signatureMethod";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // signatureMethod()const
            QOAuth1::SignatureMethod cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->signatureMethod();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_temporaryCredentialsUrl(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.temporaryCredentialsUrl";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // temporaryCredentialsUrl()const
            QUrl cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->temporaryCredentialsUrl();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_tokenCredentials(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.tokenCredentials";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // tokenCredentials()const
            QPair<QString,QString > cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->tokenCredentials();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtNetworkAuthTypeConverters[SBK_QTNETWORKAUTH_QPAIR_QSTRING_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_tokenCredentialsUrl(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.tokenCredentialsUrl";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // tokenCredentialsUrl()const
            QUrl cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->tokenCredentialsUrl();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QOAuth1Func_tokenSecret(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtNetworkAuth.QOAuth1.tokenSecret";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // tokenSecret()const
            QString cppResult = const_cast<const ::QOAuth1 *>(cppSelf)->tokenSecret();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}


static const char *Sbk_QOAuth1_PropertyStrings[] = {
    nullptr // Sentinel
};

static PyMethodDef Sbk_QOAuth1_methods[] = {
    {"clientCredentials", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_clientCredentials), METH_NOARGS},
    {"clientSharedSecret", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_clientSharedSecret), METH_NOARGS},
    {"continueGrantWithVerifier", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_continueGrantWithVerifier), METH_O},
    {"deleteResource", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_deleteResource), METH_VARARGS|METH_KEYWORDS},
    {"generateAuthorizationHeader", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_generateAuthorizationHeader), METH_O|METH_STATIC},
    {"get", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_get), METH_VARARGS|METH_KEYWORDS},
    {"grant", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_grant), METH_NOARGS},
    {"head", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_head), METH_VARARGS|METH_KEYWORDS},
    {"nonce", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_nonce), METH_NOARGS|METH_STATIC},
    {"post", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_post), METH_VARARGS|METH_KEYWORDS},
    {"prepareRequest", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_prepareRequest), METH_VARARGS|METH_KEYWORDS},
    {"put", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_put), METH_VARARGS|METH_KEYWORDS},
    {"requestTemporaryCredentials", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_requestTemporaryCredentials), METH_VARARGS|METH_KEYWORDS},
    {"requestTokenCredentials", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_requestTokenCredentials), METH_VARARGS|METH_KEYWORDS},
    {"setClientCredentials", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setClientCredentials), METH_VARARGS},
    {"setClientSharedSecret", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setClientSharedSecret), METH_O},
    {"setSignatureMethod", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setSignatureMethod), METH_O},
    {"setTemporaryCredentialsUrl", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setTemporaryCredentialsUrl), METH_O},
    {"setTokenCredentials", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setTokenCredentials), METH_VARARGS},
    {"setTokenCredentialsUrl", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setTokenCredentialsUrl), METH_O},
    {"setTokenSecret", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setTokenSecret), METH_O},
    {"setup", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_setup), METH_VARARGS},
    {"signatureMethod", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_signatureMethod), METH_NOARGS},
    {"temporaryCredentialsUrl", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_temporaryCredentialsUrl), METH_NOARGS},
    {"tokenCredentials", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_tokenCredentials), METH_NOARGS},
    {"tokenCredentialsUrl", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_tokenCredentialsUrl), METH_NOARGS},
    {"tokenSecret", reinterpret_cast<PyCFunction>(Sbk_QOAuth1Func_tokenSecret), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QOAuth1_setattro(PyObject *self, PyObject *name, PyObject *value)
{
    PySide::Feature::Select(self);
    if (value && PyCallable_Check(value)) {
        auto plain_inst = reinterpret_cast< ::QOAuth1 *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX], reinterpret_cast<SbkObject *>(self)));
        auto inst = dynamic_cast<QOAuth1Wrapper *>(plain_inst);
        if (inst)
            inst->resetPyMethodCache();
    }
    Shiboken::AutoDecRef pp(reinterpret_cast<PyObject *>(PySide::Property::getObject(self, name)));
    if (!pp.isNull())
        return PySide::Property::setValue(reinterpret_cast<PySideProperty *>(pp.object()), self, value);
    return PyObject_GenericSetAttr(self, name, value);
}

} // extern "C"

static int Sbk_QOAuth1_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QOAuth1_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QOAuth1_Type = nullptr;
static PyTypeObject *Sbk_QOAuth1_TypeF(void)
{
    return _Sbk_QOAuth1_Type;
}

static PyType_Slot Sbk_QOAuth1_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        nullptr},
    {Py_tp_hash,        nullptr},
    {Py_tp_call,        nullptr},
    {Py_tp_str,         nullptr},
    {Py_tp_getattro,    nullptr},
    {Py_tp_setattro,    reinterpret_cast<void *>(Sbk_QOAuth1_setattro)},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QOAuth1_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QOAuth1_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QOAuth1_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QOAuth1_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QOAuth1_spec = {
    "2:PySide6.QtNetworkAuth.QOAuth1",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QOAuth1_slots
};

} //extern "C"

static void *Sbk_QOAuth1_typeDiscovery(void *cptr, PyTypeObject *instanceType)
{
    if (instanceType == Shiboken::SbkType< ::QObject >())
        return dynamic_cast< ::QOAuth1 *>(reinterpret_cast< ::QObject *>(cptr));
    return {};
}


// Type conversion functions.

// Python to C++ enum conversion.
static void QOAuth1_SignatureMethod_PythonToCpp_QOAuth1_SignatureMethod(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QOAuth1::SignatureMethod *>(cppOut) =
        static_cast<::QOAuth1::SignatureMethod>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QOAuth1_SignatureMethod_PythonToCpp_QOAuth1_SignatureMethod_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX]))
        return QOAuth1_SignatureMethod_PythonToCpp_QOAuth1_SignatureMethod;
    return {};
}
static PyObject *QOAuth1_SignatureMethod_CppToPython_QOAuth1_SignatureMethod(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QOAuth1::SignatureMethod *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX], castCppIn);

}

// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QOAuth1_PythonToCpp_QOAuth1_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QOAuth1_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QOAuth1_PythonToCpp_QOAuth1_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QOAuth1_TypeF())))
        return QOAuth1_PythonToCpp_QOAuth1_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QOAuth1_PTR_CppToPython_QOAuth1(const void *cppIn)
{
    return PySide::getWrapperForQObject(reinterpret_cast<::QOAuth1 *>(const_cast<void *>(cppIn)), Sbk_QOAuth1_TypeF());

}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QOAuth1_SignatureStrings[] = {
    "2:PySide6.QtNetworkAuth.QOAuth1(self,manager:PySide6.QtNetwork.QNetworkAccessManager,parent:PySide6.QtCore.QObject=nullptr)",
    "1:PySide6.QtNetworkAuth.QOAuth1(self,parent:PySide6.QtCore.QObject=nullptr)",
    "0:PySide6.QtNetworkAuth.QOAuth1(self,clientIdentifier:QString,clientSharedSecret:QString,manager:PySide6.QtNetwork.QNetworkAccessManager,parent:PySide6.QtCore.QObject=nullptr)",
    "PySide6.QtNetworkAuth.QOAuth1.clientCredentials(self)->QPair[QString, QString]",
    "PySide6.QtNetworkAuth.QOAuth1.clientSharedSecret(self)->QString",
    "PySide6.QtNetworkAuth.QOAuth1.continueGrantWithVerifier(self,verifier:QString)",
    "PySide6.QtNetworkAuth.QOAuth1.deleteResource(self,url:typing.Union[PySide6.QtCore.QUrl, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "PySide6.QtNetworkAuth.QOAuth1.generateAuthorizationHeader(oauthParams:QMap[QString, QVariant])->PySide6.QtCore.QByteArray",
    "PySide6.QtNetworkAuth.QOAuth1.get(self,url:typing.Union[PySide6.QtCore.QUrl, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "PySide6.QtNetworkAuth.QOAuth1.grant(self)",
    "PySide6.QtNetworkAuth.QOAuth1.head(self,url:typing.Union[PySide6.QtCore.QUrl, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "PySide6.QtNetworkAuth.QOAuth1.nonce()->PySide6.QtCore.QByteArray",
    "PySide6.QtNetworkAuth.QOAuth1.post(self,url:typing.Union[PySide6.QtCore.QUrl, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "PySide6.QtNetworkAuth.QOAuth1.prepareRequest(self,request:PySide6.QtNetwork.QNetworkRequest,verb:typing.Union[PySide6.QtCore.QByteArray, char*],body:typing.Union[PySide6.QtCore.QByteArray, char*]=QByteArray())",
    "PySide6.QtNetworkAuth.QOAuth1.put(self,url:typing.Union[PySide6.QtCore.QUrl, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "PySide6.QtNetworkAuth.QOAuth1.requestTemporaryCredentials(self,operation:PySide6.QtNetwork.QNetworkAccessManager.Operation,url:typing.Union[PySide6.QtCore.QUrl, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "PySide6.QtNetworkAuth.QOAuth1.requestTokenCredentials(self,operation:PySide6.QtNetwork.QNetworkAccessManager.Operation,url:typing.Union[PySide6.QtCore.QUrl, QString],temporaryToken:QPair[QString, QString],parameters:QMap[QString, QVariant]=QVariantMap())->PySide6.QtNetwork.QNetworkReply",
    "1:PySide6.QtNetworkAuth.QOAuth1.setClientCredentials(self,clientCredentials:QPair[QString, QString])",
    "0:PySide6.QtNetworkAuth.QOAuth1.setClientCredentials(self,clientIdentifier:QString,clientSharedSecret:QString)",
    "PySide6.QtNetworkAuth.QOAuth1.setClientSharedSecret(self,clientSharedSecret:QString)",
    "PySide6.QtNetworkAuth.QOAuth1.setSignatureMethod(self,value:PySide6.QtNetworkAuth.QOAuth1.SignatureMethod)",
    "PySide6.QtNetworkAuth.QOAuth1.setTemporaryCredentialsUrl(self,url:typing.Union[PySide6.QtCore.QUrl, QString])",
    "1:PySide6.QtNetworkAuth.QOAuth1.setTokenCredentials(self,tokenCredentials:QPair[QString, QString])",
    "0:PySide6.QtNetworkAuth.QOAuth1.setTokenCredentials(self,token:QString,tokenSecret:QString)",
    "PySide6.QtNetworkAuth.QOAuth1.setTokenCredentialsUrl(self,url:typing.Union[PySide6.QtCore.QUrl, QString])",
    "PySide6.QtNetworkAuth.QOAuth1.setTokenSecret(self,tokenSecret:QString)",
    "1:PySide6.QtNetworkAuth.QOAuth1.setup(self,request:PySide6.QtNetwork.QNetworkRequest,signingParameters:QMap[QString, QVariant],operation:PySide6.QtNetwork.QNetworkAccessManager.Operation)",
    "0:PySide6.QtNetworkAuth.QOAuth1.setup(self,request:PySide6.QtNetwork.QNetworkRequest,signingParameters:QMap[QString, QVariant],operationVerb:typing.Union[PySide6.QtCore.QByteArray, char*])",
    "PySide6.QtNetworkAuth.QOAuth1.signatureMethod(self)->PySide6.QtNetworkAuth.QOAuth1.SignatureMethod",
    "PySide6.QtNetworkAuth.QOAuth1.temporaryCredentialsUrl(self)->PySide6.QtCore.QUrl",
    "PySide6.QtNetworkAuth.QOAuth1.tokenCredentials(self)->QPair[QString, QString]",
    "PySide6.QtNetworkAuth.QOAuth1.tokenCredentialsUrl(self)->PySide6.QtCore.QUrl",
    "PySide6.QtNetworkAuth.QOAuth1.tokenSecret(self)->QString",
    nullptr}; // Sentinel

void init_QOAuth1(PyObject *module)
{
    _Sbk_QOAuth1_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QOAuth1",
        "QOAuth1*",
        &Sbk_QOAuth1_spec,
        &Shiboken::callCppDestructor< ::QOAuth1 >,
        SbkPySide6_QtNetworkAuthTypes[SBK_QABSTRACTOAUTH_IDX],
        0,
        0);
    auto *pyType = Sbk_QOAuth1_TypeF(); // references _Sbk_QOAuth1_Type
    InitSignatureStrings(pyType, QOAuth1_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QOAuth1_Type), Sbk_QOAuth1_PropertyStrings);
    SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_IDX]
        = Sbk_QOAuth1_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QOAuth1_TypeF(),
        QOAuth1_PythonToCpp_QOAuth1_PTR,
        is_QOAuth1_PythonToCpp_QOAuth1_PTR_Convertible,
        QOAuth1_PTR_CppToPython_QOAuth1);

    Shiboken::Conversions::registerConverterName(converter, "QOAuth1");
    Shiboken::Conversions::registerConverterName(converter, "QOAuth1*");
    Shiboken::Conversions::registerConverterName(converter, "QOAuth1&");
    Shiboken::Conversions::registerConverterName(converter, typeid(::QOAuth1).name());
    Shiboken::Conversions::registerConverterName(converter, typeid(::QOAuth1Wrapper).name());


    Shiboken::ObjectType::setTypeDiscoveryFunctionV2(Sbk_QOAuth1_TypeF(), &Sbk_QOAuth1_typeDiscovery);

    // Initialization of enums.

    // Initialization of enum 'SignatureMethod'.
    SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QOAuth1_TypeF(),
        "SignatureMethod",
        "2:PySide6.QtNetworkAuth.QOAuth1.SignatureMethod",
        "QOAuth1::SignatureMethod");
    if (!SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX],
        SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX], "Hmac_Sha1", (long) QOAuth1::SignatureMethod::Hmac_Sha1))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX],
        SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX], "Rsa_Sha1", (long) QOAuth1::SignatureMethod::Rsa_Sha1))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX],
        SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX], "PlainText", (long) QOAuth1::SignatureMethod::PlainText))
        return;
    // Register converter for enum 'QOAuth1::SignatureMethod'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX],
            QOAuth1_SignatureMethod_CppToPython_QOAuth1_SignatureMethod);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QOAuth1_SignatureMethod_PythonToCpp_QOAuth1_SignatureMethod,
            is_QOAuth1_SignatureMethod_PythonToCpp_QOAuth1_SignatureMethod_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtNetworkAuthTypes[SBK_QOAUTH1_SIGNATUREMETHOD_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QOAuth1::SignatureMethod");
        Shiboken::Conversions::registerConverterName(converter, "SignatureMethod");
    }
    // End of 'SignatureMethod' enum.

    PySide::Signal::registerSignals(Sbk_QOAuth1_TypeF(), &::QOAuth1::staticMetaObject);
    qRegisterMetaType< ::QOAuth1::SignatureMethod >("QOAuth1::SignatureMethod");
    Shiboken::ObjectType::setSubTypeInitHook(Sbk_QOAuth1_TypeF(), &PySide::initQObjectSubType);
    PySide::initDynamicMetaObject(Sbk_QOAuth1_TypeF(), &::QOAuth1::staticMetaObject, sizeof(QOAuth1Wrapper));
}
