Qore GoogleDataProvider Module Reference 1.0
Loading...
Searching...
No Matches
GoogleCalendarEventsQuickAddDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace GoogleDataProvider {
28
31
32public:
34 const ProviderInfo = <DataProviderInfo>{
35 "name": "quickAdd",
36 "desc": "Google calendar events quickadd calender event API data provider",
37 "type": "GoogleCalendarEventsQuickAddDataProvider",
38 "constructor_options": GoogleDataProvider::ConstructorOptions + {
39 "id": <DataProviderOptionInfo>{
40 "type": AbstractDataProviderTypeMap."string",
41 "desc": "The calendar ID",
42 },
43 },
44 "supports_request": True,
45 };
46
48 const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
49 AbstractDataProvider::DataProviderSummaryInfoKeys
50 });
51
54
57
59 const QueryArgs = ("sendUpdates", "text");
60
61protected:
63 string id;
64
66 *hash<auto> cal;
67
68public:
69
71 constructor(*hash<auto> options);
72
73
75 constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash<auto> cal) ;
76
77
79 string getName();
80
81
83 *string getDesc();
84
85
87
92protected:
93 auto doRequestImpl(auto req, *hash<auto> request_options);
94public:
95
96
98
100protected:
101 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
102public:
103
104
106
108protected:
109 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
110public:
111
112
114 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
115
116};
117
120
121public:
123 const Fields = {
124 // query args
125 "sendUpdates": {
126 "type": AbstractDataProviderTypeMap."*string",
127 "desc": "Guests who should receive notifications about the event update (for example, title changes, "
128 "etc.).\n"
129 "Acceptable values are:\n"
130 "- `all`: Notifications are sent to all guests\n"
131 "- `externalOnly`: Notifications are sent to non-Google Calendar guests only\n"
132 "- `none`: No notifications are sent. For calendar migration tasks, consider using the "
133 "`Events.import` method instead",
134 "allowed_values": (
135 "all",
136 "externalOnly",
137 "none",
138 ),
139 },
140 "text": {
141 "type": AbstractDataProviderTypeMap."string",
142 "desc": "The text describing the event to be created; ex: `Appointment at Somewhere on June 3rd "
143 "10am-10:25am`",
144 },
145 } + map {$1.key: $1.value + {"type": $1.value.type.getOrNothingType()}},
146 GoogleCalendarEventsElementType::Fields.pairIterator(), $1.value.updatable;
147
150
151};
152};
Google calendar event data type.
Definition: GoogleCalendarEventsListDataProvider.qc.dox.h:397
const Fields
Field descriptions.
Definition: GoogleCalendarEventsListDataProvider.qc.dox.h:401
Google calendar event get request data type.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:116
The Google calendar event quickAdd API data provider.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:30
*hash< auto > cal
The calendar's metadata.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:66
string getName()
Returns the data provider name.
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash< auto > cal)
Creates the object from a REST connection.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
string id
The calendar's ID.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:63
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const ResponseType
Response type.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:56
const QueryArgs
Query args.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:59
const RequestType
Request type.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:53
const ProviderInfo
Provider info.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:34
constructor(*hash< auto > options)
Creates the object from constructor options.
*string getDesc()
Returns the data provider description.
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:48
Google event quickAdd request data type.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:119
const Fields
Field descriptions.
Definition: GoogleCalendarEventsQuickAddDataProvider.qc.dox.h:123
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