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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
use std::borrow::Borrow;
use std::rc::Rc;
use futures;
use futures::Future;
use hyper;
use super::{configuration, put, query, Error};
pub struct FilesystemApiClient<C: hyper::client::connect::Connect> {
configuration: Rc<configuration::Configuration<C>>,
}
impl<C: hyper::client::connect::Connect> FilesystemApiClient<C> {
pub fn new(configuration: Rc<configuration::Configuration<C>>) -> FilesystemApiClient<C> {
FilesystemApiClient {
configuration: configuration,
}
}
}
pub trait FilesystemApi {
fn get_settings_access_time(
&self,
) -> Box<dyn Future<Item = crate::models::SettingsAccessTime, Error = Error>>;
fn get_settings_character_encodings(
&self,
) -> Box<dyn Future<Item = crate::models::SettingsCharacterEncodings, Error = Error>>;
fn update_settings_access_time(
&self,
settings_access_time: crate::models::SettingsAccessTimeExtended,
) -> Box<dyn Future<Item = (), Error = Error>>;
fn update_settings_character_encodings(
&self,
settings_character_encodings: crate::models::SettingsCharacterEncodingsExtended,
) -> Box<dyn Future<Item = (), Error = Error>>;
}
impl<C: hyper::client::connect::Connect + 'static> FilesystemApi for FilesystemApiClient<C> {
fn get_settings_access_time(
&self,
) -> Box<dyn Future<Item = crate::models::SettingsAccessTime, Error = Error>> {
let uri_str = format!(
"{}/platform/1/filesystem/settings/access-time",
self.configuration.base_path
);
query(
self.configuration.borrow(),
&uri_str,
&"",
hyper::Method::GET,
)
}
fn get_settings_character_encodings(
&self,
) -> Box<dyn Future<Item = crate::models::SettingsCharacterEncodings, Error = Error>> {
let uri_str = format!(
"{}/platform/1/filesystem/settings/character-encodings",
self.configuration.base_path
);
query(
self.configuration.borrow(),
&uri_str,
&"",
hyper::Method::GET,
)
}
fn update_settings_access_time(
&self,
settings_access_time: crate::models::SettingsAccessTimeExtended,
) -> Box<dyn Future<Item = (), Error = Error>> {
let uri_str = format!(
"{}/platform/1/filesystem/settings/access-time",
self.configuration.base_path
);
put(self.configuration.borrow(), &uri_str, &settings_access_time)
}
fn update_settings_character_encodings(
&self,
settings_character_encodings: crate::models::SettingsCharacterEncodingsExtended,
) -> Box<dyn Future<Item = (), Error = Error>> {
let uri_str = format!(
"{}/platform/1/filesystem/settings/character-encodings",
self.configuration.base_path
);
put(
self.configuration.borrow(),
&uri_str,
&settings_character_encodings,
)
}
}