Qore GoogleDataProvider Module Reference 1.0
Loading...
Searching...
No Matches
GoogleCalendarInsertDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace GoogleDataProvider {
28
31
32public:
34 const ProviderInfo = <DataProviderInfo>{
35 "name": "insert",
36 "desc": "Google calendar insert API data provider",
37 "type": "GoogleCalendarInsertDataProvider",
38 "constructor_options": GoogleDataProvider::ConstructorOptions,
39 "supports_request": True,
40 };
41
43 const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
44 AbstractDataProvider::DataProviderSummaryInfoKeys
45 });
46
49
52
54 constructor(*hash<auto> options);
55
56
58 constructor(GoogleRestClient::GoogleRestClient rest) ;
59
60
62 string getName();
63
64
66 *string getDesc();
67
68
70
75protected:
76 auto doRequestImpl(auto req, *hash<auto> request_options);
77public:
78
79
81
83protected:
84 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
85public:
86
87
89
91protected:
92 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
93public:
94
95
97 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
98
99};
100
102class GoogleCalendarInsertRequestType : public DataProvider::HashDataType {
103
104public:
105protected:
107 const Fields = {
108 // query parameters
109 "summary": {
110 "type": AbstractDataProviderTypeMap."string",
111 "desc": "Title of the calendar",
112 },
113 "timeZone": {
114 "type": AbstractDataProviderTypeMap."*string",
115 "desc": "The time zone of the calendar",
116 },
117 };
118
119public:
120
123
124};
125};
The Google calendar insert API data provider.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:30
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:43
const RequestType
Request type.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:48
*string getDesc()
Returns the data provider description.
constructor(*hash< auto > options)
Creates the object from constructor options.
constructor(GoogleRestClient::GoogleRestClient rest)
Creates the object from a REST connection.
string getName()
Returns the data provider name.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
const ProviderInfo
Provider info.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:34
const ResponseType
Response type.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:51
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
Google calendar insert request data type.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:102
const Fields
Field descriptions.
Definition: GoogleCalendarInsertDataProvider.qc.dox.h:107
Google calender type.
Definition: GoogleCalendarType.qc.dox.h:31
The Google data provider base class.
Definition: GoogleDataProviderBase.qc.dox.h:28
*GoogleRestClient::GoogleRestClient rest
The REST client object for API calls.
Definition: GoogleDataProviderBase.qc.dox.h:33
const ConstructorOptions
Constructor options.
Definition: GoogleDataProvider.qc.dox.h:40
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26