10Duke Scale C++ Client
|
#include <ScaleLicensingApi.h>
Low-level licensing client interface.
This matches the REST-API and implementations are used to access the REST API.
ScaleLicensingApi
is a factory for actual API requests: Methods return instances of "request"-classes. Executing the request makes the actual REST API call and returns the response.
"Request-level" errors from request execution are reported with exceptions. Note that checkout/heartbeat/release calls return responses normally, when the problem is argument-specific. For example, trying to checkout a seat from license that has all seats already checked out does not throw an exception, but returns tenduke::se::licensing::LicenseCheckoutResponse
, which has errors
-vector describing the errors. This means that for example checkout can partially succeed and fail at the same time.
Some examples of "request-level" errors are e.g. missing/expired credentials or rate-limiting. The official documentation describes several types of errors.
|
pure virtual |
Checkout license(s).
parameters | checkout parameters |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Checkout license(s) with license key.
licenseKey | the license key |
parameters | checkout parameters |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Describe license key.
Describes licenses that a license key grants usage rights to. This endpoint can be called using only a license key. Current use of licenses checked out using a license key (client bindings) can be requested at: /actions/describe-license-key-client-bindings. Paging detail: The common case is having one or only a few licenses per license key. That means paging is likely not needed and requests to this endpoint can omit using offset and limit in that case.
licenseKey | the license key |
paging | - |
withMetadata | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Ends metered license use.
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Ends metered license use with license key.
licenseKey | the license key |
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Does license heartbeat.
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Does license heartbeat with license key.
licenseKey | the license key |
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Does license heartbeat for metered license use.
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Does license heartbeat with license key for metered license use.
licenseKey | the license key |
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Releases licenses.
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Releases licenses with license key.
licenseKey | the license key |
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Starts metere license use.
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.
|
pure virtual |
Starts metered license use with license key.
licenseKey | the license key |
parameters | - |
Implemented in tenduke::se::licensing::rest::ScaleLicensingApiImpl.