make regen-apis

This commit is contained in:
OMGeeky
2023-10-21 23:50:27 +02:00
parent b09392b768
commit ec6083f22f
1959 changed files with 911619 additions and 913545 deletions

View File

@@ -0,0 +1,28 @@
use super::*;
/// Identifies the an OAuth2 authorization scope.
/// A scope is needed when requesting an
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
#[derive(PartialEq, Eq, Hash, Debug, Clone)]
pub enum Scope {
/// Manage users on your domain
AppOrder,
/// View usage reports for your G Suite domain
AppReportUsageReadonly,
}
impl AsRef<str> for Scope {
fn as_ref(&self) -> &str {
match *self {
Scope::AppOrder => "https://www.googleapis.com/auth/apps.order",
Scope::AppReportUsageReadonly => "https://www.googleapis.com/auth/apps.reports.usage.readonly",
}
}
}
impl Default for Scope {
fn default() -> Scope {
Scope::AppReportUsageReadonly
}
}