Loading...
Searching...
No Matches
GoogleDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace GoogleDataProvider {
class GoogleDataProvider : public GoogleDataProviderBase {
public:
const ProviderInfo = <DataProviderInfo>{
"type": "GoogleDataProvider",
"supports_children": True,
"constructor_options": ConstructorOptions,
"children_can_support_apis": True,
};
const ConstructorOptions = {
"restclient": <DataProviderOptionInfo>{
"type": AbstractDataProviderType::get(new Type("GoogleRestClient")),
"desc": "The GoogleRestClient object",
},
"restclient_options": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."*hash",
"desc": "Options to the GoogleRestClient constructor; only used if a GoogleRestClient object is "
"created for a call",
},
"oauth2_client_id": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."*string",
"desc": "The OAuth2 client ID",
},
"oauth2_client_secret": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."*string",
"desc": "The OAuth2 client secret",
},
"oauth2_refresh_token": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."*string",
"desc": "The OAuth2 refresh token, if known",
},
"token": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."*string",
"desc": "The OAuth2 token, if known",
},
};
protected:
const ChildMap = {
"calendar": Class::forName("GoogleDataProvider::GoogleCalendarBaseDataProvider"),
};
public:
constructor(*hash<auto> options);
constructor(GoogleRestClient rest) ;
static GoogleRestClient::GoogleRestClient getRestConnection(*hash<auto> options);
string getName();
*string getDesc();
*list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*DataProvider::AbstractDataProvider getChildProviderImpl(string name);
public:
protected:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
public:
};
const SoftBoolStringType = new SoftBoolStringType();
const SoftBoolDataProviderStringType = AbstractDataProviderType::get(SoftBoolStringType);
class SoftBoolStringType : public Qore::Reflection::Type {
public:
constructor() ;
auto acceptsValue(auto value);
auto getDefaultValue();
};
const SoftTimestampDataProviderStringType = new SoftTimestampDataProviderStringType();
class SoftTimestampDataProviderStringType : public DataProvider::QoreSoftStringOrNothingDataType {
public:
constructor();
auto acceptsValue(auto value);
};
const SoftDateDataProviderStringType = new SoftDateDataProviderStringType();
class SoftDateDataProviderStringType : public DataProvider::QoreSoftStringOrNothingDataType {
public:
constructor();
auto acceptsValue(auto value);
};
};
GoogleDataProvider::GoogleDataProviderBase
The Google data provider base class.
Definition: GoogleDataProviderBase.qc.dox.h:28
GoogleDataProvider::GoogleDataProvider::getName
string getName()
Returns the data provider name.
GoogleDataProvider::GoogleDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
GoogleDataProvider::GoogleDataProvider::getChildProviderImpl
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
GoogleDataProvider::GoogleDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
GoogleDataProvider::GoogleDataProvider::getDesc
*string getDesc()
Returns the data provider description.
GoogleDataProvider::GoogleDataProvider::getRestConnection
static GoogleRestClient::GoogleRestClient getRestConnection(*hash< auto > options)
Returns a GoogleRestClient connection from the options.
GoogleDataProvider::GoogleDataProvider::constructor
constructor(GoogleRestClient rest)
Creates the object from a GoogleRestClient.
GoogleDataProvider::GoogleDataProvider::getChildProviderSummaryInfo
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
GoogleDataProvider::GoogleDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
GoogleDataProvider::SoftBoolStringType
Boolean string type.
Definition: GoogleDataProvider.qc.dox.h:130
GoogleDataProvider::SoftBoolStringType::getDefaultValue
auto getDefaultValue()
Returns the default value for the type or NOTHING if the type has no default value.
GoogleDataProvider::SoftBoolStringType::constructor
constructor()
Creates the object.
GoogleDataProvider::SoftBoolStringType::acceptsValue
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
GoogleDataProvider::SoftDateDataProviderStringType
Date string type.
Definition: GoogleDataProvider.qc.dox.h:166
GoogleDataProvider::SoftDateDataProviderStringType::constructor
constructor()
Creates the object.
GoogleDataProvider::SoftDateDataProviderStringType::acceptsValue
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
GoogleDataProvider::SoftTimestampDataProviderStringType
Timestamp string type.
Definition: GoogleDataProvider.qc.dox.h:150
GoogleDataProvider::SoftTimestampDataProviderStringType::acceptsValue
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
GoogleDataProvider::SoftTimestampDataProviderStringType::constructor
constructor()
Creates the object.
GoogleDataProvider
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26
GoogleDataProvider::SoftBoolDataProviderStringType
const SoftBoolDataProviderStringType
Boolean data provider string type for query parameters.
Definition: GoogleDataProvider.qc.dox.h:127