proxmox_api/generated/access/
openid.rs
1pub mod auth_url;
2pub mod login;
3pub struct OpenidClient<T> {
4 client: T,
5 path: String,
6}
7impl<T> OpenidClient<T>
8where
9 T: crate::client::Client,
10{
11 pub fn new(client: T, parent_path: &str) -> Self {
12 Self {
13 client,
14 path: format!("{}{}", parent_path, "/openid"),
15 }
16 }
17}
18impl<T> OpenidClient<T>
19where
20 T: crate::client::Client,
21{
22 #[doc = "Directory index."]
23 pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
24 let path = self.path.to_string();
25 self.client.get(&path, &())
26 }
27}
28impl GetOutputItems {
29 pub fn new(subdir: String) -> Self {
30 Self {
31 subdir,
32 additional_properties: Default::default(),
33 }
34 }
35}
36#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
37pub struct GetOutputItems {
38 pub subdir: String,
39 #[serde(
40 flatten,
41 default,
42 skip_serializing_if = "::std::collections::HashMap::is_empty"
43 )]
44 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
45}
46impl<T> OpenidClient<T>
47where
48 T: crate::client::Client,
49{
50 pub fn auth_url(&self) -> auth_url::AuthUrlClient<T> {
51 auth_url::AuthUrlClient::<T>::new(self.client.clone(), &self.path)
52 }
53}
54impl<T> OpenidClient<T>
55where
56 T: crate::client::Client,
57{
58 pub fn login(&self) -> login::LoginClient<T> {
59 login::LoginClient::<T>::new(self.client.clone(), &self.path)
60 }
61}