Struct google_smartdevicemanagement1::api::EnterpriseMethods[][src]

pub struct EnterpriseMethods<'a, C> where
    C: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on enterprise resources. It is not used directly, but through the SmartDeviceManagement hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_smartdevicemanagement1 as smartdevicemanagement1;
 
use std::default::Default;
use oauth2;
use smartdevicemanagement1::SmartDeviceManagement;
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
        secret,
        yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = SmartDeviceManagement::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `devices_execute_command(...)`, `devices_get(...)`, `devices_list(...)`, `structures_get(...)`, `structures_list(...)`, `structures_rooms_get(...)` and `structures_rooms_list(...)`
// to build up your call.
let rb = hub.enterprises();

Implementations

impl<'a, C> EnterpriseMethods<'a, C>[src]

pub fn devices_execute_command(
    &self,
    request: GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest,
    name: &str
) -> EnterpriseDeviceExecuteCommandCall<'a, C>
[src]

Create a builder to help you perform the following task:

Executes a command to device managed by the enterprise.

Arguments

  • request - No description provided.
  • name - The name of the device requested. For example: "enterprises/XYZ/devices/123"

pub fn devices_get(&self, name: &str) -> EnterpriseDeviceGetCall<'a, C>[src]

Create a builder to help you perform the following task:

Gets a device managed by the enterprise.

Arguments

  • name - The name of the device requested. For example: "enterprises/XYZ/devices/123"

pub fn devices_list(&self, parent: &str) -> EnterpriseDeviceListCall<'a, C>[src]

Create a builder to help you perform the following task:

Lists devices managed by the enterprise.

Arguments

  • parent - The parent enterprise to list devices under. E.g. "enterprises/XYZ".

pub fn structures_rooms_get(
    &self,
    name: &str
) -> EnterpriseStructureRoomGetCall<'a, C>
[src]

Create a builder to help you perform the following task:

Gets a room managed by the enterprise.

Arguments

  • name - The name of the room requested. For example: "enterprises/XYZ/structures/ABC/rooms/123".

pub fn structures_rooms_list(
    &self,
    parent: &str
) -> EnterpriseStructureRoomListCall<'a, C>
[src]

Create a builder to help you perform the following task:

Lists rooms managed by the enterprise.

Arguments

  • parent - The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".

pub fn structures_get(&self, name: &str) -> EnterpriseStructureGetCall<'a, C>[src]

Create a builder to help you perform the following task:

Gets a structure managed by the enterprise.

Arguments

  • name - The name of the structure requested. For example: "enterprises/XYZ/structures/ABC".

pub fn structures_list(
    &self,
    parent: &str
) -> EnterpriseStructureListCall<'a, C>
[src]

Create a builder to help you perform the following task:

Lists structures managed by the enterprise.

Arguments

  • parent - The parent enterprise to list structures under. E.g. "enterprises/XYZ".

Trait Implementations

impl<'a, C> MethodsBuilder for EnterpriseMethods<'a, C>[src]

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for EnterpriseMethods<'a, C>[src]

impl<'a, C> !Send for EnterpriseMethods<'a, C>[src]

impl<'a, C> !Sync for EnterpriseMethods<'a, C>[src]

impl<'a, C> Unpin for EnterpriseMethods<'a, C>[src]

impl<'a, C> !UnwindSafe for EnterpriseMethods<'a, C>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.