Loading...
Searching...
No Matches
GoogleCalendarEventsPatchDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace GoogleDataProvider {
class GoogleCalendarEventsPatchDataProvider : public GoogleDataProviderBase {
public:
const ProviderInfo = <DataProviderInfo>{
"name": "patch",
"desc": "Google calendar events patch calender event API data provider",
"type": "GoogleCalendarEventsPatchDataProvider",
"constructor_options": GoogleDataProvider::ConstructorOptions + {
"id": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."string",
"desc": "The calendar ID",
},
},
"supports_request": True,
};
const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
AbstractDataProvider::DataProviderSummaryInfoKeys
});
const RequestType = new GoogleCalendarEventsPatchRequestType();
const ResponseType = new GoogleCalendarEventsElementType();
const QueryArgs = ("conferenceDataVersion", "maxAttendees", "sendUpdates", "supportsAttachments");
protected:
string id;
*hash<auto> cal;
public:
constructor(*hash<auto> options);
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash<auto> cal) ;
string getName();
*string getDesc();
protected:
auto doRequestImpl(auto req, *hash<auto> request_options);
public:
protected:
*DataProvider::AbstractDataProviderType getRequestTypeImpl();
public:
protected:
*DataProvider::AbstractDataProviderType getResponseTypeImpl();
public:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
};
class GoogleCalendarEventsPatchRequestType : public GoogleCalendarEventsGetRequestType {
public:
const Fields = {
// query args
"conferenceDataVersion": {
"type": AbstractDataProviderTypeMap."*int",
"desc": "Version number of conference data supported by the API client. Version `0` assumes no "
"conference data support and ignores conference data in the event's body. Version `1` enables "
"support for copying of `ConferenceData` as well as for creating new conferences using the "
"`createRequest` field of `conferenceData`. The default is `0`. Acceptable values are `0` to "
"`1`, inclusive",
"allowed_values": (
0,
1,
),
},
"maxAttendees": {
"type": AbstractDataProviderTypeMap."*int",
"desc": "The maximum number of attendees to include in the response. If there are more than the "
"specified number of attendees, only the participant is returned. Optional",
},
"sendUpdates": {
"type": AbstractDataProviderTypeMap."*string",
"desc": "Guests who should receive notifications about the event update (for example, title changes, "
"etc.).\n"
"Acceptable values are:\n"
"- `all`: Notifications are sent to all guests\n"
"- `externalOnly`: Notifications are sent to non-Google Calendar guests only\n"
"- `none`: No notifications are sent. For calendar migration tasks, consider using the "
"`Events.import` method instead",
"allowed_values": (
"all",
"externalOnly",
"none",
),
},
"supportsAttachments": {
"type": SoftBoolDataProviderStringType,
"desc": "Whether API client performing operation supports event attachments. Optional. The default "
"is `False`",
},
} + map {$1.key: $1.value + {"type": $1.value.type.getOrNothingType()}},
GoogleCalendarEventsElementType::Fields.pairIterator(), $1.value.updatable;
constructor() ;
};
};
GoogleDataProvider::GoogleCalendarEventsElementType
Google calendar event data type.
Definition: GoogleCalendarEventsListDataProvider.qc.dox.h:397
GoogleDataProvider::GoogleCalendarEventsElementType::Fields
const Fields
Field descriptions.
Definition: GoogleCalendarEventsListDataProvider.qc.dox.h:401
GoogleDataProvider::GoogleCalendarEventsGetRequestType
Google calendar event get request data type.
Definition: GoogleCalendarEventsGetDataProvider.qc.dox.h:116
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider
The Google calendar event patch API data provider.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:30
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::QueryArgs
const QueryArgs
Query args.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:59
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::RequestType
const RequestType
Request type.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:53
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::constructor
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash< auto > cal)
Creates the object from a REST connection.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::ResponseType
const ResponseType
Response type.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:56
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::doRequestImpl
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::getDesc
*string getDesc()
Returns the data provider description.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::getRequestTypeImpl
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::getName
string getName()
Returns the data provider name.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::ProviderInfo
const ProviderInfo
Provider info.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:34
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::cal
*hash< auto > cal
The calendar's metadata.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:66
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::ProviderSummaryInfo
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:48
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::getResponseTypeImpl
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
GoogleDataProvider::GoogleCalendarEventsPatchDataProvider::id
string id
The calendar's ID.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:63
GoogleDataProvider::GoogleCalendarEventsPatchRequestType
Google event patch request data type.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:119
GoogleDataProvider::GoogleCalendarEventsPatchRequestType::Fields
const Fields
Field descriptions.
Definition: GoogleCalendarEventsPatchDataProvider.qc.dox.h:123
GoogleDataProvider::GoogleCalendarEventsPatchRequestType::constructor
constructor()
Creates the object.
GoogleDataProvider::GoogleDataProviderBase
The Google data provider base class.
Definition: GoogleDataProviderBase.qc.dox.h:28
GoogleDataProvider::GoogleDataProviderBase::rest
*GoogleRestClient::GoogleRestClient rest
The REST client object for API calls.
Definition: GoogleDataProviderBase.qc.dox.h:33
GoogleDataProvider::GoogleDataProvider::ConstructorOptions
const ConstructorOptions
Constructor options.
Definition: GoogleDataProvider.qc.dox.h:40
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