mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Upgrade to latest API versions + code regen
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-calendar3"
|
||||
version = "1.0.6+20170919"
|
||||
version = "1.0.6+20171205"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with calendar (protocol v3)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/calendar3"
|
||||
homepage = "https://developers.google.com/google-apps/calendar/firstapp"
|
||||
documentation = "https://docs.rs/google-calendar3/1.0.6+20170919"
|
||||
documentation = "https://docs.rs/google-calendar3/1.0.6+20171205"
|
||||
license = "MIT"
|
||||
keywords = ["calendar", "google", "protocol", "web", "api"]
|
||||
|
||||
|
||||
@@ -5,43 +5,43 @@ DO NOT EDIT !
|
||||
-->
|
||||
The `google-calendar3` library allows access to all features of the *Google calendar* service.
|
||||
|
||||
This documentation was generated from *calendar* crate version *1.0.6+20170919*, where *20170919* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.6*.
|
||||
This documentation was generated from *calendar* crate version *1.0.6+20171205*, where *20171205* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.6*.
|
||||
|
||||
Everything else about the *calendar* *v3* API can be found at the
|
||||
[official documentation site](https://developers.google.com/google-apps/calendar/firstapp).
|
||||
# Features
|
||||
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarHub.html) ...
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarHub.html) ...
|
||||
|
||||
* [acl](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.Acl.html)
|
||||
* [*delete*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclWatchCall.html)
|
||||
* [calendar list](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarList.html)
|
||||
* [*delete*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListWatchCall.html)
|
||||
* [calendars](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.Calendar.html)
|
||||
* [*clear*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarClearCall.html), [*delete*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarInsertCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarPatchCall.html) and [*update*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarUpdateCall.html)
|
||||
* [channels](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.Channel.html)
|
||||
* [*stop*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.ChannelStopCall.html)
|
||||
* [acl](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.Acl.html)
|
||||
* [*delete*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclWatchCall.html)
|
||||
* [calendar list](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarList.html)
|
||||
* [*delete*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListWatchCall.html)
|
||||
* [calendars](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.Calendar.html)
|
||||
* [*clear*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarClearCall.html), [*delete*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarInsertCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarPatchCall.html) and [*update*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarUpdateCall.html)
|
||||
* [channels](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.Channel.html)
|
||||
* [*stop*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.ChannelStopCall.html)
|
||||
* colors
|
||||
* [*get*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.ColorGetCall.html)
|
||||
* [events](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.Event.html)
|
||||
* [*delete*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventGetCall.html), [*import*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventImportCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventInsertCall.html), [*instances*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventInstanceCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventListCall.html), [*move*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventMoveCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventPatchCall.html), [*quick add*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventQuickAddCall.html), [*update*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventWatchCall.html)
|
||||
* [*get*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.ColorGetCall.html)
|
||||
* [events](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.Event.html)
|
||||
* [*delete*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventGetCall.html), [*import*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventImportCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventInsertCall.html), [*instances*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventInstanceCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventListCall.html), [*move*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventMoveCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventPatchCall.html), [*quick add*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventQuickAddCall.html), [*update*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventWatchCall.html)
|
||||
* freebusy
|
||||
* [*query*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.FreebusyQueryCall.html)
|
||||
* [settings](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.Setting.html)
|
||||
* [*get*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.SettingGetCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.SettingListCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.SettingWatchCall.html)
|
||||
* [*query*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.FreebusyQueryCall.html)
|
||||
* [settings](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.Setting.html)
|
||||
* [*get*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.SettingGetCall.html), [*list*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.SettingListCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.SettingWatchCall.html)
|
||||
|
||||
|
||||
Subscription supported by ...
|
||||
|
||||
* [*list settings*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.SettingListCall.html)
|
||||
* [*list events*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventListCall.html)
|
||||
* [*list calendar list*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListListCall.html)
|
||||
* [*watch events*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventWatchCall.html)
|
||||
* [*instances events*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.EventInstanceCall.html)
|
||||
* [*watch settings*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.SettingWatchCall.html)
|
||||
* [*watch acl*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclWatchCall.html)
|
||||
* [*list acl*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.AclListCall.html)
|
||||
* [*watch calendar list*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarListWatchCall.html)
|
||||
* [*list settings*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.SettingListCall.html)
|
||||
* [*list events*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventListCall.html)
|
||||
* [*list calendar list*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListListCall.html)
|
||||
* [*watch events*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventWatchCall.html)
|
||||
* [*instances events*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.EventInstanceCall.html)
|
||||
* [*watch settings*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.SettingWatchCall.html)
|
||||
* [*watch acl*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclWatchCall.html)
|
||||
* [*list acl*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.AclListCall.html)
|
||||
* [*watch calendar list*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarListWatchCall.html)
|
||||
|
||||
|
||||
|
||||
@@ -49,17 +49,17 @@ Subscription supported by ...
|
||||
|
||||
The API is structured into the following primary items:
|
||||
|
||||
* **[Hub](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/struct.CalendarHub.html)**
|
||||
* **[Hub](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/struct.CalendarHub.html)**
|
||||
* a central object to maintain state and allow accessing all *Activities*
|
||||
* creates [*Method Builders*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.MethodsBuilder.html) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.CallBuilder.html)
|
||||
* **[Resources](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.Resource.html)**
|
||||
* creates [*Method Builders*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.MethodsBuilder.html) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.CallBuilder.html)
|
||||
* **[Resources](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.Resource.html)**
|
||||
* primary types that you can apply *Activities* to
|
||||
* a collection of properties and *Parts*
|
||||
* **[Parts](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.Part.html)**
|
||||
* **[Parts](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.Part.html)**
|
||||
* a collection of properties
|
||||
* never directly used in *Activities*
|
||||
* **[Activities](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.CallBuilder.html)**
|
||||
* **[Activities](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.CallBuilder.html)**
|
||||
* operations to apply to *Resources*
|
||||
|
||||
All *structures* are marked with applicable traits to further categorize them and ease browsing.
|
||||
@@ -175,17 +175,17 @@ match result {
|
||||
```
|
||||
## Handling Errors
|
||||
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/enum.Result.html) enumeration as return value of
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/enum.Result.html) enumeration as return value of
|
||||
the doit() methods, or handed as possibly intermediate results to either the
|
||||
[Hub Delegate](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
[Hub Delegate](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
|
||||
When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
|
||||
makes the system potentially resilient to all kinds of errors.
|
||||
|
||||
## Uploads and Downloads
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/enum.Result.html), should be
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/enum.Result.html), should be
|
||||
read by you to obtain the media.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.ResponseResult.html), it will return that by default.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.ResponseResult.html), it will return that by default.
|
||||
You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
|
||||
this call: `.param("alt", "media")`.
|
||||
|
||||
@@ -195,29 +195,29 @@ Methods supporting uploads can do so using up to 2 different protocols:
|
||||
|
||||
## Customization and Callbacks
|
||||
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.Delegate.html) to the
|
||||
[Method Builder](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.CallBuilder.html) before making the final `doit()` call.
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.Delegate.html) to the
|
||||
[Method Builder](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.CallBuilder.html) before making the final `doit()` call.
|
||||
Respective methods will be called to provide progress information, as well as determine whether the system should
|
||||
retry on failure.
|
||||
|
||||
The [delegate trait](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
|
||||
The [delegate trait](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
|
||||
|
||||
## Optional Parts in Server-Requests
|
||||
|
||||
All structures provided by this library are made to be [enocodable](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.RequestValue.html) and
|
||||
[decodable](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
All structures provided by this library are made to be [enocodable](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.RequestValue.html) and
|
||||
[decodable](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
are valid.
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.Part.html) which are identifiable by name, which will be sent to
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.Part.html) which are identifiable by name, which will be sent to
|
||||
the server to indicate either the set parts of the request or the desired parts in the response.
|
||||
|
||||
## Builder Arguments
|
||||
|
||||
Using [method builders](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
Using [method builders](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
These will always take a single argument, for which the following statements are true.
|
||||
|
||||
* [PODs][wiki-pod] are handed by copy
|
||||
* strings are passed as `&str`
|
||||
* [request values](https://docs.rs/google-calendar3/1.0.6+20170919/google_calendar3/trait.RequestValue.html) are moved
|
||||
* [request values](https://docs.rs/google-calendar3/1.0.6+20171205/google_calendar3/trait.RequestValue.html) are moved
|
||||
|
||||
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *calendar* crate version *1.0.6+20170919*, where *20170919* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.6*.
|
||||
//! This documentation was generated from *calendar* crate version *1.0.6+20171205*, where *20171205* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.6*.
|
||||
//!
|
||||
//! Everything else about the *calendar* *v3* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/google-apps/calendar/firstapp).
|
||||
@@ -1955,6 +1955,7 @@ impl<'a, C, A> AclMethods<'a, C, A> {
|
||||
hub: self.hub,
|
||||
_request: request,
|
||||
_calendar_id: calendar_id.to_string(),
|
||||
_send_notifications: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_scopes: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
@@ -1976,6 +1977,7 @@ impl<'a, C, A> AclMethods<'a, C, A> {
|
||||
_request: request,
|
||||
_calendar_id: calendar_id.to_string(),
|
||||
_rule_id: rule_id.to_string(),
|
||||
_send_notifications: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_scopes: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
@@ -1997,6 +1999,7 @@ impl<'a, C, A> AclMethods<'a, C, A> {
|
||||
_request: request,
|
||||
_calendar_id: calendar_id.to_string(),
|
||||
_rule_id: rule_id.to_string(),
|
||||
_send_notifications: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_scopes: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
@@ -7271,6 +7274,7 @@ impl<'a, C, A> AclWatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.acl().insert(req, "calendarId")
|
||||
/// .send_notifications(true)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -7280,6 +7284,7 @@ pub struct AclInsertCall<'a, C, A>
|
||||
hub: &'a CalendarHub<C, A>,
|
||||
_request: AclRule,
|
||||
_calendar_id: String,
|
||||
_send_notifications: Option<bool>,
|
||||
_delegate: Option<&'a mut Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
_scopes: BTreeMap<String, ()>
|
||||
@@ -7301,9 +7306,12 @@ impl<'a, C, A> AclInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "calendar.acl.insert",
|
||||
http_method: hyper::method::Method::Post });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((4 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((5 + self._additional_params.len()));
|
||||
params.push(("calendarId", self._calendar_id.to_string()));
|
||||
for &field in ["alt", "calendarId"].iter() {
|
||||
if let Some(value) = self._send_notifications {
|
||||
params.push(("sendNotifications", value.to_string()));
|
||||
}
|
||||
for &field in ["alt", "calendarId", "sendNotifications"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(Error::FieldClash(field));
|
||||
@@ -7452,6 +7460,13 @@ impl<'a, C, A> AclInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
self._calendar_id = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// Whether to send notifications about the calendar sharing change. Optional. The default is True.
|
||||
///
|
||||
/// Sets the *send notifications* query property to the given value.
|
||||
pub fn send_notifications(mut self, new_value: bool) -> AclInsertCall<'a, C, A> {
|
||||
self._send_notifications = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
|
||||
/// while executing the actual API request.
|
||||
///
|
||||
@@ -7545,6 +7560,7 @@ impl<'a, C, A> AclInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.acl().update(req, "calendarId", "ruleId")
|
||||
/// .send_notifications(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -7555,6 +7571,7 @@ pub struct AclUpdateCall<'a, C, A>
|
||||
_request: AclRule,
|
||||
_calendar_id: String,
|
||||
_rule_id: String,
|
||||
_send_notifications: Option<bool>,
|
||||
_delegate: Option<&'a mut Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
_scopes: BTreeMap<String, ()>
|
||||
@@ -7576,10 +7593,13 @@ impl<'a, C, A> AclUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "calendar.acl.update",
|
||||
http_method: hyper::method::Method::Put });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((5 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((6 + self._additional_params.len()));
|
||||
params.push(("calendarId", self._calendar_id.to_string()));
|
||||
params.push(("ruleId", self._rule_id.to_string()));
|
||||
for &field in ["alt", "calendarId", "ruleId"].iter() {
|
||||
if let Some(value) = self._send_notifications {
|
||||
params.push(("sendNotifications", value.to_string()));
|
||||
}
|
||||
for &field in ["alt", "calendarId", "ruleId", "sendNotifications"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(Error::FieldClash(field));
|
||||
@@ -7738,6 +7758,13 @@ impl<'a, C, A> AclUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
self._rule_id = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.
|
||||
///
|
||||
/// Sets the *send notifications* query property to the given value.
|
||||
pub fn send_notifications(mut self, new_value: bool) -> AclUpdateCall<'a, C, A> {
|
||||
self._send_notifications = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
|
||||
/// while executing the actual API request.
|
||||
///
|
||||
@@ -7831,6 +7858,7 @@ impl<'a, C, A> AclUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.acl().patch(req, "calendarId", "ruleId")
|
||||
/// .send_notifications(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -7841,6 +7869,7 @@ pub struct AclPatchCall<'a, C, A>
|
||||
_request: AclRule,
|
||||
_calendar_id: String,
|
||||
_rule_id: String,
|
||||
_send_notifications: Option<bool>,
|
||||
_delegate: Option<&'a mut Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
_scopes: BTreeMap<String, ()>
|
||||
@@ -7862,10 +7891,13 @@ impl<'a, C, A> AclPatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "calendar.acl.patch",
|
||||
http_method: hyper::method::Method::Patch });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((5 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((6 + self._additional_params.len()));
|
||||
params.push(("calendarId", self._calendar_id.to_string()));
|
||||
params.push(("ruleId", self._rule_id.to_string()));
|
||||
for &field in ["alt", "calendarId", "ruleId"].iter() {
|
||||
if let Some(value) = self._send_notifications {
|
||||
params.push(("sendNotifications", value.to_string()));
|
||||
}
|
||||
for &field in ["alt", "calendarId", "ruleId", "sendNotifications"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(Error::FieldClash(field));
|
||||
@@ -8024,6 +8056,13 @@ impl<'a, C, A> AclPatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
||||
self._rule_id = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.
|
||||
///
|
||||
/// Sets the *send notifications* query property to the given value.
|
||||
pub fn send_notifications(mut self, new_value: bool) -> AclPatchCall<'a, C, A> {
|
||||
self._send_notifications = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
|
||||
/// while executing the actual API request.
|
||||
///
|
||||
@@ -8111,10 +8150,10 @@ impl<'a, C, A> AclPatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.acl().list("calendarId")
|
||||
/// .sync_token("ea")
|
||||
/// .show_deleted(false)
|
||||
/// .page_token("rebum.")
|
||||
/// .max_results(-33)
|
||||
/// .sync_token("dolore")
|
||||
/// .show_deleted(true)
|
||||
/// .page_token("sed")
|
||||
/// .max_results(-82)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -9607,8 +9646,8 @@ impl<'a, C, A> EventDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().insert(req, "calendarId")
|
||||
/// .supports_attachments(true)
|
||||
/// .send_notifications(false)
|
||||
/// .max_attendees(-82)
|
||||
/// .send_notifications(true)
|
||||
/// .max_attendees(-59)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -9916,7 +9955,7 @@ impl<'a, C, A> EventInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().import(req, "calendarId")
|
||||
/// .supports_attachments(true)
|
||||
/// .supports_attachments(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -10196,15 +10235,15 @@ impl<'a, C, A> EventImportCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().instances("calendarId", "eventId")
|
||||
/// .time_zone("ipsum")
|
||||
/// .time_min("aliquyam")
|
||||
/// .time_max("dolores")
|
||||
/// .time_zone("sit")
|
||||
/// .time_min("diam")
|
||||
/// .time_max("ut")
|
||||
/// .show_deleted(false)
|
||||
/// .page_token("diam")
|
||||
/// .original_start("ut")
|
||||
/// .max_results(-70)
|
||||
/// .max_attendees(-6)
|
||||
/// .always_include_email(true)
|
||||
/// .page_token("est")
|
||||
/// .original_start("amet")
|
||||
/// .max_results(-23)
|
||||
/// .max_attendees(-13)
|
||||
/// .always_include_email(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -10559,8 +10598,8 @@ impl<'a, C, A> EventInstanceCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().get("calendarId", "eventId")
|
||||
/// .time_zone("diam")
|
||||
/// .max_attendees(-71)
|
||||
/// .time_zone("clita")
|
||||
/// .max_attendees(-37)
|
||||
/// .always_include_email(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
@@ -10850,23 +10889,23 @@ impl<'a, C, A> EventGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().list("calendarId")
|
||||
/// .updated_min("invidunt")
|
||||
/// .time_zone("ut")
|
||||
/// .time_min("dolores")
|
||||
/// .time_max("eos")
|
||||
/// .sync_token("voluptua.")
|
||||
/// .single_events(true)
|
||||
/// .show_hidden_invitations(false)
|
||||
/// .show_deleted(true)
|
||||
/// .add_shared_extended_property("ea")
|
||||
/// .q("ea")
|
||||
/// .add_private_extended_property("et")
|
||||
/// .page_token("dolor")
|
||||
/// .order_by("diam")
|
||||
/// .max_results(-62)
|
||||
/// .max_attendees(-87)
|
||||
/// .i_cal_uid("rebum.")
|
||||
/// .always_include_email(true)
|
||||
/// .updated_min("eos")
|
||||
/// .time_zone("voluptua.")
|
||||
/// .time_min("duo")
|
||||
/// .time_max("sed")
|
||||
/// .sync_token("aliquyam")
|
||||
/// .single_events(false)
|
||||
/// .show_hidden_invitations(true)
|
||||
/// .show_deleted(false)
|
||||
/// .add_shared_extended_property("dolor")
|
||||
/// .q("diam")
|
||||
/// .add_private_extended_property("kasd")
|
||||
/// .page_token("invidunt")
|
||||
/// .order_by("rebum.")
|
||||
/// .max_results(-51)
|
||||
/// .max_attendees(-63)
|
||||
/// .i_cal_uid("invidunt")
|
||||
/// .always_include_email(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -11322,9 +11361,9 @@ impl<'a, C, A> EventListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().patch(req, "calendarId", "eventId")
|
||||
/// .supports_attachments(false)
|
||||
/// .supports_attachments(true)
|
||||
/// .send_notifications(false)
|
||||
/// .max_attendees(-96)
|
||||
/// .max_attendees(-47)
|
||||
/// .always_include_email(true)
|
||||
/// .doit();
|
||||
/// # }
|
||||
@@ -11937,8 +11976,8 @@ impl<'a, C, A> EventMoveCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
/// let result = hub.events().update(req, "calendarId", "eventId")
|
||||
/// .supports_attachments(true)
|
||||
/// .send_notifications(true)
|
||||
/// .max_attendees(-42)
|
||||
/// .always_include_email(true)
|
||||
/// .max_attendees(-51)
|
||||
/// .always_include_email(false)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -12269,23 +12308,23 @@ impl<'a, C, A> EventUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.events().watch(req, "calendarId")
|
||||
/// .updated_min("amet.")
|
||||
/// .time_zone("ipsum")
|
||||
/// .updated_min("dolor")
|
||||
/// .time_zone("sea")
|
||||
/// .time_min("ut")
|
||||
/// .time_max("dolor")
|
||||
/// .sync_token("sea")
|
||||
/// .time_max("eirmod")
|
||||
/// .sync_token("sanctus")
|
||||
/// .single_events(true)
|
||||
/// .show_hidden_invitations(true)
|
||||
/// .show_hidden_invitations(false)
|
||||
/// .show_deleted(true)
|
||||
/// .add_shared_extended_property("voluptua.")
|
||||
/// .q("dolor")
|
||||
/// .add_private_extended_property("et")
|
||||
/// .page_token("et")
|
||||
/// .order_by("vero")
|
||||
/// .max_results(-36)
|
||||
/// .max_attendees(-30)
|
||||
/// .i_cal_uid("et")
|
||||
/// .always_include_email(false)
|
||||
/// .add_shared_extended_property("et")
|
||||
/// .q("vero")
|
||||
/// .add_private_extended_property("ut")
|
||||
/// .page_token("sed")
|
||||
/// .order_by("et")
|
||||
/// .max_results(-55)
|
||||
/// .max_attendees(-20)
|
||||
/// .i_cal_uid("dolore")
|
||||
/// .always_include_email(true)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user