update all code after version update

This commit is contained in:
Sebastian Thiel
2020-07-10 09:41:44 +08:00
parent c949124df5
commit d1ffa68287
1798 changed files with 692798 additions and 59942 deletions

View File

@@ -2,7 +2,7 @@
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *drive* crate version *1.0.13+20200326*, where *20200326* is the exact revision of the *drive:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.13*.
//! This documentation was generated from *drive* crate version *1.0.14+20200618*, where *20200618* is the exact revision of the *drive:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.14*.
//!
//! Everything else about the *drive* *v3* API can be found at the
//! [official documentation site](https://developers.google.com/drive/).
@@ -418,7 +418,7 @@ impl<'a, C, A> DriveHub<C, A>
DriveHub {
client: RefCell::new(client),
auth: RefCell::new(authenticator),
_user_agent: "google-api-rust-client/1.0.13".to_string(),
_user_agent: "google-api-rust-client/1.0.14".to_string(),
_base_url: "https://www.googleapis.com/drive/v3/".to_string(),
_root_url: "https://www.googleapis.com/".to_string(),
}
@@ -456,7 +456,7 @@ impl<'a, C, A> DriveHub<C, A>
}
/// Set the user-agent header field to use in all requests to the server.
/// It defaults to `google-api-rust-client/1.0.13`.
/// It defaults to `google-api-rust-client/1.0.14`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {
@@ -1475,6 +1475,9 @@ pub struct FileCapabilities {
/// Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
#[serde(rename="canMoveTeamDriveItem")]
pub can_move_team_drive_item: Option<bool>,
/// Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
#[serde(rename="canAddFolderFromAnotherDrive")]
pub can_add_folder_from_another_drive: Option<bool>,
/// Whether the current user can download this file.
#[serde(rename="canDownload")]
pub can_download: Option<bool>,
@@ -3637,7 +3640,7 @@ impl<'a, C, A> FileWatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileWatchCall<'a, C, A> {
@@ -4153,7 +4156,7 @@ impl<'a, C, A> FileDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileDeleteCall<'a, C, A> {
@@ -4474,7 +4477,7 @@ impl<'a, C, A> FileCopyCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileCopyCall<'a, C, A> {
@@ -4502,7 +4505,7 @@ impl<'a, C, A> FileCopyCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
self._ignore_default_visibility = Some(new_value);
self
}
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. Requests that specify more than one parent will fail.
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.
///
/// Sets the *enforce single parent* query property to the given value.
pub fn enforce_single_parent(mut self, new_value: bool) -> FileCopyCall<'a, C, A> {
@@ -5003,7 +5006,7 @@ impl<'a, C, A> FileListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileListCall<'a, C, A> {
@@ -5052,7 +5055,7 @@ impl<'a, C, A> FileListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
self._include_team_drive_items = Some(new_value);
self
}
/// Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.
/// Whether both My Drive and shared drive items should be included in results.
///
/// Sets the *include items from all drives* query property to the given value.
pub fn include_items_from_all_drives(mut self, new_value: bool) -> FileListCall<'a, C, A> {
@@ -5724,7 +5727,7 @@ impl<'a, C, A> FileCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileCreateCall<'a, C, A> {
@@ -5752,7 +5755,7 @@ impl<'a, C, A> FileCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._ignore_default_visibility = Some(new_value);
self
}
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. Requests that specify more than one parent will fail.
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. Requests that specify more than one parent fail.
///
/// Sets the *enforce single parent* query property to the given value.
pub fn enforce_single_parent(mut self, new_value: bool) -> FileCreateCall<'a, C, A> {
@@ -6374,7 +6377,7 @@ impl<'a, C, A> FileUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileUpdateCall<'a, C, A> {
@@ -6402,7 +6405,7 @@ impl<'a, C, A> FileUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._keep_revision_forever = Some(new_value);
self
}
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item will be removed from all current folders and placed in the requested folder. Other requests that increase the number of parents will fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.
///
/// Sets the *enforce single parent* query property to the given value.
pub fn enforce_single_parent(mut self, new_value: bool) -> FileUpdateCall<'a, C, A> {
@@ -6705,7 +6708,7 @@ impl<'a, C, A> FileGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oauth
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> FileGetCall<'a, C, A> {
@@ -13333,7 +13336,7 @@ impl<'a, C, A> PermissionDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> PermissionDeleteCall<'a, C, A> {
@@ -13675,7 +13678,7 @@ impl<'a, C, A> PermissionUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> PermissionUpdateCall<'a, C, A> {
@@ -13974,7 +13977,7 @@ impl<'a, C, A> PermissionListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> PermissionListCall<'a, C, A> {
@@ -14282,7 +14285,7 @@ impl<'a, C, A> PermissionGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> PermissionGetCall<'a, C, A> {
@@ -14627,7 +14630,7 @@ impl<'a, C, A> PermissionCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> PermissionCreateCall<'a, C, A> {
@@ -14641,14 +14644,14 @@ impl<'a, C, A> PermissionCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
self._send_notification_email = Some(new_value);
self
}
/// This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.
/// This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.
///
/// Sets the *move to new owners root* query property to the given value.
pub fn move_to_new_owners_root(mut self, new_value: bool) -> PermissionCreateCall<'a, C, A> {
self._move_to_new_owners_root = Some(new_value);
self
}
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.
/// Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.
///
/// Sets the *enforce single parent* query property to the given value.
pub fn enforce_single_parent(mut self, new_value: bool) -> PermissionCreateCall<'a, C, A> {
@@ -14956,7 +14959,7 @@ impl<'a, C, A> ChangeListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> ChangeListCall<'a, C, A> {
@@ -14998,7 +15001,7 @@ impl<'a, C, A> ChangeListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._include_removed = Some(new_value);
self
}
/// Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.
/// Whether both My Drive and shared drive items should be included in results.
///
/// Sets the *include items from all drives* query property to the given value.
pub fn include_items_from_all_drives(mut self, new_value: bool) -> ChangeListCall<'a, C, A> {
@@ -15012,7 +15015,7 @@ impl<'a, C, A> ChangeListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
self._include_corpus_removals = Some(new_value);
self
}
/// The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
/// The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
///
/// Sets the *drive id* query property to the given value.
pub fn drive_id(mut self, new_value: &str) -> ChangeListCall<'a, C, A> {
@@ -15266,14 +15269,14 @@ impl<'a, C, A> ChangeGetStartPageTokenCall<'a, C, A> where C: BorrowMut<hyper::C
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> ChangeGetStartPageTokenCall<'a, C, A> {
self._supports_all_drives = Some(new_value);
self
}
/// The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive will be returned.
/// The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned.
///
/// Sets the *drive id* query property to the given value.
pub fn drive_id(mut self, new_value: &str) -> ChangeGetStartPageTokenCall<'a, C, A> {
@@ -15605,7 +15608,7 @@ impl<'a, C, A> ChangeWatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
self._supports_team_drives = Some(new_value);
self
}
/// Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
/// Whether the requesting application supports both My Drives and shared drives.
///
/// Sets the *supports all drives* query property to the given value.
pub fn supports_all_drives(mut self, new_value: bool) -> ChangeWatchCall<'a, C, A> {
@@ -15647,7 +15650,7 @@ impl<'a, C, A> ChangeWatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
self._include_removed = Some(new_value);
self
}
/// Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.
/// Whether both My Drive and shared drive items should be included in results.
///
/// Sets the *include items from all drives* query property to the given value.
pub fn include_items_from_all_drives(mut self, new_value: bool) -> ChangeWatchCall<'a, C, A> {
@@ -15661,7 +15664,7 @@ impl<'a, C, A> ChangeWatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
self._include_corpus_removals = Some(new_value);
self
}
/// The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
/// The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
///
/// Sets the *drive id* query property to the given value.
pub fn drive_id(mut self, new_value: &str) -> ChangeWatchCall<'a, C, A> {