pub struct GoogleWorkspaceAPI<T: GoogleWorkspaceCredentials> {
pub credentials: T,
}Fields§
§credentials: TImplementations§
Source§impl<T: GoogleWorkspaceCredentials> GoogleWorkspaceAPI<T>
impl<T: GoogleWorkspaceCredentials> GoogleWorkspaceAPI<T>
pub fn new(credentials: T) -> Self
pub fn base_url(&self) -> &'static str
pub async fn client(&self) -> Result<Client>
pub async fn asps_delete(&self, codeId: i32, userKey: String) -> Result<Value>
pub async fn asps_get( &self, codeId: i32, userKey: String, ) -> Result<DirectoryAsp>
pub async fn asps_list(&self, userKey: String) -> Result<DirectoryAsps>
pub async fn channels_stop(&self, req: DirectoryChannel) -> Result<Value>
pub async fn chromeosdevices_action( &self, customerId: String, resourceId: String, req: DirectoryChromeOsDeviceAction, ) -> Result<Value>
pub async fn chromeosdevices_get( &self, customerId: String, deviceId: String, query_params: DirectoryChromeosdevicesGetQueryParams, ) -> Result<DirectoryChromeOsDevice>
pub async fn chromeosdevices_list( &self, customerId: String, query_params: DirectoryChromeosdevicesListQueryParams, ) -> Result<DirectoryChromeOsDevices>
pub async fn chromeosdevices_moveDevicesToOu( &self, customerId: String, req: DirectoryChromeOsMoveDevicesToOu, query_params: DirectoryChromeosdevicesMoveDevicesToOuQueryParams, ) -> Result<Value>
pub async fn chromeosdevices_patch( &self, customerId: String, deviceId: String, req: DirectoryChromeOsDevice, query_params: DirectoryChromeosdevicesPatchQueryParams, ) -> Result<DirectoryChromeOsDevice>
pub async fn chromeosdevices_update( &self, customerId: String, deviceId: String, req: DirectoryChromeOsDevice, query_params: DirectoryChromeosdevicesUpdateQueryParams, ) -> Result<DirectoryChromeOsDevice>
pub async fn customers_get( &self, customerKey: String, ) -> Result<DirectoryCustomer>
pub async fn customers_patch( &self, customerKey: String, req: DirectoryCustomer, ) -> Result<DirectoryCustomer>
pub async fn customers_update( &self, customerKey: String, req: DirectoryCustomer, ) -> Result<DirectoryCustomer>
pub async fn domainAliases_delete( &self, customer: String, domainAliasName: String, ) -> Result<Value>
pub async fn domainAliases_get( &self, customer: String, domainAliasName: String, ) -> Result<DirectoryDomainAlias>
pub async fn domainAliases_insert( &self, customer: String, req: DirectoryDomainAlias, ) -> Result<DirectoryDomainAlias>
pub async fn domainAliases_list( &self, customer: String, query_params: DirectoryDomainAliasesListQueryParams, ) -> Result<DirectoryDomainAliases>
pub async fn domains_delete( &self, customer: String, domainName: String, ) -> Result<Value>
pub async fn domains_get( &self, customer: String, domainName: String, ) -> Result<DirectoryDomains>
pub async fn domains_insert( &self, customer: String, req: DirectoryDomains, ) -> Result<DirectoryDomains>
pub async fn domains_list(&self, customer: String) -> Result<DirectoryDomains2>
pub async fn groups_delete(&self, groupKey: String) -> Result<Value>
pub async fn groups_get(&self, groupKey: String) -> Result<DirectoryGroup>
pub async fn groups_insert(&self, req: DirectoryGroup) -> Result<DirectoryGroup>
pub async fn groups_list( &self, query_params: DirectoryGroupsListQueryParams, ) -> Result<DirectoryGroups>
pub async fn groups_patch( &self, groupKey: String, req: DirectoryGroup, ) -> Result<DirectoryGroup>
pub async fn groups_update( &self, groupKey: String, req: DirectoryGroup, ) -> Result<DirectoryGroup>
pub async fn members_delete( &self, groupKey: String, memberKey: String, ) -> Result<Value>
pub async fn members_get( &self, groupKey: String, memberKey: String, ) -> Result<DirectoryMember>
pub async fn members_hasMember( &self, groupKey: String, memberKey: String, ) -> Result<DirectoryMembersHasMember>
pub async fn members_insert( &self, groupKey: String, req: DirectoryMember, ) -> Result<DirectoryMember>
pub async fn members_list( &self, groupKey: String, query_params: DirectoryMembersListQueryParams, ) -> Result<DirectoryMembers>
pub async fn members_patch( &self, groupKey: String, memberKey: String, req: DirectoryMember, ) -> Result<DirectoryMember>
pub async fn members_update( &self, groupKey: String, memberKey: String, req: DirectoryMember, ) -> Result<DirectoryMember>
pub async fn mobiledevices_action( &self, customerId: String, resourceId: String, req: DirectoryMobileDeviceAction, ) -> Result<Value>
pub async fn mobiledevices_delete( &self, customerId: String, resourceId: String, ) -> Result<Value>
pub async fn mobiledevices_get( &self, customerId: String, resourceId: String, query_params: DirectoryMobiledevicesGetQueryParams, ) -> Result<DirectoryMobileDevice>
pub async fn mobiledevices_list( &self, customerId: String, query_params: DirectoryMobiledevicesListQueryParams, ) -> Result<DirectoryMobileDevices>
pub async fn orgunits_delete( &self, customerId: String, orgUnitPath: String, ) -> Result<Value>
pub async fn orgunits_get( &self, customerId: String, orgUnitPath: String, ) -> Result<DirectoryOrgUnit>
pub async fn orgunits_insert( &self, customerId: String, req: DirectoryOrgUnit, ) -> Result<DirectoryOrgUnit>
pub async fn orgunits_list( &self, customerId: String, query_params: DirectoryOrgunitsListQueryParams, ) -> Result<DirectoryOrgUnits>
pub async fn orgunits_patch( &self, customerId: String, orgUnitPath: String, req: DirectoryOrgUnit, ) -> Result<DirectoryOrgUnit>
pub async fn orgunits_update( &self, customerId: String, orgUnitPath: String, req: DirectoryOrgUnit, ) -> Result<DirectoryOrgUnit>
pub async fn privileges_list( &self, customer: String, ) -> Result<DirectoryPrivileges>
pub async fn roleAssignments_delete( &self, customer: String, roleAssignmentId: String, ) -> Result<Value>
pub async fn roleAssignments_get( &self, customer: String, roleAssignmentId: String, ) -> Result<DirectoryRoleAssignment>
pub async fn roleAssignments_insert( &self, customer: String, req: DirectoryRoleAssignment, ) -> Result<DirectoryRoleAssignment>
pub async fn roleAssignments_list( &self, customer: String, query_params: DirectoryRoleAssignmentsListQueryParams, ) -> Result<DirectoryRoleAssignments>
pub async fn roles_delete( &self, customer: String, roleId: String, ) -> Result<Value>
pub async fn roles_get( &self, customer: String, roleId: String, ) -> Result<DirectoryRole>
pub async fn roles_insert( &self, customer: String, req: DirectoryRole, ) -> Result<DirectoryRole>
pub async fn roles_list( &self, customer: String, query_params: DirectoryRolesListQueryParams, ) -> Result<DirectoryRoles>
pub async fn roles_patch( &self, customer: String, roleId: String, req: DirectoryRole, ) -> Result<DirectoryRole>
pub async fn roles_update( &self, customer: String, roleId: String, req: DirectoryRole, ) -> Result<DirectoryRole>
pub async fn schemas_delete( &self, customerId: String, schemaKey: String, ) -> Result<Value>
pub async fn schemas_get( &self, customerId: String, schemaKey: String, ) -> Result<DirectorySchema>
pub async fn schemas_insert( &self, customerId: String, req: DirectorySchema, ) -> Result<DirectorySchema>
pub async fn schemas_list(&self, customerId: String) -> Result<DirectorySchemas>
pub async fn schemas_patch( &self, customerId: String, schemaKey: String, req: DirectorySchema, ) -> Result<DirectorySchema>
pub async fn schemas_update( &self, customerId: String, schemaKey: String, req: DirectorySchema, ) -> Result<DirectorySchema>
pub async fn tokens_delete( &self, clientId: String, userKey: String, ) -> Result<Value>
pub async fn tokens_get( &self, clientId: String, userKey: String, ) -> Result<DirectoryToken>
pub async fn tokens_list(&self, userKey: String) -> Result<DirectoryTokens>
pub async fn twoStepVerification_turnOff( &self, userKey: String, ) -> Result<Value>
pub async fn users_delete(&self, userKey: String) -> Result<Value>
pub async fn users_get( &self, userKey: String, query_params: DirectoryUsersGetQueryParams, ) -> Result<DirectoryUser>
pub async fn users_insert( &self, req: DirectoryUser, query_params: DirectoryUsersInsertQueryParams, ) -> Result<DirectoryUser>
pub async fn users_list( &self, query_params: DirectoryUsersListQueryParams, ) -> Result<DirectoryUsers>
pub async fn users_makeAdmin( &self, userKey: String, req: DirectoryUserMakeAdmin, ) -> Result<Value>
pub async fn users_patch( &self, userKey: String, req: DirectoryUser, ) -> Result<DirectoryUser>
pub async fn users_signOut(&self, userKey: String) -> Result<Value>
pub async fn users_undelete( &self, userKey: String, req: DirectoryUserUndelete, ) -> Result<Value>
pub async fn users_update( &self, userKey: String, req: DirectoryUser, ) -> Result<DirectoryUser>
pub async fn users_watch( &self, req: DirectoryChannel, query_params: DirectoryUsersWatchQueryParams, ) -> Result<DirectoryChannel>
pub async fn verificationCodes_generate(&self, userKey: String) -> Result<Value>
pub async fn verificationCodes_invalidate( &self, userKey: String, ) -> Result<Value>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more