mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs
This commit is contained in:
@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
|
||||
/// Identifies the an OAuth2 authorization scope.
|
||||
/// A scope is needed when requesting an
|
||||
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
|
||||
#[derive(PartialEq, Eq, Hash)]
|
||||
#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Debug, Clone, Copy)]
|
||||
pub enum Scope {
|
||||
/// See and/or control the devices that you selected
|
||||
SdmService,
|
||||
@@ -243,10 +243,6 @@ pub struct GoogleHomeEnterpriseSdmV1ListDevicesResponse {
|
||||
/// The list of devices.
|
||||
|
||||
pub devices: Option<Vec<GoogleHomeEnterpriseSdmV1Device>>,
|
||||
/// The pagination token to retrieve the next page of results.
|
||||
#[serde(rename="nextPageToken")]
|
||||
|
||||
pub next_page_token: Option<String>,
|
||||
}
|
||||
|
||||
impl client::ResponseResult for GoogleHomeEnterpriseSdmV1ListDevicesResponse {}
|
||||
@@ -263,10 +259,6 @@ impl client::ResponseResult for GoogleHomeEnterpriseSdmV1ListDevicesResponse {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct GoogleHomeEnterpriseSdmV1ListRoomsResponse {
|
||||
/// The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
|
||||
#[serde(rename="nextPageToken")]
|
||||
|
||||
pub next_page_token: Option<String>,
|
||||
/// The list of rooms.
|
||||
|
||||
pub rooms: Option<Vec<GoogleHomeEnterpriseSdmV1Room>>,
|
||||
@@ -286,10 +278,6 @@ impl client::ResponseResult for GoogleHomeEnterpriseSdmV1ListRoomsResponse {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct GoogleHomeEnterpriseSdmV1ListStructuresResponse {
|
||||
/// The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
|
||||
#[serde(rename="nextPageToken")]
|
||||
|
||||
pub next_page_token: Option<String>,
|
||||
/// The list of structures.
|
||||
|
||||
pub structures: Option<Vec<GoogleHomeEnterpriseSdmV1Structure>>,
|
||||
@@ -451,8 +439,6 @@ impl<'a, S> EnterpriseMethods<'a, S> {
|
||||
EnterpriseDeviceListCall {
|
||||
hub: self.hub,
|
||||
_parent: parent.to_string(),
|
||||
_page_token: Default::default(),
|
||||
_page_size: Default::default(),
|
||||
_filter: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
@@ -488,8 +474,6 @@ impl<'a, S> EnterpriseMethods<'a, S> {
|
||||
EnterpriseStructureRoomListCall {
|
||||
hub: self.hub,
|
||||
_parent: parent.to_string(),
|
||||
_page_token: Default::default(),
|
||||
_page_size: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
_scopes: Default::default(),
|
||||
@@ -524,8 +508,6 @@ impl<'a, S> EnterpriseMethods<'a, S> {
|
||||
EnterpriseStructureListCall {
|
||||
hub: self.hub,
|
||||
_parent: parent.to_string(),
|
||||
_page_token: Default::default(),
|
||||
_page_size: Default::default(),
|
||||
_filter: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
@@ -1123,9 +1105,7 @@ where
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.enterprises().devices_list("parent")
|
||||
/// .page_token("sanctus")
|
||||
/// .page_size(-80)
|
||||
/// .filter("amet.")
|
||||
/// .filter("sanctus")
|
||||
/// .doit().await;
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -1134,8 +1114,6 @@ pub struct EnterpriseDeviceListCall<'a, S>
|
||||
|
||||
hub: &'a SmartDeviceManagement<S>,
|
||||
_parent: String,
|
||||
_page_token: Option<String>,
|
||||
_page_size: Option<i32>,
|
||||
_filter: Option<String>,
|
||||
_delegate: Option<&'a mut dyn client::Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
@@ -1165,21 +1143,15 @@ where
|
||||
dlg.begin(client::MethodInfo { id: "smartdevicemanagement.enterprises.devices.list",
|
||||
http_method: hyper::Method::GET });
|
||||
|
||||
for &field in ["alt", "parent", "pageToken", "pageSize", "filter"].iter() {
|
||||
for &field in ["alt", "parent", "filter"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(client::Error::FieldClash(field));
|
||||
}
|
||||
}
|
||||
|
||||
let mut params = Params::with_capacity(6 + self._additional_params.len());
|
||||
let mut params = Params::with_capacity(4 + self._additional_params.len());
|
||||
params.push("parent", self._parent);
|
||||
if let Some(value) = self._page_token.as_ref() {
|
||||
params.push("pageToken", value);
|
||||
}
|
||||
if let Some(value) = self._page_size.as_ref() {
|
||||
params.push("pageSize", value.to_string());
|
||||
}
|
||||
if let Some(value) = self._filter.as_ref() {
|
||||
params.push("filter", value);
|
||||
}
|
||||
@@ -1297,20 +1269,6 @@ where
|
||||
self._parent = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// Optional token of the page to retrieve.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> EnterpriseDeviceListCall<'a, S> {
|
||||
self._page_token = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
||||
///
|
||||
/// Sets the *page size* query property to the given value.
|
||||
pub fn page_size(mut self, new_value: i32) -> EnterpriseDeviceListCall<'a, S> {
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
||||
///
|
||||
/// Sets the *filter* query property to the given value.
|
||||
@@ -1683,8 +1641,6 @@ where
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.enterprises().structures_rooms_list("parent")
|
||||
/// .page_token("duo")
|
||||
/// .page_size(-55)
|
||||
/// .doit().await;
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -1693,8 +1649,6 @@ pub struct EnterpriseStructureRoomListCall<'a, S>
|
||||
|
||||
hub: &'a SmartDeviceManagement<S>,
|
||||
_parent: String,
|
||||
_page_token: Option<String>,
|
||||
_page_size: Option<i32>,
|
||||
_delegate: Option<&'a mut dyn client::Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
_scopes: BTreeSet<String>
|
||||
@@ -1723,21 +1677,15 @@ where
|
||||
dlg.begin(client::MethodInfo { id: "smartdevicemanagement.enterprises.structures.rooms.list",
|
||||
http_method: hyper::Method::GET });
|
||||
|
||||
for &field in ["alt", "parent", "pageToken", "pageSize"].iter() {
|
||||
for &field in ["alt", "parent"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(client::Error::FieldClash(field));
|
||||
}
|
||||
}
|
||||
|
||||
let mut params = Params::with_capacity(5 + self._additional_params.len());
|
||||
let mut params = Params::with_capacity(3 + self._additional_params.len());
|
||||
params.push("parent", self._parent);
|
||||
if let Some(value) = self._page_token.as_ref() {
|
||||
params.push("pageToken", value);
|
||||
}
|
||||
if let Some(value) = self._page_size.as_ref() {
|
||||
params.push("pageSize", value.to_string());
|
||||
}
|
||||
|
||||
params.extend(self._additional_params.iter());
|
||||
|
||||
@@ -1852,20 +1800,6 @@ where
|
||||
self._parent = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// The token of the page to retrieve.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> EnterpriseStructureRoomListCall<'a, S> {
|
||||
self._page_token = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
||||
///
|
||||
/// Sets the *page size* query property to the given value.
|
||||
pub fn page_size(mut self, new_value: i32) -> EnterpriseStructureRoomListCall<'a, S> {
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
|
||||
/// while executing the actual API request.
|
||||
///
|
||||
@@ -2231,9 +2165,7 @@ where
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.enterprises().structures_list("parent")
|
||||
/// .page_token("gubergren")
|
||||
/// .page_size(-75)
|
||||
/// .filter("dolor")
|
||||
/// .filter("duo")
|
||||
/// .doit().await;
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -2242,8 +2174,6 @@ pub struct EnterpriseStructureListCall<'a, S>
|
||||
|
||||
hub: &'a SmartDeviceManagement<S>,
|
||||
_parent: String,
|
||||
_page_token: Option<String>,
|
||||
_page_size: Option<i32>,
|
||||
_filter: Option<String>,
|
||||
_delegate: Option<&'a mut dyn client::Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
@@ -2273,21 +2203,15 @@ where
|
||||
dlg.begin(client::MethodInfo { id: "smartdevicemanagement.enterprises.structures.list",
|
||||
http_method: hyper::Method::GET });
|
||||
|
||||
for &field in ["alt", "parent", "pageToken", "pageSize", "filter"].iter() {
|
||||
for &field in ["alt", "parent", "filter"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(client::Error::FieldClash(field));
|
||||
}
|
||||
}
|
||||
|
||||
let mut params = Params::with_capacity(6 + self._additional_params.len());
|
||||
let mut params = Params::with_capacity(4 + self._additional_params.len());
|
||||
params.push("parent", self._parent);
|
||||
if let Some(value) = self._page_token.as_ref() {
|
||||
params.push("pageToken", value);
|
||||
}
|
||||
if let Some(value) = self._page_size.as_ref() {
|
||||
params.push("pageSize", value.to_string());
|
||||
}
|
||||
if let Some(value) = self._filter.as_ref() {
|
||||
params.push("filter", value);
|
||||
}
|
||||
@@ -2405,20 +2329,6 @@ where
|
||||
self._parent = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// The token of the page to retrieve.
|
||||
///
|
||||
/// Sets the *page token* query property to the given value.
|
||||
pub fn page_token(mut self, new_value: &str) -> EnterpriseStructureListCall<'a, S> {
|
||||
self._page_token = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
||||
///
|
||||
/// Sets the *page size* query property to the given value.
|
||||
pub fn page_size(mut self, new_value: i32) -> EnterpriseStructureListCall<'a, S> {
|
||||
self._page_size = Some(new_value);
|
||||
self
|
||||
}
|
||||
/// Optional filter to list structures.
|
||||
///
|
||||
/// Sets the *filter* query property to the given value.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *Smart Device Management* crate version *5.0.3+20230112*, where *20230112* is the exact revision of the *smartdevicemanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//! This documentation was generated from *Smart Device Management* crate version *5.0.3+20240218*, where *20240218* is the exact revision of the *smartdevicemanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//!
|
||||
//! Everything else about the *Smart Device Management* *v1* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/nest/device-access).
|
||||
|
||||
Reference in New Issue
Block a user