use crate::{
config::Config, AdminAPIKeys, AuditLogs, Certificates, Client, Groups, Invites,
OrganizationDataRetentions, OrganizationSpendAlerts, OrganizationSpendLimit, Projects, Roles,
Usage, Users,
};
pub struct Admin<'c, C: Config> {
client: &'c Client<C>,
}
impl<'c, C: Config> Admin<'c, C> {
pub(crate) fn new(client: &'c Client<C>) -> Self {
Self { client }
}
pub fn api_keys(&self) -> AdminAPIKeys<'_, C> {
AdminAPIKeys::new(self.client)
}
pub fn invites(&self) -> Invites<'_, C> {
Invites::new(self.client)
}
pub fn users(&self) -> Users<'_, C> {
Users::new(self.client)
}
pub fn projects(&self) -> Projects<'_, C> {
Projects::new(self.client)
}
pub fn audit_logs(&self) -> AuditLogs<'_, C> {
AuditLogs::new(self.client)
}
pub fn certificates(&self) -> Certificates<'_, C> {
Certificates::new(self.client)
}
pub fn roles(&self) -> Roles<'_, C> {
Roles::new(self.client)
}
pub fn groups(&self) -> Groups<'_, C> {
Groups::new(self.client)
}
pub fn usage(&self) -> Usage<'_, C> {
Usage::new(self.client)
}
pub fn data_retention(&self) -> OrganizationDataRetentions<'_, C> {
OrganizationDataRetentions::new(self.client)
}
pub fn spend_alerts(&self) -> OrganizationSpendAlerts<'_, C> {
OrganizationSpendAlerts::new(self.client)
}
pub fn spend_limit(&self) -> OrganizationSpendLimit<'_, C> {
OrganizationSpendLimit::new(self.client)
}
}