1#ifndef TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSERELEASEREQUEST_H
2#define TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSERELEASEREQUEST_H
4#include "../LicenseReleaseRequest.h"
5#include "../../LicensingConfiguration.h"
6#include "../../release/LicenseReleaseParameters.h"
8#include "http/HTTPClient.h"
9#include "http/HTTPRequestAuthenticator.h"
10#include "http/HTTPResponseToException.h"
11#include "jwt/JWTParser.h"
35 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
36 const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator> &httpRequestAuthenticator,
37 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException,
38 const std::shared_ptr<const ::tenduke::jwt::JWTParser> &jwtParser,
39 const std::shared_ptr<const ::tenduke::ee::licensing::LicensingConfiguration> &configuration,
61 const std::string &token,
62 std::vector<std::string> &successfullyReleasedLeaseIds,
63 std::map<std::string, tenduke::ee::licensing::LicensingError> &errors
67 const std::shared_ptr<const tenduke::ee::licensing::LicensingConfiguration> configuration;
70 const std::shared_ptr<const tenduke::http::HTTPClient> http;
71 const std::shared_ptr<const tenduke::http::HTTPRequestAuthenticator> httpRequestAuthenticator;
72 const std::shared_ptr<const tenduke::jwt::JWTParser> parseJWT;
73 const std::shared_ptr<const tenduke::http::HTTPResponseToException> throwException;
DefaultLicenseReleaseRequest(const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException, const std::shared_ptr< const ::tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const ::tenduke::ee::licensing::LicensingConfiguration > &configuration, ::tenduke::ee::licensing::LicenseReleaseParameters parameters)
Constructs new instance.
Definition DefaultLicenseReleaseRequest.cpp:123
Parameters for license-release request.
Definition LicenseReleaseParameters.h:13
Response from tenduke::ee::licensing::LicenseReleaseRequest.
Definition LicenseReleaseResponse.h:18
tenduke::ee::licensing::LicenseReleaseResponse execute() override
Execute the request synchronously.
Definition DefaultLicenseReleaseRequest.cpp:16
virtual tenduke::ee::licensing::LicenseReleaseResponse parseResponsePayload(const std::string &payload)
Parses response payload to tenduke::ee::licensing::LicenseReleaseResponse.
Definition DefaultLicenseReleaseRequest.cpp:97
DefaultLicenseReleaseRequest(const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException, const std::shared_ptr< const ::tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const ::tenduke::ee::licensing::LicensingConfiguration > &configuration, ::tenduke::ee::licensing::LicenseReleaseParameters parameters)
Constructs new instance.
Definition DefaultLicenseReleaseRequest.cpp:123
virtual void parseSingleToken(const std::string &token, std::vector< std::string > &successfullyReleasedLeaseIds, std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Parses single token from the response, and places the token either to successfullyReleasedLeaseIds or...
Definition DefaultLicenseReleaseRequest.cpp:50
Low-level client for licensing operations using 10Duke authz-API.
Definition AuthzLicensingClient.h:13
tenduke::ee::licensing::authzapi::LicensingRequest< tenduke::ee::licensing::LicenseReleaseResponse > LicenseReleaseRequest
Request for license release.
Definition LicenseReleaseRequest.h:12
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition AuthzLicensingClient.h:13
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition APIRequest.h:4
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4