mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Update to latest versions of API declarations
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *appsactivity* crate version *1.0.7+20171207*, where *20171207* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.7*.
|
||||
//! This documentation was generated from *appsactivity* crate version *1.0.7+20181011*, where *20181011* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.7*.
|
||||
//!
|
||||
//! Everything else about the *appsactivity* *v1* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/google-apps/activity/).
|
||||
@@ -64,6 +64,14 @@
|
||||
//! ```toml
|
||||
//! [dependencies]
|
||||
//! google-appsactivity1 = "*"
|
||||
//! # This project intentionally uses an old version of Hyper. See
|
||||
//! # https://github.com/Byron/google-apis-rs/issues/173 for more
|
||||
//! # information.
|
||||
//! hyper = "^0.10"
|
||||
//! hyper-rustls = "^0.6"
|
||||
//! serde = "^1.0"
|
||||
//! serde_json = "^1.0"
|
||||
//! yup-oauth2 = "^1.0"
|
||||
//! ```
|
||||
//!
|
||||
//! ## A complete example
|
||||
@@ -224,37 +232,21 @@ pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, Error, CallBuilder,
|
||||
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
|
||||
#[derive(PartialEq, Eq, Hash)]
|
||||
pub enum Scope {
|
||||
/// View and manage the files in your Google Drive
|
||||
Drive,
|
||||
|
||||
/// View the activity history of your Google apps
|
||||
Activity,
|
||||
|
||||
/// View and manage metadata of files in your Google Drive
|
||||
DriveMetadata,
|
||||
|
||||
/// View metadata for files in your Google Drive
|
||||
DriveMetadataReadonly,
|
||||
|
||||
/// View the files in your Google Drive
|
||||
DriveReadonly,
|
||||
}
|
||||
|
||||
impl AsRef<str> for Scope {
|
||||
fn as_ref(&self) -> &str {
|
||||
match *self {
|
||||
Scope::Drive => "https://www.googleapis.com/auth/drive",
|
||||
Scope::Activity => "https://www.googleapis.com/auth/activity",
|
||||
Scope::DriveMetadata => "https://www.googleapis.com/auth/drive.metadata",
|
||||
Scope::DriveMetadataReadonly => "https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
Scope::DriveReadonly => "https://www.googleapis.com/auth/drive.readonly",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Scope {
|
||||
fn default() -> Scope {
|
||||
Scope::DriveMetadataReadonly
|
||||
Scope::Activity
|
||||
}
|
||||
}
|
||||
|
||||
@@ -745,7 +737,7 @@ impl<'a, C, A> ActivityListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "appsactivity.activities.list",
|
||||
http_method: hyper::method::Method::Get });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((9 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity(9 + self._additional_params.len());
|
||||
if let Some(value) = self._user_id {
|
||||
params.push(("userId", value.to_string()));
|
||||
}
|
||||
@@ -781,7 +773,7 @@ impl<'a, C, A> ActivityListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
|
||||
let mut url = self.hub._base_url.clone() + "activities";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::DriveMetadataReadonly.as_ref().to_string(), ());
|
||||
self._scopes.insert(Scope::Activity.as_ref().to_string(), ());
|
||||
}
|
||||
|
||||
|
||||
@@ -931,11 +923,11 @@ impl<'a, C, A> ActivityListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
///
|
||||
/// # Additional Parameters
|
||||
///
|
||||
/// * *quotaUser* (query-string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
|
||||
/// * *quotaUser* (query-string) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
/// * *oauth_token* (query-string) - OAuth 2.0 token for the current user.
|
||||
/// * *key* (query-string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
/// * *prettyPrint* (query-boolean) - Returns response with indentations and line breaks.
|
||||
/// * *userIp* (query-string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.
|
||||
/// * *userIp* (query-string) - Deprecated. Please use quotaUser instead.
|
||||
/// * *fields* (query-string) - Selector specifying which fields to include in a partial response.
|
||||
/// * *alt* (query-string) - Data format for the response.
|
||||
pub fn param<T>(mut self, name: T, value: T) -> ActivityListCall<'a, C, A>
|
||||
@@ -947,7 +939,7 @@ impl<'a, C, A> ActivityListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// Identifies the authorization scope for the method you are building.
|
||||
///
|
||||
/// Use this method to actively specify which scope should be used, instead the default `Scope` variant
|
||||
/// `Scope::DriveMetadataReadonly`.
|
||||
/// `Scope::Activity`.
|
||||
///
|
||||
/// The `scope` will be added to a set of scopes. This is important as one can maintain access
|
||||
/// tokens for more than one scope.
|
||||
|
||||
Reference in New Issue
Block a user