10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultDescribeLicenseConsumerClientBindingsRequest.h
1#ifndef TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERCLIENTBINDINGSREQUEST_H
2#define TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERCLIENTBINDINGSREQUEST_H
3
4#include "./DescribeLicenseConsumerClientBindingsRequest.h"
5#include "../../../rest/AbstractPagingAPIRequest.h"
6#include "../../../rest/RESTConfiguration.h"
7#include "../../../Filter.h"
8
9namespace tenduke { namespace se { namespace licensing { namespace rest {
10
11
15class DefaultDescribeLicenseConsumerClientBindingsRequest : public ::tenduke::se::licensing::rest::AbstractPagingAPIRequest<::tenduke::se::licensing::LicenseConsumerClientBindingStatus>
17{
18public:
32 const ::tenduke::se::rest::RESTConfiguration &restConfiguration,
33 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
34 const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator> &httpRequestAuthenticator,
35 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException,
36 const std::shared_ptr<const ::tenduke::json::JSONParser> &jsonParser,
37 const ::tenduke::se::Paging &paging,
38 std::string licenseeId,
39 std::string licenseConsumerId,
41 );
42
43public:
45
46protected:
47 ::tenduke::se::licensing::LicenseConsumerClientBindingStatus fromJSON(const std::string &responseBody) const override;
48 void buildUrl(::tenduke::net::URLBuilder &url) const override;
53
54private:
55 const std::string licenseeId;
56 const std::string licenseConsumerId;
57 const ::tenduke::se::Filter filter;
58};
59
60}}}}
61
62#endif //TENDUKE_SE_LICENSING_REST_DEFAULTDESCRIBELICENSECONSUMERCLIENTBINDINGSREQUEST_H
DefaultDescribeLicenseConsumerClientBindingsRequest(const ::tenduke::se::rest::RESTConfiguration &restConfiguration, 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::json::JSONParser > &jsonParser, const ::tenduke::se::Paging &paging, std::string licenseeId, std::string licenseConsumerId, ::tenduke::se::Filter filter)
Constructs new instance.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:128
Builds HTTPRequest.
Definition HTTPRequestBuilder.h:23
Very simple URL-builder.
Definition URLBuilder.h:23
Filter-definition for the REST-API.
Definition Filter.h:13
Result of queries, which describe client bindings.
Definition LicenseConsumerClientBindingStatus.h:15
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > throwException
Definition AbstractAPIRequestMixin.h:114
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > httpRequestAuthenticator
Definition AbstractAPIRequestMixin.h:111
Abstract base class for API-requests, which support paging.
Definition AbstractPagingAPIRequest.h:17
::tenduke::se::licensing::LicenseConsumerClientBindingStatus fromJSON(const std::string &responseBody) const override
Converts the response body from JSON to the response type.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:48
void buildUrl(::tenduke::net::URLBuilder &url) const override
Builds the request URL.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:33
DefaultDescribeLicenseConsumerClientBindingsRequest(const ::tenduke::se::rest::RESTConfiguration &restConfiguration, 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::json::JSONParser > &jsonParser, const ::tenduke::se::Paging &paging, std::string licenseeId, std::string licenseConsumerId, ::tenduke::se::Filter filter)
Constructs new instance.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:128
::tenduke::se::licensing::LicenseConsumerClientBindingStatus execute() override
Execute the request synchronously.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:28
::tenduke::http::HTTPRequestBuilder & setHeaders(::tenduke::http::HTTPRequestBuilder &request) const override
Sets the paging headers to the request.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.cpp:120
Low-level services for performing licensing REST-requests.
Definition DefaultDescribeLicenseConsumerClientBindingsRequest.h:9
::tenduke::se::APIRequest<::tenduke::se::licensing::LicenseConsumerClientBindingStatus > DescribeLicenseConsumerClientBindingsRequest
Request for describe license consumer client bindings.
Definition DescribeLicenseConsumerClientBindingsRequest.h:10
Licensing operations for 10Duke Scale.
Definition LicenseConsumerClientBindingStatus.h:8
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16