#include <calendar_service.h>
Implements the instances method.
This class uses the Command Pattern. Construct an instance with the required parameters, then set any additional optional parameters by using the attribute setters. To invoke the method, call Execute
.
One or more of these authorization scopes are required for this method: https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.readonly https://www.googleapis.com/auth/calendar.readonly
◆ EventsResource_InstancesMethod()
google_calendar_api::EventsResource_InstancesMethod::EventsResource_InstancesMethod |
( |
const CalendarService * |
_service_, |
|
|
client::AuthorizationCredential * |
_credential_, |
|
|
const absl::string_view & |
calendar_id, |
|
|
const absl::string_view & |
event_id |
|
) |
| |
The standard constructor takes all the required method parameters.
- Parameters
-
[in] | <em>service</em> | The service instance to send to when executed. |
[in] | <em>credential</em> | If not NULL, the credential to authorize with. In practice this is supplied by the user code that is creating the method instance. |
[in] | calendar_id | Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. |
[in] | event_id | Recurring event identifier. |
◆ ~EventsResource_InstancesMethod()
google_calendar_api::EventsResource_InstancesMethod::~EventsResource_InstancesMethod |
( |
| ) |
|
|
virtual |
◆ AppendOptionalQueryParameters()
util::Status google_calendar_api::EventsResource_InstancesMethod::AppendOptionalQueryParameters |
( |
string * |
target | ) |
|
|
virtual |
◆ AppendVariable()
util::Status google_calendar_api::EventsResource_InstancesMethod::AppendVariable |
( |
const StringPiece & |
variable_name, |
|
|
const client::UriTemplateConfig & |
config, |
|
|
string * |
target |
|
) |
| |
|
virtual |
Appends variable value to the target string.
This is a helper function used to resolve templated variables in the URI.
- Parameters
-
[in] | variable_name | The name of the templated variable. |
[in] | config | A pass-through parameter used for lists and maps. |
[in,out] | target | The string to append the value to. |
Reimplemented from google_calendar_api::CalendarServiceBaseRequest.
◆ clear_always_include_email()
void google_calendar_api::EventsResource_InstancesMethod::clear_always_include_email |
( |
| ) |
|
|
inline |
Clears the 'alwaysIncludeEmail
' attribute so it is no longer set.
◆ clear_max_attendees()
void google_calendar_api::EventsResource_InstancesMethod::clear_max_attendees |
( |
| ) |
|
|
inline |
Clears the 'maxAttendees
' attribute so it is no longer set.
◆ clear_max_results()
void google_calendar_api::EventsResource_InstancesMethod::clear_max_results |
( |
| ) |
|
|
inline |
Clears the 'maxResults
' attribute so it is no longer set.
◆ clear_original_start()
void google_calendar_api::EventsResource_InstancesMethod::clear_original_start |
( |
| ) |
|
|
inline |
Clears the 'originalStart
' attribute so it is no longer set.
◆ clear_page_token()
void google_calendar_api::EventsResource_InstancesMethod::clear_page_token |
( |
| ) |
|
|
inline |
Clears the 'pageToken
' attribute so it is no longer set.
◆ clear_show_deleted()
void google_calendar_api::EventsResource_InstancesMethod::clear_show_deleted |
( |
| ) |
|
|
inline |
Clears the 'showDeleted
' attribute so it is no longer set.
◆ clear_time_max()
void google_calendar_api::EventsResource_InstancesMethod::clear_time_max |
( |
| ) |
|
|
inline |
Clears the 'timeMax
' attribute so it is no longer set.
◆ clear_time_min()
void google_calendar_api::EventsResource_InstancesMethod::clear_time_min |
( |
| ) |
|
|
inline |
Clears the 'timeMin
' attribute so it is no longer set.
◆ clear_time_zone()
void google_calendar_api::EventsResource_InstancesMethod::clear_time_zone |
( |
| ) |
|
|
inline |
Clears the 'timeZone
' attribute so it is no longer set.
◆ ExecuteAndParseResponse()
util::Status google_calendar_api::EventsResource_InstancesMethod::ExecuteAndParseResponse |
( |
Events * |
data | ) |
|
|
inline |
Executes the method and parses the response into a data object on success.
- Parameters
-
[out] | data | Loads from the response payload JSON data on success. |
- Returns
- Success if an HTTP 2xx response was received. Otherwise the status indicates the reason for failure. Finer detail may be available from the underlying http_request to distinguish the transport_status from the overal HTTP request status.
◆ get_always_include_email()
bool google_calendar_api::EventsResource_InstancesMethod::get_always_include_email |
( |
| ) |
const |
|
inline |
Gets the optional 'alwaysIncludeEmail
' attribute.
If the value is not set then the default value will be returned.
◆ get_max_attendees()
int32 google_calendar_api::EventsResource_InstancesMethod::get_max_attendees |
( |
| ) |
const |
|
inline |
Gets the optional 'maxAttendees
' attribute.
If the value is not set then the default value will be returned.
◆ get_max_results()
int32 google_calendar_api::EventsResource_InstancesMethod::get_max_results |
( |
| ) |
const |
|
inline |
Gets the optional 'maxResults
' attribute.
If the value is not set then the default value will be returned.
◆ get_original_start()
const string& google_calendar_api::EventsResource_InstancesMethod::get_original_start |
( |
| ) |
const |
|
inline |
Gets the optional 'originalStart
' attribute.
If the value is not set then the default value will be returned.
◆ get_page_token()
const string& google_calendar_api::EventsResource_InstancesMethod::get_page_token |
( |
| ) |
const |
|
inline |
Gets the optional 'pageToken
' attribute.
If the value is not set then the default value will be returned.
◆ get_show_deleted()
bool google_calendar_api::EventsResource_InstancesMethod::get_show_deleted |
( |
| ) |
const |
|
inline |
Gets the optional 'showDeleted
' attribute.
If the value is not set then the default value will be returned.
◆ get_time_max()
client::DateTime google_calendar_api::EventsResource_InstancesMethod::get_time_max |
( |
| ) |
const |
|
inline |
Gets the optional 'timeMax
' attribute.
If the value is not set then the default value will be returned.
◆ get_time_min()
client::DateTime google_calendar_api::EventsResource_InstancesMethod::get_time_min |
( |
| ) |
const |
|
inline |
Gets the optional 'timeMin
' attribute.
If the value is not set then the default value will be returned.
◆ get_time_zone()
const string& google_calendar_api::EventsResource_InstancesMethod::get_time_zone |
( |
| ) |
const |
|
inline |
Gets the optional 'timeZone
' attribute.
If the value is not set then the default value will be returned.
◆ mutable_originalStart()
string* google_calendar_api::EventsResource_InstancesMethod::mutable_originalStart |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional originalStart
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
◆ mutable_pageToken()
string* google_calendar_api::EventsResource_InstancesMethod::mutable_pageToken |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional pageToken
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
◆ mutable_timeZone()
string* google_calendar_api::EventsResource_InstancesMethod::mutable_timeZone |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional timeZone
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
◆ set_always_include_email()
void google_calendar_api::EventsResource_InstancesMethod::set_always_include_email |
( |
bool |
value | ) |
|
|
inline |
Sets the 'alwaysIncludeEmail
' attribute.
- Deprecated:
- Parameters
-
[in] | value | Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). |
◆ set_max_attendees()
void google_calendar_api::EventsResource_InstancesMethod::set_max_attendees |
( |
int32 |
value | ) |
|
|
inline |
Sets the 'maxAttendees
' attribute.
- Parameters
-
[in] | value | 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. |
◆ set_max_results()
void google_calendar_api::EventsResource_InstancesMethod::set_max_results |
( |
int32 |
value | ) |
|
|
inline |
Sets the 'maxResults
' attribute.
- Parameters
-
[in] | value | Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events. Optional. |
◆ set_original_start()
void google_calendar_api::EventsResource_InstancesMethod::set_original_start |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'originalStart
' attribute.
- Parameters
-
[in] | value | The original start time of the instance in the result. Optional. |
◆ set_page_token()
void google_calendar_api::EventsResource_InstancesMethod::set_page_token |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'pageToken
' attribute.
- Parameters
-
[in] | value | Token specifying which result page to return. Optional. |
◆ set_show_deleted()
void google_calendar_api::EventsResource_InstancesMethod::set_show_deleted |
( |
bool |
value | ) |
|
|
inline |
Sets the 'showDeleted
' attribute.
- Parameters
-
[in] | value | Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events will still be included if singleEvents is False. Optional. The default is False. |
◆ set_time_max()
void google_calendar_api::EventsResource_InstancesMethod::set_time_max |
( |
client::DateTime |
value | ) |
|
|
inline |
Sets the 'timeMax
' attribute.
- Parameters
-
[in] | value | Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset. |
◆ set_time_min()
void google_calendar_api::EventsResource_InstancesMethod::set_time_min |
( |
client::DateTime |
value | ) |
|
|
inline |
Sets the 'timeMin
' attribute.
- Parameters
-
[in] | value | Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset. |
◆ set_time_zone()
void google_calendar_api::EventsResource_InstancesMethod::set_time_zone |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'timeZone
' attribute.
- Parameters
-
[in] | value | Time zone used in the response. Optional. The default is the time zone of the calendar. |
The documentation for this class was generated from the following files: