35 const ProviderInfo = <DataProviderInfo>{
36 "type":
"CdsRestDataProvider",
37 "supports_children": True,
38 "constructor_options": ConstructorOptions,
39 "children_can_support_apis": False,
40 "children_can_support_records": True,
41 "children_can_support_observers": False,
45 const ConstructorOptions = {
46 "api": <DataProviderOptionInfo>{
47 "type": AbstractDataProviderType::get(StringType),
48 "desc":
"the CDS API version to use",
50 "cdsrestclient_options": <DataProviderOptionInfo>{
51 "type": AbstractDataProviderType::get(AutoHashType),
52 "desc":
"options to the CdsRestClient constructor",
54 "client_id": <DataProviderOptionInfo>{
55 "type": AbstractDataProviderType::get(StringType),
56 "desc":
"the client ID (required if 'client_secret' provided)",
58 "client_secret": <DataProviderOptionInfo>{
59 "type": AbstractDataProviderType::get(StringType),
60 "desc":
"the client secret (required if 'client_id' provided)",
62 "scope": <DataProviderOptionInfo>{
63 "type": AbstractDataProviderType::get(StringType),
64 "desc":
"the scope string",
66 "tenant": <DataProviderOptionInfo>{
67 "type": AbstractDataProviderType::get(StringType),
68 "desc":
"the tenant string",
70 "url": <DataProviderOptionInfo>{
71 "type": AbstractDataProviderType::get(StringType),
72 "desc":
"the URL to the CDS server",
80 "client_id":
"CDS_CLIENT_ID",
81 "client_secret":
"CDS_CLIENT_SECRET",
82 "tenant":
"CDS_TENANT",
static *hash< auto > getClientOptions(*hash< auto > copts)
Returns options for the CdsRestClient.
constructor(CdsRestClient::CdsRestClient rest)
Creates the object from the arguments.
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition: CdsRestDataProvider.qc.dox.h:32
*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:97
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