32 CdsRestClient::CdsRestClient
rest;
35 const ProviderInfo = <DataProviderInfo>{
36 "type":
"CdsRestDataProvider",
37 "supports_children":
True,
38 "constructor_options": ConstructorOptions,
42 const ConstructorOptions = {
43 "api": <DataProviderOptionInfo>{
44 "type": AbstractDataProviderType::get(StringType),
45 "desc":
"the CDS API version to use",
47 "cdsrestclient": <DataProviderOptionInfo>{
48 "type": AbstractDataProviderType::get(
new Type(
"CdsRestClient")),
49 "desc":
"the CdsRestClient object",
51 "cdsrestclient_options": <DataProviderOptionInfo>{
52 "type": AbstractDataProviderType::get(AutoHashType),
53 "desc":
"options to the CdsRestClient constructor; only used if a CdsRestClient object "
54 "is created for a call",
56 "client_id": <DataProviderOptionInfo>{
57 "type": AbstractDataProviderType::get(StringType),
58 "desc":
"the client ID (required if 'client_secret' provided)",
60 "client_secret": <DataProviderOptionInfo>{
61 "type": AbstractDataProviderType::get(StringType),
62 "desc":
"the client secret (required if 'client_id' provided)",
64 "scope": <DataProviderOptionInfo>{
65 "type": AbstractDataProviderType::get(StringType),
66 "desc":
"the scope string",
68 "tenant": <DataProviderOptionInfo>{
69 "type": AbstractDataProviderType::get(StringType),
70 "desc":
"the tenant string",
72 "url": <DataProviderOptionInfo>{
73 "type": AbstractDataProviderType::get(StringType),
74 "desc":
"the URL to the CDS server; overrides any URL in the schema or in any RestClient object "
75 "passed as an option",
82 "client_id":
"CDS_CLIENT_ID",
83 "client_secret":
"CDS_CLIENT_SECRET",
84 "tenant":
"CDS_TENANT",
static *hash< auto > getClientOptions(*hash< auto > copts)
Returns options for the CdsRestClient.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
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.
*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:99
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