10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::LicenseConsumptionClientBinding Class Reference

#include <LicenseConsumptionClientBinding.h>

Detailed Description

Licenses that are currently known to be associated with a license consuming user using a specific application on a specific device.

Note: this list size is capped according to the maximum size parameter in the request that asked for the data. Existence of more data can be inspected by checking the flag: allClientBindingsIncluded

Public Member Functions

 LicenseConsumptionClientBinding (std::string cliApiKey, std::string cliCountry, std::string cliHostName, std::string cliHwArch, std::string cliHwId, std::string cliHwLabel, std::string cliInstallationId, std::string cliLang, std::string cliNetworkIpAddress, std::string cliOsUserName, std::string cliOs, std::string cliProcessId, std::string cliVersion, std::string consumeDurationEndedAt, std::string consumeDurationGrantedAt, std::string created, const std::int64_t id, std::string lastHeartbeat, std::string leaseId, const std::shared_ptr<::tenduke::se::licensing::License > &license, const std::shared_ptr<::tenduke::se::licensing::LicenseConsumer > &licenseConsumer, const bool locked, std::string modified, const std::int64_t qtyPreAlloc, std::string requestIpAddress, const bool triggeredSeatUse, std::string validFrom, std::string validUntil, const std::int64_t verifiedQty)
 Constructs new instance.
 

Public Attributes

const std::string cliApiKey
 Client API key.
 
const std::string cliCountry
 Client country.
 
const std::string cliHostName
 Client host name.
 
const std::string cliHwArch
 Client hardware architecture.
 
const std::string cliHwId
 Client hardware id.
 
const std::string cliHwLabel
 Client hardware label.
 
const std::string cliInstallationId
 Client installation id.
 
const std::string cliLang
 Client language.
 
const std::string cliNetworkIpAddress
 Client network IP address.
 
const std::string cliOSUserName
 Client operating system user name.
 
const std::string cliOs
 Client operating system.
 
const std::string cliProcessId
 Client process id.
 
const std::string cliVersion
 Client version.
 
const std::string consumeDurationEndedAt
 Consume duration ended at.
 
const std::string consumeDurationGrantedAt
 Consume duration granted at.
 
const std::string created
 Creation timestamp.
 
const std::int64_t id
 Id.
 
const std::string lastHeartbeat
 Last heartbeat timestamp.
 
const std::string leaseId
 Lease id.
 
const std::shared_ptr<::tenduke::se::licensing::Licenselicense
 The license.
 
const std::shared_ptr<::tenduke::se::licensing::LicenseConsumerlicenseConsumer
 The license consumer.
 
const bool locked
 Locked?
 
const std::string modified
 Modification timestamp.
 
const std::int64_t qtyPreAlloc
 Pre-allocating a quantity amount applies to quantity types that pure deductible nature, e.g.
 
const std::string requestIpAddress
 Request ip address.
 
const bool triggeredSeatUse
 Did this trigger seat use?
 
const std::string validFrom
 Valid from.
 
const std::string validUntil
 Valid until.
 
const std::int64_t verifiedQty
 Verified quantity is determined by the consuming client informing the licensing API of factual use.
 

Constructor & Destructor Documentation

◆ LicenseConsumptionClientBinding()

tenduke::se::licensing::LicenseConsumptionClientBinding::LicenseConsumptionClientBinding ( std::string  cliApiKey,
std::string  cliCountry,
std::string  cliHostName,
std::string  cliHwArch,
std::string  cliHwId,
std::string  cliHwLabel,
std::string  cliInstallationId,
std::string  cliLang,
std::string  cliNetworkIpAddress,
std::string  cliOsUserName,
std::string  cliOs,
std::string  cliProcessId,
std::string  cliVersion,
std::string  consumeDurationEndedAt,
std::string  consumeDurationGrantedAt,
std::string  created,
const std::int64_t  id,
std::string  lastHeartbeat,
std::string  leaseId,
const std::shared_ptr<::tenduke::se::licensing::License > &  license,
const std::shared_ptr<::tenduke::se::licensing::LicenseConsumer > &  licenseConsumer,
const bool  locked,
std::string  modified,
const std::int64_t  qtyPreAlloc,
std::string  requestIpAddress,
const bool  triggeredSeatUse,
std::string  validFrom,
std::string  validUntil,
const std::int64_t  verifiedQty 
)
inline

Constructs new instance.

Parameters
cliApiKey-
cliCountry-
cliHostName-
cliHwArch-
cliHwId-
cliHwLabel-
cliInstallationId-
cliLang-
cliNetworkIpAddress-
cliOsUserName-
cliOs-
cliProcessId-
cliVersion-
consumeDurationEndedAt-
consumeDurationGrantedAt-
created-
id-
lastHeartbeat-
leaseId-
license-
licenseConsumer-
locked-
modified-
qtyPreAlloc-
requestIpAddress-
triggeredSeatUse-
validFrom-
validUntil-
verifiedQty-

Member Data Documentation

◆ qtyPreAlloc

const std::int64_t tenduke::se::licensing::LicenseConsumptionClientBinding::qtyPreAlloc

Pre-allocating a quantity amount applies to quantity types that pure deductible nature, e.g.

use count and use time. Its an indicative amount of e.g. use count or use time that a client estimates it needs to complete a task (may be end user driven). Client applications may use pre-allocation to ensure a certain amount of quantity is still available when starting a task. The pre-allocation is deducted from the available quantity and the final outcome is computed at time of release. The verified quantity is set at time of release and if the factual used quantity is less than what pass pre-allocated then the difference is refunded. NOTE: does not apply when consuming seats.

◆ verifiedQty

const std::int64_t tenduke::se::licensing::LicenseConsumptionClientBinding::verifiedQty

Verified quantity is determined by the consuming client informing the licensing API of factual use.

This can happen at time of heartbeat and release. The verified quantity is applies to quantity types that pure deductible nature, e.g. use count and use time. NOTE: does not apply when consuming seats.


The documentation for this class was generated from the following file: