Struct googapis::google::home::enterprise::sdm::v1::smart_device_management_service_client::SmartDeviceManagementServiceClient [−][src]
pub struct SmartDeviceManagementServiceClient<T> { /* fields omitted */ }
Expand description
A service that allows API consumers to provision and manage Google Home structures and devices for enterprise use cases.
Implementations
impl<T> SmartDeviceManagementServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> SmartDeviceManagementServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> SmartDeviceManagementServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn get_device(
&mut self,
request: impl IntoRequest<GetDeviceRequest>
) -> Result<Response<Device>, Status>
pub async fn get_device(
&mut self,
request: impl IntoRequest<GetDeviceRequest>
) -> Result<Response<Device>, Status>
Gets a device managed by the enterprise.
pub async fn list_devices(
&mut self,
request: impl IntoRequest<ListDevicesRequest>
) -> Result<Response<ListDevicesResponse>, Status>
pub async fn list_devices(
&mut self,
request: impl IntoRequest<ListDevicesRequest>
) -> Result<Response<ListDevicesResponse>, Status>
Lists devices managed by the enterprise.
pub async fn execute_device_command(
&mut self,
request: impl IntoRequest<ExecuteDeviceCommandRequest>
) -> Result<Response<ExecuteDeviceCommandResponse>, Status>
pub async fn execute_device_command(
&mut self,
request: impl IntoRequest<ExecuteDeviceCommandRequest>
) -> Result<Response<ExecuteDeviceCommandResponse>, Status>
Executes a command to device managed by the enterprise.
pub async fn get_structure(
&mut self,
request: impl IntoRequest<GetStructureRequest>
) -> Result<Response<Structure>, Status>
pub async fn get_structure(
&mut self,
request: impl IntoRequest<GetStructureRequest>
) -> Result<Response<Structure>, Status>
Gets a structure managed by the enterprise.
pub async fn list_structures(
&mut self,
request: impl IntoRequest<ListStructuresRequest>
) -> Result<Response<ListStructuresResponse>, Status>
pub async fn list_structures(
&mut self,
request: impl IntoRequest<ListStructuresRequest>
) -> Result<Response<ListStructuresResponse>, Status>
Lists structures managed by the enterprise.
pub async fn get_room(
&mut self,
request: impl IntoRequest<GetRoomRequest>
) -> Result<Response<Room>, Status>
pub async fn get_room(
&mut self,
request: impl IntoRequest<GetRoomRequest>
) -> Result<Response<Room>, Status>
Gets a room managed by the enterprise.
pub async fn list_rooms(
&mut self,
request: impl IntoRequest<ListRoomsRequest>
) -> Result<Response<ListRoomsResponse>, Status>
pub async fn list_rooms(
&mut self,
request: impl IntoRequest<ListRoomsRequest>
) -> Result<Response<ListRoomsResponse>, Status>
Lists rooms managed by the enterprise.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SmartDeviceManagementServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for SmartDeviceManagementServiceClient<T> where
T: Send,
impl<T> Sync for SmartDeviceManagementServiceClient<T> where
T: Sync,
impl<T> Unpin for SmartDeviceManagementServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for SmartDeviceManagementServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more