10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultDescribeLicenseConsumerLicensesRequest.h
1#ifndef TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERLICENSESREQUEST_H
2#define TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERLICENSESREQUEST_H
3
4#include "./DescribeLicenseConsumerLicensesRequest.h"
5#include "../../../config/BackendConfiguration.h"
6#include "../../../rest/AbstractPagingAPIRequest.h"
7#include "http/HTTPClient.h"
8#include "http/HTTPRequestAuthenticator.h"
9#include "http/HTTPResponseToException.h"
10#include "json/JSONParser.h"
11
12#include <memory>
13
14namespace tenduke { namespace se { namespace licensing { namespace rest {
15
19class DefaultDescribeLicenseConsumerLicensesRequest : public ::tenduke::se::licensing::rest::AbstractPagingAPIRequest<::tenduke::se::licensing::LicenseConsumerLicensesStatus>
21{
22public:
35 const ::tenduke::se::BackendConfiguration &backendConfiguration
36 , const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient
37 , const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator> &httpRequestAuthenticator
38 , const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException
39 , const std::shared_ptr<const ::tenduke::json::JSONParser> &jsonParser
40 , const ::tenduke::se::Paging &paging
41 , std::string licenseeId
42 , std::string licenseConsumerId
43 );
44
45public:
47
48protected:
50 void buildUrl(::tenduke::net::URLBuilder &) const override;
51
52private:
53 const std::string licenseeId;
54 const std::string licenseConsumerId;
55};
56
57}}}}
58
59#endif //TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERLICENSESREQUEST_H
Very simple URL-builder.
Definition URLBuilder.h:19
Interface for 10Duke Scale API-requests.
Definition APIRequest.h:12
A tenduke::se::APIRequest, which uses tenduke::oidc::OIDCSession to maintain request authorization.
Definition StatefulAPIRequest.h:27
Response from "describe license consumer licenses".
Definition LicenseConsumerLicensesStatus.h:15
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > throwException
Service to throw exceptions based on HTTP status codes.
Definition AbstractAPIRequestMixin.h:117
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > httpRequestAuthenticator
For authenticating the request.
Definition AbstractAPIRequestMixin.h:114
Abstract base class for API-requests, which support paging.
Definition AbstractPagingAPIRequest.h:17
Default implementation of tenduke::se::licensing::rest::DescribeLicenseConsumerLicensesRequest.
Definition DefaultDescribeLicenseConsumerLicensesRequest.h:21
void buildUrl(::tenduke::net::URLBuilder &) const override
Builds the request URL.
Definition DefaultDescribeLicenseConsumerLicensesRequest.cpp:27
::tenduke::se::licensing::LicenseConsumerLicensesStatus execute() override
Execute the request synchronously.
Definition DefaultDescribeLicenseConsumerLicensesRequest.cpp:22
::tenduke::se::licensing::LicenseConsumerLicensesStatus fromJSON(const std::string &responseBody) const override
Converts the response body from JSON to the response type.
Definition DefaultDescribeLicenseConsumerLicensesRequest.cpp:37
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7