Struct gsuite_api::GSuite [−][src]
pub struct GSuite { /* fields omitted */ }
Expand description
Entrypoint for interacting with the GSuite APIs.
Implementations
Create a new GSuite client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API Key and Secret your requests will work.
Get the currently set authorization token.
Get the settings for a Google group.
Update a Google group’s settings.
Create a google group.
pub async fn update_group_aliases<A>(&self, group_key: &str, aliases: A) where
A: IntoIterator,
A::Item: AsRef<str>,
[src]
pub async fn update_group_aliases<A>(&self, group_key: &str, aliases: A) where
A: IntoIterator,
A::Item: AsRef<str>,
[src]Update a Google group’s aliases.
Update an alias for a Google group.
Check if a user is a member of a Google group.
Update a member of a Google group.
Add a user as a member of a Google group.
Remove a user as a member of a Google group.
Delete a group.
The group_key
can be the group’s email address, group alias, or the unique group ID.
FROM: https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups/delete
Delete a user.
The user_key
can be the user’s primary email address, alias email address, or unique user ID.
FROM: https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/delete
pub async fn update_user_aliases<A>(&self, user_id: &str, aliases: A) where
A: IntoIterator,
A::Item: AsRef<str>,
[src]
pub async fn update_user_aliases<A>(&self, user_id: &str, aliases: A) where
A: IntoIterator,
A::Item: AsRef<str>,
[src]Update a user’s aliases.
Update an alias for a user.
List calendar resources.
pub async fn update_calendar_resource(
&self,
resource: &CalendarResource
) -> Result<(), APIError>
[src]
pub async fn update_calendar_resource(
&self,
resource: &CalendarResource
) -> Result<(), APIError>
[src]Update a calendar resource.
pub async fn create_calendar_resource(
&self,
resource: &CalendarResource
) -> Result<(), APIError>
[src]
pub async fn create_calendar_resource(
&self,
resource: &CalendarResource
) -> Result<(), APIError>
[src]Create a calendar resource.
Delete a calendar resource. FROM: https://developers.google.com/admin-sdk/directory/reference/rest/v1/resources.calendars/delete
Update a building.
Create a building.
Delete a building. FROM: https://developers.google.com/admin-sdk/directory/reference/rest/v1/resources.buildings/delete
List calendars for a user.
pub async fn list_calendar_events_query(
&self,
calendar_id: &str,
query: &str
) -> Result<Vec<CalendarEvent>, APIError>
[src]
pub async fn list_calendar_events_query(
&self,
calendar_id: &str,
query: &str
) -> Result<Vec<CalendarEvent>, APIError>
[src]List events on a calendar with a query.
pub async fn list_calendar_events(
&self,
calendar_id: &str,
show_deleted: bool
) -> Result<Vec<CalendarEvent>, APIError>
[src]
pub async fn list_calendar_events(
&self,
calendar_id: &str,
show_deleted: bool
) -> Result<Vec<CalendarEvent>, APIError>
[src]List events on a calendar.
pub async fn list_recurring_event_instances(
&self,
calendar_id: &str,
recurring_event_id: &str
) -> Result<Vec<CalendarEvent>, APIError>
[src]
pub async fn list_recurring_event_instances(
&self,
calendar_id: &str,
recurring_event_id: &str
) -> Result<Vec<CalendarEvent>, APIError>
[src]List recurring event instances.
pub async fn list_past_calendar_events(
&self,
calendar_id: &str
) -> Result<Vec<CalendarEvent>, APIError>
[src]
pub async fn list_past_calendar_events(
&self,
calendar_id: &str
) -> Result<Vec<CalendarEvent>, APIError>
[src]List past events on a calendar.
pub async fn create_calendar_event(
&self,
calendar_id: &str,
event: &CalendarEvent
) -> Result<CalendarEvent, APIError>
[src]
pub async fn create_calendar_event(
&self,
calendar_id: &str,
event: &CalendarEvent
) -> Result<CalendarEvent, APIError>
[src]Create a calendar event.
pub async fn update_calendar_event(
&self,
calendar_id: &str,
event_id: &str,
event: &CalendarEvent
) -> Result<CalendarEvent, APIError>
[src]
pub async fn update_calendar_event(
&self,
calendar_id: &str,
event_id: &str,
event: &CalendarEvent
) -> Result<CalendarEvent, APIError>
[src]Update a calendar event.
pub async fn get_calendar_event(
&self,
calendar_id: &str,
event_id: &str
) -> Result<CalendarEvent, APIError>
[src]
pub async fn get_calendar_event(
&self,
calendar_id: &str,
event_id: &str
) -> Result<CalendarEvent, APIError>
[src]Get a calendar event.
Auto Trait Implementations
impl !RefUnwindSafe for GSuite
impl !UnwindSafe for GSuite