Struct gsuite_api::mobiledevices::Mobiledevices
source · [−]pub struct Mobiledevices {
pub client: Client,
}Fields
client: ClientImplementations
sourceimpl Mobiledevices
impl Mobiledevices
sourcepub async fn list(
&self,
customer_id: &str,
max_results: i64,
order_by: DirectoryMobiledevicesListOrderBy,
page_token: &str,
projection: Projection,
query: &str,
sort_order: SortOrder
) -> Result<Vec<MobileDevice>>
pub async fn list(
&self,
customer_id: &str,
max_results: i64,
order_by: DirectoryMobiledevicesListOrderBy,
page_token: &str,
projection: Projection,
query: &str,
sort_order: SortOrder
) -> Result<Vec<MobileDevice>>
This function performs a GET to the /admin/directory/v1/customer/{customerId}/devices/mobile endpoint.
Retrieves a paginated list of all mobile devices for an account.
Parameters:
customer_id: &str– The unique ID for the customer’s Google Workspace account. As an account administrator, you can also use themy_customeralias to represent your account’scustomerId. ThecustomerIdis also returned as part of the Users resource.max_results: i64– Maximum number of results to return. Max allowed value is 100.order_by: crate::types::DirectoryMobiledevicesListOrderBy– Device property to use for sorting results.page_token: &str– Token to specify next page in the list.projection: crate::types::Projection– Restrict information returned to a set of selected fields.query: &str– Search string in the format given at https://developers.google.com/admin-sdk/directory/v1/search-operators.sort_order: crate::types::SortOrder– Whether to return results in ascending or descending order. Must be used with theorderByparameter.
sourcepub async fn list_all(
&self,
customer_id: &str,
order_by: DirectoryMobiledevicesListOrderBy,
projection: Projection,
query: &str,
sort_order: SortOrder
) -> Result<Vec<MobileDevice>>
pub async fn list_all(
&self,
customer_id: &str,
order_by: DirectoryMobiledevicesListOrderBy,
projection: Projection,
query: &str,
sort_order: SortOrder
) -> Result<Vec<MobileDevice>>
This function performs a GET to the /admin/directory/v1/customer/{customerId}/devices/mobile endpoint.
As opposed to list, this function returns all the pages of the request at once.
Retrieves a paginated list of all mobile devices for an account.
sourcepub async fn get(
&self,
customer_id: &str,
resource_id: &str,
projection: Projection
) -> Result<MobileDevice>
pub async fn get(
&self,
customer_id: &str,
resource_id: &str,
projection: Projection
) -> Result<MobileDevice>
This function performs a GET to the /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId} endpoint.
Retrieves a mobile device’s properties.
Parameters:
customer_id: &str– The unique ID for the customer’s Google Workspace account. As an account administrator, you can also use themy_customeralias to represent your account’scustomerId. ThecustomerIdis also returned as part of the Users resource.resource_id: &str– The unique ID the API service uses to identify the mobile device.projection: crate::types::Projection– Restrict information returned to a set of selected fields.
sourcepub async fn delete(&self, customer_id: &str, resource_id: &str) -> Result<()>
pub async fn delete(&self, customer_id: &str, resource_id: &str) -> Result<()>
This function performs a DELETE to the /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId} endpoint.
Removes a mobile device.
Parameters:
customer_id: &str– The unique ID for the customer’s Google Workspace account. As an account administrator, you can also use themy_customeralias to represent your account’scustomerId. ThecustomerIdis also returned as part of the Users resource.resource_id: &str– The unique ID the API service uses to identify the mobile device.
sourcepub async fn action(
&self,
customer_id: &str,
resource_id: &str,
body: &MobileDeviceAction
) -> Result<()>
pub async fn action(
&self,
customer_id: &str,
resource_id: &str,
body: &MobileDeviceAction
) -> Result<()>
This function performs a POST to the /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action endpoint.
Takes an action that affects a mobile device. For example, remotely wiping a device.
Parameters:
customer_id: &str– The unique ID for the customer’s Google Workspace account. As an account administrator, you can also use themy_customeralias to represent your account’scustomerId. ThecustomerIdis also returned as part of the Users resource.resource_id: &str– The unique ID the API service uses to identify the mobile device.
Auto Trait Implementations
impl !RefUnwindSafe for Mobiledevices
impl Send for Mobiledevices
impl Sync for Mobiledevices
impl Unpin for Mobiledevices
impl !UnwindSafe for Mobiledevices
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more