Bump version to 1.0.9; update JSON schemas; add new APIs

This commit is contained in:
Sebastian Thiel
2019-07-05 11:32:35 +08:00
parent 99e97ceece
commit e42ebc0c2b
2442 changed files with 190984 additions and 71186 deletions

View File

@@ -4,12 +4,12 @@
[package]
name = "google-vault1"
version = "1.0.8+20190312"
version = "1.0.9+20190614"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Vault (protocol v1)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/vault1"
homepage = "https://developers.google.com/vault"
documentation = "https://docs.rs/google-vault1/1.0.8+20190312"
documentation = "https://docs.rs/google-vault1/1.0.9+20190614"
license = "MIT"
keywords = ["vault", "google", "protocol", "web", "api"]
autobins = false

View File

@@ -6,7 +6,7 @@ DO NOT EDIT !
The MIT License (MIT)
=====================
Copyright © `2015-2016` `Sebastian Thiel`
Copyright © `2015-2019` `Sebastian Thiel`
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

View File

@@ -5,16 +5,16 @@ DO NOT EDIT !
-->
The `google-vault1` library allows access to all features of the *Google Vault* service.
This documentation was generated from *Vault* crate version *1.0.8+20190312*, where *20190312* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
This documentation was generated from *Vault* crate version *1.0.9+20190614*, where *20190614* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.9*.
Everything else about the *Vault* *v1* API can be found at the
[official documentation site](https://developers.google.com/vault).
# Features
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.Vault.html) ...
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.Vault.html) ...
* [matters](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.Matter.html)
* [*add permissions*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterAddPermissionCall.html), [*close*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterCloseCall.html), [*create*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterCreateCall.html), [*delete*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterDeleteCall.html), [*exports create*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterExportCreateCall.html), [*exports delete*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterExportDeleteCall.html), [*exports get*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterExportGetCall.html), [*exports list*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterExportListCall.html), [*get*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterGetCall.html), [*holds accounts create*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldAccountCreateCall.html), [*holds accounts delete*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldAccountDeleteCall.html), [*holds accounts list*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldAccountListCall.html), [*holds add held accounts*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldAddHeldAccountCall.html), [*holds create*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldCreateCall.html), [*holds delete*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldDeleteCall.html), [*holds get*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldGetCall.html), [*holds list*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldListCall.html), [*holds remove held accounts*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldRemoveHeldAccountCall.html), [*holds update*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterHoldUpdateCall.html), [*list*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterListCall.html), [*remove permissions*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterRemovePermissionCall.html), [*reopen*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterReopenCall.html), [*saved queries create*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterSavedQueryCreateCall.html), [*saved queries delete*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterSavedQueryDeleteCall.html), [*saved queries get*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterSavedQueryGetCall.html), [*saved queries list*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterSavedQueryListCall.html), [*undelete*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterUndeleteCall.html) and [*update*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.MatterUpdateCall.html)
* [matters](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.Matter.html)
* [*add permissions*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterAddPermissionCall.html), [*close*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterCloseCall.html), [*create*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterCreateCall.html), [*delete*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterDeleteCall.html), [*exports create*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterExportCreateCall.html), [*exports delete*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterExportDeleteCall.html), [*exports get*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterExportGetCall.html), [*exports list*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterExportListCall.html), [*get*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterGetCall.html), [*holds accounts create*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldAccountCreateCall.html), [*holds accounts delete*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldAccountDeleteCall.html), [*holds accounts list*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldAccountListCall.html), [*holds add held accounts*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldAddHeldAccountCall.html), [*holds create*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldCreateCall.html), [*holds delete*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldDeleteCall.html), [*holds get*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldGetCall.html), [*holds list*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldListCall.html), [*holds remove held accounts*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldRemoveHeldAccountCall.html), [*holds update*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterHoldUpdateCall.html), [*list*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterListCall.html), [*remove permissions*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterRemovePermissionCall.html), [*reopen*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterReopenCall.html), [*saved queries create*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterSavedQueryCreateCall.html), [*saved queries delete*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterSavedQueryDeleteCall.html), [*saved queries get*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterSavedQueryGetCall.html), [*saved queries list*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterSavedQueryListCall.html), [*undelete*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterUndeleteCall.html) and [*update*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.MatterUpdateCall.html)
@@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r
The API is structured into the following primary items:
* **[Hub](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/struct.Vault.html)**
* **[Hub](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/struct.Vault.html)**
* a central object to maintain state and allow accessing all *Activities*
* creates [*Method Builders*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/trait.MethodsBuilder.html) which in turn
allow access to individual [*Call Builders*](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/trait.CallBuilder.html)
* **[Resources](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/trait.Resource.html)**
* creates [*Method Builders*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/trait.MethodsBuilder.html) which in turn
allow access to individual [*Call Builders*](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/trait.CallBuilder.html)
* **[Resources](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/trait.Resource.html)**
* primary types that you can apply *Activities* to
* a collection of properties and *Parts*
* **[Parts](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/trait.Part.html)**
* **[Parts](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/trait.Part.html)**
* a collection of properties
* never directly used in *Activities*
* **[Activities](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/trait.CallBuilder.html)**
* **[Activities](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/trait.CallBuilder.html)**
* operations to apply to *Resources*
All *structures* are marked with applicable traits to further categorize them and ease browsing.
@@ -154,17 +154,17 @@ match result {
```
## Handling Errors
All errors produced by the system are provided either as [Result](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/enum.Result.html) enumeration as return value of
All errors produced by the system are provided either as [Result](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
[Hub Delegate](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/enum.Result.html), should be
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.ResponseResult.html), it will return that by default.
If such a method also supports a [Response Result](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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")`.
@@ -174,29 +174,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-vault1/1.0.8+20190312/google_vault1/trait.Delegate.html) to the
[Method Builder](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/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-vault1/1.0.9+20190614/google_vault1/trait.Delegate.html) to the
[Method Builder](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
The [delegate trait](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.RequestValue.html) and
[decodable](https://docs.rs/google-vault1/1.0.8+20190312/google_vault1/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-vault1/1.0.9+20190614/google_vault1/trait.RequestValue.html) and
[decodable](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.Part.html) which are identifiable by name, which will be sent to
Most optionals are are considered [Parts](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
Using [method builders](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/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-vault1/1.0.8+20190312/google_vault1/trait.RequestValue.html) are moved
* [request values](https://docs.rs/google-vault1/1.0.9+20190614/google_vault1/trait.RequestValue.html) are moved
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.

View File

@@ -748,6 +748,17 @@ pub fn remove_json_null_values(value: &mut json::value::Value) {
map.remove(key);
}
}
json::value::Value::Array(ref mut arr) => {
let mut i = 0;
while i < arr.len() {
if arr[i].is_null() {
arr.remove(i);
} else {
remove_json_null_values(&mut arr[i]);
i += 1;
}
}
}
_ => {}
}
}

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 *Vault* crate version *1.0.8+20190312*, where *20190312* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
//! This documentation was generated from *Vault* crate version *1.0.9+20190614*, where *20190614* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.9*.
//!
//! Everything else about the *Vault* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/vault).
@@ -241,9 +241,7 @@ use std::mem;
use std::thread::sleep;
use std::time::Duration;
pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, Error, CallBuilder, Hub, ReadSeek, Part,
ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate, MethodsBuilder,
Resource, ErrorResponse, remove_json_null_values};
pub use cmn::*;
// ##############
@@ -356,7 +354,7 @@ impl<'a, C, A> Vault<C, A>
Vault {
client: RefCell::new(client),
auth: RefCell::new(authenticator),
_user_agent: "google-api-rust-client/1.0.8".to_string(),
_user_agent: "google-api-rust-client/1.0.9".to_string(),
_base_url: "https://vault.googleapis.com/".to_string(),
_root_url: "https://vault.googleapis.com/".to_string(),
}
@@ -367,7 +365,7 @@ impl<'a, C, A> Vault<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.8`.
/// It defaults to `google-api-rust-client/1.0.9`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {
@@ -554,58 +552,13 @@ pub struct HangoutsChatOptions {
impl Part for HangoutsChatOptions {}
/// The `Status` type defines a logical error model that is suitable for different
/// programming environments, including REST APIs and RPC APIs. It is used by
/// [gRPC](https://github.com/grpc). The error model is designed to be:
/// The `Status` type defines a logical error model that is suitable for
/// different programming environments, including REST APIs and RPC APIs. It is
/// used by [gRPC](https://github.com/grpc). Each `Status` message contains
/// three pieces of data: error code, error message, and error details.
///
/// - Simple to use and understand for most users
/// - Flexible enough to meet unexpected needs
///
/// # Overview
///
/// The `Status` message contains three pieces of data: error code, error message,
/// and error details. The error code should be an enum value of
/// google.rpc.Code, but it may accept additional error codes if needed. The
/// error message should be a developer-facing English message that helps
/// developers *understand* and *resolve* the error. If a localized user-facing
/// error message is needed, put the localized message in the error details or
/// localize it in the client. The optional error details may contain arbitrary
/// information about the error. There is a predefined set of error detail types
/// in the package `google.rpc` that can be used for common error conditions.
///
/// # Language mapping
///
/// The `Status` message is the logical representation of the error model, but it
/// is not necessarily the actual wire format. When the `Status` message is
/// exposed in different client libraries and different wire protocols, it can be
/// mapped differently. For example, it will likely be mapped to some exceptions
/// in Java, but more likely mapped to some error codes in C.
///
/// # Other uses
///
/// The error model and the `Status` message can be used in a variety of
/// environments, either with or without APIs, to provide a
/// consistent developer experience across different environments.
///
/// Example uses of this error model include:
///
/// - Partial errors. If a service needs to return partial errors to the client,
/// it may embed the `Status` in the normal response to indicate the partial
/// errors.
///
/// - Workflow errors. A typical workflow has multiple steps. Each step may
/// have a `Status` message for error reporting.
///
/// - Batch operations. If a client uses batch request and batch response, the
/// `Status` message should be used directly inside batch response, one for
/// each error sub-response.
///
/// - Asynchronous operations. If an API call embeds asynchronous operation
/// results in its response, the status of those operations should be
/// represented directly using the `Status` message.
///
/// - Logging. If some API errors are stored in logs, the message `Status` could
/// be used directly after any stripping needed for security/privacy reasons.
/// You can find out more about this error model and how to work with it in the
/// [API Design Guide](https://cloud.google.com/apis/design/errors).
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
@@ -632,8 +585,9 @@ impl Part for Status {}
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DriveExportOptions {
/// Set to true to include access level information for users
/// with <a href="https://support.google.com/vault/answer/6099459#metadata">indirect access</a>
/// to files.
/// with <a
/// href="https://support.google.com/vault/answer/6099459#metadata">indirect
/// access</a> to files.
#[serde(rename="includeAccessInfo")]
pub include_access_info: Option<bool>,
}
@@ -656,7 +610,8 @@ impl Part for DriveExportOptions {}
pub struct MatterPermission {
/// The user's role in this matter.
pub role: Option<String>,
/// The account id, as provided by <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
/// The account id, as provided by <a
/// href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
#[serde(rename="accountId")]
pub account_id: Option<String>,
}
@@ -830,6 +785,9 @@ impl ResponseResult for Hold {}
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DriveOptions {
/// Set to true to include shared drive.
#[serde(rename="includeSharedDrives")]
pub include_shared_drives: Option<bool>,
/// Search the versions of the Drive file
/// as of the reference date. These timestamps are in GMT and
/// rounded down to the given date.
@@ -861,6 +819,21 @@ pub struct CloseMatterResponse {
impl ResponseResult for CloseMatterResponse {}
/// Shared drives to search
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct SharedDriveInfo {
/// List of Shared drive ids, as provided by <a
/// href="https://developers.google.com/drive">Drive API</a>.
#[serde(rename="sharedDriveIds")]
pub shared_drive_ids: Option<Vec<String>>,
}
impl Part for SharedDriveInfo {}
/// Response to a ReopenMatterRequest.
///
/// # Activities
@@ -1014,7 +987,8 @@ impl ResponseResult for ListHoldsResponse {}
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct OrgUnitInfo {
/// Org unit to search, as provided by the
/// <a href="https://developers.google.com/admin-sdk/directory/">Admin SDK Directory API</a>.
/// <a href="https://developers.google.com/admin-sdk/directory/">Admin SDK
/// Directory API</a>.
#[serde(rename="orgUnitId")]
pub org_unit_id: Option<String>,
}
@@ -1060,9 +1034,23 @@ impl Part for AddHeldAccountResult {}
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Query {
/// The corpus-specific
/// <a href="https://support.google.com/vault/answer/2474474">search operators</a>
/// used to generate search results.
/// <a href="https://support.google.com/vault/answer/2474474">search
/// operators</a> used to generate search results.
pub terms: Option<String>,
/// The search method to use.
#[serde(rename="searchMethod")]
pub search_method: Option<String>,
/// The start time range for the search query. These timestamps are in GMT and
/// rounded down to the start of the given date.
#[serde(rename="startTime")]
pub start_time: Option<String>,
/// For Drive search, specify more options in this field.
#[serde(rename="driveOptions")]
pub drive_options: Option<DriveOptions>,
/// When 'SHARED_DRIVE' is chosen as search method, shared_drive_info needs
/// to be specified.
#[serde(rename="sharedDriveInfo")]
pub shared_drive_info: Option<SharedDriveInfo>,
/// When 'TEAM_DRIVE' is chosen as search method, team_drive_info needs to be
/// specified.
#[serde(rename="teamDriveInfo")]
@@ -1070,24 +1058,17 @@ pub struct Query {
/// For mail search, specify more options in this field.
#[serde(rename="mailOptions")]
pub mail_options: Option<MailOptions>,
/// The search method to use.
#[serde(rename="searchMethod")]
pub search_method: Option<String>,
/// When 'ROOM' is chosen as search method, hangout_chats_info needs to be
/// specified. (read-only)
#[serde(rename="hangoutsChatInfo")]
pub hangouts_chat_info: Option<HangoutsChatInfo>,
/// The data source to search from.
#[serde(rename="dataScope")]
pub data_scope: Option<String>,
/// When 'ACCOUNT' is chosen as search method,
/// account_info needs to be specified.
#[serde(rename="accountInfo")]
pub account_info: Option<AccountInfo>,
/// For Drive search, specify more options in this field.
#[serde(rename="driveOptions")]
pub drive_options: Option<DriveOptions>,
/// The start time range for the search query. These timestamps are in GMT and
/// rounded down to the start of the given date.
#[serde(rename="startTime")]
pub start_time: Option<String>,
/// When 'ORG_UNIT' is chosen as as search method, org_unit_info needs
/// to be specified.
#[serde(rename="orgUnitInfo")]
@@ -1105,9 +1086,11 @@ pub struct Query {
/// rounded down to the start of the given date.
#[serde(rename="endTime")]
pub end_time: Option<String>,
/// The data source to search from.
#[serde(rename="dataScope")]
pub data_scope: Option<String>,
/// The search method to use. This field is similar to the search_method field
/// but is introduced to support shared drives. It supports all
/// search method types. In case the search_method is TEAM_DRIVE the response
/// of this field will be SHARED_DRIVE only.
pub method: Option<String>,
/// For hangouts chat search, specify more options in this field. (read-only)
#[serde(rename="hangoutsChatOptions")]
pub hangouts_chat_options: Option<HangoutsChatOptions>,
@@ -1183,9 +1166,18 @@ impl RequestValue for UndeleteMatterRequest {}
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct HeldAccount {
/// When the account was put on hold.
/// Output only. The last name of the account holder.
#[serde(rename="lastName")]
pub last_name: Option<String>,
/// Output only. When the account was put on hold.
#[serde(rename="holdTime")]
pub hold_time: Option<String>,
/// The primary email address of the account. If used as an input, this takes
/// precedence over account ID.
pub email: Option<String>,
/// Output only. The first name of the account holder.
#[serde(rename="firstName")]
pub first_name: Option<String>,
/// The account's ID as provided by the
/// <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
#[serde(rename="accountId")]
@@ -1481,6 +1473,9 @@ impl ResponseResult for ListMattersResponse {}
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct HeldDriveQuery {
/// If true, include files in shared drives in the hold.
#[serde(rename="includeSharedDriveFiles")]
pub include_shared_drive_files: Option<bool>,
/// If true, include files in Team Drives in the hold.
#[serde(rename="includeTeamDriveFiles")]
pub include_team_drive_files: Option<bool>,