use std::fmt::{Display, Formatter};
pub enum Usage {
Custom(String),
CloudPlatform,
CloudPlatformReadOnly,
AdExchangeBuyer,
AdMobReadOnly,
AdMobReport,
AdSenseHost,
AdminReportsAuditReadOnly,
AdminReportsUsageReadOnly,
AdminDataTransfer,
AdminDataTransferReadOnly,
AdminChromePrinters,
AdminChromePrintersReadOnly,
AdminDirectoryCustomer,
AdminDirectoryCustomerReadOnly,
AdminDirectoryDeviceChromeOS,
AdminDirectoryDeviceChromeOSReadOnly,
AdminDirectoryDeviceMobile,
AdminDirectoryDeviceMobileAction,
AdminDirectoryDeviceMobileReadOnly,
AdminDirectoryDomain,
AdminDirectoryDomainReadOnly,
AdminDirectoryGroup,
AdminDirectoryGroupMember,
AdminDirectoryGroupMemberReadOnly,
AdminDirectoryGroupReadOnly,
AdminDirectoryOrgUnit,
AdminDirectoryOrgUnitReadOnly,
AdminDirectoryResourceCalendar,
AdminDirectoryResourceCalendarReadOnly,
AdminDirectoryRoleManagement,
AdminDirectoryRoleManagementReadOnly,
AdminDirectoryUser,
AdminDirectoryUserAlias,
AdminDirectoryUserAliasReadOnly,
AdminDirectoryUserReadOnly,
AdminDirectoryUserSecurity,
AdminDirectoryUserSchema,
AdminDirectoryUserSchemaReadOnly,
Analytics,
AnalyticsReadOnly,
AndroidManagement,
AppEngineAdmin,
Mail,
CalendarFeeds,
M8Feeds,
Documents,
Drive,
Forms,
FormsCurrentOnly,
Groups,
ScriptDeployments,
ScriptDeploymentsReadOnly,
ScriptMetrics,
ScriptProcesses,
ScriptProjects,
ScriptProjectsReadOnly,
Spreadsheets,
UserInfoEmail,
BigQuery,
BigQueryInsertData,
DevStorageFullControl,
DevStorageReadOnly,
DevStorageReadWrite,
Blogger,
BloggerReadOnly,
Books,
Calendar,
CalendarEvents,
CalendarEventsReadOnly,
CalendarReadOnly,
CalendarSettingsReadOnly,
DdmConversions,
DfaReporting,
DfaTrafficking,
BigTableAdmin,
BigTableAdminCluster,
BigTableAdminInstance,
BigTableAdminTable,
CloudBigTableAdmin,
CloudBigTableAdminCluster,
CloudBigTableAdminTable,
CloudBilling,
CloudBillingReadOnly,
NDevCloudDnsReadOnly,
NDevCloudDnsReadWrite,
CloudDebugger,
NDevCloudMan,
NDevCloudManReadOnly,
DataStore,
CloudIdentityDevicesLookup,
CloudIdentityGroups,
CloudIdentityGroupsReadOnly,
CloudKms,
LoggingWrite,
LoggingRead,
LoggingAdmin,
Monitoring,
MonitoringRead,
MonitoringWrite,
CloudLanguage,
Compute,
ComputeReadOnly,
PubSub,
CloudRuntimeConfig,
SqlServiceAdmin,
CloudSearch,
CloudSearchDebug,
CloudSearchIndexing,
CloudSearchQuery,
CloudSearchSettings,
CloudSearchSettingsIndexing,
CloudSearchSettingsQuery,
CloudSearchStats,
CloudSearchStatsIndexing,
SourceFullControl,
SourceReadOnly,
SourceReadWrite,
SpannerAdmin,
SpannerData,
TraceAppend,
CloudTranslation,
CloudVision,
Content,
DriveActivity,
DriveActivityReadOnly,
AppsLicensing,
FirebaseMessaging,
Firebase,
FirebaseReadOnly,
FitnessActivityRead,
FitnessActivityWrite,
FitnessBloodGlucoseRead,
FitnessBloodGlucoseWrite,
FitnessBloodPressureRead,
FitnessBloodPressureWrite,
FitnessBodyRead,
FitnessBodyWrite,
FitnessBodyTemperatureRead,
FitnessBodyTemperatureWrite,
FitnessHeartRateRead,
FitnessHeartRateWrite,
FitnessLocationWrite,
FitnessLocationRead,
FitnessNutritionRead,
FitnessNutritionWrite,
FitnessOxygenSaturationRead,
FitnessOxygenSaturationWrite,
FitnessReproductiveHealthRead,
FitnessReproductiveHealthWrite,
FitnessSleepRead,
FitnessSleepWrite,
Genomics,
MailAddonsCurrentActionCompose,
MailAddonsCurrentMessageAction,
MailAddonsCurrentMessageMetaData,
MailAddonsCurrentMessageReadOnly,
MailCompose,
MailInsert,
MailLabels,
MailMetaData,
MailModify,
MailReadOnly,
MailSend,
MailSettingsBasic,
MailSettingsSharing,
AnalyticsEdit,
AnalyticsManageUsers,
AnalyticsManageUsersReadOnly,
AnalyticsProVision,
AnalyticsUserDeletion,
ChatDelete,
ChatMembershipsReadOnly,
ChatMemberships,
ChatMembershipsApp,
ChatMessages,
ChatMessagesCreate,
ChatMessagesReactions,
ChatMessagesReactionsCreate,
ChatMessagesReactionsReadOnly,
ChatMessagesReadOnly,
ChatSpaces,
ClassroomAnnouncements,
ChatSpacesReadOnly,
ChatSpacesCreate,
ClassroomAnnouncementsReadOnly,
ClassroomCourses,
ClassroomCoursesReadOnly,
ClassroomCourseworkMe,
ClassroomCourseworkMeReadOnly,
ClassroomCourseworkStudents,
ClassroomCourseworkStudentsReadOnly,
ClassroomCourseworkMaterials,
ClassroomCourseworkMaterialsReadOnly,
ClassroomGuardianLinksMeReadOnly,
ClassroomGuardianLinksStudents,
ClassroomGuardianLinksStudentsReadOnly,
ClassroomProfileEmails,
ClassroomProfilePhotos,
ClassroomPushNotifications,
ClassroomRosters,
ClassroomRostersReadOnly,
ClassroomStudentSubmissionsMeReadOnly,
ClassroomStudentSubmissionsStudentsReadOnly,
ClassroomTopics,
ClassroomTopicsReadOnly,
YoutubeAnalyticsReadOnly,
YoutubeAnalyticsMonetaryReadOnly,
YoutubePartnerChannelAudit,
YouTubeForceSsl,
YoutubeReadOnly,
YoutubeUpload,
YoutubePartner,
YoutubeChannelMembershipsCreator,
Youtube,
TagManagerPublish,
TagManagerReadOnly,
TagManagerManageUsers,
TagManagerManageAccounts,
TagManagerEditContainerVersions,
TagManagerEditContainers,
TagManagerDeleteContainers,
StreetViewPublish,
ServiceManagement,
ServiceManagementReadOnly,
DoubleClickSearch,
SasPortal,
PhotosLibrarySharing,
PhotosLibraryReadOnlyAppCreatedData,
PhotosLibraryReadOnly,
PhotosLibraryEditAppCreatedData,
PhotosLibraryAppendOnly,
PhotosLibrary,
UserInfoProfile,
UserPhoneNumbersRead,
UserOrganizationRead,
ContactsReadOnly,
DirectoryReadOnly,
UserAddressesRead,
UserBirthdayRead,
UserEmailsRead,
UserGenderRead,
ManufacturerCenter,
ContactsOtherReadOnly,
Indexing,
AppsAlerts,
AppsOrder,
AppsOrderReadOnly,
AppsGroupsMigration,
AppsGroupsSettings,
EDiscoveryReadOnly,
EDiscovery,
Tasks,
TasksReadOnly,
SpreadsheetsReadOnly,
Presentations,
PresentationsReadOnly,
DriveReadOnly,
DriveFile,
SiteVerificationVerifyOnly,
SiteVerification,
WebmastersReadOnly,
Webmasters,
AndroidPublisher,
DriveAppData,
Games,
AndroidEnterprise,
DriveScripts,
DrivePhotosReadOnly,
DriveMetaDataReadOnly,
DriveMetaData,
DocumentsReadOnly,
Email,
OpenId,
Profile,
}
impl Display for Usage {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{url}", url = self.as_string())
}
}
impl Usage {
#![allow(clippy::too_many_lines)]
pub(crate) fn as_string(&self) -> String {
match self {
Self::Custom(url) => url.clone(),
Self::CloudPlatform => String::from("https://www.googleapis.com/auth/cloud-platform"),
Self::CloudPlatformReadOnly => {
String::from("https://www.googleapis.com/auth/cloud-platform.read-only")
}
Self::AdExchangeBuyer => {
String::from("https://www.googleapis.com/auth/adexchange.buyer")
}
Self::AdMobReadOnly => String::from("https://www.googleapis.com/auth/admob.readonly"),
Self::AdMobReport => String::from("https://www.googleapis.com/auth/admob.report"),
Self::AdSenseHost => String::from("https://www.googleapis.com/auth/adsensehost"),
Self::AdminReportsAuditReadOnly => {
String::from("https://www.googleapis.com/auth/admin.reports.audit.readonly")
}
Self::AdminReportsUsageReadOnly => {
String::from("https://www.googleapis.com/auth/admin.reports.usage.readonly")
}
Self::AdminDataTransfer => {
String::from("https://www.googleapis.com/auth/admin.datatransfer")
}
Self::AdminDataTransferReadOnly => {
String::from("https://www.googleapis.com/auth/admin.datatransfer.readonly")
}
Self::AdminChromePrinters => {
String::from("https://www.googleapis.com/auth/admin.chrome.printers")
}
Self::AdminChromePrintersReadOnly => {
String::from("https://www.googleapis.com/auth/admin.chrome.printers.readonly")
}
Self::AdminDirectoryCustomer => {
String::from("https://www.googleapis.com/auth/admin.directory.customer")
}
Self::AdminDirectoryCustomerReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.customer.readonly")
}
Self::AdminDirectoryDeviceChromeOS => {
String::from("https://www.googleapis.com/auth/admin.directory.device.chromeos")
}
Self::AdminDirectoryDeviceChromeOSReadOnly => String::from(
"https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly",
),
Self::AdminDirectoryDeviceMobile => {
String::from("https://www.googleapis.com/auth/admin.directory.device.mobile")
}
Self::AdminDirectoryDeviceMobileAction => {
String::from("https://www.googleapis.com/auth/admin.directory.device.mobile.action")
}
Self::AdminDirectoryDeviceMobileReadOnly => String::from(
"https://www.googleapis.com/auth/admin.directory.device.mobile.readonly",
),
Self::AdminDirectoryDomain => {
String::from("https://www.googleapis.com/auth/admin.directory.domain")
}
Self::AdminDirectoryDomainReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.domain.readonly")
}
Self::AdminDirectoryGroup => {
String::from("https://www.googleapis.com/auth/admin.directory.group")
}
Self::AdminDirectoryGroupMember => {
String::from("https://www.googleapis.com/auth/admin.directory.group.member")
}
Self::AdminDirectoryGroupMemberReadOnly => String::from(
"https://www.googleapis.com/auth/admin.directory.group.member.readonly",
),
Self::AdminDirectoryGroupReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.group.readonly")
}
Self::AdminDirectoryOrgUnit => {
String::from("https://www.googleapis.com/auth/admin.directory.orgunit")
}
Self::AdminDirectoryOrgUnitReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.orgunit.readonly")
}
Self::AdminDirectoryResourceCalendar => {
String::from("https://www.googleapis.com/auth/admin.directory.resource.calendar")
}
Self::AdminDirectoryResourceCalendarReadOnly => String::from(
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly",
),
Self::AdminDirectoryRoleManagement => {
String::from("https://www.googleapis.com/auth/admin.directory.rolemanagement")
}
Self::AdminDirectoryRoleManagementReadOnly => String::from(
"https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly",
),
Self::AdminDirectoryUser => {
String::from("https://www.googleapis.com/auth/admin.directory.user")
}
Self::AdminDirectoryUserAlias => {
String::from("https://www.googleapis.com/auth/admin.directory.user.alias")
}
Self::AdminDirectoryUserAliasReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.user.alias.readonly")
}
Self::AdminDirectoryUserReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.user.readonly")
}
Self::AdminDirectoryUserSecurity => {
String::from("https://www.googleapis.com/auth/admin.directory.user.security")
}
Self::AdminDirectoryUserSchema => {
String::from("https://www.googleapis.com/auth/admin.directory.userschema")
}
Self::AdminDirectoryUserSchemaReadOnly => {
String::from("https://www.googleapis.com/auth/admin.directory.userschema.readonly")
}
Self::Analytics => String::from("https://www.googleapis.com/auth/analytics"),
Self::AnalyticsReadOnly => {
String::from("https://www.googleapis.com/auth/analytics.readonly")
}
Self::AndroidManagement => {
String::from("https://www.googleapis.com/auth/androidmanagement")
}
Self::AppEngineAdmin => String::from("https://www.googleapis.com/auth/appengine.admin"),
Self::Mail => String::from("https://mail.google.com/"),
Self::CalendarFeeds => String::from("https://www.google.com/calendar/feeds"),
Self::M8Feeds => String::from("https://www.google.com/m8/feeds"),
Self::Documents => String::from("https://www.googleapis.com/auth/documents"),
Self::Drive => String::from("https://www.googleapis.com/auth/drive"),
Self::Forms => String::from("https://www.googleapis.com/auth/forms"),
Self::FormsCurrentOnly => {
String::from("https://www.googleapis.com/auth/forms.currentonly")
}
Self::Groups => String::from("https://www.googleapis.com/auth/groups"),
Self::ScriptDeployments => {
String::from("https://www.googleapis.com/auth/script.deployments")
}
Self::ScriptDeploymentsReadOnly => {
String::from("https://www.googleapis.com/auth/script.deployments.readonly")
}
Self::ScriptMetrics => String::from("https://www.googleapis.com/auth/script.metrics"),
Self::ScriptProcesses => {
String::from("https://www.googleapis.com/auth/script.processes")
}
Self::ScriptProjects => String::from("https://www.googleapis.com/auth/script.projects"),
Self::ScriptProjectsReadOnly => {
String::from("https://www.googleapis.com/auth/script.projects.readonly")
}
Self::Spreadsheets => String::from("https://www.googleapis.com/auth/spreadsheets"),
Self::UserInfoEmail => String::from("https://www.googleapis.com/auth/userinfo.email"),
Self::BigQuery => String::from("https://www.googleapis.com/auth/bigquery"),
Self::BigQueryInsertData => {
String::from("https://www.googleapis.com/auth/bigquery.insertdata")
}
Self::DevStorageFullControl => {
String::from("https://www.googleapis.com/auth/devstorage.full_control")
}
Self::DevStorageReadOnly => {
String::from("https://www.googleapis.com/auth/devstorage.read_only")
}
Self::DevStorageReadWrite => {
String::from("https://www.googleapis.com/auth/devstorage.read_write")
}
Self::Blogger => String::from("https://www.googleapis.com/auth/blogger"),
Self::BloggerReadOnly => {
String::from("https://www.googleapis.com/auth/blogger.readonly")
}
Self::Books => String::from("https://www.googleapis.com/auth/books"),
Self::Calendar => String::from("https://www.googleapis.com/auth/calendar"),
Self::CalendarEvents => String::from("https://www.googleapis.com/auth/calendar.events"),
Self::CalendarEventsReadOnly => {
String::from("https://www.googleapis.com/auth/calendar.events.readonly")
}
Self::CalendarReadOnly => {
String::from("https://www.googleapis.com/auth/calendar.readonly")
}
Self::CalendarSettingsReadOnly => {
String::from("https://www.googleapis.com/auth/calendar.settings.readonly")
}
Self::DdmConversions => String::from("https://www.googleapis.com/auth/ddmconversions"),
Self::DfaReporting => String::from("https://www.googleapis.com/auth/dfareporting"),
Self::DfaTrafficking => String::from("https://www.googleapis.com/auth/dfatrafficking"),
Self::BigTableAdmin => String::from("https://www.googleapis.com/auth/bigtable.admin"),
Self::BigTableAdminCluster => {
String::from("https://www.googleapis.com/auth/bigtable.admin.cluster")
}
Self::BigTableAdminInstance => {
String::from("https://www.googleapis.com/auth/bigtable.admin.instance")
}
Self::BigTableAdminTable => {
String::from("https://www.googleapis.com/auth/bigtable.admin.table")
}
Self::CloudBigTableAdmin => {
String::from("https://www.googleapis.com/auth/cloud-bigtable.admin")
}
Self::CloudBigTableAdminCluster => {
String::from("https://www.googleapis.com/auth/cloud-bigtable.admin.cluster")
}
Self::CloudBigTableAdminTable => {
String::from("https://www.googleapis.com/auth/cloud-bigtable.admin.table")
}
Self::CloudBilling => String::from("https://www.googleapis.com/auth/cloud-billing"),
Self::CloudBillingReadOnly => {
String::from("https://www.googleapis.com/auth/cloud-billing.readonly")
}
Self::NDevCloudDnsReadOnly => {
String::from("https://www.googleapis.com/auth/ndev.clouddns.readonly")
}
Self::NDevCloudDnsReadWrite => {
String::from("https://www.googleapis.com/auth/ndev.clouddns.readwrite")
}
Self::CloudDebugger => String::from("https://www.googleapis.com/auth/cloud_debugger"),
Self::NDevCloudMan => String::from("https://www.googleapis.com/auth/ndev.cloudman"),
Self::NDevCloudManReadOnly => {
String::from("https://www.googleapis.com/auth/ndev.cloudman.readonly")
}
Self::DataStore => String::from("https://www.googleapis.com/auth/datastore"),
Self::CloudIdentityDevicesLookup => {
String::from("https://www.googleapis.com/auth/cloud-identity.devices.lookup")
}
Self::CloudIdentityGroups => {
String::from("https://www.googleapis.com/auth/cloud-identity.groups")
}
Self::CloudIdentityGroupsReadOnly => {
String::from("https://www.googleapis.com/auth/cloud-identity.groups.readonly")
}
Self::CloudKms => String::from("https://www.googleapis.com/auth/cloudkms"),
Self::LoggingAdmin => String::from("https://www.googleapis.com/auth/logging.admin"),
Self::LoggingRead => String::from("https://www.googleapis.com/auth/logging.read"),
Self::LoggingWrite => String::from("https://www.googleapis.com/auth/logging.write"),
Self::Monitoring => String::from("https://www.googleapis.com/auth/monitoring"),
Self::MonitoringRead => String::from("https://www.googleapis.com/auth/monitoring.read"),
Self::MonitoringWrite => {
String::from("https://www.googleapis.com/auth/monitoring.write")
}
Self::CloudLanguage => String::from("https://www.googleapis.com/auth/cloud-language"),
Self::Compute => String::from("https://www.googleapis.com/auth/compute"),
Self::ComputeReadOnly => {
String::from("https://www.googleapis.com/auth/compute.readonly")
}
Self::PubSub => String::from("https://www.googleapis.com/auth/pubsub"),
Self::CloudRuntimeConfig => {
String::from("https://www.googleapis.com/auth/cloudruntimeconfig")
}
Self::SqlServiceAdmin => {
String::from("https://www.googleapis.com/auth/sqlservice.admin")
}
Self::CloudSearch => String::from("https://www.googleapis.com/auth/cloud_search"),
Self::CloudSearchDebug => {
String::from("https://www.googleapis.com/auth/cloud_search.debug")
}
Self::CloudSearchIndexing => {
String::from("https://www.googleapis.com/auth/cloud_search.indexing")
}
Self::CloudSearchQuery => {
String::from("https://www.googleapis.com/auth/cloud_search.query")
}
Self::CloudSearchSettings => {
String::from("https://www.googleapis.com/auth/cloud_search.settings")
}
Self::CloudSearchSettingsIndexing => {
String::from("https://www.googleapis.com/auth/cloud_search.settings.indexing")
}
Self::CloudSearchSettingsQuery => {
String::from("https://www.googleapis.com/auth/cloud_search.settings.query")
}
Self::CloudSearchStats => {
String::from("https://www.googleapis.com/auth/cloud_search.stats")
}
Self::CloudSearchStatsIndexing => {
String::from("https://www.googleapis.com/auth/cloud_search.stats.indexing")
}
Self::SourceFullControl => {
String::from("https://www.googleapis.com/auth/source.full_control")
}
Self::SourceReadOnly => {
String::from("https://www.googleapis.com/auth/source.read_only")
}
Self::SourceReadWrite => {
String::from("https://www.googleapis.com/auth/source.read_write")
}
Self::SpannerAdmin => String::from("https://www.googleapis.com/auth/spanner.admin"),
Self::SpannerData => String::from("https://www.googleapis.com/auth/spanner.data"),
Self::TraceAppend => String::from("https://www.googleapis.com/auth/trace.append"),
Self::CloudTranslation => {
String::from("https://www.googleapis.com/auth/cloud-translation")
}
Self::CloudVision => String::from("https://www.googleapis.com/auth/cloud-vision"),
Self::Content => String::from("https://www.googleapis.com/auth/content"),
Self::DriveActivity => String::from("https://www.googleapis.com/auth/drive.activity"),
Self::DriveActivityReadOnly => {
String::from("https://www.googleapis.com/auth/drive.activity.readonly")
}
Self::AppsLicensing => String::from("https://www.googleapis.com/auth/apps.licensing"),
Self::FirebaseMessaging => {
String::from("https://www.googleapis.com/auth/firebase.messaging")
}
Self::Firebase => String::from("https://www.googleapis.com/auth/firebase"),
Self::FirebaseReadOnly => {
String::from("https://www.googleapis.com/auth/firebase.readonly")
}
Self::FitnessActivityRead => {
String::from("https://www.googleapis.com/auth/fitness.activity.read")
}
Self::FitnessActivityWrite => {
String::from("https://www.googleapis.com/auth/fitness.activity.write")
}
Self::FitnessBloodGlucoseRead => {
String::from("https://www.googleapis.com/auth/fitness.blood_glucose.read")
}
Self::FitnessBloodGlucoseWrite => {
String::from("https://www.googleapis.com/auth/fitness.blood_glucose.write")
}
Self::FitnessBloodPressureRead => {
String::from("https://www.googleapis.com/auth/fitness.blood_pressure.read")
}
Self::FitnessBloodPressureWrite => {
String::from("https://www.googleapis.com/auth/fitness.blood_pressure.write")
}
Self::FitnessBodyRead => {
String::from("https://www.googleapis.com/auth/fitness.body.read")
}
Self::FitnessBodyWrite => {
String::from("https://www.googleapis.com/auth/fitness.body.write")
}
Self::FitnessBodyTemperatureRead => {
String::from("https://www.googleapis.com/auth/fitness.body_temperature.read")
}
Self::FitnessBodyTemperatureWrite => {
String::from("https://www.googleapis.com/auth/fitness.body_temperature.write")
}
Self::FitnessHeartRateRead => {
String::from("https://www.googleapis.com/auth/fitness.heart_rate.read")
}
Self::FitnessHeartRateWrite => {
String::from("https://www.googleapis.com/auth/fitness.heart_rate.write")
}
Self::FitnessLocationRead => {
String::from("https://www.googleapis.com/auth/fitness.location.read")
}
Self::FitnessLocationWrite => {
String::from("https://www.googleapis.com/auth/fitness.location.write")
}
Self::FitnessNutritionRead => {
String::from("https://www.googleapis.com/auth/fitness.nutrition.read")
}
Self::FitnessNutritionWrite => {
String::from("https://www.googleapis.com/auth/fitness.nutrition.write")
}
Self::FitnessOxygenSaturationRead => {
String::from("https://www.googleapis.com/auth/fitness.oxygen_saturation.read")
}
Self::FitnessOxygenSaturationWrite => {
String::from("https://www.googleapis.com/auth/fitness.oxygen_saturation.write")
}
Self::FitnessReproductiveHealthRead => {
String::from("https://www.googleapis.com/auth/fitness.reproductive_health.read")
}
Self::FitnessReproductiveHealthWrite => {
String::from("https://www.googleapis.com/auth/fitness.reproductive_health.write")
}
Self::FitnessSleepRead => {
String::from("https://www.googleapis.com/auth/fitness.sleep.read")
}
Self::FitnessSleepWrite => {
String::from("https://www.googleapis.com/auth/fitness.sleep.write")
}
Self::Genomics => String::from("https://www.googleapis.com/auth/genomics"),
Self::MailAddonsCurrentActionCompose => {
String::from("https://www.googleapis.com/auth/gmail.addons.current.action.compose")
}
Self::MailAddonsCurrentMessageAction => {
String::from("https://www.googleapis.com/auth/gmail.addons.current.message.action")
}
Self::MailAddonsCurrentMessageMetaData => String::from(
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata",
),
Self::MailAddonsCurrentMessageReadOnly => String::from(
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly",
),
Self::MailCompose => String::from("https://www.googleapis.com/auth/gmail.compose"),
Self::MailInsert => String::from("https://www.googleapis.com/auth/gmail.insert"),
Self::MailLabels => String::from("https://www.googleapis.com/auth/gmail.labels"),
Self::MailMetaData => String::from("https://www.googleapis.com/auth/gmail.metadata"),
Self::MailModify => String::from("https://www.googleapis.com/auth/gmail.modify"),
Self::MailReadOnly => String::from("https://www.googleapis.com/auth/gmail.readonly"),
Self::MailSend => String::from("https://www.googleapis.com/auth/gmail.send"),
Self::MailSettingsBasic => {
String::from("https://www.googleapis.com/auth/gmail.settings.basic")
}
Self::MailSettingsSharing => {
String::from("https://www.googleapis.com/auth/gmail.settings.sharing")
}
Self::AnalyticsEdit => String::from("https://www.googleapis.com/auth/analytics.edit"),
Self::AnalyticsManageUsers => {
String::from("https://www.googleapis.com/auth/analytics.manage.users")
}
Self::AnalyticsManageUsersReadOnly => {
String::from("https://www.googleapis.com/auth/analytics.manage.users.readonly")
}
Self::AnalyticsProVision => {
String::from("https://www.googleapis.com/auth/analytics.provision")
}
Self::AnalyticsUserDeletion => {
String::from("https://www.googleapis.com/auth/analytics.user.deletion")
}
Self::ChatDelete => String::from("https://www.googleapis.com/auth/chat.delete"),
Self::ChatMemberships => {
String::from("https://www.googleapis.com/auth/chat.memberships")
}
Self::ChatMembershipsApp => {
String::from("https://www.googleapis.com/auth/chat.memberships.app")
}
Self::ChatMembershipsReadOnly => {
String::from("https://www.googleapis.com/auth/chat.memberships.readonly")
}
Self::ChatMessages => String::from("https://www.googleapis.com/auth/chat.messages"),
Self::ChatMessagesCreate => {
String::from("https://www.googleapis.com/auth/chat.messages.create")
}
Self::ChatMessagesReactions => {
String::from("https://www.googleapis.com/auth/chat.messages.reactions")
}
Self::ChatMessagesReactionsCreate => {
String::from("https://www.googleapis.com/auth/chat.messages.reactions.create")
}
Self::ChatMessagesReactionsReadOnly => {
String::from("https://www.googleapis.com/auth/chat.messages.reactions.readonly")
}
Self::ChatMessagesReadOnly => {
String::from("https://www.googleapis.com/auth/chat.messages.readonly")
}
Self::ChatSpaces => String::from("https://www.googleapis.com/auth/chat.spaces"),
Self::ChatSpacesCreate => {
String::from("https://www.googleapis.com/auth/chat.spaces.create")
}
Self::ChatSpacesReadOnly => {
String::from("https://www.googleapis.com/auth/chat.spaces.readonly")
}
Self::ClassroomAnnouncements => {
String::from("https://www.googleapis.com/auth/classroom.announcements")
}
Self::ClassroomAnnouncementsReadOnly => {
String::from("https://www.googleapis.com/auth/classroom.announcements.readonly")
}
Self::ClassroomCourses => {
String::from("https://www.googleapis.com/auth/classroom.courses")
}
Self::ClassroomCoursesReadOnly => {
String::from("https://www.googleapis.com/auth/classroom.courses.readonly")
}
Self::ClassroomCourseworkMe => {
String::from("https://www.googleapis.com/auth/classroom.coursework.me")
}
Self::ClassroomCourseworkMeReadOnly => {
String::from("https://www.googleapis.com/auth/classroom.coursework.me.readonly")
}
Self::ClassroomCourseworkStudents => {
String::from("https://www.googleapis.com/auth/classroom.coursework.students")
}
Self::ClassroomCourseworkStudentsReadOnly => String::from(
"https://www.googleapis.com/auth/classroom.coursework.students.readonly",
),
Self::ClassroomCourseworkMaterials => {
String::from("https://www.googleapis.com/auth/classroom.courseworkmaterials")
}
Self::ClassroomCourseworkMaterialsReadOnly => String::from(
"https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly",
),
Self::ClassroomGuardianLinksMeReadOnly => {
String::from("https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly")
}
Self::ClassroomGuardianLinksStudents => {
String::from("https://www.googleapis.com/auth/classroom.guardianlinks.students")
}
Self::ClassroomGuardianLinksStudentsReadOnly => String::from(
"https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly",
),
Self::ClassroomProfileEmails => {
String::from("https://www.googleapis.com/auth/classroom.profile.emails")
}
Self::ClassroomProfilePhotos => {
String::from("https://www.googleapis.com/auth/classroom.profile.photos")
}
Self::ClassroomPushNotifications => {
String::from("https://www.googleapis.com/auth/classroom.push-notifications")
}
Self::ClassroomRosters => {
String::from("https://www.googleapis.com/auth/classroom.rosters")
}
Self::ClassroomRostersReadOnly => {
String::from("https://www.googleapis.com/auth/classroom.rosters.readonly")
}
Self::ClassroomStudentSubmissionsMeReadOnly => String::from(
"https://www.googleapis.com/auth/classroom.student-submissions.me.readonly",
),
Self::ClassroomStudentSubmissionsStudentsReadOnly => String::from(
"https://www.googleapis.com/auth/classroom.student-submissions.students.readonly",
),
Self::ClassroomTopics => {
String::from("https://www.googleapis.com/auth/classroom.topics")
}
Self::ClassroomTopicsReadOnly => {
String::from("https://www.googleapis.com/auth/classroom.topics.readonly")
}
Self::DocumentsReadOnly => {
String::from("https://www.googleapis.com/auth/documents.readonly")
}
Self::DriveMetaData => String::from("https://www.googleapis.com/auth/drive.metadata"),
Self::DriveMetaDataReadOnly => {
String::from("https://www.googleapis.com/auth/drive.metadata.readonly")
}
Self::DrivePhotosReadOnly => {
String::from("https://www.googleapis.com/auth/drive.photos.readonly")
}
Self::DriveScripts => String::from("https://www.googleapis.com/auth/drive.scripts"),
Self::AndroidEnterprise => {
String::from("https://www.googleapis.com/auth/androidenterprise")
}
Self::DriveAppData => String::from("https://www.googleapis.com/auth/drive.appdata"),
Self::Games => String::from("https://www.googleapis.com/auth/games"),
Self::AndroidPublisher => {
String::from("https://www.googleapis.com/auth/androidpublisher")
}
Self::Webmasters => String::from("https://www.googleapis.com/auth/webmasters"),
Self::WebmastersReadOnly => {
String::from("https://www.googleapis.com/auth/webmasters.readonly")
}
Self::SiteVerification => {
String::from("https://www.googleapis.com/auth/siteverification")
}
Self::SiteVerificationVerifyOnly => {
String::from("https://www.googleapis.com/auth/siteverification.verify_only")
}
Self::DriveFile => String::from("https://www.googleapis.com/auth/drive.file"),
Self::DriveReadOnly => String::from("https://www.googleapis.com/auth/drive.readonly"),
Self::Presentations => String::from("https://www.googleapis.com/auth/presentations"),
Self::PresentationsReadOnly => {
String::from("https://www.googleapis.com/auth/presentations.readonly")
}
Self::SpreadsheetsReadOnly => {
String::from("https://www.googleapis.com/auth/spreadsheets.readonly")
}
Self::Tasks => String::from("https://www.googleapis.com/auth/tasks"),
Self::TasksReadOnly => String::from("https://www.googleapis.com/auth/tasks.readonly"),
Self::EDiscovery => String::from("https://www.googleapis.com/auth/ediscovery"),
Self::EDiscoveryReadOnly => {
String::from("https://www.googleapis.com/auth/ediscovery.readonly")
}
Self::AppsAlerts => String::from("https://www.googleapis.com/auth/apps.alerts"),
Self::AppsOrder => String::from("https://www.googleapis.com/auth/apps.order"),
Self::AppsOrderReadOnly => {
String::from("https://www.googleapis.com/auth/apps.order.readonly")
}
Self::AppsGroupsMigration => {
String::from("https://www.googleapis.com/auth/apps.groups.migration")
}
Self::AppsGroupsSettings => {
String::from("https://www.googleapis.com/auth/apps.groups.settings")
}
Self::Indexing => String::from("https://www.googleapis.com/auth/indexing"),
Self::ManufacturerCenter => {
String::from("https://www.googleapis.com/auth/manufacturercenter")
}
Self::ContactsOtherReadOnly => {
String::from("https://www.googleapis.com/auth/contacts.other.readonly")
}
Self::ContactsReadOnly => {
String::from("https://www.googleapis.com/auth/contacts.readonly")
}
Self::DirectoryReadOnly => {
String::from("https://www.googleapis.com/auth/directory.readonly")
}
Self::UserAddressesRead => {
String::from("https://www.googleapis.com/auth/user.addresses.read")
}
Self::UserBirthdayRead => {
String::from("https://www.googleapis.com/auth/user.birthday.read")
}
Self::UserEmailsRead => {
String::from("https://www.googleapis.com/auth/user.emails.read")
}
Self::UserGenderRead => {
String::from("https://www.googleapis.com/auth/user.gender.read")
}
Self::UserOrganizationRead => {
String::from("https://www.googleapis.com/auth/user.organization.read")
}
Self::UserPhoneNumbersRead => {
String::from("https://www.googleapis.com/auth/user.phonenumbers.read")
}
Self::UserInfoProfile => {
String::from("https://www.googleapis.com/auth/userinfo.profile")
}
Self::PhotosLibrary => String::from("https://www.googleapis.com/auth/photoslibrary"),
Self::PhotosLibraryAppendOnly => {
String::from("https://www.googleapis.com/auth/photoslibrary.appendonly")
}
Self::PhotosLibraryEditAppCreatedData => {
String::from("https://www.googleapis.com/auth/photoslibrary.edit.appcreateddata")
}
Self::PhotosLibraryReadOnly => {
String::from("https://www.googleapis.com/auth/photoslibrary.readonly")
}
Self::PhotosLibraryReadOnlyAppCreatedData => String::from(
"https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata",
),
Self::PhotosLibrarySharing => {
String::from("https://www.googleapis.com/auth/photoslibrary.sharing")
}
Self::SasPortal => String::from("https://www.googleapis.com/auth/sasportal"),
Self::DoubleClickSearch => {
String::from("https://www.googleapis.com/auth/doubleclicksearch")
}
Self::ServiceManagementReadOnly => {
String::from("https://www.googleapis.com/auth/service.management.readonly")
}
Self::ServiceManagement => {
String::from("https://www.googleapis.com/auth/service.management")
}
Self::StreetViewPublish => {
String::from("https://www.googleapis.com/auth/streetviewpublish")
}
Self::TagManagerDeleteContainers => {
String::from("https://www.googleapis.com/auth/tagmanager.delete.containers")
}
Self::TagManagerEditContainers => {
String::from("https://www.googleapis.com/auth/tagmanager.edit.containers")
}
Self::TagManagerEditContainerVersions => {
String::from("https://www.googleapis.com/auth/tagmanager.edit.containerversions")
}
Self::TagManagerManageAccounts => {
String::from("https://www.googleapis.com/auth/tagmanager.manage.accounts")
}
Self::TagManagerManageUsers => {
String::from("https://www.googleapis.com/auth/tagmanager.manage.users")
}
Self::TagManagerPublish => {
String::from("https://www.googleapis.com/auth/tagmanager.publish")
}
Self::TagManagerReadOnly => {
String::from("https://www.googleapis.com/auth/tagmanager.readonly")
}
Self::Youtube => String::from("https://www.googleapis.com/auth/youtube"),
Self::YoutubeChannelMembershipsCreator => {
String::from("https://www.googleapis.com/auth/youtube.channel-memberships.creator")
}
Self::YouTubeForceSsl => {
String::from("https://www.googleapis.com/auth/youtube.force-ssl")
}
Self::YoutubeReadOnly => {
String::from("https://www.googleapis.com/auth/youtube.readonly")
}
Self::YoutubeUpload => String::from("https://www.googleapis.com/auth/youtube.upload"),
Self::YoutubePartner => String::from("https://www.googleapis.com/auth/youtubepartner"),
Self::YoutubePartnerChannelAudit => {
String::from("https://www.googleapis.com/auth/youtubepartner-channel-audit")
}
Self::YoutubeAnalyticsMonetaryReadOnly => {
String::from("https://www.googleapis.com/auth/yt-analytics-monetary.readonly")
}
Self::YoutubeAnalyticsReadOnly => {
String::from("https://www.googleapis.com/auth/yt-analytics.readonly")
}
Self::Email => String::from("email"),
Self::OpenId => String::from("openid"),
Self::Profile => String::from("profile"),
}
}
}