Qore GoogleDataProvider Module Reference 1.0
Loading...
Searching...
No Matches
GoogleDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace GoogleDataProvider {
29
30public:
32 const ProviderInfo = <DataProviderInfo>{
33 "type": "GoogleDataProvider",
34 "supports_children": True,
35 "constructor_options": ConstructorOptions,
36 "children_can_support_apis": True,
37 };
38
40 const ConstructorOptions = {
41 "restclient": <DataProviderOptionInfo>{
42 "type": AbstractDataProviderType::get(new Type("GoogleRestClient")),
43 "desc": "The GoogleRestClient object",
44 },
45 "restclient_options": <DataProviderOptionInfo>{
46 "type": AbstractDataProviderTypeMap."*hash",
47 "desc": "Options to the GoogleRestClient constructor; only used if a GoogleRestClient object is "
48 "created for a call",
49 },
50 "oauth2_client_id": <DataProviderOptionInfo>{
51 "type": AbstractDataProviderTypeMap."*string",
52 "desc": "The OAuth2 client ID",
53 },
54 "oauth2_client_secret": <DataProviderOptionInfo>{
55 "type": AbstractDataProviderTypeMap."*string",
56 "desc": "The OAuth2 client secret",
57 },
58 "oauth2_refresh_token": <DataProviderOptionInfo>{
59 "type": AbstractDataProviderTypeMap."*string",
60 "desc": "The OAuth2 refresh token, if known",
61 },
62 "token": <DataProviderOptionInfo>{
63 "type": AbstractDataProviderTypeMap."*string",
64 "desc": "The OAuth2 token, if known",
65 },
66 };
67
68protected:
69 const ChildMap = {
70 "calendar": Class::forName("GoogleDataProvider::GoogleCalendarBaseDataProvider"),
71 };
72
73public:
74
76 constructor(*hash<auto> options);
77
78
81
82
85
87 string getName();
88
89
91 *string getDesc();
92
93
95 *list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
96
97
99
101protected:
103public:
104
105
107
111protected:
113public:
114
115
117protected:
118 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
119public:
120
121};
122
125
127const SoftBoolDataProviderStringType = AbstractDataProviderType::get(SoftBoolStringType);
128
130class SoftBoolStringType : public Qore::Reflection::Type {
131
132public:
135
136
138 auto acceptsValue(auto value);
139
140
143
144};
145
148
151
152public:
155
156
158 auto acceptsValue(auto value);
159
160};
161
164
167
168public:
171
172
174 auto acceptsValue(auto value);
175
176};
177};
The Google data provider base class.
Definition: GoogleDataProviderBase.qc.dox.h:28
string getName()
Returns the data provider name.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
constructor(*hash< auto > options)
Creates the object from constructor options.
*string getDesc()
Returns the data provider description.
static GoogleRestClient::GoogleRestClient getRestConnection(*hash< auto > options)
Returns a GoogleRestClient connection from the options.
constructor(GoogleRestClient rest)
Creates the object from a GoogleRestClient.
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
Boolean string type.
Definition: GoogleDataProvider.qc.dox.h:130
auto getDefaultValue()
Returns the default value for the type or NOTHING if the type has no default value.
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
Date string type.
Definition: GoogleDataProvider.qc.dox.h:166
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
Timestamp string type.
Definition: GoogleDataProvider.qc.dox.h:150
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26
const SoftBoolDataProviderStringType
Boolean data provider string type for query parameters.
Definition: GoogleDataProvider.qc.dox.h:127