1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use crate::Client;
use crate::ClientResult;
pub struct RoomsDevices {
pub client: Client,
}
impl RoomsDevices {
#[doc(hidden)]
pub fn new(client: Client) -> Self {
RoomsDevices { client }
}
/**
* Change Zoom Rooms' app version.
*
* This function performs a `PUT` to the `/rooms/{roomId}/devices/{deviceId}/app_version` endpoint.
*
* [Upgrade](https://support.zoom.us/hc/en-us/articles/204675449-Upgrade-or-Downgrade-Zoom-Rooms-Software#h_1751c48a-644e-4a60-b96a-31ec77c616e6) or [downgrade](https://support.zoom.us/hc/en-us/articles/204675449-Upgrade-or-Downgrade-Zoom-Rooms-Software#h_d97349d6-9253-484c-af80-350475026524) the version of Zoom Rooms App installed in your Mac or Windows device.
*
* **Prerequisites:**<br>
* * Pro or a higher account with Zoom Rooms.
* * Zoom Rooms software must be installed either on a Mac or a Windows device. This API does not support other devices.
*
* **Parameters:**
*
* * `room_id: &str` -- Unique Identifier of the Zoom Room.
* * `device_id: &str` -- Unique Identifier of the Mac or the Windows device. The value of this field can be retrieved from the [List Zoom Room Devices API](https://marketplace.zoom.us/docs/api-reference/zoom-api/rooms/listzrdevices).
*/
pub async fn change_zoom_rooms_app_version(
&self,
room_id: &str,
device_id: &str,
body: &crate::types::ChangeZoomRoomsAppVersionRequest,
) -> ClientResult<crate::Response<()>> {
let url = self.client.url(
&format!(
"/rooms/{}/devices/{}/app_version",
crate::progenitor_support::encode_path(room_id),
crate::progenitor_support::encode_path(device_id),
),
None,
);
self.client
.put(
&url,
crate::Message {
body: Some(reqwest::Body::from(serde_json::to_vec(body)?)),
content_type: Some("application/json".to_string()),
},
)
.await
}
}