32 const ProviderInfo = <DataProviderInfo>{
33 "type":
"CdsRestDataProvider",
34 "supports_children": True,
35 "constructor_options": ConstructorOptions,
36 "children_can_support_apis": False,
37 "children_can_support_records": True,
38 "children_can_support_observers": False,
42 const ConstructorOptions = {
43 "api": <DataProviderOptionInfo>{
44 "type": AbstractDataProviderType::get(StringType),
45 "desc":
"the CDS API version to use",
47 "cdsrestclient_options": <DataProviderOptionInfo>{
48 "type": AbstractDataProviderType::get(AutoHashType),
49 "desc":
"options to the CdsRestClient constructor",
51 "client_id": <DataProviderOptionInfo>{
52 "type": AbstractDataProviderType::get(StringType),
53 "desc":
"the client ID (required if 'client_secret' provided)",
55 "client_secret": <DataProviderOptionInfo>{
56 "type": AbstractDataProviderType::get(StringType),
57 "desc":
"the client secret (required if 'client_id' provided)",
59 "scope": <DataProviderOptionInfo>{
60 "type": AbstractDataProviderType::get(StringType),
61 "desc":
"the scope string",
63 "tenant": <DataProviderOptionInfo>{
64 "type": AbstractDataProviderType::get(StringType),
65 "desc":
"the tenant string",
67 "url": <DataProviderOptionInfo>{
68 "type": AbstractDataProviderType::get(StringType),
69 "desc":
"the URL to the CDS server",
77 "client_id":
"CDS_CLIENT_ID",
78 "client_secret":
"CDS_CLIENT_SECRET",
79 "tenant":
"CDS_TENANT",
The CdsRest data provider class.
Definition: CdsRestDataProviderBase.qc.dox.h:28
static *hash< auto > getClientOptions(*hash< auto > copts)
Returns options for the CdsRestClient.
setLogger(*LoggerInterface logger)
Accepts a LoggerInterface object for logging (or clears it)
constructor(CdsRestClient::CdsRestClient rest)
Creates the object from the arguments.
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
string getName()
Returns the data provider name.
*hash< auto > meta
Metadata keyed by entity type.
Definition: CdsRestDataProvider.qc.dox.h:94
constructor(*hash< auto > options)
Creates the object from constructor options.
Qore::Thread::Mutex lck()
Metadata mutex.
*hash< auto > getMetadata()
Returns metadata.
Qore CdsRestDataProvider module definition.
Definition: CdsEntityDataProvider.qc.dox.h:26