google_admin_api

Struct GoogleWorkspaceAPI

Source
pub struct GoogleWorkspaceAPI<T: GoogleWorkspaceCredentials> {
    pub credentials: T,
}

Fields§

§credentials: T

Implementations§

Source§

impl<T: GoogleWorkspaceCredentials> GoogleWorkspaceAPI<T>

Source

pub fn new(credentials: T) -> Self

Source

pub fn base_url(&self) -> &'static str

Source

pub async fn client(&self) -> Result<Client>

Source

pub async fn asps_delete(&self, codeId: i32, userKey: String) -> Result<Value>

Source

pub async fn asps_get( &self, codeId: i32, userKey: String, ) -> Result<DirectoryAsp>

Source

pub async fn asps_list(&self, userKey: String) -> Result<DirectoryAsps>

Source

pub async fn channels_stop(&self, req: DirectoryChannel) -> Result<Value>

Source

pub async fn chromeosdevices_action( &self, customerId: String, resourceId: String, req: DirectoryChromeOsDeviceAction, ) -> Result<Value>

Source

pub async fn chromeosdevices_get( &self, customerId: String, deviceId: String, query_params: DirectoryChromeosdevicesGetQueryParams, ) -> Result<DirectoryChromeOsDevice>

Source

pub async fn chromeosdevices_list( &self, customerId: String, query_params: DirectoryChromeosdevicesListQueryParams, ) -> Result<DirectoryChromeOsDevices>

Source

pub async fn chromeosdevices_moveDevicesToOu( &self, customerId: String, req: DirectoryChromeOsMoveDevicesToOu, query_params: DirectoryChromeosdevicesMoveDevicesToOuQueryParams, ) -> Result<Value>

Source

pub async fn chromeosdevices_patch( &self, customerId: String, deviceId: String, req: DirectoryChromeOsDevice, query_params: DirectoryChromeosdevicesPatchQueryParams, ) -> Result<DirectoryChromeOsDevice>

Source

pub async fn chromeosdevices_update( &self, customerId: String, deviceId: String, req: DirectoryChromeOsDevice, query_params: DirectoryChromeosdevicesUpdateQueryParams, ) -> Result<DirectoryChromeOsDevice>

Source

pub async fn customers_get( &self, customerKey: String, ) -> Result<DirectoryCustomer>

Source

pub async fn customers_patch( &self, customerKey: String, req: DirectoryCustomer, ) -> Result<DirectoryCustomer>

Source

pub async fn customers_update( &self, customerKey: String, req: DirectoryCustomer, ) -> Result<DirectoryCustomer>

Source

pub async fn domainAliases_delete( &self, customer: String, domainAliasName: String, ) -> Result<Value>

Source

pub async fn domainAliases_get( &self, customer: String, domainAliasName: String, ) -> Result<DirectoryDomainAlias>

Source

pub async fn domainAliases_insert( &self, customer: String, req: DirectoryDomainAlias, ) -> Result<DirectoryDomainAlias>

Source

pub async fn domainAliases_list( &self, customer: String, query_params: DirectoryDomainAliasesListQueryParams, ) -> Result<DirectoryDomainAliases>

Source

pub async fn domains_delete( &self, customer: String, domainName: String, ) -> Result<Value>

Source

pub async fn domains_get( &self, customer: String, domainName: String, ) -> Result<DirectoryDomains>

Source

pub async fn domains_insert( &self, customer: String, req: DirectoryDomains, ) -> Result<DirectoryDomains>

Source

pub async fn domains_list(&self, customer: String) -> Result<DirectoryDomains2>

Source

pub async fn groups_delete(&self, groupKey: String) -> Result<Value>

Source

pub async fn groups_get(&self, groupKey: String) -> Result<DirectoryGroup>

Source

pub async fn groups_insert(&self, req: DirectoryGroup) -> Result<DirectoryGroup>

Source

pub async fn groups_list( &self, query_params: DirectoryGroupsListQueryParams, ) -> Result<DirectoryGroups>

Source

pub async fn groups_patch( &self, groupKey: String, req: DirectoryGroup, ) -> Result<DirectoryGroup>

Source

pub async fn groups_update( &self, groupKey: String, req: DirectoryGroup, ) -> Result<DirectoryGroup>

Source

pub async fn members_delete( &self, groupKey: String, memberKey: String, ) -> Result<Value>

Source

pub async fn members_get( &self, groupKey: String, memberKey: String, ) -> Result<DirectoryMember>

Source

pub async fn members_hasMember( &self, groupKey: String, memberKey: String, ) -> Result<DirectoryMembersHasMember>

Source

pub async fn members_insert( &self, groupKey: String, req: DirectoryMember, ) -> Result<DirectoryMember>

Source

pub async fn members_list( &self, groupKey: String, query_params: DirectoryMembersListQueryParams, ) -> Result<DirectoryMembers>

Source

pub async fn members_patch( &self, groupKey: String, memberKey: String, req: DirectoryMember, ) -> Result<DirectoryMember>

Source

pub async fn members_update( &self, groupKey: String, memberKey: String, req: DirectoryMember, ) -> Result<DirectoryMember>

Source

pub async fn mobiledevices_action( &self, customerId: String, resourceId: String, req: DirectoryMobileDeviceAction, ) -> Result<Value>

Source

pub async fn mobiledevices_delete( &self, customerId: String, resourceId: String, ) -> Result<Value>

Source

pub async fn mobiledevices_get( &self, customerId: String, resourceId: String, query_params: DirectoryMobiledevicesGetQueryParams, ) -> Result<DirectoryMobileDevice>

Source

pub async fn mobiledevices_list( &self, customerId: String, query_params: DirectoryMobiledevicesListQueryParams, ) -> Result<DirectoryMobileDevices>

Source

pub async fn orgunits_delete( &self, customerId: String, orgUnitPath: String, ) -> Result<Value>

Source

pub async fn orgunits_get( &self, customerId: String, orgUnitPath: String, ) -> Result<DirectoryOrgUnit>

Source

pub async fn orgunits_insert( &self, customerId: String, req: DirectoryOrgUnit, ) -> Result<DirectoryOrgUnit>

Source

pub async fn orgunits_list( &self, customerId: String, query_params: DirectoryOrgunitsListQueryParams, ) -> Result<DirectoryOrgUnits>

Source

pub async fn orgunits_patch( &self, customerId: String, orgUnitPath: String, req: DirectoryOrgUnit, ) -> Result<DirectoryOrgUnit>

Source

pub async fn orgunits_update( &self, customerId: String, orgUnitPath: String, req: DirectoryOrgUnit, ) -> Result<DirectoryOrgUnit>

Source

pub async fn privileges_list( &self, customer: String, ) -> Result<DirectoryPrivileges>

Source

pub async fn roleAssignments_delete( &self, customer: String, roleAssignmentId: String, ) -> Result<Value>

Source

pub async fn roleAssignments_get( &self, customer: String, roleAssignmentId: String, ) -> Result<DirectoryRoleAssignment>

Source

pub async fn roleAssignments_insert( &self, customer: String, req: DirectoryRoleAssignment, ) -> Result<DirectoryRoleAssignment>

Source

pub async fn roleAssignments_list( &self, customer: String, query_params: DirectoryRoleAssignmentsListQueryParams, ) -> Result<DirectoryRoleAssignments>

Source

pub async fn roles_delete( &self, customer: String, roleId: String, ) -> Result<Value>

Source

pub async fn roles_get( &self, customer: String, roleId: String, ) -> Result<DirectoryRole>

Source

pub async fn roles_insert( &self, customer: String, req: DirectoryRole, ) -> Result<DirectoryRole>

Source

pub async fn roles_list( &self, customer: String, query_params: DirectoryRolesListQueryParams, ) -> Result<DirectoryRoles>

Source

pub async fn roles_patch( &self, customer: String, roleId: String, req: DirectoryRole, ) -> Result<DirectoryRole>

Source

pub async fn roles_update( &self, customer: String, roleId: String, req: DirectoryRole, ) -> Result<DirectoryRole>

Source

pub async fn schemas_delete( &self, customerId: String, schemaKey: String, ) -> Result<Value>

Source

pub async fn schemas_get( &self, customerId: String, schemaKey: String, ) -> Result<DirectorySchema>

Source

pub async fn schemas_insert( &self, customerId: String, req: DirectorySchema, ) -> Result<DirectorySchema>

Source

pub async fn schemas_list(&self, customerId: String) -> Result<DirectorySchemas>

Source

pub async fn schemas_patch( &self, customerId: String, schemaKey: String, req: DirectorySchema, ) -> Result<DirectorySchema>

Source

pub async fn schemas_update( &self, customerId: String, schemaKey: String, req: DirectorySchema, ) -> Result<DirectorySchema>

Source

pub async fn tokens_delete( &self, clientId: String, userKey: String, ) -> Result<Value>

Source

pub async fn tokens_get( &self, clientId: String, userKey: String, ) -> Result<DirectoryToken>

Source

pub async fn tokens_list(&self, userKey: String) -> Result<DirectoryTokens>

Source

pub async fn twoStepVerification_turnOff( &self, userKey: String, ) -> Result<Value>

Source

pub async fn users_delete(&self, userKey: String) -> Result<Value>

Source

pub async fn users_get( &self, userKey: String, query_params: DirectoryUsersGetQueryParams, ) -> Result<DirectoryUser>

Source

pub async fn users_insert( &self, req: DirectoryUser, query_params: DirectoryUsersInsertQueryParams, ) -> Result<DirectoryUser>

Source

pub async fn users_list( &self, query_params: DirectoryUsersListQueryParams, ) -> Result<DirectoryUsers>

Source

pub async fn users_makeAdmin( &self, userKey: String, req: DirectoryUserMakeAdmin, ) -> Result<Value>

Source

pub async fn users_patch( &self, userKey: String, req: DirectoryUser, ) -> Result<DirectoryUser>

Source

pub async fn users_signOut(&self, userKey: String) -> Result<Value>

Source

pub async fn users_undelete( &self, userKey: String, req: DirectoryUserUndelete, ) -> Result<Value>

Source

pub async fn users_update( &self, userKey: String, req: DirectoryUser, ) -> Result<DirectoryUser>

Source

pub async fn users_watch( &self, req: DirectoryChannel, query_params: DirectoryUsersWatchQueryParams, ) -> Result<DirectoryChannel>

Source

pub async fn verificationCodes_generate(&self, userKey: String) -> Result<Value>

Source

pub async fn verificationCodes_invalidate( &self, userKey: String, ) -> Result<Value>

Source

pub async fn verificationCodes_list( &self, userKey: String, ) -> Result<DirectoryVerificationCodes>

Auto Trait Implementations§

§

impl<T> Freeze for GoogleWorkspaceAPI<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for GoogleWorkspaceAPI<T>
where T: RefUnwindSafe,

§

impl<T> Send for GoogleWorkspaceAPI<T>
where T: Send,

§

impl<T> Sync for GoogleWorkspaceAPI<T>
where T: Sync,

§

impl<T> Unpin for GoogleWorkspaceAPI<T>
where T: Unpin,

§

impl<T> UnwindSafe for GoogleWorkspaceAPI<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T