$darkmode
Qore GoogleDataProvider Module Reference 1.0
GoogleCalendarInsertDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace GoogleDataProvider {
28 
31 
32 public:
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 
75 protected:
76  auto doRequestImpl(auto req, *hash<auto> request_options);
77 public:
78 
79 
81 
83 protected:
84  *DataProvider::AbstractDataProviderType getRequestTypeImpl();
85 public:
86 
87 
89 
91 protected:
92  *DataProvider::AbstractDataProviderType getResponseTypeImpl();
93 public:
94 
95 
97  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
98 
99 };
100 
102 class GoogleCalendarInsertRequestType : public DataProvider::HashDataType {
103 
104 public:
105 protected:
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 
119 public:
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.
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.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
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
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
const True
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26
const GoogleCalendarType
Google calendar type constant.
Definition: GoogleCalendarType.qc.dox.h:28