mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 20:14:18 +00:00
119 lines
3.5 KiB
C++
119 lines
3.5 KiB
C++
/**
|
|
* Tribufu API
|
|
* REST API to access Tribufu services.
|
|
*
|
|
* The version of the OpenAPI document: 1.1.0
|
|
* Contact: contact@tribufu.com
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* AuthorizeRequest.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef TRIBUFU_MODELS_AuthorizeRequest_H_
|
|
#define TRIBUFU_MODELS_AuthorizeRequest_H_
|
|
|
|
#include <stdexcept>
|
|
|
|
#include "tribufu++/ModelBase.h"
|
|
|
|
#include "tribufu++/model/CodeChallengeMethod.h"
|
|
#include "tribufu++/model/ResponseType.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace tribufu
|
|
{
|
|
namespace models
|
|
{
|
|
|
|
class AuthorizeRequest : public ModelBase
|
|
{
|
|
public:
|
|
AuthorizeRequest();
|
|
virtual ~AuthorizeRequest();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value &json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
|
const utility::string_t &namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
|
const utility::string_t &namePrefix) override;
|
|
|
|
/////////////////////////////////////////////
|
|
/// AuthorizeRequest members
|
|
|
|
std::shared_ptr<ResponseType> getResponseType() const;
|
|
bool responseTypeIsSet() const;
|
|
void unsetResponse_type();
|
|
void setResponseType(const std::shared_ptr<ResponseType> &value);
|
|
|
|
utility::string_t getClientId() const;
|
|
bool clientIdIsSet() const;
|
|
void unsetClient_id();
|
|
void setClientId(const utility::string_t &value);
|
|
|
|
utility::string_t getCodeChallenge() const;
|
|
bool codeChallengeIsSet() const;
|
|
void unsetCode_challenge();
|
|
void setCodeChallenge(const utility::string_t &value);
|
|
|
|
std::shared_ptr<CodeChallengeMethod> getCodeChallengeMethod() const;
|
|
bool codeChallengeMethodIsSet() const;
|
|
void unsetCode_challenge_method();
|
|
void setCodeChallengeMethod(const std::shared_ptr<CodeChallengeMethod> &value);
|
|
|
|
utility::string_t getRedirectUri() const;
|
|
bool redirectUriIsSet() const;
|
|
void unsetRedirect_uri();
|
|
void setRedirectUri(const utility::string_t &value);
|
|
|
|
utility::string_t getScope() const;
|
|
bool scopeIsSet() const;
|
|
void unsetScope();
|
|
void setScope(const utility::string_t &value);
|
|
|
|
utility::string_t getState() const;
|
|
bool stateIsSet() const;
|
|
void unsetState();
|
|
void setState(const utility::string_t &value);
|
|
|
|
protected:
|
|
std::shared_ptr<ResponseType> m_Response_type;
|
|
bool m_Response_typeIsSet;
|
|
|
|
utility::string_t m_Client_id;
|
|
bool m_Client_idIsSet;
|
|
|
|
utility::string_t m_Code_challenge;
|
|
bool m_Code_challengeIsSet;
|
|
|
|
std::shared_ptr<CodeChallengeMethod> m_Code_challenge_method;
|
|
bool m_Code_challenge_methodIsSet;
|
|
|
|
utility::string_t m_Redirect_uri;
|
|
bool m_Redirect_uriIsSet;
|
|
|
|
utility::string_t m_Scope;
|
|
bool m_ScopeIsSet;
|
|
|
|
utility::string_t m_State;
|
|
bool m_StateIsSet;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* TRIBUFU_MODELS_AuthorizeRequest_H_ */
|