1#[allow(unused_imports)]
2use progenitor_client::{encode_path, ClientHooks, OperationInfo, RequestBuilderExt};
3#[allow(unused_imports)]
4pub use progenitor_client::{ByteStream, ClientInfo, Error, ResponseValue};
5#[allow(clippy::all)]
7pub mod types {
8 pub mod error {
10 pub struct ConversionError(::std::borrow::Cow<'static, str>);
12 impl ::std::error::Error for ConversionError {}
13 impl ::std::fmt::Display for ConversionError {
14 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
15 ::std::fmt::Display::fmt(&self.0, f)
16 }
17 }
18
19 impl ::std::fmt::Debug for ConversionError {
20 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
21 ::std::fmt::Debug::fmt(&self.0, f)
22 }
23 }
24
25 impl From<&'static str> for ConversionError {
26 fn from(value: &'static str) -> Self {
27 Self(value.into())
28 }
29 }
30
31 impl From<String> for ConversionError {
32 fn from(value: String) -> Self {
33 Self(value.into())
34 }
35 }
36 }
37
38 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
55 pub struct BackendCommandResponse {
56 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
58 pub result: ::std::option::Option<::serde_json::Value>,
59 }
60
61 impl ::std::convert::From<&BackendCommandResponse> for BackendCommandResponse {
62 fn from(value: &BackendCommandResponse) -> Self {
63 value.clone()
64 }
65 }
66
67 impl ::std::default::Default for BackendCommandResponse {
68 fn default() -> Self {
69 Self {
70 result: Default::default(),
71 }
72 }
73 }
74
75 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
98 pub struct ConfigGetResponse {
99 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
100 pub provider: ::std::option::Option<::std::string::String>,
101 #[serde(rename = "type")]
102 pub type_: ::std::string::String,
103 }
104
105 impl ::std::convert::From<&ConfigGetResponse> for ConfigGetResponse {
106 fn from(value: &ConfigGetResponse) -> Self {
107 value.clone()
108 }
109 }
110
111 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
133 pub struct ConfigListremotesResponse {
134 pub remotes: ::std::vec::Vec<::std::string::String>,
135 }
136
137 impl ::std::convert::From<&ConfigListremotesResponse> for ConfigListremotesResponse {
138 fn from(value: &ConfigListremotesResponse) -> Self {
139 value.clone()
140 }
141 }
142
143 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
170 pub struct ConfigPathsResponse {
171 pub cache: ::std::string::String,
172 pub config: ::std::string::String,
173 pub temp: ::std::string::String,
174 }
175
176 impl ::std::convert::From<&ConfigPathsResponse> for ConfigPathsResponse {
177 fn from(value: &ConfigPathsResponse) -> Self {
178 value.clone()
179 }
180 }
181
182 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
241 pub struct ConfigProvider {
242 #[serde(
243 rename = "Aliases",
244 default,
245 skip_serializing_if = "::std::option::Option::is_none"
246 )]
247 pub aliases: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
248 #[serde(
249 rename = "CommandHelp",
250 default,
251 skip_serializing_if = "::std::option::Option::is_none"
252 )]
253 pub command_help: ::std::option::Option<::std::vec::Vec<ConfigProviderCommandHelp>>,
254 #[serde(rename = "Description")]
255 pub description: ::std::string::String,
256 #[serde(
257 rename = "Hide",
258 default,
259 skip_serializing_if = "::std::option::Option::is_none"
260 )]
261 pub hide: ::std::option::Option<bool>,
262 #[serde(
263 rename = "MetadataInfo",
264 default,
265 skip_serializing_if = "::std::option::Option::is_none"
266 )]
267 pub metadata_info: ::std::option::Option<ConfigProviderMetadataInfo>,
268 #[serde(rename = "Name")]
269 pub name: ::std::string::String,
270 #[serde(rename = "Options")]
271 pub options: ::std::vec::Vec<ConfigProviderOption>,
272 #[serde(rename = "Prefix")]
273 pub prefix: ::std::string::String,
274 }
275
276 impl ::std::convert::From<&ConfigProvider> for ConfigProvider {
277 fn from(value: &ConfigProvider) -> Self {
278 value.clone()
279 }
280 }
281
282 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
312 pub struct ConfigProviderCommandHelp {
313 #[serde(
314 rename = "Long",
315 default,
316 skip_serializing_if = "::std::option::Option::is_none"
317 )]
318 pub long: ::std::option::Option<::std::string::String>,
319 #[serde(
320 rename = "Name",
321 default,
322 skip_serializing_if = "::std::option::Option::is_none"
323 )]
324 pub name: ::std::option::Option<::std::string::String>,
325 #[serde(
326 rename = "Opts",
327 default,
328 skip_serializing_if = "::std::option::Option::is_none"
329 )]
330 pub opts:
331 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
332 #[serde(
333 rename = "Short",
334 default,
335 skip_serializing_if = "::std::option::Option::is_none"
336 )]
337 pub short: ::std::option::Option<::std::string::String>,
338 }
339
340 impl ::std::convert::From<&ConfigProviderCommandHelp> for ConfigProviderCommandHelp {
341 fn from(value: &ConfigProviderCommandHelp) -> Self {
342 value.clone()
343 }
344 }
345
346 impl ::std::default::Default for ConfigProviderCommandHelp {
347 fn default() -> Self {
348 Self {
349 long: Default::default(),
350 name: Default::default(),
351 opts: Default::default(),
352 short: Default::default(),
353 }
354 }
355 }
356
357 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
383 pub struct ConfigProviderMetadataInfo {
384 #[serde(
385 rename = "Help",
386 default,
387 skip_serializing_if = "::std::option::Option::is_none"
388 )]
389 pub help: ::std::option::Option<::std::string::String>,
390 #[serde(
391 rename = "System",
392 default,
393 skip_serializing_if = "::std::option::Option::is_none"
394 )]
395 pub system: ::std::option::Option<
396 ::std::collections::HashMap<::std::string::String, ConfigProviderMetadataSystemEntry>,
397 >,
398 }
399
400 impl ::std::convert::From<&ConfigProviderMetadataInfo> for ConfigProviderMetadataInfo {
401 fn from(value: &ConfigProviderMetadataInfo) -> Self {
402 value.clone()
403 }
404 }
405
406 impl ::std::default::Default for ConfigProviderMetadataInfo {
407 fn default() -> Self {
408 Self {
409 help: Default::default(),
410 system: Default::default(),
411 }
412 }
413 }
414
415 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
441 pub struct ConfigProviderMetadataSystemEntry {
442 #[serde(
443 rename = "Example",
444 default,
445 skip_serializing_if = "::std::option::Option::is_none"
446 )]
447 pub example: ::std::option::Option<::std::string::String>,
448 #[serde(
449 rename = "Help",
450 default,
451 skip_serializing_if = "::std::option::Option::is_none"
452 )]
453 pub help: ::std::option::Option<::std::string::String>,
454 #[serde(
455 rename = "ReadOnly",
456 default,
457 skip_serializing_if = "::std::option::Option::is_none"
458 )]
459 pub read_only: ::std::option::Option<bool>,
460 #[serde(
461 rename = "Type",
462 default,
463 skip_serializing_if = "::std::option::Option::is_none"
464 )]
465 pub type_: ::std::option::Option<::std::string::String>,
466 }
467
468 impl ::std::convert::From<&ConfigProviderMetadataSystemEntry>
469 for ConfigProviderMetadataSystemEntry
470 {
471 fn from(value: &ConfigProviderMetadataSystemEntry) -> Self {
472 value.clone()
473 }
474 }
475
476 impl ::std::default::Default for ConfigProviderMetadataSystemEntry {
477 fn default() -> Self {
478 Self {
479 example: Default::default(),
480 help: Default::default(),
481 read_only: Default::default(),
482 type_: Default::default(),
483 }
484 }
485 }
486
487 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
575 pub struct ConfigProviderOption {
576 #[serde(rename = "Advanced")]
577 pub advanced: bool,
578 #[serde(rename = "Default")]
579 pub default: ConfigProviderOptionAny,
580 #[serde(rename = "DefaultStr")]
581 pub default_str: ::std::string::String,
582 #[serde(
583 rename = "Examples",
584 default,
585 skip_serializing_if = "::std::vec::Vec::is_empty"
586 )]
587 pub examples: ::std::vec::Vec<ConfigProviderOptionExample>,
588 #[serde(rename = "Exclusive")]
589 pub exclusive: bool,
590 #[serde(rename = "FieldName")]
591 pub field_name: ::std::string::String,
592 #[serde(rename = "Help")]
593 pub help: ::std::string::String,
594 #[serde(rename = "Hide")]
595 pub hide: f64,
596 #[serde(rename = "IsPassword")]
597 pub is_password: bool,
598 #[serde(rename = "Name")]
599 pub name: ::std::string::String,
600 #[serde(rename = "NoPrefix")]
601 pub no_prefix: bool,
602 #[serde(
603 rename = "Provider",
604 default,
605 skip_serializing_if = "::std::option::Option::is_none"
606 )]
607 pub provider: ::std::option::Option<::std::string::String>,
608 #[serde(rename = "Required")]
609 pub required: bool,
610 #[serde(rename = "Sensitive")]
611 pub sensitive: bool,
612 #[serde(
613 rename = "ShortOpt",
614 default,
615 skip_serializing_if = "::std::option::Option::is_none"
616 )]
617 pub short_opt: ::std::option::Option<::std::string::String>,
618 #[serde(rename = "Type")]
619 pub type_: ConfigProviderOptionType,
620 #[serde(rename = "Value")]
621 pub value: ConfigProviderOptionAny,
622 #[serde(rename = "ValueStr")]
623 pub value_str: ::std::string::String,
624 }
625
626 impl ::std::convert::From<&ConfigProviderOption> for ConfigProviderOption {
627 fn from(value: &ConfigProviderOption) -> Self {
628 value.clone()
629 }
630 }
631
632 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
648 #[serde(transparent)]
649 pub struct ConfigProviderOptionAny(
650 pub ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
651 );
652 impl ::std::ops::Deref for ConfigProviderOptionAny {
653 type Target =
654 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>;
655 fn deref(
656 &self,
657 ) -> &::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>
658 {
659 &self.0
660 }
661 }
662
663 impl ::std::convert::From<ConfigProviderOptionAny>
664 for ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>
665 {
666 fn from(value: ConfigProviderOptionAny) -> Self {
667 value.0
668 }
669 }
670
671 impl ::std::convert::From<&ConfigProviderOptionAny> for ConfigProviderOptionAny {
672 fn from(value: &ConfigProviderOptionAny) -> Self {
673 value.clone()
674 }
675 }
676
677 impl
678 ::std::convert::From<
679 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
680 > for ConfigProviderOptionAny
681 {
682 fn from(
683 value: ::std::option::Option<
684 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
685 >,
686 ) -> Self {
687 Self(value)
688 }
689 }
690
691 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
718 pub struct ConfigProviderOptionExample {
719 #[serde(rename = "Help")]
720 pub help: ::std::string::String,
721 #[serde(
722 rename = "Provider",
723 default,
724 skip_serializing_if = "::std::option::Option::is_none"
725 )]
726 pub provider: ::std::option::Option<::std::string::String>,
727 #[serde(rename = "Value")]
728 pub value: ::std::string::String,
729 }
730
731 impl ::std::convert::From<&ConfigProviderOptionExample> for ConfigProviderOptionExample {
732 fn from(value: &ConfigProviderOptionExample) -> Self {
733 value.clone()
734 }
735 }
736
737 #[derive(
763 :: serde :: Deserialize,
764 :: serde :: Serialize,
765 Clone,
766 Copy,
767 Debug,
768 Eq,
769 Hash,
770 Ord,
771 PartialEq,
772 PartialOrd,
773 )]
774 pub enum ConfigProviderOptionType {
775 Bits,
776 #[serde(rename = "bool")]
777 Bool,
778 CommaSepList,
779 Duration,
780 Encoding,
781 #[serde(rename = "int")]
782 Int,
783 #[serde(rename = "mtime|atime|btime|ctime")]
784 MtimeAtimeBtimeCtime,
785 SizeSuffix,
786 SpaceSepList,
787 #[serde(rename = "string")]
788 String,
789 #[serde(rename = "stringArray")]
790 StringArray,
791 Time,
792 Tristate,
793 }
794
795 impl ::std::convert::From<&Self> for ConfigProviderOptionType {
796 fn from(value: &ConfigProviderOptionType) -> Self {
797 value.clone()
798 }
799 }
800
801 impl ::std::fmt::Display for ConfigProviderOptionType {
802 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
803 match *self {
804 Self::Bits => f.write_str("Bits"),
805 Self::Bool => f.write_str("bool"),
806 Self::CommaSepList => f.write_str("CommaSepList"),
807 Self::Duration => f.write_str("Duration"),
808 Self::Encoding => f.write_str("Encoding"),
809 Self::Int => f.write_str("int"),
810 Self::MtimeAtimeBtimeCtime => f.write_str("mtime|atime|btime|ctime"),
811 Self::SizeSuffix => f.write_str("SizeSuffix"),
812 Self::SpaceSepList => f.write_str("SpaceSepList"),
813 Self::String => f.write_str("string"),
814 Self::StringArray => f.write_str("stringArray"),
815 Self::Time => f.write_str("Time"),
816 Self::Tristate => f.write_str("Tristate"),
817 }
818 }
819 }
820
821 impl ::std::str::FromStr for ConfigProviderOptionType {
822 type Err = self::error::ConversionError;
823 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
824 match value {
825 "Bits" => Ok(Self::Bits),
826 "bool" => Ok(Self::Bool),
827 "CommaSepList" => Ok(Self::CommaSepList),
828 "Duration" => Ok(Self::Duration),
829 "Encoding" => Ok(Self::Encoding),
830 "int" => Ok(Self::Int),
831 "mtime|atime|btime|ctime" => Ok(Self::MtimeAtimeBtimeCtime),
832 "SizeSuffix" => Ok(Self::SizeSuffix),
833 "SpaceSepList" => Ok(Self::SpaceSepList),
834 "string" => Ok(Self::String),
835 "stringArray" => Ok(Self::StringArray),
836 "Time" => Ok(Self::Time),
837 "Tristate" => Ok(Self::Tristate),
838 _ => Err("invalid value".into()),
839 }
840 }
841 }
842
843 impl ::std::convert::TryFrom<&str> for ConfigProviderOptionType {
844 type Error = self::error::ConversionError;
845 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
846 value.parse()
847 }
848 }
849
850 impl ::std::convert::TryFrom<&::std::string::String> for ConfigProviderOptionType {
851 type Error = self::error::ConversionError;
852 fn try_from(
853 value: &::std::string::String,
854 ) -> ::std::result::Result<Self, self::error::ConversionError> {
855 value.parse()
856 }
857 }
858
859 impl ::std::convert::TryFrom<::std::string::String> for ConfigProviderOptionType {
860 type Error = self::error::ConversionError;
861 fn try_from(
862 value: ::std::string::String,
863 ) -> ::std::result::Result<Self, self::error::ConversionError> {
864 value.parse()
865 }
866 }
867
868 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
891 pub struct ConfigProvidersResponse {
892 pub providers: ::std::vec::Vec<ConfigProvider>,
893 }
894
895 impl ::std::convert::From<&ConfigProvidersResponse> for ConfigProvidersResponse {
896 fn from(value: &ConfigProvidersResponse) -> Self {
897 value.clone()
898 }
899 }
900
901 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
932 pub struct CoreBwlimitResponse {
933 #[serde(rename = "bytesPerSecond")]
934 pub bytes_per_second: i64,
935 #[serde(rename = "bytesPerSecondRx")]
936 pub bytes_per_second_rx: i64,
937 #[serde(rename = "bytesPerSecondTx")]
938 pub bytes_per_second_tx: i64,
939 pub rate: ::std::string::String,
940 }
941
942 impl ::std::convert::From<&CoreBwlimitResponse> for CoreBwlimitResponse {
943 fn from(value: &CoreBwlimitResponse) -> Self {
944 value.clone()
945 }
946 }
947
948 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
979 pub struct CoreCommandResponse {
980 pub error: bool,
981 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
982 pub result: ::std::option::Option<::std::string::String>,
983 #[serde(
984 rename = "returnType",
985 default,
986 skip_serializing_if = "::std::option::Option::is_none"
987 )]
988 pub return_type: ::std::option::Option<::std::string::String>,
989 }
990
991 impl ::std::convert::From<&CoreCommandResponse> for CoreCommandResponse {
992 fn from(value: &CoreCommandResponse) -> Self {
993 value.clone()
994 }
995 }
996
997 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1036 pub struct CoreDuResponse {
1037 pub dir: ::std::string::String,
1038 pub info: CoreDuResponseInfo,
1039 }
1040
1041 impl ::std::convert::From<&CoreDuResponse> for CoreDuResponse {
1042 fn from(value: &CoreDuResponse) -> Self {
1043 value.clone()
1044 }
1045 }
1046
1047 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1074 pub struct CoreDuResponseInfo {
1075 #[serde(rename = "Available")]
1076 pub available: i64,
1077 #[serde(rename = "Free")]
1078 pub free: i64,
1079 #[serde(rename = "Total")]
1080 pub total: i64,
1081 }
1082
1083 impl ::std::convert::From<&CoreDuResponseInfo> for CoreDuResponseInfo {
1084 fn from(value: &CoreDuResponseInfo) -> Self {
1085 value.clone()
1086 }
1087 }
1088
1089 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1111 pub struct CoreGroupListResponse {
1112 pub groups: ::std::vec::Vec<::std::string::String>,
1113 }
1114
1115 impl ::std::convert::From<&CoreGroupListResponse> for CoreGroupListResponse {
1116 fn from(value: &CoreGroupListResponse) -> Self {
1117 value.clone()
1118 }
1119 }
1120
1121 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1140 pub struct CoreObscureResponse {
1141 pub obscured: ::std::string::String,
1142 }
1143
1144 impl ::std::convert::From<&CoreObscureResponse> for CoreObscureResponse {
1145 fn from(value: &CoreObscureResponse) -> Self {
1146 value.clone()
1147 }
1148 }
1149
1150 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1169 pub struct CorePidResponse {
1170 pub pid: i64,
1171 }
1172
1173 impl ::std::convert::From<&CorePidResponse> for CorePidResponse {
1174 fn from(value: &CorePidResponse) -> Self {
1175 value.clone()
1176 }
1177 }
1178
1179 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1208 pub struct CoreStatsChecking {
1209 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1211 pub group: ::std::option::Option<::std::string::String>,
1212 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1214 pub name: ::std::option::Option<::std::string::String>,
1215 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1216 pub size: ::std::option::Option<f64>,
1217 }
1218
1219 impl ::std::convert::From<&CoreStatsChecking> for CoreStatsChecking {
1220 fn from(value: &CoreStatsChecking) -> Self {
1221 value.clone()
1222 }
1223 }
1224
1225 impl ::std::default::Default for CoreStatsChecking {
1226 fn default() -> Self {
1227 Self {
1228 group: Default::default(),
1229 name: Default::default(),
1230 size: Default::default(),
1231 }
1232 }
1233 }
1234
1235 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1354 pub struct CoreStatsResponse {
1355 pub bytes: f64,
1356 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1358 pub checking: ::std::vec::Vec<CoreStatsChecking>,
1359 pub checks: f64,
1360 #[serde(rename = "deletedDirs")]
1361 pub deleted_dirs: f64,
1362 pub deletes: f64,
1363 #[serde(rename = "elapsedTime")]
1364 pub elapsed_time: f64,
1365 pub errors: f64,
1366 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1367 pub eta: ::std::option::Option<f64>,
1368 #[serde(rename = "fatalError")]
1369 pub fatal_error: bool,
1370 #[serde(
1371 rename = "lastError",
1372 default,
1373 skip_serializing_if = "::std::option::Option::is_none"
1374 )]
1375 pub last_error: ::std::option::Option<::std::string::String>,
1376 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1377 pub listed: ::std::option::Option<f64>,
1378 pub renames: f64,
1379 #[serde(rename = "retryError")]
1380 pub retry_error: bool,
1381 #[serde(rename = "serverSideCopies")]
1382 pub server_side_copies: f64,
1383 #[serde(rename = "serverSideCopyBytes")]
1384 pub server_side_copy_bytes: f64,
1385 #[serde(rename = "serverSideMoveBytes")]
1386 pub server_side_move_bytes: f64,
1387 #[serde(rename = "serverSideMoves")]
1388 pub server_side_moves: f64,
1389 pub speed: f64,
1390 #[serde(rename = "totalBytes")]
1391 pub total_bytes: f64,
1392 #[serde(rename = "totalChecks")]
1393 pub total_checks: f64,
1394 #[serde(rename = "totalTransfers")]
1395 pub total_transfers: f64,
1396 #[serde(rename = "transferTime")]
1397 pub transfer_time: f64,
1398 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1400 pub transferring: ::std::vec::Vec<CoreStatsTransfer>,
1401 pub transfers: f64,
1402 }
1403
1404 impl ::std::convert::From<&CoreStatsResponse> for CoreStatsResponse {
1405 fn from(value: &CoreStatsResponse) -> Self {
1406 value.clone()
1407 }
1408 }
1409
1410 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1461 pub struct CoreStatsTransfer {
1462 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1463 pub bytes: ::std::option::Option<f64>,
1464 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1466 pub eta: ::std::option::Option<f64>,
1467 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1469 pub group: ::std::option::Option<::std::string::String>,
1470 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1472 pub name: ::std::option::Option<::std::string::String>,
1473 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1474 pub percentage: ::std::option::Option<f64>,
1475 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1476 pub size: ::std::option::Option<f64>,
1477 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1478 pub speed: ::std::option::Option<f64>,
1479 #[serde(
1480 rename = "speedAvg",
1481 default,
1482 skip_serializing_if = "::std::option::Option::is_none"
1483 )]
1484 pub speed_avg: ::std::option::Option<f64>,
1485 }
1486
1487 impl ::std::convert::From<&CoreStatsTransfer> for CoreStatsTransfer {
1488 fn from(value: &CoreStatsTransfer) -> Self {
1489 value.clone()
1490 }
1491 }
1492
1493 impl ::std::default::Default for CoreStatsTransfer {
1494 fn default() -> Self {
1495 Self {
1496 bytes: Default::default(),
1497 eta: Default::default(),
1498 group: Default::default(),
1499 name: Default::default(),
1500 percentage: Default::default(),
1501 size: Default::default(),
1502 speed: Default::default(),
1503 speed_avg: Default::default(),
1504 }
1505 }
1506 }
1507
1508 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1605 pub struct CoreTransferredResponse {
1606 pub transferred: ::std::vec::Vec<CoreTransferredResponseTransferredItem>,
1607 }
1608
1609 impl ::std::convert::From<&CoreTransferredResponse> for CoreTransferredResponse {
1610 fn from(value: &CoreTransferredResponse) -> Self {
1611 value.clone()
1612 }
1613 }
1614
1615 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1697 pub struct CoreTransferredResponseTransferredItem {
1698 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1699 pub bytes: ::std::option::Option<i64>,
1700 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1701 pub checked: ::std::option::Option<bool>,
1702 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1704 pub completed_at: ::std::option::Option<::std::string::String>,
1705 #[serde(
1707 rename = "dstFs",
1708 default,
1709 skip_serializing_if = "::std::option::Option::is_none"
1710 )]
1711 pub dst_fs: ::std::option::Option<::std::string::String>,
1712 #[serde(
1714 rename = "dstRemote",
1715 default,
1716 skip_serializing_if = "::std::option::Option::is_none"
1717 )]
1718 pub dst_remote: ::std::option::Option<::std::string::String>,
1719 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1720 pub error: ::std::option::Option<::std::string::String>,
1721 pub group: ::std::string::String,
1723 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1724 pub jobid: ::std::option::Option<i64>,
1725 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1726 pub name: ::std::option::Option<::std::string::String>,
1727 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1728 pub size: ::std::option::Option<i64>,
1729 #[serde(
1731 rename = "srcFs",
1732 default,
1733 skip_serializing_if = "::std::option::Option::is_none"
1734 )]
1735 pub src_fs: ::std::option::Option<::std::string::String>,
1736 #[serde(
1738 rename = "srcRemote",
1739 default,
1740 skip_serializing_if = "::std::option::Option::is_none"
1741 )]
1742 pub src_remote: ::std::option::Option<::std::string::String>,
1743 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1745 pub started_at: ::std::option::Option<::std::string::String>,
1746 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1747 pub timestamp: ::std::option::Option<i64>,
1748 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1749 pub what: ::std::option::Option<CoreTransferredResponseTransferredItemWhat>,
1750 }
1751
1752 impl ::std::convert::From<&CoreTransferredResponseTransferredItem>
1753 for CoreTransferredResponseTransferredItem
1754 {
1755 fn from(value: &CoreTransferredResponseTransferredItem) -> Self {
1756 value.clone()
1757 }
1758 }
1759
1760 #[derive(
1782 :: serde :: Deserialize,
1783 :: serde :: Serialize,
1784 Clone,
1785 Copy,
1786 Debug,
1787 Eq,
1788 Hash,
1789 Ord,
1790 PartialEq,
1791 PartialOrd,
1792 )]
1793 pub enum CoreTransferredResponseTransferredItemWhat {
1794 #[serde(rename = "transferring")]
1795 Transferring,
1796 #[serde(rename = "deleting")]
1797 Deleting,
1798 #[serde(rename = "checking")]
1799 Checking,
1800 #[serde(rename = "importing")]
1801 Importing,
1802 #[serde(rename = "hashing")]
1803 Hashing,
1804 #[serde(rename = "merging")]
1805 Merging,
1806 #[serde(rename = "listing")]
1807 Listing,
1808 #[serde(rename = "moving")]
1809 Moving,
1810 #[serde(rename = "renaming")]
1811 Renaming,
1812 }
1813
1814 impl ::std::convert::From<&Self> for CoreTransferredResponseTransferredItemWhat {
1815 fn from(value: &CoreTransferredResponseTransferredItemWhat) -> Self {
1816 value.clone()
1817 }
1818 }
1819
1820 impl ::std::fmt::Display for CoreTransferredResponseTransferredItemWhat {
1821 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1822 match *self {
1823 Self::Transferring => f.write_str("transferring"),
1824 Self::Deleting => f.write_str("deleting"),
1825 Self::Checking => f.write_str("checking"),
1826 Self::Importing => f.write_str("importing"),
1827 Self::Hashing => f.write_str("hashing"),
1828 Self::Merging => f.write_str("merging"),
1829 Self::Listing => f.write_str("listing"),
1830 Self::Moving => f.write_str("moving"),
1831 Self::Renaming => f.write_str("renaming"),
1832 }
1833 }
1834 }
1835
1836 impl ::std::str::FromStr for CoreTransferredResponseTransferredItemWhat {
1837 type Err = self::error::ConversionError;
1838 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1839 match value {
1840 "transferring" => Ok(Self::Transferring),
1841 "deleting" => Ok(Self::Deleting),
1842 "checking" => Ok(Self::Checking),
1843 "importing" => Ok(Self::Importing),
1844 "hashing" => Ok(Self::Hashing),
1845 "merging" => Ok(Self::Merging),
1846 "listing" => Ok(Self::Listing),
1847 "moving" => Ok(Self::Moving),
1848 "renaming" => Ok(Self::Renaming),
1849 _ => Err("invalid value".into()),
1850 }
1851 }
1852 }
1853
1854 impl ::std::convert::TryFrom<&str> for CoreTransferredResponseTransferredItemWhat {
1855 type Error = self::error::ConversionError;
1856 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1857 value.parse()
1858 }
1859 }
1860
1861 impl ::std::convert::TryFrom<&::std::string::String>
1862 for CoreTransferredResponseTransferredItemWhat
1863 {
1864 type Error = self::error::ConversionError;
1865 fn try_from(
1866 value: &::std::string::String,
1867 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1868 value.parse()
1869 }
1870 }
1871
1872 impl ::std::convert::TryFrom<::std::string::String> for CoreTransferredResponseTransferredItemWhat {
1873 type Error = self::error::ConversionError;
1874 fn try_from(
1875 value: ::std::string::String,
1876 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1877 value.parse()
1878 }
1879 }
1880
1881 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1959 pub struct CoreVersionResponse {
1960 pub arch: ::std::string::String,
1962 pub decomposed: ::std::vec::Vec<f64>,
1964 #[serde(rename = "goTags")]
1966 pub go_tags: ::std::string::String,
1967 #[serde(rename = "goVersion")]
1969 pub go_version: ::std::string::String,
1970 #[serde(rename = "isBeta")]
1972 pub is_beta: bool,
1973 #[serde(rename = "isGit")]
1975 pub is_git: bool,
1976 pub linking: ::std::string::String,
1978 pub os: ::std::string::String,
1980 #[serde(
1982 rename = "osArch",
1983 default,
1984 skip_serializing_if = "::std::option::Option::is_none"
1985 )]
1986 pub os_arch: ::std::option::Option<::std::string::String>,
1987 #[serde(
1989 rename = "osKernel",
1990 default,
1991 skip_serializing_if = "::std::option::Option::is_none"
1992 )]
1993 pub os_kernel: ::std::option::Option<::std::string::String>,
1994 #[serde(
1996 rename = "osVersion",
1997 default,
1998 skip_serializing_if = "::std::option::Option::is_none"
1999 )]
2000 pub os_version: ::std::option::Option<::std::string::String>,
2001 pub version: ::std::string::String,
2003 }
2004
2005 impl ::std::convert::From<&CoreVersionResponse> for CoreVersionResponse {
2006 fn from(value: &CoreVersionResponse) -> Self {
2007 value.clone()
2008 }
2009 }
2010
2011 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2030 pub struct DebugSetGcPercentResponse {
2031 #[serde(rename = "existing-gc-percent")]
2032 pub existing_gc_percent: i64,
2033 }
2034
2035 impl ::std::convert::From<&DebugSetGcPercentResponse> for DebugSetGcPercentResponse {
2036 fn from(value: &DebugSetGcPercentResponse) -> Self {
2037 value.clone()
2038 }
2039 }
2040
2041 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2060 pub struct DebugSetMutexProfileFractionResponse {
2061 #[serde(rename = "previousRate")]
2062 pub previous_rate: i64,
2063 }
2064
2065 impl ::std::convert::From<&DebugSetMutexProfileFractionResponse>
2066 for DebugSetMutexProfileFractionResponse
2067 {
2068 fn from(value: &DebugSetMutexProfileFractionResponse) -> Self {
2069 value.clone()
2070 }
2071 }
2072
2073 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2092 pub struct DebugSetSoftMemoryLimitResponse {
2093 #[serde(rename = "existing-mem-limit")]
2094 pub existing_mem_limit: i64,
2095 }
2096
2097 impl ::std::convert::From<&DebugSetSoftMemoryLimitResponse> for DebugSetSoftMemoryLimitResponse {
2098 fn from(value: &DebugSetSoftMemoryLimitResponse) -> Self {
2099 value.clone()
2100 }
2101 }
2102
2103 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2122 pub struct FscacheEntriesResponse {
2123 pub entries: i64,
2124 }
2125
2126 impl ::std::convert::From<&FscacheEntriesResponse> for FscacheEntriesResponse {
2127 fn from(value: &FscacheEntriesResponse) -> Self {
2128 value.clone()
2129 }
2130 }
2131
2132 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2153 pub struct JobBatchInputsItem {
2154 #[serde(rename = "_path")]
2156 pub path: ::std::string::String,
2157 }
2158
2159 impl ::std::convert::From<&JobBatchInputsItem> for JobBatchInputsItem {
2160 fn from(value: &JobBatchInputsItem) -> Self {
2161 value.clone()
2162 }
2163 }
2164
2165 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2206 pub struct JobBatchRequest {
2207 #[serde(
2209 rename = "_async",
2210 default,
2211 skip_serializing_if = "::std::option::Option::is_none"
2212 )]
2213 pub async_: ::std::option::Option<bool>,
2214 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2217 pub concurrency: ::std::option::Option<i64>,
2218 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2220 pub inputs: ::std::vec::Vec<JobBatchRequestInputsItem>,
2221 }
2222
2223 impl ::std::convert::From<&JobBatchRequest> for JobBatchRequest {
2224 fn from(value: &JobBatchRequest) -> Self {
2225 value.clone()
2226 }
2227 }
2228
2229 impl ::std::default::Default for JobBatchRequest {
2230 fn default() -> Self {
2231 Self {
2232 async_: Default::default(),
2233 concurrency: Default::default(),
2234 inputs: Default::default(),
2235 }
2236 }
2237 }
2238
2239 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2260 pub struct JobBatchRequestInputsItem {
2261 #[serde(rename = "_path")]
2263 pub path: ::std::string::String,
2264 }
2265
2266 impl ::std::convert::From<&JobBatchRequestInputsItem> for JobBatchRequestInputsItem {
2267 fn from(value: &JobBatchRequestInputsItem) -> Self {
2268 value.clone()
2269 }
2270 }
2271
2272 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2297 pub struct JobBatchResponse {
2298 #[serde(rename = "executeId")]
2300 pub execute_id: ::std::string::String,
2301 pub jobid: i64,
2303 }
2304
2305 impl ::std::convert::From<&JobBatchResponse> for JobBatchResponse {
2306 fn from(value: &JobBatchResponse) -> Self {
2307 value.clone()
2308 }
2309 }
2310
2311 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2356 pub struct JobListResponse {
2357 #[serde(rename = "executeId")]
2359 pub execute_id: ::std::string::String,
2360 #[serde(rename = "finishedIds")]
2362 pub finished_ids: ::std::vec::Vec<i64>,
2363 pub jobids: ::std::vec::Vec<f64>,
2365 #[serde(rename = "runningIds")]
2367 pub running_ids: ::std::vec::Vec<i64>,
2368 }
2369
2370 impl ::std::convert::From<&JobListResponse> for JobListResponse {
2371 fn from(value: &JobListResponse) -> Self {
2372 value.clone()
2373 }
2374 }
2375
2376 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2435 pub struct JobStatusResponse {
2436 pub duration: f64,
2437 #[serde(rename = "endTime")]
2440 pub end_time: ::std::string::String,
2441 pub error: ::std::string::String,
2443 pub finished: bool,
2445 pub id: f64,
2446 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2448 pub output: ::std::option::Option<::serde_json::Value>,
2449 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2451 pub progress: ::std::option::Option<::serde_json::Value>,
2452 #[serde(rename = "startTime")]
2455 pub start_time: ::std::string::String,
2456 pub success: bool,
2458 }
2459
2460 impl ::std::convert::From<&JobStatusResponse> for JobStatusResponse {
2461 fn from(value: &JobStatusResponse) -> Self {
2462 value.clone()
2463 }
2464 }
2465
2466 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2506 pub struct MountListmountsResponse {
2507 #[serde(rename = "mountPoints")]
2508 pub mount_points: ::std::vec::Vec<MountListmountsResponseMountPointsItem>,
2509 }
2510
2511 impl ::std::convert::From<&MountListmountsResponse> for MountListmountsResponse {
2512 fn from(value: &MountListmountsResponse) -> Self {
2513 value.clone()
2514 }
2515 }
2516
2517 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2546 #[serde(deny_unknown_fields)]
2547 pub struct MountListmountsResponseMountPointsItem {
2548 #[serde(rename = "Fs")]
2549 pub fs: ::std::string::String,
2550 #[serde(rename = "MountPoint")]
2551 pub mount_point: ::std::string::String,
2552 #[serde(rename = "MountedOn")]
2553 pub mounted_on: ::chrono::DateTime<::chrono::offset::Utc>,
2554 }
2555
2556 impl ::std::convert::From<&MountListmountsResponseMountPointsItem>
2557 for MountListmountsResponseMountPointsItem
2558 {
2559 fn from(value: &MountListmountsResponseMountPointsItem) -> Self {
2560 value.clone()
2561 }
2562 }
2563
2564 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2586 pub struct MountTypesResponse {
2587 #[serde(rename = "mountTypes")]
2588 pub mount_types: ::std::vec::Vec<::std::string::String>,
2589 }
2590
2591 impl ::std::convert::From<&MountTypesResponse> for MountTypesResponse {
2592 fn from(value: &MountTypesResponse) -> Self {
2593 value.clone()
2594 }
2595 }
2596
2597 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2633 pub struct OperationsAboutResponse {
2634 pub free: f64,
2635 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2636 pub objects: ::std::option::Option<f64>,
2637 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2638 pub other: ::std::option::Option<f64>,
2639 pub total: f64,
2640 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2641 pub trashed: ::std::option::Option<f64>,
2642 pub used: f64,
2643 }
2644
2645 impl ::std::convert::From<&OperationsAboutResponse> for OperationsAboutResponse {
2646 fn from(value: &OperationsAboutResponse) -> Self {
2647 value.clone()
2648 }
2649 }
2650
2651 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2728 pub struct OperationsCheckResponse {
2729 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2731 pub combined: ::std::vec::Vec<::std::string::String>,
2732 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2734 pub differ: ::std::vec::Vec<::std::string::String>,
2735 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2737 pub error: ::std::vec::Vec<::std::string::String>,
2738 #[serde(
2740 rename = "hashType",
2741 default,
2742 skip_serializing_if = "::std::option::Option::is_none"
2743 )]
2744 pub hash_type: ::std::option::Option<::std::string::String>,
2745 #[serde(
2747 rename = "match",
2748 default,
2749 skip_serializing_if = "::std::vec::Vec::is_empty"
2750 )]
2751 pub match_: ::std::vec::Vec<::std::string::String>,
2752 #[serde(
2754 rename = "missingOnDst",
2755 default,
2756 skip_serializing_if = "::std::vec::Vec::is_empty"
2757 )]
2758 pub missing_on_dst: ::std::vec::Vec<::std::string::String>,
2759 #[serde(
2761 rename = "missingOnSrc",
2762 default,
2763 skip_serializing_if = "::std::vec::Vec::is_empty"
2764 )]
2765 pub missing_on_src: ::std::vec::Vec<::std::string::String>,
2766 pub status: ::std::string::String,
2768 pub success: bool,
2770 }
2771
2772 impl ::std::convert::From<&OperationsCheckResponse> for OperationsCheckResponse {
2773 fn from(value: &OperationsCheckResponse) -> Self {
2774 value.clone()
2775 }
2776 }
2777
2778 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2830 pub struct OperationsFsinfoResponse {
2831 #[serde(rename = "Features")]
2832 pub features: ::std::collections::HashMap<::std::string::String, bool>,
2833 #[serde(rename = "Hashes")]
2834 pub hashes: ::std::vec::Vec<::std::string::String>,
2835 #[serde(
2836 rename = "MetadataInfo",
2837 default,
2838 skip_serializing_if = "::std::option::Option::is_none"
2839 )]
2840 pub metadata_info:
2841 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
2842 #[serde(rename = "Name")]
2843 pub name: ::std::string::String,
2844 #[serde(rename = "Precision")]
2845 pub precision: f64,
2846 #[serde(rename = "Root")]
2847 pub root: ::std::string::String,
2848 #[serde(rename = "String")]
2849 pub string: ::std::string::String,
2850 }
2851
2852 impl ::std::convert::From<&OperationsFsinfoResponse> for OperationsFsinfoResponse {
2853 fn from(value: &OperationsFsinfoResponse) -> Self {
2854 value.clone()
2855 }
2856 }
2857
2858 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2884 pub struct OperationsHashsumResponse {
2885 #[serde(rename = "hashType")]
2886 pub hash_type: ::std::string::String,
2887 pub hashsum: ::std::vec::Vec<::std::string::String>,
2888 }
2889
2890 impl ::std::convert::From<&OperationsHashsumResponse> for OperationsHashsumResponse {
2891 fn from(value: &OperationsHashsumResponse) -> Self {
2892 value.clone()
2893 }
2894 }
2895
2896 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2991 pub struct OperationsListResponse {
2992 pub list: ::std::vec::Vec<OperationsListResponseListItem>,
2995 }
2996
2997 impl ::std::convert::From<&OperationsListResponse> for OperationsListResponse {
2998 fn from(value: &OperationsListResponse) -> Self {
2999 value.clone()
3000 }
3001 }
3002
3003 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3083 pub struct OperationsListResponseListItem {
3084 #[serde(
3086 rename = "Encrypted",
3087 default,
3088 skip_serializing_if = "::std::option::Option::is_none"
3089 )]
3090 pub encrypted: ::std::option::Option<::std::string::String>,
3091 #[serde(
3093 rename = "EncryptedPath",
3094 default,
3095 skip_serializing_if = "::std::option::Option::is_none"
3096 )]
3097 pub encrypted_path: ::std::option::Option<::std::string::String>,
3098 #[serde(
3100 rename = "Hashes",
3101 default,
3102 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
3103 )]
3104 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
3105 #[serde(
3107 rename = "ID",
3108 default,
3109 skip_serializing_if = "::std::option::Option::is_none"
3110 )]
3111 pub id: ::std::option::Option<::std::string::String>,
3112 #[serde(
3114 rename = "IsBucket",
3115 default,
3116 skip_serializing_if = "::std::option::Option::is_none"
3117 )]
3118 pub is_bucket: ::std::option::Option<bool>,
3119 #[serde(rename = "IsDir")]
3121 pub is_dir: bool,
3122 #[serde(
3124 rename = "Metadata",
3125 default,
3126 skip_serializing_if = "::serde_json::Map::is_empty"
3127 )]
3128 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3129 #[serde(
3131 rename = "MimeType",
3132 default,
3133 skip_serializing_if = "::std::option::Option::is_none"
3134 )]
3135 pub mime_type: ::std::option::Option<::std::string::String>,
3136 #[serde(
3138 rename = "ModTime",
3139 default,
3140 skip_serializing_if = "::std::option::Option::is_none"
3141 )]
3142 pub mod_time: ::std::option::Option<::std::string::String>,
3143 #[serde(rename = "Name")]
3145 pub name: ::std::string::String,
3146 #[serde(
3148 rename = "OrigID",
3149 default,
3150 skip_serializing_if = "::std::option::Option::is_none"
3151 )]
3152 pub orig_id: ::std::option::Option<::std::string::String>,
3153 #[serde(rename = "Path")]
3155 pub path: ::std::string::String,
3156 #[serde(
3157 rename = "Size",
3158 default,
3159 skip_serializing_if = "::std::option::Option::is_none"
3160 )]
3161 pub size: ::std::option::Option<f64>,
3162 #[serde(
3164 rename = "Tier",
3165 default,
3166 skip_serializing_if = "::std::option::Option::is_none"
3167 )]
3168 pub tier: ::std::option::Option<::std::string::String>,
3169 }
3170
3171 impl ::std::convert::From<&OperationsListResponseListItem> for OperationsListResponseListItem {
3172 fn from(value: &OperationsListResponseListItem) -> Self {
3173 value.clone()
3174 }
3175 }
3176
3177 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3197 pub struct OperationsPubliclinkResponse {
3198 pub url: ::std::string::String,
3199 }
3200
3201 impl ::std::convert::From<&OperationsPubliclinkResponse> for OperationsPubliclinkResponse {
3202 fn from(value: &OperationsPubliclinkResponse) -> Self {
3203 value.clone()
3204 }
3205 }
3206
3207 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3234 pub struct OperationsSizeResponse {
3235 pub bytes: f64,
3236 pub count: i64,
3237 pub sizeless: i64,
3238 }
3239
3240 impl ::std::convert::From<&OperationsSizeResponse> for OperationsSizeResponse {
3241 fn from(value: &OperationsSizeResponse) -> Self {
3242 value.clone()
3243 }
3244 }
3245
3246 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3342 pub struct OperationsStatResponse {
3343 pub item: ::std::option::Option<OperationsStatResponseItem>,
3344 }
3345
3346 impl ::std::convert::From<&OperationsStatResponse> for OperationsStatResponse {
3347 fn from(value: &OperationsStatResponse) -> Self {
3348 value.clone()
3349 }
3350 }
3351
3352 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3435 pub struct OperationsStatResponseItem {
3436 #[serde(
3438 rename = "Encrypted",
3439 default,
3440 skip_serializing_if = "::std::option::Option::is_none"
3441 )]
3442 pub encrypted: ::std::option::Option<::std::string::String>,
3443 #[serde(
3445 rename = "EncryptedPath",
3446 default,
3447 skip_serializing_if = "::std::option::Option::is_none"
3448 )]
3449 pub encrypted_path: ::std::option::Option<::std::string::String>,
3450 #[serde(
3452 rename = "Hashes",
3453 default,
3454 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
3455 )]
3456 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
3457 #[serde(
3459 rename = "ID",
3460 default,
3461 skip_serializing_if = "::std::option::Option::is_none"
3462 )]
3463 pub id: ::std::option::Option<::std::string::String>,
3464 #[serde(
3466 rename = "IsBucket",
3467 default,
3468 skip_serializing_if = "::std::option::Option::is_none"
3469 )]
3470 pub is_bucket: ::std::option::Option<bool>,
3471 #[serde(rename = "IsDir")]
3473 pub is_dir: bool,
3474 #[serde(
3476 rename = "Metadata",
3477 default,
3478 skip_serializing_if = "::serde_json::Map::is_empty"
3479 )]
3480 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3481 #[serde(rename = "MimeType")]
3483 pub mime_type: ::std::string::String,
3484 #[serde(rename = "ModTime")]
3486 pub mod_time: ::std::string::String,
3487 #[serde(rename = "Name")]
3489 pub name: ::std::string::String,
3490 #[serde(
3492 rename = "OrigID",
3493 default,
3494 skip_serializing_if = "::std::option::Option::is_none"
3495 )]
3496 pub orig_id: ::std::option::Option<::std::string::String>,
3497 #[serde(rename = "Path")]
3499 pub path: ::std::string::String,
3500 #[serde(rename = "Size")]
3501 pub size: f64,
3502 #[serde(
3504 rename = "Tier",
3505 default,
3506 skip_serializing_if = "::std::option::Option::is_none"
3507 )]
3508 pub tier: ::std::option::Option<::std::string::String>,
3509 }
3510
3511 impl ::std::convert::From<&OperationsStatResponseItem> for OperationsStatResponseItem {
3512 fn from(value: &OperationsStatResponseItem) -> Self {
3513 value.clone()
3514 }
3515 }
3516
3517 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3539 pub struct OptionsBlocksResponse {
3540 pub options: ::std::vec::Vec<::std::string::String>,
3541 }
3542
3543 impl ::std::convert::From<&OptionsBlocksResponse> for OptionsBlocksResponse {
3544 fn from(value: &OptionsBlocksResponse) -> Self {
3545 value.clone()
3546 }
3547 }
3548
3549 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3640 pub struct OptionsGetResponse {
3641 pub dlna: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3642 pub filter: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3643 pub ftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3644 pub http: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3645 pub log: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3646 pub main: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3647 pub mount: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3648 pub nfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3649 pub proxy: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3650 pub rc: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3651 pub restic: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3652 pub s3: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3653 pub sftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3654 pub vfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3655 pub webdav: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3656 }
3657
3658 impl ::std::convert::From<&OptionsGetResponse> for OptionsGetResponse {
3659 fn from(value: &OptionsGetResponse) -> Self {
3660 value.clone()
3661 }
3662 }
3663
3664 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3799 pub struct OptionsInfoOption {
3800 #[serde(rename = "Advanced")]
3801 pub advanced: bool,
3802 #[serde(rename = "Default")]
3804 pub default: OptionsInfoOptionDefault,
3805 #[serde(rename = "DefaultStr")]
3806 pub default_str: ::std::string::String,
3807 #[serde(
3808 rename = "Examples",
3809 default,
3810 skip_serializing_if = "::std::vec::Vec::is_empty"
3811 )]
3812 pub examples: ::std::vec::Vec<OptionsInfoOptionExample>,
3813 #[serde(rename = "Exclusive")]
3814 pub exclusive: bool,
3815 #[serde(rename = "FieldName")]
3816 pub field_name: ::std::string::String,
3817 #[serde(
3818 rename = "Groups",
3819 default,
3820 skip_serializing_if = "::std::option::Option::is_none"
3821 )]
3822 pub groups: ::std::option::Option<::std::string::String>,
3823 #[serde(rename = "Help")]
3824 pub help: ::std::string::String,
3825 #[serde(rename = "Hide")]
3826 pub hide: i64,
3827 #[serde(rename = "IsPassword")]
3828 pub is_password: bool,
3829 #[serde(rename = "Name")]
3830 pub name: ::std::string::String,
3831 #[serde(rename = "NoPrefix")]
3832 pub no_prefix: bool,
3833 #[serde(rename = "Required")]
3834 pub required: bool,
3835 #[serde(rename = "Sensitive")]
3836 pub sensitive: bool,
3837 #[serde(
3838 rename = "ShortOpt",
3839 default,
3840 skip_serializing_if = "::std::option::Option::is_none"
3841 )]
3842 pub short_opt: ::std::option::Option<::std::string::String>,
3843 #[serde(rename = "Type")]
3844 pub type_: ::std::string::String,
3845 #[serde(rename = "Value")]
3846 pub value: ::std::option::Option<OptionsInfoOptionValue>,
3847 #[serde(rename = "ValueStr")]
3848 pub value_str: ::std::string::String,
3849 }
3850
3851 impl ::std::convert::From<&OptionsInfoOption> for OptionsInfoOption {
3852 fn from(value: &OptionsInfoOption) -> Self {
3853 value.clone()
3854 }
3855 }
3856
3857 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3901 #[serde(untagged, deny_unknown_fields)]
3902 pub enum OptionsInfoOptionDefault {
3903 Variant0(::std::vec::Vec<::std::string::String>),
3904 Variant1(bool),
3905 Variant2(f64),
3906 Variant3(::std::string::String),
3907 Variant4 {
3908 #[serde(rename = "Valid")]
3909 valid: bool,
3910 #[serde(rename = "Value")]
3911 value: bool,
3912 },
3913 }
3914
3915 impl ::std::convert::From<&Self> for OptionsInfoOptionDefault {
3916 fn from(value: &OptionsInfoOptionDefault) -> Self {
3917 value.clone()
3918 }
3919 }
3920
3921 impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for OptionsInfoOptionDefault {
3922 fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
3923 Self::Variant0(value)
3924 }
3925 }
3926
3927 impl ::std::convert::From<bool> for OptionsInfoOptionDefault {
3928 fn from(value: bool) -> Self {
3929 Self::Variant1(value)
3930 }
3931 }
3932
3933 impl ::std::convert::From<f64> for OptionsInfoOptionDefault {
3934 fn from(value: f64) -> Self {
3935 Self::Variant2(value)
3936 }
3937 }
3938
3939 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3963 pub struct OptionsInfoOptionExample {
3964 #[serde(rename = "Help")]
3965 pub help: ::std::string::String,
3966 #[serde(rename = "Value")]
3967 pub value: ::std::string::String,
3968 }
3969
3970 impl ::std::convert::From<&OptionsInfoOptionExample> for OptionsInfoOptionExample {
3971 fn from(value: &OptionsInfoOptionExample) -> Self {
3972 value.clone()
3973 }
3974 }
3975
3976 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3994 #[serde(untagged)]
3995 pub enum OptionsInfoOptionValue {
3996 Variant0(bool),
3997 Variant1(f64),
3998 }
3999
4000 impl ::std::convert::From<&Self> for OptionsInfoOptionValue {
4001 fn from(value: &OptionsInfoOptionValue) -> Self {
4002 value.clone()
4003 }
4004 }
4005
4006 impl ::std::str::FromStr for OptionsInfoOptionValue {
4007 type Err = self::error::ConversionError;
4008 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
4009 if let Ok(v) = value.parse() {
4010 Ok(Self::Variant0(v))
4011 } else if let Ok(v) = value.parse() {
4012 Ok(Self::Variant1(v))
4013 } else {
4014 Err("string conversion failed for all variants".into())
4015 }
4016 }
4017 }
4018
4019 impl ::std::convert::TryFrom<&str> for OptionsInfoOptionValue {
4020 type Error = self::error::ConversionError;
4021 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
4022 value.parse()
4023 }
4024 }
4025
4026 impl ::std::convert::TryFrom<&::std::string::String> for OptionsInfoOptionValue {
4027 type Error = self::error::ConversionError;
4028 fn try_from(
4029 value: &::std::string::String,
4030 ) -> ::std::result::Result<Self, self::error::ConversionError> {
4031 value.parse()
4032 }
4033 }
4034
4035 impl ::std::convert::TryFrom<::std::string::String> for OptionsInfoOptionValue {
4036 type Error = self::error::ConversionError;
4037 fn try_from(
4038 value: ::std::string::String,
4039 ) -> ::std::result::Result<Self, self::error::ConversionError> {
4040 value.parse()
4041 }
4042 }
4043
4044 impl ::std::fmt::Display for OptionsInfoOptionValue {
4045 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4046 match self {
4047 Self::Variant0(x) => x.fmt(f),
4048 Self::Variant1(x) => x.fmt(f),
4049 }
4050 }
4051 }
4052
4053 impl ::std::convert::From<bool> for OptionsInfoOptionValue {
4054 fn from(value: bool) -> Self {
4055 Self::Variant0(value)
4056 }
4057 }
4058
4059 impl ::std::convert::From<f64> for OptionsInfoOptionValue {
4060 fn from(value: f64) -> Self {
4061 Self::Variant1(value)
4062 }
4063 }
4064
4065 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4191 pub struct OptionsInfoResponse {
4192 pub dlna: ::std::vec::Vec<OptionsInfoOption>,
4193 pub filter: ::std::vec::Vec<OptionsInfoOption>,
4194 pub ftp: ::std::vec::Vec<OptionsInfoOption>,
4195 pub http: ::std::vec::Vec<OptionsInfoOption>,
4196 pub log: ::std::vec::Vec<OptionsInfoOption>,
4197 pub main: ::std::vec::Vec<OptionsInfoOption>,
4198 pub mount: ::std::vec::Vec<OptionsInfoOption>,
4199 pub nfs: ::std::vec::Vec<OptionsInfoOption>,
4200 pub proxy: ::std::vec::Vec<OptionsInfoOption>,
4201 pub rc: ::std::vec::Vec<OptionsInfoOption>,
4202 pub restic: ::std::vec::Vec<OptionsInfoOption>,
4203 pub s3: ::std::vec::Vec<OptionsInfoOption>,
4204 pub sftp: ::std::vec::Vec<OptionsInfoOption>,
4205 pub vfs: ::std::vec::Vec<OptionsInfoOption>,
4206 pub webdav: ::std::vec::Vec<OptionsInfoOption>,
4207 #[serde(flatten)]
4208 pub extra:
4209 ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<OptionsInfoOption>>,
4210 }
4211
4212 impl ::std::convert::From<&OptionsInfoResponse> for OptionsInfoResponse {
4213 fn from(value: &OptionsInfoResponse) -> Self {
4214 value.clone()
4215 }
4216 }
4217
4218 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4847 pub struct OptionsLocalResponse {
4848 pub config: OptionsLocalResponseConfig,
4849 pub filter: OptionsLocalResponseFilter,
4850 }
4851
4852 impl ::std::convert::From<&OptionsLocalResponse> for OptionsLocalResponse {
4853 fn from(value: &OptionsLocalResponse) -> Self {
4854 value.clone()
4855 }
4856 }
4857
4858 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5330 pub struct OptionsLocalResponseConfig {
5331 #[serde(rename = "AskPassword")]
5332 pub ask_password: bool,
5333 #[serde(rename = "AutoConfirm")]
5334 pub auto_confirm: bool,
5335 #[serde(rename = "BackupDir")]
5336 pub backup_dir: ::std::string::String,
5337 #[serde(rename = "BindAddr")]
5338 pub bind_addr: ::std::string::String,
5339 #[serde(rename = "BufferSize")]
5340 pub buffer_size: f64,
5341 #[serde(rename = "BwLimit")]
5342 pub bw_limit: ::std::string::String,
5343 #[serde(rename = "BwLimitFile")]
5344 pub bw_limit_file: ::std::string::String,
5345 #[serde(rename = "CaCert")]
5346 pub ca_cert: ::std::vec::Vec<::std::string::String>,
5347 #[serde(rename = "CheckFirst")]
5348 pub check_first: bool,
5349 #[serde(rename = "CheckSum")]
5350 pub check_sum: bool,
5351 #[serde(rename = "Checkers")]
5352 pub checkers: f64,
5353 #[serde(rename = "ClientCert")]
5354 pub client_cert: ::std::string::String,
5355 #[serde(rename = "ClientKey")]
5356 pub client_key: ::std::string::String,
5357 #[serde(rename = "CompareDest")]
5358 pub compare_dest: ::std::vec::Vec<::std::string::String>,
5359 #[serde(rename = "ConnectTimeout")]
5360 pub connect_timeout: f64,
5361 #[serde(rename = "Cookie")]
5362 pub cookie: bool,
5363 #[serde(rename = "CopyDest")]
5364 pub copy_dest: ::std::vec::Vec<::std::string::String>,
5365 #[serde(rename = "CutoffMode")]
5366 pub cutoff_mode: ::std::string::String,
5367 #[serde(rename = "DataRateUnit")]
5368 pub data_rate_unit: ::std::string::String,
5369 #[serde(rename = "DefaultTime")]
5370 pub default_time: ::std::string::String,
5371 #[serde(rename = "DeleteMode")]
5372 pub delete_mode: f64,
5373 #[serde(rename = "DisableFeatures")]
5374 pub disable_features: ::std::option::Option<::std::string::String>,
5375 #[serde(rename = "DisableHTTP2")]
5376 pub disable_http2: bool,
5377 #[serde(rename = "DisableHTTPKeepAlives")]
5378 pub disable_http_keep_alives: bool,
5379 #[serde(rename = "DownloadHeaders")]
5380 pub download_headers: ::std::option::Option<::std::string::String>,
5381 #[serde(rename = "DryRun")]
5382 pub dry_run: bool,
5383 #[serde(rename = "Dump")]
5384 pub dump: ::std::string::String,
5385 #[serde(rename = "ErrorOnNoTransfer")]
5386 pub error_on_no_transfer: bool,
5387 #[serde(rename = "ExpectContinueTimeout")]
5388 pub expect_continue_timeout: f64,
5389 #[serde(rename = "FixCase")]
5390 pub fix_case: bool,
5391 #[serde(rename = "FsCacheExpireDuration")]
5392 pub fs_cache_expire_duration: f64,
5393 #[serde(rename = "FsCacheExpireInterval")]
5394 pub fs_cache_expire_interval: f64,
5395 #[serde(rename = "Headers")]
5396 pub headers: ::std::option::Option<::std::string::String>,
5397 #[serde(rename = "HumanReadable")]
5398 pub human_readable: bool,
5399 #[serde(rename = "IgnoreCaseSync")]
5400 pub ignore_case_sync: bool,
5401 #[serde(rename = "IgnoreChecksum")]
5402 pub ignore_checksum: bool,
5403 #[serde(rename = "IgnoreErrors")]
5404 pub ignore_errors: bool,
5405 #[serde(rename = "IgnoreExisting")]
5406 pub ignore_existing: bool,
5407 #[serde(rename = "IgnoreSize")]
5408 pub ignore_size: bool,
5409 #[serde(rename = "IgnoreTimes")]
5410 pub ignore_times: bool,
5411 #[serde(rename = "Immutable")]
5412 pub immutable: bool,
5413 #[serde(rename = "Inplace")]
5414 pub inplace: bool,
5415 #[serde(rename = "InsecureSkipVerify")]
5416 pub insecure_skip_verify: bool,
5417 #[serde(rename = "Interactive")]
5418 pub interactive: bool,
5419 #[serde(rename = "KvLockTime")]
5420 pub kv_lock_time: f64,
5421 #[serde(rename = "Links")]
5422 pub links: bool,
5423 #[serde(rename = "LogLevel")]
5424 pub log_level: ::std::string::String,
5425 #[serde(rename = "LowLevelRetries")]
5426 pub low_level_retries: f64,
5427 #[serde(rename = "MaxBacklog")]
5428 pub max_backlog: f64,
5429 #[serde(rename = "MaxBufferMemory")]
5430 pub max_buffer_memory: f64,
5431 #[serde(rename = "MaxDelete")]
5432 pub max_delete: f64,
5433 #[serde(rename = "MaxDeleteSize")]
5434 pub max_delete_size: f64,
5435 #[serde(rename = "MaxDepth")]
5436 pub max_depth: f64,
5437 #[serde(rename = "MaxDuration")]
5438 pub max_duration: f64,
5439 #[serde(rename = "MaxStatsGroups")]
5440 pub max_stats_groups: f64,
5441 #[serde(rename = "MaxTransfer")]
5442 pub max_transfer: f64,
5443 #[serde(rename = "Metadata")]
5444 pub metadata: bool,
5445 #[serde(rename = "MetadataMapper")]
5446 pub metadata_mapper: ::std::option::Option<::std::string::String>,
5447 #[serde(rename = "MetadataSet")]
5448 pub metadata_set: ::std::option::Option<::std::string::String>,
5449 #[serde(rename = "ModifyWindow")]
5450 pub modify_window: f64,
5451 #[serde(rename = "MultiThreadChunkSize")]
5452 pub multi_thread_chunk_size: f64,
5453 #[serde(rename = "MultiThreadCutoff")]
5454 pub multi_thread_cutoff: f64,
5455 #[serde(rename = "MultiThreadSet")]
5456 pub multi_thread_set: bool,
5457 #[serde(rename = "MultiThreadStreams")]
5458 pub multi_thread_streams: f64,
5459 #[serde(rename = "MultiThreadWriteBufferSize")]
5460 pub multi_thread_write_buffer_size: f64,
5461 #[serde(rename = "NoCheckDest")]
5462 pub no_check_dest: bool,
5463 #[serde(rename = "NoConsole")]
5464 pub no_console: bool,
5465 #[serde(rename = "NoGzip")]
5466 pub no_gzip: bool,
5467 #[serde(rename = "NoTraverse")]
5468 pub no_traverse: bool,
5469 #[serde(rename = "NoUnicodeNormalization")]
5470 pub no_unicode_normalization: bool,
5471 #[serde(rename = "NoUpdateDirModTime")]
5472 pub no_update_dir_mod_time: bool,
5473 #[serde(rename = "NoUpdateModTime")]
5474 pub no_update_mod_time: bool,
5475 #[serde(rename = "OrderBy")]
5476 pub order_by: ::std::string::String,
5477 #[serde(rename = "PartialSuffix")]
5478 pub partial_suffix: ::std::string::String,
5479 #[serde(rename = "PasswordCommand")]
5480 pub password_command: ::std::option::Option<::std::string::String>,
5481 #[serde(rename = "Progress")]
5482 pub progress: bool,
5483 #[serde(rename = "ProgressTerminalTitle")]
5484 pub progress_terminal_title: bool,
5485 #[serde(rename = "RefreshTimes")]
5486 pub refresh_times: bool,
5487 #[serde(rename = "Retries")]
5488 pub retries: f64,
5489 #[serde(rename = "RetriesInterval")]
5490 pub retries_interval: f64,
5491 #[serde(rename = "ServerSideAcrossConfigs")]
5492 pub server_side_across_configs: bool,
5493 #[serde(rename = "SizeOnly")]
5494 pub size_only: bool,
5495 #[serde(rename = "StatsFileNameLength")]
5496 pub stats_file_name_length: f64,
5497 #[serde(rename = "StatsLogLevel")]
5498 pub stats_log_level: ::std::string::String,
5499 #[serde(rename = "StatsOneLine")]
5500 pub stats_one_line: bool,
5501 #[serde(rename = "StatsOneLineDate")]
5502 pub stats_one_line_date: bool,
5503 #[serde(rename = "StatsOneLineDateFormat")]
5504 pub stats_one_line_date_format: ::std::string::String,
5505 #[serde(rename = "StreamingUploadCutoff")]
5506 pub streaming_upload_cutoff: f64,
5507 #[serde(rename = "Suffix")]
5508 pub suffix: ::std::string::String,
5509 #[serde(rename = "SuffixKeepExtension")]
5510 pub suffix_keep_extension: bool,
5511 #[serde(rename = "TerminalColorMode")]
5512 pub terminal_color_mode: ::std::string::String,
5513 #[serde(rename = "Timeout")]
5514 pub timeout: f64,
5515 #[serde(rename = "TPSLimit")]
5516 pub tps_limit: f64,
5517 #[serde(rename = "TPSLimitBurst")]
5518 pub tps_limit_burst: f64,
5519 #[serde(rename = "TrackRenames")]
5520 pub track_renames: bool,
5521 #[serde(rename = "TrackRenamesStrategy")]
5522 pub track_renames_strategy: ::std::string::String,
5523 #[serde(rename = "TrafficClass")]
5524 pub traffic_class: f64,
5525 #[serde(rename = "Transfers")]
5526 pub transfers: f64,
5527 #[serde(rename = "UpdateOlder")]
5528 pub update_older: bool,
5529 #[serde(rename = "UploadHeaders")]
5530 pub upload_headers: ::std::option::Option<::std::string::String>,
5531 #[serde(rename = "UseJSONLog")]
5532 pub use_json_log: bool,
5533 #[serde(rename = "UseListR")]
5534 pub use_list_r: bool,
5535 #[serde(rename = "UseMmap")]
5536 pub use_mmap: bool,
5537 #[serde(rename = "UseServerModTime")]
5538 pub use_server_mod_time: bool,
5539 #[serde(rename = "UserAgent")]
5540 pub user_agent: ::std::string::String,
5541 }
5542
5543 impl ::std::convert::From<&OptionsLocalResponseConfig> for OptionsLocalResponseConfig {
5544 fn from(value: &OptionsLocalResponseConfig) -> Self {
5545 value.clone()
5546 }
5547 }
5548
5549 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5705 pub struct OptionsLocalResponseFilter {
5706 #[serde(rename = "DeleteExcluded")]
5707 pub delete_excluded: bool,
5708 #[serde(rename = "ExcludeFile")]
5709 pub exclude_file: ::std::vec::Vec<::std::string::String>,
5710 #[serde(rename = "ExcludeFrom")]
5711 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5712 #[serde(rename = "ExcludeRule")]
5713 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5714 #[serde(rename = "FilesFrom")]
5715 pub files_from: ::std::vec::Vec<::std::string::String>,
5716 #[serde(rename = "FilesFromRaw")]
5717 pub files_from_raw: ::std::vec::Vec<::std::string::String>,
5718 #[serde(rename = "FilterFrom")]
5719 pub filter_from: ::std::vec::Vec<::std::string::String>,
5720 #[serde(rename = "FilterRule")]
5721 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5722 #[serde(rename = "HashFilter")]
5723 pub hash_filter: ::std::string::String,
5724 #[serde(rename = "IgnoreCase")]
5725 pub ignore_case: bool,
5726 #[serde(rename = "IncludeFrom")]
5727 pub include_from: ::std::vec::Vec<::std::string::String>,
5728 #[serde(rename = "IncludeRule")]
5729 pub include_rule: ::std::vec::Vec<::std::string::String>,
5730 #[serde(rename = "MaxAge")]
5731 pub max_age: f64,
5732 #[serde(rename = "MaxSize")]
5733 pub max_size: f64,
5734 #[serde(rename = "MetaRules")]
5735 pub meta_rules: OptionsLocalResponseFilterMetaRules,
5736 #[serde(rename = "MinAge")]
5737 pub min_age: f64,
5738 #[serde(rename = "MinSize")]
5739 pub min_size: f64,
5740 }
5741
5742 impl ::std::convert::From<&OptionsLocalResponseFilter> for OptionsLocalResponseFilter {
5743 fn from(value: &OptionsLocalResponseFilter) -> Self {
5744 value.clone()
5745 }
5746 }
5747
5748 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5805 pub struct OptionsLocalResponseFilterMetaRules {
5806 #[serde(rename = "ExcludeFrom")]
5807 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5808 #[serde(rename = "ExcludeRule")]
5809 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5810 #[serde(rename = "FilterFrom")]
5811 pub filter_from: ::std::vec::Vec<::std::string::String>,
5812 #[serde(rename = "FilterRule")]
5813 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5814 #[serde(rename = "IncludeFrom")]
5815 pub include_from: ::std::vec::Vec<::std::string::String>,
5816 #[serde(rename = "IncludeRule")]
5817 pub include_rule: ::std::vec::Vec<::std::string::String>,
5818 }
5819
5820 impl ::std::convert::From<&OptionsLocalResponseFilterMetaRules>
5821 for OptionsLocalResponseFilterMetaRules
5822 {
5823 fn from(value: &OptionsLocalResponseFilterMetaRules) -> Self {
5824 value.clone()
5825 }
5826 }
5827
5828 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5860 #[serde(untagged)]
5861 pub enum OptionsSetDlnaValue {
5862 Variant0(::std::string::String),
5863 Variant1(f64),
5864 Variant2(i64),
5865 Variant3(bool),
5866 Variant4(::std::vec::Vec<::serde_json::Value>),
5867 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5868 }
5869
5870 impl ::std::convert::From<&Self> for OptionsSetDlnaValue {
5871 fn from(value: &OptionsSetDlnaValue) -> Self {
5872 value.clone()
5873 }
5874 }
5875
5876 impl ::std::convert::From<f64> for OptionsSetDlnaValue {
5877 fn from(value: f64) -> Self {
5878 Self::Variant1(value)
5879 }
5880 }
5881
5882 impl ::std::convert::From<i64> for OptionsSetDlnaValue {
5883 fn from(value: i64) -> Self {
5884 Self::Variant2(value)
5885 }
5886 }
5887
5888 impl ::std::convert::From<bool> for OptionsSetDlnaValue {
5889 fn from(value: bool) -> Self {
5890 Self::Variant3(value)
5891 }
5892 }
5893
5894 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetDlnaValue {
5895 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5896 Self::Variant4(value)
5897 }
5898 }
5899
5900 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5901 for OptionsSetDlnaValue
5902 {
5903 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5904 Self::Variant5(value)
5905 }
5906 }
5907
5908 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5940 #[serde(untagged)]
5941 pub enum OptionsSetFilterValue {
5942 Variant0(::std::string::String),
5943 Variant1(f64),
5944 Variant2(i64),
5945 Variant3(bool),
5946 Variant4(::std::vec::Vec<::serde_json::Value>),
5947 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5948 }
5949
5950 impl ::std::convert::From<&Self> for OptionsSetFilterValue {
5951 fn from(value: &OptionsSetFilterValue) -> Self {
5952 value.clone()
5953 }
5954 }
5955
5956 impl ::std::convert::From<f64> for OptionsSetFilterValue {
5957 fn from(value: f64) -> Self {
5958 Self::Variant1(value)
5959 }
5960 }
5961
5962 impl ::std::convert::From<i64> for OptionsSetFilterValue {
5963 fn from(value: i64) -> Self {
5964 Self::Variant2(value)
5965 }
5966 }
5967
5968 impl ::std::convert::From<bool> for OptionsSetFilterValue {
5969 fn from(value: bool) -> Self {
5970 Self::Variant3(value)
5971 }
5972 }
5973
5974 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFilterValue {
5975 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5976 Self::Variant4(value)
5977 }
5978 }
5979
5980 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5981 for OptionsSetFilterValue
5982 {
5983 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5984 Self::Variant5(value)
5985 }
5986 }
5987
5988 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6020 #[serde(untagged)]
6021 pub enum OptionsSetFtpValue {
6022 Variant0(::std::string::String),
6023 Variant1(f64),
6024 Variant2(i64),
6025 Variant3(bool),
6026 Variant4(::std::vec::Vec<::serde_json::Value>),
6027 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6028 }
6029
6030 impl ::std::convert::From<&Self> for OptionsSetFtpValue {
6031 fn from(value: &OptionsSetFtpValue) -> Self {
6032 value.clone()
6033 }
6034 }
6035
6036 impl ::std::convert::From<f64> for OptionsSetFtpValue {
6037 fn from(value: f64) -> Self {
6038 Self::Variant1(value)
6039 }
6040 }
6041
6042 impl ::std::convert::From<i64> for OptionsSetFtpValue {
6043 fn from(value: i64) -> Self {
6044 Self::Variant2(value)
6045 }
6046 }
6047
6048 impl ::std::convert::From<bool> for OptionsSetFtpValue {
6049 fn from(value: bool) -> Self {
6050 Self::Variant3(value)
6051 }
6052 }
6053
6054 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFtpValue {
6055 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6056 Self::Variant4(value)
6057 }
6058 }
6059
6060 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6061 for OptionsSetFtpValue
6062 {
6063 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6064 Self::Variant5(value)
6065 }
6066 }
6067
6068 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6100 #[serde(untagged)]
6101 pub enum OptionsSetHttpValue {
6102 Variant0(::std::string::String),
6103 Variant1(f64),
6104 Variant2(i64),
6105 Variant3(bool),
6106 Variant4(::std::vec::Vec<::serde_json::Value>),
6107 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6108 }
6109
6110 impl ::std::convert::From<&Self> for OptionsSetHttpValue {
6111 fn from(value: &OptionsSetHttpValue) -> Self {
6112 value.clone()
6113 }
6114 }
6115
6116 impl ::std::convert::From<f64> for OptionsSetHttpValue {
6117 fn from(value: f64) -> Self {
6118 Self::Variant1(value)
6119 }
6120 }
6121
6122 impl ::std::convert::From<i64> for OptionsSetHttpValue {
6123 fn from(value: i64) -> Self {
6124 Self::Variant2(value)
6125 }
6126 }
6127
6128 impl ::std::convert::From<bool> for OptionsSetHttpValue {
6129 fn from(value: bool) -> Self {
6130 Self::Variant3(value)
6131 }
6132 }
6133
6134 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetHttpValue {
6135 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6136 Self::Variant4(value)
6137 }
6138 }
6139
6140 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6141 for OptionsSetHttpValue
6142 {
6143 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6144 Self::Variant5(value)
6145 }
6146 }
6147
6148 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6180 #[serde(untagged)]
6181 pub enum OptionsSetLogValue {
6182 Variant0(::std::string::String),
6183 Variant1(f64),
6184 Variant2(i64),
6185 Variant3(bool),
6186 Variant4(::std::vec::Vec<::serde_json::Value>),
6187 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6188 }
6189
6190 impl ::std::convert::From<&Self> for OptionsSetLogValue {
6191 fn from(value: &OptionsSetLogValue) -> Self {
6192 value.clone()
6193 }
6194 }
6195
6196 impl ::std::convert::From<f64> for OptionsSetLogValue {
6197 fn from(value: f64) -> Self {
6198 Self::Variant1(value)
6199 }
6200 }
6201
6202 impl ::std::convert::From<i64> for OptionsSetLogValue {
6203 fn from(value: i64) -> Self {
6204 Self::Variant2(value)
6205 }
6206 }
6207
6208 impl ::std::convert::From<bool> for OptionsSetLogValue {
6209 fn from(value: bool) -> Self {
6210 Self::Variant3(value)
6211 }
6212 }
6213
6214 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetLogValue {
6215 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6216 Self::Variant4(value)
6217 }
6218 }
6219
6220 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6221 for OptionsSetLogValue
6222 {
6223 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6224 Self::Variant5(value)
6225 }
6226 }
6227
6228 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6260 #[serde(untagged)]
6261 pub enum OptionsSetMainValue {
6262 Variant0(::std::string::String),
6263 Variant1(f64),
6264 Variant2(i64),
6265 Variant3(bool),
6266 Variant4(::std::vec::Vec<::serde_json::Value>),
6267 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6268 }
6269
6270 impl ::std::convert::From<&Self> for OptionsSetMainValue {
6271 fn from(value: &OptionsSetMainValue) -> Self {
6272 value.clone()
6273 }
6274 }
6275
6276 impl ::std::convert::From<f64> for OptionsSetMainValue {
6277 fn from(value: f64) -> Self {
6278 Self::Variant1(value)
6279 }
6280 }
6281
6282 impl ::std::convert::From<i64> for OptionsSetMainValue {
6283 fn from(value: i64) -> Self {
6284 Self::Variant2(value)
6285 }
6286 }
6287
6288 impl ::std::convert::From<bool> for OptionsSetMainValue {
6289 fn from(value: bool) -> Self {
6290 Self::Variant3(value)
6291 }
6292 }
6293
6294 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMainValue {
6295 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6296 Self::Variant4(value)
6297 }
6298 }
6299
6300 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6301 for OptionsSetMainValue
6302 {
6303 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6304 Self::Variant5(value)
6305 }
6306 }
6307
6308 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6340 #[serde(untagged)]
6341 pub enum OptionsSetMountValue {
6342 Variant0(::std::string::String),
6343 Variant1(f64),
6344 Variant2(i64),
6345 Variant3(bool),
6346 Variant4(::std::vec::Vec<::serde_json::Value>),
6347 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6348 }
6349
6350 impl ::std::convert::From<&Self> for OptionsSetMountValue {
6351 fn from(value: &OptionsSetMountValue) -> Self {
6352 value.clone()
6353 }
6354 }
6355
6356 impl ::std::convert::From<f64> for OptionsSetMountValue {
6357 fn from(value: f64) -> Self {
6358 Self::Variant1(value)
6359 }
6360 }
6361
6362 impl ::std::convert::From<i64> for OptionsSetMountValue {
6363 fn from(value: i64) -> Self {
6364 Self::Variant2(value)
6365 }
6366 }
6367
6368 impl ::std::convert::From<bool> for OptionsSetMountValue {
6369 fn from(value: bool) -> Self {
6370 Self::Variant3(value)
6371 }
6372 }
6373
6374 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMountValue {
6375 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6376 Self::Variant4(value)
6377 }
6378 }
6379
6380 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6381 for OptionsSetMountValue
6382 {
6383 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6384 Self::Variant5(value)
6385 }
6386 }
6387
6388 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6420 #[serde(untagged)]
6421 pub enum OptionsSetNfsValue {
6422 Variant0(::std::string::String),
6423 Variant1(f64),
6424 Variant2(i64),
6425 Variant3(bool),
6426 Variant4(::std::vec::Vec<::serde_json::Value>),
6427 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6428 }
6429
6430 impl ::std::convert::From<&Self> for OptionsSetNfsValue {
6431 fn from(value: &OptionsSetNfsValue) -> Self {
6432 value.clone()
6433 }
6434 }
6435
6436 impl ::std::convert::From<f64> for OptionsSetNfsValue {
6437 fn from(value: f64) -> Self {
6438 Self::Variant1(value)
6439 }
6440 }
6441
6442 impl ::std::convert::From<i64> for OptionsSetNfsValue {
6443 fn from(value: i64) -> Self {
6444 Self::Variant2(value)
6445 }
6446 }
6447
6448 impl ::std::convert::From<bool> for OptionsSetNfsValue {
6449 fn from(value: bool) -> Self {
6450 Self::Variant3(value)
6451 }
6452 }
6453
6454 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetNfsValue {
6455 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6456 Self::Variant4(value)
6457 }
6458 }
6459
6460 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6461 for OptionsSetNfsValue
6462 {
6463 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6464 Self::Variant5(value)
6465 }
6466 }
6467
6468 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6500 #[serde(untagged)]
6501 pub enum OptionsSetProxyValue {
6502 Variant0(::std::string::String),
6503 Variant1(f64),
6504 Variant2(i64),
6505 Variant3(bool),
6506 Variant4(::std::vec::Vec<::serde_json::Value>),
6507 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6508 }
6509
6510 impl ::std::convert::From<&Self> for OptionsSetProxyValue {
6511 fn from(value: &OptionsSetProxyValue) -> Self {
6512 value.clone()
6513 }
6514 }
6515
6516 impl ::std::convert::From<f64> for OptionsSetProxyValue {
6517 fn from(value: f64) -> Self {
6518 Self::Variant1(value)
6519 }
6520 }
6521
6522 impl ::std::convert::From<i64> for OptionsSetProxyValue {
6523 fn from(value: i64) -> Self {
6524 Self::Variant2(value)
6525 }
6526 }
6527
6528 impl ::std::convert::From<bool> for OptionsSetProxyValue {
6529 fn from(value: bool) -> Self {
6530 Self::Variant3(value)
6531 }
6532 }
6533
6534 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetProxyValue {
6535 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6536 Self::Variant4(value)
6537 }
6538 }
6539
6540 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6541 for OptionsSetProxyValue
6542 {
6543 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6544 Self::Variant5(value)
6545 }
6546 }
6547
6548 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6580 #[serde(untagged)]
6581 pub enum OptionsSetRcValue {
6582 Variant0(::std::string::String),
6583 Variant1(f64),
6584 Variant2(i64),
6585 Variant3(bool),
6586 Variant4(::std::vec::Vec<::serde_json::Value>),
6587 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6588 }
6589
6590 impl ::std::convert::From<&Self> for OptionsSetRcValue {
6591 fn from(value: &OptionsSetRcValue) -> Self {
6592 value.clone()
6593 }
6594 }
6595
6596 impl ::std::convert::From<f64> for OptionsSetRcValue {
6597 fn from(value: f64) -> Self {
6598 Self::Variant1(value)
6599 }
6600 }
6601
6602 impl ::std::convert::From<i64> for OptionsSetRcValue {
6603 fn from(value: i64) -> Self {
6604 Self::Variant2(value)
6605 }
6606 }
6607
6608 impl ::std::convert::From<bool> for OptionsSetRcValue {
6609 fn from(value: bool) -> Self {
6610 Self::Variant3(value)
6611 }
6612 }
6613
6614 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetRcValue {
6615 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6616 Self::Variant4(value)
6617 }
6618 }
6619
6620 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6621 for OptionsSetRcValue
6622 {
6623 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6624 Self::Variant5(value)
6625 }
6626 }
6627
6628 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6660 #[serde(untagged)]
6661 pub enum OptionsSetResticValue {
6662 Variant0(::std::string::String),
6663 Variant1(f64),
6664 Variant2(i64),
6665 Variant3(bool),
6666 Variant4(::std::vec::Vec<::serde_json::Value>),
6667 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6668 }
6669
6670 impl ::std::convert::From<&Self> for OptionsSetResticValue {
6671 fn from(value: &OptionsSetResticValue) -> Self {
6672 value.clone()
6673 }
6674 }
6675
6676 impl ::std::convert::From<f64> for OptionsSetResticValue {
6677 fn from(value: f64) -> Self {
6678 Self::Variant1(value)
6679 }
6680 }
6681
6682 impl ::std::convert::From<i64> for OptionsSetResticValue {
6683 fn from(value: i64) -> Self {
6684 Self::Variant2(value)
6685 }
6686 }
6687
6688 impl ::std::convert::From<bool> for OptionsSetResticValue {
6689 fn from(value: bool) -> Self {
6690 Self::Variant3(value)
6691 }
6692 }
6693
6694 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetResticValue {
6695 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6696 Self::Variant4(value)
6697 }
6698 }
6699
6700 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6701 for OptionsSetResticValue
6702 {
6703 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6704 Self::Variant5(value)
6705 }
6706 }
6707
6708 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6740 #[serde(untagged)]
6741 pub enum OptionsSetS3Value {
6742 Variant0(::std::string::String),
6743 Variant1(f64),
6744 Variant2(i64),
6745 Variant3(bool),
6746 Variant4(::std::vec::Vec<::serde_json::Value>),
6747 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6748 }
6749
6750 impl ::std::convert::From<&Self> for OptionsSetS3Value {
6751 fn from(value: &OptionsSetS3Value) -> Self {
6752 value.clone()
6753 }
6754 }
6755
6756 impl ::std::convert::From<f64> for OptionsSetS3Value {
6757 fn from(value: f64) -> Self {
6758 Self::Variant1(value)
6759 }
6760 }
6761
6762 impl ::std::convert::From<i64> for OptionsSetS3Value {
6763 fn from(value: i64) -> Self {
6764 Self::Variant2(value)
6765 }
6766 }
6767
6768 impl ::std::convert::From<bool> for OptionsSetS3Value {
6769 fn from(value: bool) -> Self {
6770 Self::Variant3(value)
6771 }
6772 }
6773
6774 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetS3Value {
6775 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6776 Self::Variant4(value)
6777 }
6778 }
6779
6780 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6781 for OptionsSetS3Value
6782 {
6783 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6784 Self::Variant5(value)
6785 }
6786 }
6787
6788 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6820 #[serde(untagged)]
6821 pub enum OptionsSetSftpValue {
6822 Variant0(::std::string::String),
6823 Variant1(f64),
6824 Variant2(i64),
6825 Variant3(bool),
6826 Variant4(::std::vec::Vec<::serde_json::Value>),
6827 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6828 }
6829
6830 impl ::std::convert::From<&Self> for OptionsSetSftpValue {
6831 fn from(value: &OptionsSetSftpValue) -> Self {
6832 value.clone()
6833 }
6834 }
6835
6836 impl ::std::convert::From<f64> for OptionsSetSftpValue {
6837 fn from(value: f64) -> Self {
6838 Self::Variant1(value)
6839 }
6840 }
6841
6842 impl ::std::convert::From<i64> for OptionsSetSftpValue {
6843 fn from(value: i64) -> Self {
6844 Self::Variant2(value)
6845 }
6846 }
6847
6848 impl ::std::convert::From<bool> for OptionsSetSftpValue {
6849 fn from(value: bool) -> Self {
6850 Self::Variant3(value)
6851 }
6852 }
6853
6854 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetSftpValue {
6855 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6856 Self::Variant4(value)
6857 }
6858 }
6859
6860 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6861 for OptionsSetSftpValue
6862 {
6863 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6864 Self::Variant5(value)
6865 }
6866 }
6867
6868 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6900 #[serde(untagged)]
6901 pub enum OptionsSetVfsValue {
6902 Variant0(::std::string::String),
6903 Variant1(f64),
6904 Variant2(i64),
6905 Variant3(bool),
6906 Variant4(::std::vec::Vec<::serde_json::Value>),
6907 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6908 }
6909
6910 impl ::std::convert::From<&Self> for OptionsSetVfsValue {
6911 fn from(value: &OptionsSetVfsValue) -> Self {
6912 value.clone()
6913 }
6914 }
6915
6916 impl ::std::convert::From<f64> for OptionsSetVfsValue {
6917 fn from(value: f64) -> Self {
6918 Self::Variant1(value)
6919 }
6920 }
6921
6922 impl ::std::convert::From<i64> for OptionsSetVfsValue {
6923 fn from(value: i64) -> Self {
6924 Self::Variant2(value)
6925 }
6926 }
6927
6928 impl ::std::convert::From<bool> for OptionsSetVfsValue {
6929 fn from(value: bool) -> Self {
6930 Self::Variant3(value)
6931 }
6932 }
6933
6934 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetVfsValue {
6935 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6936 Self::Variant4(value)
6937 }
6938 }
6939
6940 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6941 for OptionsSetVfsValue
6942 {
6943 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6944 Self::Variant5(value)
6945 }
6946 }
6947
6948 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6980 #[serde(untagged)]
6981 pub enum OptionsSetWebdavValue {
6982 Variant0(::std::string::String),
6983 Variant1(f64),
6984 Variant2(i64),
6985 Variant3(bool),
6986 Variant4(::std::vec::Vec<::serde_json::Value>),
6987 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6988 }
6989
6990 impl ::std::convert::From<&Self> for OptionsSetWebdavValue {
6991 fn from(value: &OptionsSetWebdavValue) -> Self {
6992 value.clone()
6993 }
6994 }
6995
6996 impl ::std::convert::From<f64> for OptionsSetWebdavValue {
6997 fn from(value: f64) -> Self {
6998 Self::Variant1(value)
6999 }
7000 }
7001
7002 impl ::std::convert::From<i64> for OptionsSetWebdavValue {
7003 fn from(value: i64) -> Self {
7004 Self::Variant2(value)
7005 }
7006 }
7007
7008 impl ::std::convert::From<bool> for OptionsSetWebdavValue {
7009 fn from(value: bool) -> Self {
7010 Self::Variant3(value)
7011 }
7012 }
7013
7014 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetWebdavValue {
7015 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
7016 Self::Variant4(value)
7017 }
7018 }
7019
7020 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
7021 for OptionsSetWebdavValue
7022 {
7023 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
7024 Self::Variant5(value)
7025 }
7026 }
7027
7028 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7061 pub struct PluginsctlGetPluginsForTypeResponse {
7062 #[serde(rename = "loadedPlugins")]
7064 pub loaded_plugins: ::std::collections::HashMap<
7065 ::std::string::String,
7066 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7067 >,
7068 #[serde(rename = "loadedTestPlugins")]
7070 pub loaded_test_plugins: ::std::collections::HashMap<
7071 ::std::string::String,
7072 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7073 >,
7074 }
7075
7076 impl ::std::convert::From<&PluginsctlGetPluginsForTypeResponse>
7077 for PluginsctlGetPluginsForTypeResponse
7078 {
7079 fn from(value: &PluginsctlGetPluginsForTypeResponse) -> Self {
7080 value.clone()
7081 }
7082 }
7083
7084 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7117 pub struct PluginsctlListPluginsResponse {
7118 #[serde(rename = "loadedPlugins")]
7120 pub loaded_plugins:
7121 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7122 #[serde(rename = "testPlugins")]
7124 pub test_plugins:
7125 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7126 }
7127
7128 impl ::std::convert::From<&PluginsctlListPluginsResponse> for PluginsctlListPluginsResponse {
7129 fn from(value: &PluginsctlListPluginsResponse) -> Self {
7130 value.clone()
7131 }
7132 }
7133
7134 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7159 pub struct PluginsctlListTestPluginsResponse {
7160 #[serde(rename = "loadedTestPlugins")]
7162 pub loaded_test_plugins: ::std::collections::HashMap<
7163 ::std::string::String,
7164 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7165 >,
7166 }
7167
7168 impl ::std::convert::From<&PluginsctlListTestPluginsResponse>
7169 for PluginsctlListTestPluginsResponse
7170 {
7171 fn from(value: &PluginsctlListTestPluginsResponse) -> Self {
7172 value.clone()
7173 }
7174 }
7175
7176 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7212 pub struct RcError {
7213 pub error: ::std::string::String,
7214 pub input:
7216 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7217 pub path: ::std::string::String,
7218 pub status: i64,
7219 }
7220
7221 impl ::std::convert::From<&RcError> for RcError {
7222 fn from(value: &RcError) -> Self {
7223 value.clone()
7224 }
7225 }
7226
7227 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7270 pub struct RcListResponse {
7271 pub commands: ::std::vec::Vec<RcListResponseCommandsItem>,
7272 }
7273
7274 impl ::std::convert::From<&RcListResponse> for RcListResponse {
7275 fn from(value: &RcListResponse) -> Self {
7276 value.clone()
7277 }
7278 }
7279
7280 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7312 pub struct RcListResponseCommandsItem {
7313 #[serde(
7314 rename = "AuthRequired",
7315 default,
7316 skip_serializing_if = "::std::option::Option::is_none"
7317 )]
7318 pub auth_required: ::std::option::Option<bool>,
7319 #[serde(
7320 rename = "Help",
7321 default,
7322 skip_serializing_if = "::std::option::Option::is_none"
7323 )]
7324 pub help: ::std::option::Option<::std::string::String>,
7325 #[serde(
7326 rename = "NeedsRequest",
7327 default,
7328 skip_serializing_if = "::std::option::Option::is_none"
7329 )]
7330 pub needs_request: ::std::option::Option<bool>,
7331 #[serde(
7332 rename = "NeedsResponse",
7333 default,
7334 skip_serializing_if = "::std::option::Option::is_none"
7335 )]
7336 pub needs_response: ::std::option::Option<bool>,
7337 #[serde(
7338 rename = "Path",
7339 default,
7340 skip_serializing_if = "::std::option::Option::is_none"
7341 )]
7342 pub path: ::std::option::Option<::std::string::String>,
7343 #[serde(
7344 rename = "Title",
7345 default,
7346 skip_serializing_if = "::std::option::Option::is_none"
7347 )]
7348 pub title: ::std::option::Option<::std::string::String>,
7349 }
7350
7351 impl ::std::convert::From<&RcListResponseCommandsItem> for RcListResponseCommandsItem {
7352 fn from(value: &RcListResponseCommandsItem) -> Self {
7353 value.clone()
7354 }
7355 }
7356
7357 impl ::std::default::Default for RcListResponseCommandsItem {
7358 fn default() -> Self {
7359 Self {
7360 auth_required: Default::default(),
7361 help: Default::default(),
7362 needs_request: Default::default(),
7363 needs_response: Default::default(),
7364 path: Default::default(),
7365 title: Default::default(),
7366 }
7367 }
7368 }
7369
7370 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7435 pub struct ServeListResponse {
7436 pub list: ::std::vec::Vec<ServeListResponseListItem>,
7437 }
7438
7439 impl ::std::convert::From<&ServeListResponse> for ServeListResponse {
7440 fn from(value: &ServeListResponse) -> Self {
7441 value.clone()
7442 }
7443 }
7444
7445 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7498 #[serde(deny_unknown_fields)]
7499 pub struct ServeListResponseListItem {
7500 pub addr: ::std::string::String,
7502 pub id: ::std::string::String,
7504 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7505 pub params: ::std::option::Option<ServeListResponseListItemParams>,
7506 }
7507
7508 impl ::std::convert::From<&ServeListResponseListItem> for ServeListResponseListItem {
7509 fn from(value: &ServeListResponseListItem) -> Self {
7510 value.clone()
7511 }
7512 }
7513
7514 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7548 pub struct ServeListResponseListItemParams {
7549 pub fs: ::std::string::String,
7550 pub id: ::serde_json::Value,
7551 #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")]
7552 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7553 #[serde(rename = "type")]
7554 pub type_: ::std::string::String,
7555 #[serde(
7556 rename = "vfsOpt",
7557 default,
7558 skip_serializing_if = "::serde_json::Map::is_empty"
7559 )]
7560 pub vfs_opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7561 }
7562
7563 impl ::std::convert::From<&ServeListResponseListItemParams> for ServeListResponseListItemParams {
7564 fn from(value: &ServeListResponseListItemParams) -> Self {
7565 value.clone()
7566 }
7567 }
7568
7569 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7594 pub struct ServeStartResponse {
7595 pub addr: ::std::string::String,
7597 pub id: ::std::string::String,
7599 }
7600
7601 impl ::std::convert::From<&ServeStartResponse> for ServeStartResponse {
7602 fn from(value: &ServeStartResponse) -> Self {
7603 value.clone()
7604 }
7605 }
7606
7607 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7624 pub struct SyncBisyncResponse {
7625 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7627 pub jobid: ::std::option::Option<i64>,
7628 }
7629
7630 impl ::std::convert::From<&SyncBisyncResponse> for SyncBisyncResponse {
7631 fn from(value: &SyncBisyncResponse) -> Self {
7632 value.clone()
7633 }
7634 }
7635
7636 impl ::std::default::Default for SyncBisyncResponse {
7637 fn default() -> Self {
7638 Self {
7639 jobid: Default::default(),
7640 }
7641 }
7642 }
7643
7644 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7661 pub struct SyncCopyResponse {
7662 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7664 pub jobid: ::std::option::Option<i64>,
7665 }
7666
7667 impl ::std::convert::From<&SyncCopyResponse> for SyncCopyResponse {
7668 fn from(value: &SyncCopyResponse) -> Self {
7669 value.clone()
7670 }
7671 }
7672
7673 impl ::std::default::Default for SyncCopyResponse {
7674 fn default() -> Self {
7675 Self {
7676 jobid: Default::default(),
7677 }
7678 }
7679 }
7680
7681 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7698 pub struct SyncMoveResponse {
7699 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7701 pub jobid: ::std::option::Option<i64>,
7702 }
7703
7704 impl ::std::convert::From<&SyncMoveResponse> for SyncMoveResponse {
7705 fn from(value: &SyncMoveResponse) -> Self {
7706 value.clone()
7707 }
7708 }
7709
7710 impl ::std::default::Default for SyncMoveResponse {
7711 fn default() -> Self {
7712 Self {
7713 jobid: Default::default(),
7714 }
7715 }
7716 }
7717
7718 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7735 pub struct SyncSyncResponse {
7736 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7738 pub jobid: ::std::option::Option<i64>,
7739 }
7740
7741 impl ::std::convert::From<&SyncSyncResponse> for SyncSyncResponse {
7742 fn from(value: &SyncSyncResponse) -> Self {
7743 value.clone()
7744 }
7745 }
7746
7747 impl ::std::default::Default for SyncSyncResponse {
7748 fn default() -> Self {
7749 Self {
7750 jobid: Default::default(),
7751 }
7752 }
7753 }
7754
7755 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7778 pub struct VfsForgetResponse {
7779 pub forgotten: ::std::vec::Vec<::std::string::String>,
7781 }
7782
7783 impl ::std::convert::From<&VfsForgetResponse> for VfsForgetResponse {
7784 fn from(value: &VfsForgetResponse) -> Self {
7785 value.clone()
7786 }
7787 }
7788
7789 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7813 pub struct VfsListResponse {
7814 pub vfses: ::std::vec::Vec<::std::string::String>,
7816 }
7817
7818 impl ::std::convert::From<&VfsListResponse> for VfsListResponse {
7819 fn from(value: &VfsListResponse) -> Self {
7820 value.clone()
7821 }
7822 }
7823
7824 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7846 pub struct VfsQueueResponse {
7847 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7848 pub queued: ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7849 }
7850
7851 impl ::std::convert::From<&VfsQueueResponse> for VfsQueueResponse {
7852 fn from(value: &VfsQueueResponse) -> Self {
7853 value.clone()
7854 }
7855 }
7856
7857 impl ::std::default::Default for VfsQueueResponse {
7858 fn default() -> Self {
7859 Self {
7860 queued: Default::default(),
7861 }
7862 }
7863 }
7864
7865 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7888 pub struct VfsRefreshResponse {
7889 pub result: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
7891 }
7892
7893 impl ::std::convert::From<&VfsRefreshResponse> for VfsRefreshResponse {
7894 fn from(value: &VfsRefreshResponse) -> Self {
7895 value.clone()
7896 }
7897 }
7898
7899 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7946 pub struct VfsStatsResponse {
7947 #[serde(
7949 rename = "diskCache",
7950 default,
7951 skip_serializing_if = "::std::option::Option::is_none"
7952 )]
7953 pub disk_cache:
7954 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7955 pub fs: ::std::string::String,
7957 #[serde(rename = "inUse")]
7959 pub in_use: i64,
7960 #[serde(rename = "metadataCache")]
7962 pub metadata_cache: ::std::collections::HashMap<::std::string::String, i64>,
7963 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7965 }
7966
7967 impl ::std::convert::From<&VfsStatsResponse> for VfsStatsResponse {
7968 fn from(value: &VfsStatsResponse) -> Self {
7969 value.clone()
7970 }
7971 }
7972}
7973
7974#[derive(Clone, Debug)]
7975pub struct Client {
7981 pub(crate) baseurl: String,
7982 pub(crate) client: reqwest::Client,
7983}
7984
7985impl Client {
7986 pub fn new(baseurl: &str) -> Self {
7992 #[cfg(not(target_arch = "wasm32"))]
7993 let client = {
7994 let dur = ::std::time::Duration::from_secs(15u64);
7995 reqwest::ClientBuilder::new()
7996 .connect_timeout(dur)
7997 .timeout(dur)
7998 };
7999 #[cfg(target_arch = "wasm32")]
8000 let client = reqwest::ClientBuilder::new();
8001 Self::new_with_client(baseurl, client.build().unwrap())
8002 }
8003
8004 pub fn new_with_client(baseurl: &str, client: reqwest::Client) -> Self {
8011 Self {
8012 baseurl: baseurl.to_string(),
8013 client,
8014 }
8015 }
8016}
8017
8018impl ClientInfo<()> for Client {
8019 fn api_version() -> &'static str {
8020 "0.1.3"
8021 }
8022
8023 fn baseurl(&self) -> &str {
8024 self.baseurl.as_str()
8025 }
8026
8027 fn client(&self) -> &reqwest::Client {
8028 &self.client
8029 }
8030
8031 fn inner(&self) -> &() {
8032 &()
8033 }
8034}
8035
8036impl ClientHooks<()> for &Client {}
8037#[allow(clippy::all)]
8038impl Client {
8039 pub async fn rc_noop<'a>(
8051 &'a self,
8052 async_: Option<bool>,
8053 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8054 ) -> Result<
8055 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8056 Error<types::RcError>,
8057 > {
8058 let url = format!("{}/rc/noop", self.baseurl,);
8059 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8060 header_map.append(
8061 ::reqwest::header::HeaderName::from_static("api-version"),
8062 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8063 );
8064 #[allow(unused_mut)]
8065 let mut request = self
8066 .client
8067 .post(url)
8068 .header(
8069 ::reqwest::header::ACCEPT,
8070 ::reqwest::header::HeaderValue::from_static("application/json"),
8071 )
8072 .query(&progenitor_client::QueryParam::new("_async", &async_))
8073 .query(&progenitor_client::QueryParam::new("params", ¶ms))
8074 .headers(header_map)
8075 .build()?;
8076 let info = OperationInfo {
8077 operation_id: "rc_noop",
8078 };
8079 self.pre(&mut request, &info).await?;
8080 let result = self.exec(request, &info).await;
8081 self.post(&result, &info).await?;
8082 let response = result?;
8083 match response.status().as_u16() {
8084 200u16 => ResponseValue::from_response(response).await,
8085 400u16..=499u16 => Err(Error::ErrorResponse(
8086 ResponseValue::from_response(response).await?,
8087 )),
8088 500u16..=599u16 => Err(Error::ErrorResponse(
8089 ResponseValue::from_response(response).await?,
8090 )),
8091 _ => Err(Error::UnexpectedResponse(response)),
8092 }
8093 }
8094
8095 pub async fn operations_cleanup<'a>(
8107 &'a self,
8108 async_: Option<bool>,
8109 group: Option<&'a str>,
8110 fs: &'a str,
8111 ) -> Result<
8112 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8113 Error<types::RcError>,
8114 > {
8115 let url = format!("{}/operations/cleanup", self.baseurl,);
8116 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8117 header_map.append(
8118 ::reqwest::header::HeaderName::from_static("api-version"),
8119 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8120 );
8121 #[allow(unused_mut)]
8122 let mut request = self
8123 .client
8124 .post(url)
8125 .header(
8126 ::reqwest::header::ACCEPT,
8127 ::reqwest::header::HeaderValue::from_static("application/json"),
8128 )
8129 .query(&progenitor_client::QueryParam::new("_async", &async_))
8130 .query(&progenitor_client::QueryParam::new("_group", &group))
8131 .query(&progenitor_client::QueryParam::new("fs", &fs))
8132 .headers(header_map)
8133 .build()?;
8134 let info = OperationInfo {
8135 operation_id: "operations_cleanup",
8136 };
8137 self.pre(&mut request, &info).await?;
8138 let result = self.exec(request, &info).await;
8139 self.post(&result, &info).await?;
8140 let response = result?;
8141 match response.status().as_u16() {
8142 200u16 => ResponseValue::from_response(response).await,
8143 400u16..=499u16 => Err(Error::ErrorResponse(
8144 ResponseValue::from_response(response).await?,
8145 )),
8146 500u16..=599u16 => Err(Error::ErrorResponse(
8147 ResponseValue::from_response(response).await?,
8148 )),
8149 _ => Err(Error::UnexpectedResponse(response)),
8150 }
8151 }
8152
8153 pub async fn operations_copyfile<'a>(
8173 &'a self,
8174 async_: Option<bool>,
8175 group: Option<&'a str>,
8176 dst_fs: &'a str,
8177 dst_remote: &'a str,
8178 src_fs: &'a str,
8179 src_remote: &'a str,
8180 ) -> Result<
8181 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8182 Error<types::RcError>,
8183 > {
8184 let url = format!("{}/operations/copyfile", self.baseurl,);
8185 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8186 header_map.append(
8187 ::reqwest::header::HeaderName::from_static("api-version"),
8188 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8189 );
8190 #[allow(unused_mut)]
8191 let mut request = self
8192 .client
8193 .post(url)
8194 .header(
8195 ::reqwest::header::ACCEPT,
8196 ::reqwest::header::HeaderValue::from_static("application/json"),
8197 )
8198 .query(&progenitor_client::QueryParam::new("_async", &async_))
8199 .query(&progenitor_client::QueryParam::new("_group", &group))
8200 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
8201 .query(&progenitor_client::QueryParam::new(
8202 "dstRemote",
8203 &dst_remote,
8204 ))
8205 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
8206 .query(&progenitor_client::QueryParam::new(
8207 "srcRemote",
8208 &src_remote,
8209 ))
8210 .headers(header_map)
8211 .build()?;
8212 let info = OperationInfo {
8213 operation_id: "operations_copyfile",
8214 };
8215 self.pre(&mut request, &info).await?;
8216 let result = self.exec(request, &info).await;
8217 self.post(&result, &info).await?;
8218 let response = result?;
8219 match response.status().as_u16() {
8220 200u16 => ResponseValue::from_response(response).await,
8221 400u16..=499u16 => Err(Error::ErrorResponse(
8222 ResponseValue::from_response(response).await?,
8223 )),
8224 500u16..=599u16 => Err(Error::ErrorResponse(
8225 ResponseValue::from_response(response).await?,
8226 )),
8227 _ => Err(Error::UnexpectedResponse(response)),
8228 }
8229 }
8230
8231 pub async fn operations_copyurl<'a>(
8249 &'a self,
8250 async_: Option<bool>,
8251 group: Option<&'a str>,
8252 auto_filename: Option<bool>,
8253 fs: &'a str,
8254 remote: &'a str,
8255 url: &'a str,
8256 ) -> Result<
8257 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8258 Error<types::RcError>,
8259 > {
8260 let _url = format!("{}/operations/copyurl", self.baseurl,);
8261 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8262 header_map.append(
8263 ::reqwest::header::HeaderName::from_static("api-version"),
8264 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8265 );
8266 #[allow(unused_mut)]
8267 let mut request = self
8268 .client
8269 .post(_url)
8270 .header(
8271 ::reqwest::header::ACCEPT,
8272 ::reqwest::header::HeaderValue::from_static("application/json"),
8273 )
8274 .query(&progenitor_client::QueryParam::new("_async", &async_))
8275 .query(&progenitor_client::QueryParam::new("_group", &group))
8276 .query(&progenitor_client::QueryParam::new(
8277 "autoFilename",
8278 &auto_filename,
8279 ))
8280 .query(&progenitor_client::QueryParam::new("fs", &fs))
8281 .query(&progenitor_client::QueryParam::new("remote", &remote))
8282 .query(&progenitor_client::QueryParam::new("url", &url))
8283 .headers(header_map)
8284 .build()?;
8285 let info = OperationInfo {
8286 operation_id: "operations_copyurl",
8287 };
8288 self.pre(&mut request, &info).await?;
8289 let result = self.exec(request, &info).await;
8290 self.post(&result, &info).await?;
8291 let response = result?;
8292 match response.status().as_u16() {
8293 200u16 => ResponseValue::from_response(response).await,
8294 400u16..=499u16 => Err(Error::ErrorResponse(
8295 ResponseValue::from_response(response).await?,
8296 )),
8297 500u16..=599u16 => Err(Error::ErrorResponse(
8298 ResponseValue::from_response(response).await?,
8299 )),
8300 _ => Err(Error::UnexpectedResponse(response)),
8301 }
8302 }
8303
8304 pub async fn operations_delete<'a>(
8319 &'a self,
8320 async_: Option<bool>,
8321 config: Option<&'a str>,
8322 filter: Option<&'a str>,
8323 group: Option<&'a str>,
8324 fs: &'a str,
8325 ) -> Result<
8326 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8327 Error<types::RcError>,
8328 > {
8329 let url = format!("{}/operations/delete", self.baseurl,);
8330 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8331 header_map.append(
8332 ::reqwest::header::HeaderName::from_static("api-version"),
8333 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8334 );
8335 #[allow(unused_mut)]
8336 let mut request = self
8337 .client
8338 .post(url)
8339 .header(
8340 ::reqwest::header::ACCEPT,
8341 ::reqwest::header::HeaderValue::from_static("application/json"),
8342 )
8343 .query(&progenitor_client::QueryParam::new("_async", &async_))
8344 .query(&progenitor_client::QueryParam::new("_config", &config))
8345 .query(&progenitor_client::QueryParam::new("_filter", &filter))
8346 .query(&progenitor_client::QueryParam::new("_group", &group))
8347 .query(&progenitor_client::QueryParam::new("fs", &fs))
8348 .headers(header_map)
8349 .build()?;
8350 let info = OperationInfo {
8351 operation_id: "operations_delete",
8352 };
8353 self.pre(&mut request, &info).await?;
8354 let result = self.exec(request, &info).await;
8355 self.post(&result, &info).await?;
8356 let response = result?;
8357 match response.status().as_u16() {
8358 200u16 => ResponseValue::from_response(response).await,
8359 400u16..=499u16 => Err(Error::ErrorResponse(
8360 ResponseValue::from_response(response).await?,
8361 )),
8362 500u16..=599u16 => Err(Error::ErrorResponse(
8363 ResponseValue::from_response(response).await?,
8364 )),
8365 _ => Err(Error::UnexpectedResponse(response)),
8366 }
8367 }
8368
8369 pub async fn operations_deletefile<'a>(
8382 &'a self,
8383 async_: Option<bool>,
8384 group: Option<&'a str>,
8385 fs: &'a str,
8386 remote: &'a str,
8387 ) -> Result<
8388 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8389 Error<types::RcError>,
8390 > {
8391 let url = format!("{}/operations/deletefile", self.baseurl,);
8392 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8393 header_map.append(
8394 ::reqwest::header::HeaderName::from_static("api-version"),
8395 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8396 );
8397 #[allow(unused_mut)]
8398 let mut request = self
8399 .client
8400 .post(url)
8401 .header(
8402 ::reqwest::header::ACCEPT,
8403 ::reqwest::header::HeaderValue::from_static("application/json"),
8404 )
8405 .query(&progenitor_client::QueryParam::new("_async", &async_))
8406 .query(&progenitor_client::QueryParam::new("_group", &group))
8407 .query(&progenitor_client::QueryParam::new("fs", &fs))
8408 .query(&progenitor_client::QueryParam::new("remote", &remote))
8409 .headers(header_map)
8410 .build()?;
8411 let info = OperationInfo {
8412 operation_id: "operations_deletefile",
8413 };
8414 self.pre(&mut request, &info).await?;
8415 let result = self.exec(request, &info).await;
8416 self.post(&result, &info).await?;
8417 let response = result?;
8418 match response.status().as_u16() {
8419 200u16 => ResponseValue::from_response(response).await,
8420 400u16..=499u16 => Err(Error::ErrorResponse(
8421 ResponseValue::from_response(response).await?,
8422 )),
8423 500u16..=599u16 => Err(Error::ErrorResponse(
8424 ResponseValue::from_response(response).await?,
8425 )),
8426 _ => Err(Error::UnexpectedResponse(response)),
8427 }
8428 }
8429
8430 pub async fn operations_fsinfo<'a>(
8443 &'a self,
8444 async_: Option<bool>,
8445 group: Option<&'a str>,
8446 fs: &'a str,
8447 ) -> Result<ResponseValue<types::OperationsFsinfoResponse>, Error<types::RcError>> {
8448 let url = format!("{}/operations/fsinfo", self.baseurl,);
8449 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8450 header_map.append(
8451 ::reqwest::header::HeaderName::from_static("api-version"),
8452 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8453 );
8454 #[allow(unused_mut)]
8455 let mut request = self
8456 .client
8457 .post(url)
8458 .header(
8459 ::reqwest::header::ACCEPT,
8460 ::reqwest::header::HeaderValue::from_static("application/json"),
8461 )
8462 .query(&progenitor_client::QueryParam::new("_async", &async_))
8463 .query(&progenitor_client::QueryParam::new("_group", &group))
8464 .query(&progenitor_client::QueryParam::new("fs", &fs))
8465 .headers(header_map)
8466 .build()?;
8467 let info = OperationInfo {
8468 operation_id: "operations_fsinfo",
8469 };
8470 self.pre(&mut request, &info).await?;
8471 let result = self.exec(request, &info).await;
8472 self.post(&result, &info).await?;
8473 let response = result?;
8474 match response.status().as_u16() {
8475 200u16 => ResponseValue::from_response(response).await,
8476 400u16..=499u16 => Err(Error::ErrorResponse(
8477 ResponseValue::from_response(response).await?,
8478 )),
8479 500u16..=599u16 => Err(Error::ErrorResponse(
8480 ResponseValue::from_response(response).await?,
8481 )),
8482 _ => Err(Error::UnexpectedResponse(response)),
8483 }
8484 }
8485
8486 pub async fn operations_hashsum<'a>(
8505 &'a self,
8506 async_: Option<bool>,
8507 group: Option<&'a str>,
8508 base64: Option<bool>,
8509 download: Option<bool>,
8510 fs: &'a str,
8511 hash_type: &'a str,
8512 ) -> Result<ResponseValue<types::OperationsHashsumResponse>, Error<types::RcError>> {
8513 let url = format!("{}/operations/hashsum", self.baseurl,);
8514 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8515 header_map.append(
8516 ::reqwest::header::HeaderName::from_static("api-version"),
8517 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8518 );
8519 #[allow(unused_mut)]
8520 let mut request = self
8521 .client
8522 .post(url)
8523 .header(
8524 ::reqwest::header::ACCEPT,
8525 ::reqwest::header::HeaderValue::from_static("application/json"),
8526 )
8527 .query(&progenitor_client::QueryParam::new("_async", &async_))
8528 .query(&progenitor_client::QueryParam::new("_group", &group))
8529 .query(&progenitor_client::QueryParam::new("base64", &base64))
8530 .query(&progenitor_client::QueryParam::new("download", &download))
8531 .query(&progenitor_client::QueryParam::new("fs", &fs))
8532 .query(&progenitor_client::QueryParam::new("hashType", &hash_type))
8533 .headers(header_map)
8534 .build()?;
8535 let info = OperationInfo {
8536 operation_id: "operations_hashsum",
8537 };
8538 self.pre(&mut request, &info).await?;
8539 let result = self.exec(request, &info).await;
8540 self.post(&result, &info).await?;
8541 let response = result?;
8542 match response.status().as_u16() {
8543 200u16 => ResponseValue::from_response(response).await,
8544 400u16..=499u16 => Err(Error::ErrorResponse(
8545 ResponseValue::from_response(response).await?,
8546 )),
8547 500u16..=599u16 => Err(Error::ErrorResponse(
8548 ResponseValue::from_response(response).await?,
8549 )),
8550 _ => Err(Error::UnexpectedResponse(response)),
8551 }
8552 }
8553
8554 pub async fn operations_movefile<'a>(
8571 &'a self,
8572 async_: Option<bool>,
8573 group: Option<&'a str>,
8574 dst_fs: &'a str,
8575 dst_remote: &'a str,
8576 src_fs: &'a str,
8577 src_remote: &'a str,
8578 ) -> Result<
8579 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8580 Error<types::RcError>,
8581 > {
8582 let url = format!("{}/operations/movefile", self.baseurl,);
8583 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8584 header_map.append(
8585 ::reqwest::header::HeaderName::from_static("api-version"),
8586 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8587 );
8588 #[allow(unused_mut)]
8589 let mut request = self
8590 .client
8591 .post(url)
8592 .header(
8593 ::reqwest::header::ACCEPT,
8594 ::reqwest::header::HeaderValue::from_static("application/json"),
8595 )
8596 .query(&progenitor_client::QueryParam::new("_async", &async_))
8597 .query(&progenitor_client::QueryParam::new("_group", &group))
8598 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
8599 .query(&progenitor_client::QueryParam::new(
8600 "dstRemote",
8601 &dst_remote,
8602 ))
8603 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
8604 .query(&progenitor_client::QueryParam::new(
8605 "srcRemote",
8606 &src_remote,
8607 ))
8608 .headers(header_map)
8609 .build()?;
8610 let info = OperationInfo {
8611 operation_id: "operations_movefile",
8612 };
8613 self.pre(&mut request, &info).await?;
8614 let result = self.exec(request, &info).await;
8615 self.post(&result, &info).await?;
8616 let response = result?;
8617 match response.status().as_u16() {
8618 200u16 => ResponseValue::from_response(response).await,
8619 400u16..=499u16 => Err(Error::ErrorResponse(
8620 ResponseValue::from_response(response).await?,
8621 )),
8622 500u16..=599u16 => Err(Error::ErrorResponse(
8623 ResponseValue::from_response(response).await?,
8624 )),
8625 _ => Err(Error::UnexpectedResponse(response)),
8626 }
8627 }
8628
8629 pub async fn operations_publiclink<'a>(
8649 &'a self,
8650 async_: Option<bool>,
8651 group: Option<&'a str>,
8652 expire: Option<&'a str>,
8653 fs: &'a str,
8654 remote: &'a str,
8655 unlink: Option<bool>,
8656 ) -> Result<ResponseValue<types::OperationsPubliclinkResponse>, Error<types::RcError>> {
8657 let url = format!("{}/operations/publiclink", self.baseurl,);
8658 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8659 header_map.append(
8660 ::reqwest::header::HeaderName::from_static("api-version"),
8661 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8662 );
8663 #[allow(unused_mut)]
8664 let mut request = self
8665 .client
8666 .post(url)
8667 .header(
8668 ::reqwest::header::ACCEPT,
8669 ::reqwest::header::HeaderValue::from_static("application/json"),
8670 )
8671 .query(&progenitor_client::QueryParam::new("_async", &async_))
8672 .query(&progenitor_client::QueryParam::new("_group", &group))
8673 .query(&progenitor_client::QueryParam::new("expire", &expire))
8674 .query(&progenitor_client::QueryParam::new("fs", &fs))
8675 .query(&progenitor_client::QueryParam::new("remote", &remote))
8676 .query(&progenitor_client::QueryParam::new("unlink", &unlink))
8677 .headers(header_map)
8678 .build()?;
8679 let info = OperationInfo {
8680 operation_id: "operations_publiclink",
8681 };
8682 self.pre(&mut request, &info).await?;
8683 let result = self.exec(request, &info).await;
8684 self.post(&result, &info).await?;
8685 let response = result?;
8686 match response.status().as_u16() {
8687 200u16 => ResponseValue::from_response(response).await,
8688 400u16..=499u16 => Err(Error::ErrorResponse(
8689 ResponseValue::from_response(response).await?,
8690 )),
8691 500u16..=599u16 => Err(Error::ErrorResponse(
8692 ResponseValue::from_response(response).await?,
8693 )),
8694 _ => Err(Error::UnexpectedResponse(response)),
8695 }
8696 }
8697
8698 pub async fn operations_rmdirs<'a>(
8715 &'a self,
8716 async_: Option<bool>,
8717 group: Option<&'a str>,
8718 fs: &'a str,
8719 leave_root: Option<bool>,
8720 remote: &'a str,
8721 ) -> Result<
8722 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8723 Error<types::RcError>,
8724 > {
8725 let url = format!("{}/operations/rmdirs", self.baseurl,);
8726 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8727 header_map.append(
8728 ::reqwest::header::HeaderName::from_static("api-version"),
8729 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8730 );
8731 #[allow(unused_mut)]
8732 let mut request = self
8733 .client
8734 .post(url)
8735 .header(
8736 ::reqwest::header::ACCEPT,
8737 ::reqwest::header::HeaderValue::from_static("application/json"),
8738 )
8739 .query(&progenitor_client::QueryParam::new("_async", &async_))
8740 .query(&progenitor_client::QueryParam::new("_group", &group))
8741 .query(&progenitor_client::QueryParam::new("fs", &fs))
8742 .query(&progenitor_client::QueryParam::new(
8743 "leaveRoot",
8744 &leave_root,
8745 ))
8746 .query(&progenitor_client::QueryParam::new("remote", &remote))
8747 .headers(header_map)
8748 .build()?;
8749 let info = OperationInfo {
8750 operation_id: "operations_rmdirs",
8751 };
8752 self.pre(&mut request, &info).await?;
8753 let result = self.exec(request, &info).await;
8754 self.post(&result, &info).await?;
8755 let response = result?;
8756 match response.status().as_u16() {
8757 200u16 => ResponseValue::from_response(response).await,
8758 400u16..=499u16 => Err(Error::ErrorResponse(
8759 ResponseValue::from_response(response).await?,
8760 )),
8761 500u16..=599u16 => Err(Error::ErrorResponse(
8762 ResponseValue::from_response(response).await?,
8763 )),
8764 _ => Err(Error::UnexpectedResponse(response)),
8765 }
8766 }
8767
8768 pub async fn operations_settier<'a>(
8781 &'a self,
8782 async_: Option<bool>,
8783 group: Option<&'a str>,
8784 fs: &'a str,
8785 ) -> Result<
8786 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8787 Error<types::RcError>,
8788 > {
8789 let url = format!("{}/operations/settier", self.baseurl,);
8790 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8791 header_map.append(
8792 ::reqwest::header::HeaderName::from_static("api-version"),
8793 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8794 );
8795 #[allow(unused_mut)]
8796 let mut request = self
8797 .client
8798 .post(url)
8799 .header(
8800 ::reqwest::header::ACCEPT,
8801 ::reqwest::header::HeaderValue::from_static("application/json"),
8802 )
8803 .query(&progenitor_client::QueryParam::new("_async", &async_))
8804 .query(&progenitor_client::QueryParam::new("_group", &group))
8805 .query(&progenitor_client::QueryParam::new("fs", &fs))
8806 .headers(header_map)
8807 .build()?;
8808 let info = OperationInfo {
8809 operation_id: "operations_settier",
8810 };
8811 self.pre(&mut request, &info).await?;
8812 let result = self.exec(request, &info).await;
8813 self.post(&result, &info).await?;
8814 let response = result?;
8815 match response.status().as_u16() {
8816 200u16 => ResponseValue::from_response(response).await,
8817 400u16..=499u16 => Err(Error::ErrorResponse(
8818 ResponseValue::from_response(response).await?,
8819 )),
8820 500u16..=599u16 => Err(Error::ErrorResponse(
8821 ResponseValue::from_response(response).await?,
8822 )),
8823 _ => Err(Error::UnexpectedResponse(response)),
8824 }
8825 }
8826
8827 pub async fn operations_settierfile<'a>(
8842 &'a self,
8843 async_: Option<bool>,
8844 group: Option<&'a str>,
8845 fs: &'a str,
8846 remote: &'a str,
8847 ) -> Result<
8848 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8849 Error<types::RcError>,
8850 > {
8851 let url = format!("{}/operations/settierfile", self.baseurl,);
8852 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8853 header_map.append(
8854 ::reqwest::header::HeaderName::from_static("api-version"),
8855 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8856 );
8857 #[allow(unused_mut)]
8858 let mut request = self
8859 .client
8860 .post(url)
8861 .header(
8862 ::reqwest::header::ACCEPT,
8863 ::reqwest::header::HeaderValue::from_static("application/json"),
8864 )
8865 .query(&progenitor_client::QueryParam::new("_async", &async_))
8866 .query(&progenitor_client::QueryParam::new("_group", &group))
8867 .query(&progenitor_client::QueryParam::new("fs", &fs))
8868 .query(&progenitor_client::QueryParam::new("remote", &remote))
8869 .headers(header_map)
8870 .build()?;
8871 let info = OperationInfo {
8872 operation_id: "operations_settierfile",
8873 };
8874 self.pre(&mut request, &info).await?;
8875 let result = self.exec(request, &info).await;
8876 self.post(&result, &info).await?;
8877 let response = result?;
8878 match response.status().as_u16() {
8879 200u16 => ResponseValue::from_response(response).await,
8880 400u16..=499u16 => Err(Error::ErrorResponse(
8881 ResponseValue::from_response(response).await?,
8882 )),
8883 500u16..=599u16 => Err(Error::ErrorResponse(
8884 ResponseValue::from_response(response).await?,
8885 )),
8886 _ => Err(Error::UnexpectedResponse(response)),
8887 }
8888 }
8889
8890 pub async fn operations_size<'a>(
8903 &'a self,
8904 async_: Option<bool>,
8905 group: Option<&'a str>,
8906 fs: &'a str,
8907 ) -> Result<ResponseValue<types::OperationsSizeResponse>, Error<types::RcError>> {
8908 let url = format!("{}/operations/size", self.baseurl,);
8909 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8910 header_map.append(
8911 ::reqwest::header::HeaderName::from_static("api-version"),
8912 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8913 );
8914 #[allow(unused_mut)]
8915 let mut request = self
8916 .client
8917 .post(url)
8918 .header(
8919 ::reqwest::header::ACCEPT,
8920 ::reqwest::header::HeaderValue::from_static("application/json"),
8921 )
8922 .query(&progenitor_client::QueryParam::new("_async", &async_))
8923 .query(&progenitor_client::QueryParam::new("_group", &group))
8924 .query(&progenitor_client::QueryParam::new("fs", &fs))
8925 .headers(header_map)
8926 .build()?;
8927 let info = OperationInfo {
8928 operation_id: "operations_size",
8929 };
8930 self.pre(&mut request, &info).await?;
8931 let result = self.exec(request, &info).await;
8932 self.post(&result, &info).await?;
8933 let response = result?;
8934 match response.status().as_u16() {
8935 200u16 => ResponseValue::from_response(response).await,
8936 400u16..=499u16 => Err(Error::ErrorResponse(
8937 ResponseValue::from_response(response).await?,
8938 )),
8939 500u16..=599u16 => Err(Error::ErrorResponse(
8940 ResponseValue::from_response(response).await?,
8941 )),
8942 _ => Err(Error::UnexpectedResponse(response)),
8943 }
8944 }
8945
8946 pub async fn core_bwlimit<'a>(
8960 &'a self,
8961 async_: Option<bool>,
8962 group: Option<&'a str>,
8963 rate: Option<&'a str>,
8964 ) -> Result<ResponseValue<types::CoreBwlimitResponse>, Error<types::RcError>> {
8965 let url = format!("{}/core/bwlimit", self.baseurl,);
8966 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8967 header_map.append(
8968 ::reqwest::header::HeaderName::from_static("api-version"),
8969 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8970 );
8971 #[allow(unused_mut)]
8972 let mut request = self
8973 .client
8974 .post(url)
8975 .header(
8976 ::reqwest::header::ACCEPT,
8977 ::reqwest::header::HeaderValue::from_static("application/json"),
8978 )
8979 .query(&progenitor_client::QueryParam::new("_async", &async_))
8980 .query(&progenitor_client::QueryParam::new("_group", &group))
8981 .query(&progenitor_client::QueryParam::new("rate", &rate))
8982 .headers(header_map)
8983 .build()?;
8984 let info = OperationInfo {
8985 operation_id: "core_bwlimit",
8986 };
8987 self.pre(&mut request, &info).await?;
8988 let result = self.exec(request, &info).await;
8989 self.post(&result, &info).await?;
8990 let response = result?;
8991 match response.status().as_u16() {
8992 200u16 => ResponseValue::from_response(response).await,
8993 400u16..=499u16 => Err(Error::ErrorResponse(
8994 ResponseValue::from_response(response).await?,
8995 )),
8996 500u16..=599u16 => Err(Error::ErrorResponse(
8997 ResponseValue::from_response(response).await?,
8998 )),
8999 _ => Err(Error::UnexpectedResponse(response)),
9000 }
9001 }
9002
9003 pub async fn core_command<'a>(
9023 &'a self,
9024 async_: Option<bool>,
9025 group: Option<&'a str>,
9026 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
9027 command: &'a str,
9028 opt: Option<&'a str>,
9029 return_type: Option<&'a str>,
9030 ) -> Result<ResponseValue<types::CoreCommandResponse>, Error<types::RcError>> {
9031 let url = format!("{}/core/command", self.baseurl,);
9032 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9033 header_map.append(
9034 ::reqwest::header::HeaderName::from_static("api-version"),
9035 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9036 );
9037 #[allow(unused_mut)]
9038 let mut request = self
9039 .client
9040 .post(url)
9041 .header(
9042 ::reqwest::header::ACCEPT,
9043 ::reqwest::header::HeaderValue::from_static("application/json"),
9044 )
9045 .query(&progenitor_client::QueryParam::new("_async", &async_))
9046 .query(&progenitor_client::QueryParam::new("_group", &group))
9047 .query(&progenitor_client::QueryParam::new("arg", &arg))
9048 .query(&progenitor_client::QueryParam::new("command", &command))
9049 .query(&progenitor_client::QueryParam::new("opt", &opt))
9050 .query(&progenitor_client::QueryParam::new(
9051 "returnType",
9052 &return_type,
9053 ))
9054 .headers(header_map)
9055 .build()?;
9056 let info = OperationInfo {
9057 operation_id: "core_command",
9058 };
9059 self.pre(&mut request, &info).await?;
9060 let result = self.exec(request, &info).await;
9061 self.post(&result, &info).await?;
9062 let response = result?;
9063 match response.status().as_u16() {
9064 200u16 => ResponseValue::from_response(response).await,
9065 400u16..=499u16 => Err(Error::ErrorResponse(
9066 ResponseValue::from_response(response).await?,
9067 )),
9068 500u16..=599u16 => Err(Error::ErrorResponse(
9069 ResponseValue::from_response(response).await?,
9070 )),
9071 _ => Err(Error::UnexpectedResponse(response)),
9072 }
9073 }
9074
9075 pub async fn core_du<'a>(
9089 &'a self,
9090 async_: Option<bool>,
9091 group: Option<&'a str>,
9092 dir: Option<&'a str>,
9093 ) -> Result<ResponseValue<types::CoreDuResponse>, Error<types::RcError>> {
9094 let url = format!("{}/core/du", self.baseurl,);
9095 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9096 header_map.append(
9097 ::reqwest::header::HeaderName::from_static("api-version"),
9098 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9099 );
9100 #[allow(unused_mut)]
9101 let mut request = self
9102 .client
9103 .post(url)
9104 .header(
9105 ::reqwest::header::ACCEPT,
9106 ::reqwest::header::HeaderValue::from_static("application/json"),
9107 )
9108 .query(&progenitor_client::QueryParam::new("_async", &async_))
9109 .query(&progenitor_client::QueryParam::new("_group", &group))
9110 .query(&progenitor_client::QueryParam::new("dir", &dir))
9111 .headers(header_map)
9112 .build()?;
9113 let info = OperationInfo {
9114 operation_id: "core_du",
9115 };
9116 self.pre(&mut request, &info).await?;
9117 let result = self.exec(request, &info).await;
9118 self.post(&result, &info).await?;
9119 let response = result?;
9120 match response.status().as_u16() {
9121 200u16 => ResponseValue::from_response(response).await,
9122 400u16..=499u16 => Err(Error::ErrorResponse(
9123 ResponseValue::from_response(response).await?,
9124 )),
9125 500u16..=599u16 => Err(Error::ErrorResponse(
9126 ResponseValue::from_response(response).await?,
9127 )),
9128 _ => Err(Error::UnexpectedResponse(response)),
9129 }
9130 }
9131
9132 pub async fn core_gc<'a>(
9143 &'a self,
9144 async_: Option<bool>,
9145 group: Option<&'a str>,
9146 ) -> Result<
9147 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9148 Error<types::RcError>,
9149 > {
9150 let url = format!("{}/core/gc", self.baseurl,);
9151 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9152 header_map.append(
9153 ::reqwest::header::HeaderName::from_static("api-version"),
9154 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9155 );
9156 #[allow(unused_mut)]
9157 let mut request = self
9158 .client
9159 .post(url)
9160 .header(
9161 ::reqwest::header::ACCEPT,
9162 ::reqwest::header::HeaderValue::from_static("application/json"),
9163 )
9164 .query(&progenitor_client::QueryParam::new("_async", &async_))
9165 .query(&progenitor_client::QueryParam::new("_group", &group))
9166 .headers(header_map)
9167 .build()?;
9168 let info = OperationInfo {
9169 operation_id: "core_gc",
9170 };
9171 self.pre(&mut request, &info).await?;
9172 let result = self.exec(request, &info).await;
9173 self.post(&result, &info).await?;
9174 let response = result?;
9175 match response.status().as_u16() {
9176 200u16 => ResponseValue::from_response(response).await,
9177 400u16..=499u16 => Err(Error::ErrorResponse(
9178 ResponseValue::from_response(response).await?,
9179 )),
9180 500u16..=599u16 => Err(Error::ErrorResponse(
9181 ResponseValue::from_response(response).await?,
9182 )),
9183 _ => Err(Error::UnexpectedResponse(response)),
9184 }
9185 }
9186
9187 pub async fn core_group_list<'a>(
9198 &'a self,
9199 async_: Option<bool>,
9200 group: Option<&'a str>,
9201 ) -> Result<ResponseValue<types::CoreGroupListResponse>, Error<types::RcError>> {
9202 let url = format!("{}/core/group-list", self.baseurl,);
9203 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9204 header_map.append(
9205 ::reqwest::header::HeaderName::from_static("api-version"),
9206 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9207 );
9208 #[allow(unused_mut)]
9209 let mut request = self
9210 .client
9211 .post(url)
9212 .header(
9213 ::reqwest::header::ACCEPT,
9214 ::reqwest::header::HeaderValue::from_static("application/json"),
9215 )
9216 .query(&progenitor_client::QueryParam::new("_async", &async_))
9217 .query(&progenitor_client::QueryParam::new("_group", &group))
9218 .headers(header_map)
9219 .build()?;
9220 let info = OperationInfo {
9221 operation_id: "core_group_list",
9222 };
9223 self.pre(&mut request, &info).await?;
9224 let result = self.exec(request, &info).await;
9225 self.post(&result, &info).await?;
9226 let response = result?;
9227 match response.status().as_u16() {
9228 200u16 => ResponseValue::from_response(response).await,
9229 400u16..=499u16 => Err(Error::ErrorResponse(
9230 ResponseValue::from_response(response).await?,
9231 )),
9232 500u16..=599u16 => Err(Error::ErrorResponse(
9233 ResponseValue::from_response(response).await?,
9234 )),
9235 _ => Err(Error::UnexpectedResponse(response)),
9236 }
9237 }
9238
9239 pub async fn core_memstats<'a>(
9250 &'a self,
9251 async_: Option<bool>,
9252 group: Option<&'a str>,
9253 ) -> Result<
9254 ResponseValue<::std::collections::HashMap<::std::string::String, f64>>,
9255 Error<types::RcError>,
9256 > {
9257 let url = format!("{}/core/memstats", self.baseurl,);
9258 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9259 header_map.append(
9260 ::reqwest::header::HeaderName::from_static("api-version"),
9261 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9262 );
9263 #[allow(unused_mut)]
9264 let mut request = self
9265 .client
9266 .post(url)
9267 .header(
9268 ::reqwest::header::ACCEPT,
9269 ::reqwest::header::HeaderValue::from_static("application/json"),
9270 )
9271 .query(&progenitor_client::QueryParam::new("_async", &async_))
9272 .query(&progenitor_client::QueryParam::new("_group", &group))
9273 .headers(header_map)
9274 .build()?;
9275 let info = OperationInfo {
9276 operation_id: "core_memstats",
9277 };
9278 self.pre(&mut request, &info).await?;
9279 let result = self.exec(request, &info).await;
9280 self.post(&result, &info).await?;
9281 let response = result?;
9282 match response.status().as_u16() {
9283 200u16 => ResponseValue::from_response(response).await,
9284 400u16..=499u16 => Err(Error::ErrorResponse(
9285 ResponseValue::from_response(response).await?,
9286 )),
9287 500u16..=599u16 => Err(Error::ErrorResponse(
9288 ResponseValue::from_response(response).await?,
9289 )),
9290 _ => Err(Error::UnexpectedResponse(response)),
9291 }
9292 }
9293
9294 pub async fn core_obscure<'a>(
9306 &'a self,
9307 async_: Option<bool>,
9308 group: Option<&'a str>,
9309 clear: &'a str,
9310 ) -> Result<ResponseValue<types::CoreObscureResponse>, Error<types::RcError>> {
9311 let url = format!("{}/core/obscure", self.baseurl,);
9312 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9313 header_map.append(
9314 ::reqwest::header::HeaderName::from_static("api-version"),
9315 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9316 );
9317 #[allow(unused_mut)]
9318 let mut request = self
9319 .client
9320 .post(url)
9321 .header(
9322 ::reqwest::header::ACCEPT,
9323 ::reqwest::header::HeaderValue::from_static("application/json"),
9324 )
9325 .query(&progenitor_client::QueryParam::new("_async", &async_))
9326 .query(&progenitor_client::QueryParam::new("_group", &group))
9327 .query(&progenitor_client::QueryParam::new("clear", &clear))
9328 .headers(header_map)
9329 .build()?;
9330 let info = OperationInfo {
9331 operation_id: "core_obscure",
9332 };
9333 self.pre(&mut request, &info).await?;
9334 let result = self.exec(request, &info).await;
9335 self.post(&result, &info).await?;
9336 let response = result?;
9337 match response.status().as_u16() {
9338 200u16 => ResponseValue::from_response(response).await,
9339 400u16..=499u16 => Err(Error::ErrorResponse(
9340 ResponseValue::from_response(response).await?,
9341 )),
9342 500u16..=599u16 => Err(Error::ErrorResponse(
9343 ResponseValue::from_response(response).await?,
9344 )),
9345 _ => Err(Error::UnexpectedResponse(response)),
9346 }
9347 }
9348
9349 pub async fn core_pid<'a>(
9360 &'a self,
9361 async_: Option<bool>,
9362 group: Option<&'a str>,
9363 ) -> Result<ResponseValue<types::CorePidResponse>, Error<types::RcError>> {
9364 let url = format!("{}/core/pid", self.baseurl,);
9365 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9366 header_map.append(
9367 ::reqwest::header::HeaderName::from_static("api-version"),
9368 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9369 );
9370 #[allow(unused_mut)]
9371 let mut request = self
9372 .client
9373 .post(url)
9374 .header(
9375 ::reqwest::header::ACCEPT,
9376 ::reqwest::header::HeaderValue::from_static("application/json"),
9377 )
9378 .query(&progenitor_client::QueryParam::new("_async", &async_))
9379 .query(&progenitor_client::QueryParam::new("_group", &group))
9380 .headers(header_map)
9381 .build()?;
9382 let info = OperationInfo {
9383 operation_id: "core_pid",
9384 };
9385 self.pre(&mut request, &info).await?;
9386 let result = self.exec(request, &info).await;
9387 self.post(&result, &info).await?;
9388 let response = result?;
9389 match response.status().as_u16() {
9390 200u16 => ResponseValue::from_response(response).await,
9391 400u16..=499u16 => Err(Error::ErrorResponse(
9392 ResponseValue::from_response(response).await?,
9393 )),
9394 500u16..=599u16 => Err(Error::ErrorResponse(
9395 ResponseValue::from_response(response).await?,
9396 )),
9397 _ => Err(Error::UnexpectedResponse(response)),
9398 }
9399 }
9400
9401 pub async fn core_quit<'a>(
9414 &'a self,
9415 async_: Option<bool>,
9416 group: Option<&'a str>,
9417 exit_code: Option<i64>,
9418 ) -> Result<
9419 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9420 Error<types::RcError>,
9421 > {
9422 let url = format!("{}/core/quit", self.baseurl,);
9423 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9424 header_map.append(
9425 ::reqwest::header::HeaderName::from_static("api-version"),
9426 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9427 );
9428 #[allow(unused_mut)]
9429 let mut request = self
9430 .client
9431 .post(url)
9432 .header(
9433 ::reqwest::header::ACCEPT,
9434 ::reqwest::header::HeaderValue::from_static("application/json"),
9435 )
9436 .query(&progenitor_client::QueryParam::new("_async", &async_))
9437 .query(&progenitor_client::QueryParam::new("_group", &group))
9438 .query(&progenitor_client::QueryParam::new("exitCode", &exit_code))
9439 .headers(header_map)
9440 .build()?;
9441 let info = OperationInfo {
9442 operation_id: "core_quit",
9443 };
9444 self.pre(&mut request, &info).await?;
9445 let result = self.exec(request, &info).await;
9446 self.post(&result, &info).await?;
9447 let response = result?;
9448 match response.status().as_u16() {
9449 200u16 => ResponseValue::from_response(response).await,
9450 400u16..=499u16 => Err(Error::ErrorResponse(
9451 ResponseValue::from_response(response).await?,
9452 )),
9453 500u16..=599u16 => Err(Error::ErrorResponse(
9454 ResponseValue::from_response(response).await?,
9455 )),
9456 _ => Err(Error::UnexpectedResponse(response)),
9457 }
9458 }
9459
9460 pub async fn core_stats_delete<'a>(
9472 &'a self,
9473 async_: Option<bool>,
9474 _group: Option<&'a str>,
9475 group: &'a str
9476 ) -> Result<
9477 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9478 Error<types::RcError>,
9479 > {
9480 let url = format!("{}/core/stats-delete", self.baseurl,);
9481 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9482 header_map.append(
9483 ::reqwest::header::HeaderName::from_static("api-version"),
9484 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9485 );
9486 #[allow(unused_mut)]
9487 let mut request = self
9488 .client
9489 .post(url)
9490 .header(
9491 ::reqwest::header::ACCEPT,
9492 ::reqwest::header::HeaderValue::from_static("application/json"),
9493 )
9494 .query(&progenitor_client::QueryParam::new("_async", &async_))
9495 .query(&progenitor_client::QueryParam::new("_group", &group))
9496 .query(&progenitor_client::QueryParam::new("group", &group))
9497 .headers(header_map)
9498 .build()?;
9499 let info = OperationInfo {
9500 operation_id: "core_stats_delete",
9501 };
9502 self.pre(&mut request, &info).await?;
9503 let result = self.exec(request, &info).await;
9504 self.post(&result, &info).await?;
9505 let response = result?;
9506 match response.status().as_u16() {
9507 200u16 => ResponseValue::from_response(response).await,
9508 400u16..=499u16 => Err(Error::ErrorResponse(
9509 ResponseValue::from_response(response).await?,
9510 )),
9511 500u16..=599u16 => Err(Error::ErrorResponse(
9512 ResponseValue::from_response(response).await?,
9513 )),
9514 _ => Err(Error::UnexpectedResponse(response)),
9515 }
9516 }
9517
9518 pub async fn core_stats_reset<'a>(
9532 &'a self,
9533 async_: Option<bool>,
9534 _group: Option<&'a str>,
9535 group: Option<&'a str>
9536 ) -> Result<
9537 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9538 Error<types::RcError>,
9539 > {
9540 let url = format!("{}/core/stats-reset", self.baseurl,);
9541 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9542 header_map.append(
9543 ::reqwest::header::HeaderName::from_static("api-version"),
9544 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9545 );
9546 #[allow(unused_mut)]
9547 let mut request = self
9548 .client
9549 .post(url)
9550 .header(
9551 ::reqwest::header::ACCEPT,
9552 ::reqwest::header::HeaderValue::from_static("application/json"),
9553 )
9554 .query(&progenitor_client::QueryParam::new("_async", &async_))
9555 .query(&progenitor_client::QueryParam::new("_group", &group))
9556 .query(&progenitor_client::QueryParam::new("group", &group))
9557 .headers(header_map)
9558 .build()?;
9559 let info = OperationInfo {
9560 operation_id: "core_stats_reset",
9561 };
9562 self.pre(&mut request, &info).await?;
9563 let result = self.exec(request, &info).await;
9564 self.post(&result, &info).await?;
9565 let response = result?;
9566 match response.status().as_u16() {
9567 200u16 => ResponseValue::from_response(response).await,
9568 400u16..=499u16 => Err(Error::ErrorResponse(
9569 ResponseValue::from_response(response).await?,
9570 )),
9571 500u16..=599u16 => Err(Error::ErrorResponse(
9572 ResponseValue::from_response(response).await?,
9573 )),
9574 _ => Err(Error::UnexpectedResponse(response)),
9575 }
9576 }
9577
9578 pub async fn core_transferred<'a>(
9592 &'a self,
9593 async_: Option<bool>,
9594 _group: Option<&'a str>,
9595 group: Option<&'a str>
9596 ) -> Result<ResponseValue<types::CoreTransferredResponse>, Error<types::RcError>> {
9597 let url = format!("{}/core/transferred", self.baseurl,);
9598 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9599 header_map.append(
9600 ::reqwest::header::HeaderName::from_static("api-version"),
9601 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9602 );
9603 #[allow(unused_mut)]
9604 let mut request = self
9605 .client
9606 .post(url)
9607 .header(
9608 ::reqwest::header::ACCEPT,
9609 ::reqwest::header::HeaderValue::from_static("application/json"),
9610 )
9611 .query(&progenitor_client::QueryParam::new("_async", &async_))
9612 .query(&progenitor_client::QueryParam::new("_group", &group))
9613 .query(&progenitor_client::QueryParam::new("group", &group))
9614 .headers(header_map)
9615 .build()?;
9616 let info = OperationInfo {
9617 operation_id: "core_transferred",
9618 };
9619 self.pre(&mut request, &info).await?;
9620 let result = self.exec(request, &info).await;
9621 self.post(&result, &info).await?;
9622 let response = result?;
9623 match response.status().as_u16() {
9624 200u16 => ResponseValue::from_response(response).await,
9625 400u16..=499u16 => Err(Error::ErrorResponse(
9626 ResponseValue::from_response(response).await?,
9627 )),
9628 500u16..=599u16 => Err(Error::ErrorResponse(
9629 ResponseValue::from_response(response).await?,
9630 )),
9631 _ => Err(Error::UnexpectedResponse(response)),
9632 }
9633 }
9634
9635 pub async fn debug_set_block_profile_rate<'a>(
9644 &'a self,
9645 async_: Option<bool>,
9646 group: Option<&'a str>,
9647 rate: i64,
9648 ) -> Result<
9649 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9650 Error<types::RcError>,
9651 > {
9652 let url = format!("{}/debug/set-block-profile-rate", self.baseurl,);
9653 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9654 header_map.append(
9655 ::reqwest::header::HeaderName::from_static("api-version"),
9656 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9657 );
9658 #[allow(unused_mut)]
9659 let mut request = self
9660 .client
9661 .post(url)
9662 .header(
9663 ::reqwest::header::ACCEPT,
9664 ::reqwest::header::HeaderValue::from_static("application/json"),
9665 )
9666 .query(&progenitor_client::QueryParam::new("_async", &async_))
9667 .query(&progenitor_client::QueryParam::new("_group", &group))
9668 .query(&progenitor_client::QueryParam::new("rate", &rate))
9669 .headers(header_map)
9670 .build()?;
9671 let info = OperationInfo {
9672 operation_id: "debug_set_block_profile_rate",
9673 };
9674 self.pre(&mut request, &info).await?;
9675 let result = self.exec(request, &info).await;
9676 self.post(&result, &info).await?;
9677 let response = result?;
9678 match response.status().as_u16() {
9679 200u16 => ResponseValue::from_response(response).await,
9680 400u16..=499u16 => Err(Error::ErrorResponse(
9681 ResponseValue::from_response(response).await?,
9682 )),
9683 500u16..=599u16 => Err(Error::ErrorResponse(
9684 ResponseValue::from_response(response).await?,
9685 )),
9686 _ => Err(Error::UnexpectedResponse(response)),
9687 }
9688 }
9689
9690 pub async fn debug_set_gc_percent<'a>(
9699 &'a self,
9700 async_: Option<bool>,
9701 group: Option<&'a str>,
9702 gc_percent: i64,
9703 ) -> Result<ResponseValue<types::DebugSetGcPercentResponse>, Error<types::RcError>> {
9704 let url = format!("{}/debug/set-gc-percent", self.baseurl,);
9705 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9706 header_map.append(
9707 ::reqwest::header::HeaderName::from_static("api-version"),
9708 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9709 );
9710 #[allow(unused_mut)]
9711 let mut request = self
9712 .client
9713 .post(url)
9714 .header(
9715 ::reqwest::header::ACCEPT,
9716 ::reqwest::header::HeaderValue::from_static("application/json"),
9717 )
9718 .query(&progenitor_client::QueryParam::new("_async", &async_))
9719 .query(&progenitor_client::QueryParam::new("_group", &group))
9720 .query(&progenitor_client::QueryParam::new(
9721 "gc-percent",
9722 &gc_percent,
9723 ))
9724 .headers(header_map)
9725 .build()?;
9726 let info = OperationInfo {
9727 operation_id: "debug_set_gc_percent",
9728 };
9729 self.pre(&mut request, &info).await?;
9730 let result = self.exec(request, &info).await;
9731 self.post(&result, &info).await?;
9732 let response = result?;
9733 match response.status().as_u16() {
9734 200u16 => ResponseValue::from_response(response).await,
9735 400u16..=499u16 => Err(Error::ErrorResponse(
9736 ResponseValue::from_response(response).await?,
9737 )),
9738 500u16..=599u16 => Err(Error::ErrorResponse(
9739 ResponseValue::from_response(response).await?,
9740 )),
9741 _ => Err(Error::UnexpectedResponse(response)),
9742 }
9743 }
9744
9745 pub async fn debug_set_mutex_profile_fraction<'a>(
9754 &'a self,
9755 async_: Option<bool>,
9756 group: Option<&'a str>,
9757 rate: i64,
9758 ) -> Result<ResponseValue<types::DebugSetMutexProfileFractionResponse>, Error<types::RcError>>
9759 {
9760 let url = format!("{}/debug/set-mutex-profile-fraction", self.baseurl,);
9761 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9762 header_map.append(
9763 ::reqwest::header::HeaderName::from_static("api-version"),
9764 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9765 );
9766 #[allow(unused_mut)]
9767 let mut request = self
9768 .client
9769 .post(url)
9770 .header(
9771 ::reqwest::header::ACCEPT,
9772 ::reqwest::header::HeaderValue::from_static("application/json"),
9773 )
9774 .query(&progenitor_client::QueryParam::new("_async", &async_))
9775 .query(&progenitor_client::QueryParam::new("_group", &group))
9776 .query(&progenitor_client::QueryParam::new("rate", &rate))
9777 .headers(header_map)
9778 .build()?;
9779 let info = OperationInfo {
9780 operation_id: "debug_set_mutex_profile_fraction",
9781 };
9782 self.pre(&mut request, &info).await?;
9783 let result = self.exec(request, &info).await;
9784 self.post(&result, &info).await?;
9785 let response = result?;
9786 match response.status().as_u16() {
9787 200u16 => ResponseValue::from_response(response).await,
9788 400u16..=499u16 => Err(Error::ErrorResponse(
9789 ResponseValue::from_response(response).await?,
9790 )),
9791 500u16..=599u16 => Err(Error::ErrorResponse(
9792 ResponseValue::from_response(response).await?,
9793 )),
9794 _ => Err(Error::UnexpectedResponse(response)),
9795 }
9796 }
9797
9798 pub async fn debug_set_soft_memory_limit<'a>(
9806 &'a self,
9807 async_: Option<bool>,
9808 group: Option<&'a str>,
9809 mem_limit: i64,
9810 ) -> Result<ResponseValue<types::DebugSetSoftMemoryLimitResponse>, Error<types::RcError>> {
9811 let url = format!("{}/debug/set-soft-memory-limit", self.baseurl,);
9812 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9813 header_map.append(
9814 ::reqwest::header::HeaderName::from_static("api-version"),
9815 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9816 );
9817 #[allow(unused_mut)]
9818 let mut request = self
9819 .client
9820 .post(url)
9821 .header(
9822 ::reqwest::header::ACCEPT,
9823 ::reqwest::header::HeaderValue::from_static("application/json"),
9824 )
9825 .query(&progenitor_client::QueryParam::new("_async", &async_))
9826 .query(&progenitor_client::QueryParam::new("_group", &group))
9827 .query(&progenitor_client::QueryParam::new("mem-limit", &mem_limit))
9828 .headers(header_map)
9829 .build()?;
9830 let info = OperationInfo {
9831 operation_id: "debug_set_soft_memory_limit",
9832 };
9833 self.pre(&mut request, &info).await?;
9834 let result = self.exec(request, &info).await;
9835 self.post(&result, &info).await?;
9836 let response = result?;
9837 match response.status().as_u16() {
9838 200u16 => ResponseValue::from_response(response).await,
9839 400u16..=499u16 => Err(Error::ErrorResponse(
9840 ResponseValue::from_response(response).await?,
9841 )),
9842 500u16..=599u16 => Err(Error::ErrorResponse(
9843 ResponseValue::from_response(response).await?,
9844 )),
9845 _ => Err(Error::UnexpectedResponse(response)),
9846 }
9847 }
9848
9849 pub async fn fscache_clear<'a>(
9856 &'a self,
9857 async_: Option<bool>,
9858 group: Option<&'a str>,
9859 ) -> Result<
9860 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9861 Error<types::RcError>,
9862 > {
9863 let url = format!("{}/fscache/clear", self.baseurl,);
9864 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9865 header_map.append(
9866 ::reqwest::header::HeaderName::from_static("api-version"),
9867 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9868 );
9869 #[allow(unused_mut)]
9870 let mut request = self
9871 .client
9872 .post(url)
9873 .header(
9874 ::reqwest::header::ACCEPT,
9875 ::reqwest::header::HeaderValue::from_static("application/json"),
9876 )
9877 .query(&progenitor_client::QueryParam::new("_async", &async_))
9878 .query(&progenitor_client::QueryParam::new("_group", &group))
9879 .headers(header_map)
9880 .build()?;
9881 let info = OperationInfo {
9882 operation_id: "fscache_clear",
9883 };
9884 self.pre(&mut request, &info).await?;
9885 let result = self.exec(request, &info).await;
9886 self.post(&result, &info).await?;
9887 let response = result?;
9888 match response.status().as_u16() {
9889 200u16 => ResponseValue::from_response(response).await,
9890 400u16..=499u16 => Err(Error::ErrorResponse(
9891 ResponseValue::from_response(response).await?,
9892 )),
9893 500u16..=599u16 => Err(Error::ErrorResponse(
9894 ResponseValue::from_response(response).await?,
9895 )),
9896 _ => Err(Error::UnexpectedResponse(response)),
9897 }
9898 }
9899
9900 pub async fn fscache_entries<'a>(
9907 &'a self,
9908 async_: Option<bool>,
9909 group: Option<&'a str>,
9910 ) -> Result<ResponseValue<types::FscacheEntriesResponse>, Error<types::RcError>> {
9911 let url = format!("{}/fscache/entries", self.baseurl,);
9912 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9913 header_map.append(
9914 ::reqwest::header::HeaderName::from_static("api-version"),
9915 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9916 );
9917 #[allow(unused_mut)]
9918 let mut request = self
9919 .client
9920 .post(url)
9921 .header(
9922 ::reqwest::header::ACCEPT,
9923 ::reqwest::header::HeaderValue::from_static("application/json"),
9924 )
9925 .query(&progenitor_client::QueryParam::new("_async", &async_))
9926 .query(&progenitor_client::QueryParam::new("_group", &group))
9927 .headers(header_map)
9928 .build()?;
9929 let info = OperationInfo {
9930 operation_id: "fscache_entries",
9931 };
9932 self.pre(&mut request, &info).await?;
9933 let result = self.exec(request, &info).await;
9934 self.post(&result, &info).await?;
9935 let response = result?;
9936 match response.status().as_u16() {
9937 200u16 => ResponseValue::from_response(response).await,
9938 400u16..=499u16 => Err(Error::ErrorResponse(
9939 ResponseValue::from_response(response).await?,
9940 )),
9941 500u16..=599u16 => Err(Error::ErrorResponse(
9942 ResponseValue::from_response(response).await?,
9943 )),
9944 _ => Err(Error::UnexpectedResponse(response)),
9945 }
9946 }
9947
9948 pub async fn mount_listmounts<'a>(
9955 &'a self,
9956 async_: Option<bool>,
9957 group: Option<&'a str>,
9958 ) -> Result<ResponseValue<types::MountListmountsResponse>, Error<types::RcError>> {
9959 let url = format!("{}/mount/listmounts", self.baseurl,);
9960 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9961 header_map.append(
9962 ::reqwest::header::HeaderName::from_static("api-version"),
9963 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9964 );
9965 #[allow(unused_mut)]
9966 let mut request = self
9967 .client
9968 .post(url)
9969 .header(
9970 ::reqwest::header::ACCEPT,
9971 ::reqwest::header::HeaderValue::from_static("application/json"),
9972 )
9973 .query(&progenitor_client::QueryParam::new("_async", &async_))
9974 .query(&progenitor_client::QueryParam::new("_group", &group))
9975 .headers(header_map)
9976 .build()?;
9977 let info = OperationInfo {
9978 operation_id: "mount_listmounts",
9979 };
9980 self.pre(&mut request, &info).await?;
9981 let result = self.exec(request, &info).await;
9982 self.post(&result, &info).await?;
9983 let response = result?;
9984 match response.status().as_u16() {
9985 200u16 => ResponseValue::from_response(response).await,
9986 400u16..=499u16 => Err(Error::ErrorResponse(
9987 ResponseValue::from_response(response).await?,
9988 )),
9989 500u16..=599u16 => Err(Error::ErrorResponse(
9990 ResponseValue::from_response(response).await?,
9991 )),
9992 _ => Err(Error::UnexpectedResponse(response)),
9993 }
9994 }
9995
9996 pub async fn mount_mount<'a>(
10013 &'a self,
10014 async_: Option<bool>,
10015 config: Option<&'a str>,
10016 filter: Option<&'a str>,
10017 group: Option<&'a str>,
10018 fs: &'a str,
10019 mount_opt: Option<&'a str>,
10020 mount_point: &'a str,
10021 mount_type: Option<&'a str>,
10022 vfs_opt: Option<&'a str>,
10023 ) -> Result<
10024 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10025 Error<types::RcError>,
10026 > {
10027 let url = format!("{}/mount/mount", self.baseurl,);
10028 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10029 header_map.append(
10030 ::reqwest::header::HeaderName::from_static("api-version"),
10031 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10032 );
10033 #[allow(unused_mut)]
10034 let mut request = self
10035 .client
10036 .post(url)
10037 .header(
10038 ::reqwest::header::ACCEPT,
10039 ::reqwest::header::HeaderValue::from_static("application/json"),
10040 )
10041 .query(&progenitor_client::QueryParam::new("_async", &async_))
10042 .query(&progenitor_client::QueryParam::new("_config", &config))
10043 .query(&progenitor_client::QueryParam::new("_filter", &filter))
10044 .query(&progenitor_client::QueryParam::new("_group", &group))
10045 .query(&progenitor_client::QueryParam::new("fs", &fs))
10046 .query(&progenitor_client::QueryParam::new("mountOpt", &mount_opt))
10047 .query(&progenitor_client::QueryParam::new(
10048 "mountPoint",
10049 &mount_point,
10050 ))
10051 .query(&progenitor_client::QueryParam::new(
10052 "mountType",
10053 &mount_type,
10054 ))
10055 .query(&progenitor_client::QueryParam::new("vfsOpt", &vfs_opt))
10056 .headers(header_map)
10057 .build()?;
10058 let info = OperationInfo {
10059 operation_id: "mount_mount",
10060 };
10061 self.pre(&mut request, &info).await?;
10062 let result = self.exec(request, &info).await;
10063 self.post(&result, &info).await?;
10064 let response = result?;
10065 match response.status().as_u16() {
10066 200u16 => ResponseValue::from_response(response).await,
10067 400u16..=499u16 => Err(Error::ErrorResponse(
10068 ResponseValue::from_response(response).await?,
10069 )),
10070 500u16..=599u16 => Err(Error::ErrorResponse(
10071 ResponseValue::from_response(response).await?,
10072 )),
10073 _ => Err(Error::UnexpectedResponse(response)),
10074 }
10075 }
10076
10077 pub async fn mount_types<'a>(
10084 &'a self,
10085 async_: Option<bool>,
10086 group: Option<&'a str>,
10087 ) -> Result<ResponseValue<types::MountTypesResponse>, Error<types::RcError>> {
10088 let url = format!("{}/mount/types", self.baseurl,);
10089 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10090 header_map.append(
10091 ::reqwest::header::HeaderName::from_static("api-version"),
10092 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10093 );
10094 #[allow(unused_mut)]
10095 let mut request = self
10096 .client
10097 .post(url)
10098 .header(
10099 ::reqwest::header::ACCEPT,
10100 ::reqwest::header::HeaderValue::from_static("application/json"),
10101 )
10102 .query(&progenitor_client::QueryParam::new("_async", &async_))
10103 .query(&progenitor_client::QueryParam::new("_group", &group))
10104 .headers(header_map)
10105 .build()?;
10106 let info = OperationInfo {
10107 operation_id: "mount_types",
10108 };
10109 self.pre(&mut request, &info).await?;
10110 let result = self.exec(request, &info).await;
10111 self.post(&result, &info).await?;
10112 let response = result?;
10113 match response.status().as_u16() {
10114 200u16 => ResponseValue::from_response(response).await,
10115 400u16..=499u16 => Err(Error::ErrorResponse(
10116 ResponseValue::from_response(response).await?,
10117 )),
10118 500u16..=599u16 => Err(Error::ErrorResponse(
10119 ResponseValue::from_response(response).await?,
10120 )),
10121 _ => Err(Error::UnexpectedResponse(response)),
10122 }
10123 }
10124
10125 pub async fn mount_unmount<'a>(
10133 &'a self,
10134 async_: Option<bool>,
10135 group: Option<&'a str>,
10136 mount_point: &'a str,
10137 ) -> Result<
10138 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10139 Error<types::RcError>,
10140 > {
10141 let url = format!("{}/mount/unmount", self.baseurl,);
10142 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10143 header_map.append(
10144 ::reqwest::header::HeaderName::from_static("api-version"),
10145 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10146 );
10147 #[allow(unused_mut)]
10148 let mut request = self
10149 .client
10150 .post(url)
10151 .header(
10152 ::reqwest::header::ACCEPT,
10153 ::reqwest::header::HeaderValue::from_static("application/json"),
10154 )
10155 .query(&progenitor_client::QueryParam::new("_async", &async_))
10156 .query(&progenitor_client::QueryParam::new("_group", &group))
10157 .query(&progenitor_client::QueryParam::new(
10158 "mountPoint",
10159 &mount_point,
10160 ))
10161 .headers(header_map)
10162 .build()?;
10163 let info = OperationInfo {
10164 operation_id: "mount_unmount",
10165 };
10166 self.pre(&mut request, &info).await?;
10167 let result = self.exec(request, &info).await;
10168 self.post(&result, &info).await?;
10169 let response = result?;
10170 match response.status().as_u16() {
10171 200u16 => ResponseValue::from_response(response).await,
10172 400u16..=499u16 => Err(Error::ErrorResponse(
10173 ResponseValue::from_response(response).await?,
10174 )),
10175 500u16..=599u16 => Err(Error::ErrorResponse(
10176 ResponseValue::from_response(response).await?,
10177 )),
10178 _ => Err(Error::UnexpectedResponse(response)),
10179 }
10180 }
10181
10182 pub async fn mount_unmountall<'a>(
10189 &'a self,
10190 async_: Option<bool>,
10191 group: Option<&'a str>,
10192 ) -> Result<
10193 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10194 Error<types::RcError>,
10195 > {
10196 let url = format!("{}/mount/unmountall", self.baseurl,);
10197 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10198 header_map.append(
10199 ::reqwest::header::HeaderName::from_static("api-version"),
10200 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10201 );
10202 #[allow(unused_mut)]
10203 let mut request = self
10204 .client
10205 .post(url)
10206 .header(
10207 ::reqwest::header::ACCEPT,
10208 ::reqwest::header::HeaderValue::from_static("application/json"),
10209 )
10210 .query(&progenitor_client::QueryParam::new("_async", &async_))
10211 .query(&progenitor_client::QueryParam::new("_group", &group))
10212 .headers(header_map)
10213 .build()?;
10214 let info = OperationInfo {
10215 operation_id: "mount_unmountall",
10216 };
10217 self.pre(&mut request, &info).await?;
10218 let result = self.exec(request, &info).await;
10219 self.post(&result, &info).await?;
10220 let response = result?;
10221 match response.status().as_u16() {
10222 200u16 => ResponseValue::from_response(response).await,
10223 400u16..=499u16 => Err(Error::ErrorResponse(
10224 ResponseValue::from_response(response).await?,
10225 )),
10226 500u16..=599u16 => Err(Error::ErrorResponse(
10227 ResponseValue::from_response(response).await?,
10228 )),
10229 _ => Err(Error::UnexpectedResponse(response)),
10230 }
10231 }
10232
10233 pub async fn rc_noop_auth<'a>(
10245 &'a self,
10246 async_: Option<bool>,
10247 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10248 ) -> Result<
10249 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10250 Error<types::RcError>,
10251 > {
10252 let url = format!("{}/rc/noopauth", self.baseurl,);
10253 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10254 header_map.append(
10255 ::reqwest::header::HeaderName::from_static("api-version"),
10256 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10257 );
10258 #[allow(unused_mut)]
10259 let mut request = self
10260 .client
10261 .post(url)
10262 .header(
10263 ::reqwest::header::ACCEPT,
10264 ::reqwest::header::HeaderValue::from_static("application/json"),
10265 )
10266 .query(&progenitor_client::QueryParam::new("_async", &async_))
10267 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10268 .headers(header_map)
10269 .build()?;
10270 let info = OperationInfo {
10271 operation_id: "rc_noop_auth",
10272 };
10273 self.pre(&mut request, &info).await?;
10274 let result = self.exec(request, &info).await;
10275 self.post(&result, &info).await?;
10276 let response = result?;
10277 match response.status().as_u16() {
10278 200u16 => ResponseValue::from_response(response).await,
10279 400u16..=499u16 => Err(Error::ErrorResponse(
10280 ResponseValue::from_response(response).await?,
10281 )),
10282 500u16..=599u16 => Err(Error::ErrorResponse(
10283 ResponseValue::from_response(response).await?,
10284 )),
10285 _ => Err(Error::UnexpectedResponse(response)),
10286 }
10287 }
10288
10289 pub async fn rc_error<'a>(
10301 &'a self,
10302 async_: Option<bool>,
10303 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10304 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10305 let url = format!("{}/rc/error", self.baseurl,);
10306 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10307 header_map.append(
10308 ::reqwest::header::HeaderName::from_static("api-version"),
10309 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10310 );
10311 #[allow(unused_mut)]
10312 let mut request = self
10313 .client
10314 .post(url)
10315 .header(
10316 ::reqwest::header::ACCEPT,
10317 ::reqwest::header::HeaderValue::from_static("application/json"),
10318 )
10319 .query(&progenitor_client::QueryParam::new("_async", &async_))
10320 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10321 .headers(header_map)
10322 .build()?;
10323 let info = OperationInfo {
10324 operation_id: "rc_error",
10325 };
10326 self.pre(&mut request, &info).await?;
10327 let result = self.exec(request, &info).await;
10328 self.post(&result, &info).await?;
10329 let response = result?;
10330 match response.status().as_u16() {
10331 200u16 => Ok(ResponseValue::empty(response)),
10332 400u16..=499u16 => Err(Error::ErrorResponse(
10333 ResponseValue::from_response(response).await?,
10334 )),
10335 500u16..=599u16 => Err(Error::ErrorResponse(
10336 ResponseValue::from_response(response).await?,
10337 )),
10338 _ => Err(Error::UnexpectedResponse(response)),
10339 }
10340 }
10341
10342 pub async fn rc_list<'a>(
10354 &'a self,
10355 async_: Option<bool>,
10356 group: Option<&'a str>,
10357 ) -> Result<ResponseValue<types::RcListResponse>, Error<types::RcError>> {
10358 let url = format!("{}/rc/list", self.baseurl,);
10359 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10360 header_map.append(
10361 ::reqwest::header::HeaderName::from_static("api-version"),
10362 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10363 );
10364 #[allow(unused_mut)]
10365 let mut request = self
10366 .client
10367 .post(url)
10368 .header(
10369 ::reqwest::header::ACCEPT,
10370 ::reqwest::header::HeaderValue::from_static("application/json"),
10371 )
10372 .query(&progenitor_client::QueryParam::new("_async", &async_))
10373 .query(&progenitor_client::QueryParam::new("_group", &group))
10374 .headers(header_map)
10375 .build()?;
10376 let info = OperationInfo {
10377 operation_id: "rc_list",
10378 };
10379 self.pre(&mut request, &info).await?;
10380 let result = self.exec(request, &info).await;
10381 self.post(&result, &info).await?;
10382 let response = result?;
10383 match response.status().as_u16() {
10384 200u16 => ResponseValue::from_response(response).await,
10385 400u16..=499u16 => Err(Error::ErrorResponse(
10386 ResponseValue::from_response(response).await?,
10387 )),
10388 500u16..=599u16 => Err(Error::ErrorResponse(
10389 ResponseValue::from_response(response).await?,
10390 )),
10391 _ => Err(Error::UnexpectedResponse(response)),
10392 }
10393 }
10394
10395 pub async fn backend_command<'a>(
10411 &'a self,
10412 async_: Option<bool>,
10413 group: Option<&'a str>,
10414 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
10415 command: &'a str,
10416 fs: Option<&'a str>,
10417 opt: Option<&'a str>,
10418 ) -> Result<ResponseValue<types::BackendCommandResponse>, Error<types::RcError>> {
10419 let url = format!("{}/backend/command", self.baseurl,);
10420 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10421 header_map.append(
10422 ::reqwest::header::HeaderName::from_static("api-version"),
10423 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10424 );
10425 #[allow(unused_mut)]
10426 let mut request = self
10427 .client
10428 .post(url)
10429 .header(
10430 ::reqwest::header::ACCEPT,
10431 ::reqwest::header::HeaderValue::from_static("application/json"),
10432 )
10433 .query(&progenitor_client::QueryParam::new("_async", &async_))
10434 .query(&progenitor_client::QueryParam::new("_group", &group))
10435 .query(&progenitor_client::QueryParam::new("arg", &arg))
10436 .query(&progenitor_client::QueryParam::new("command", &command))
10437 .query(&progenitor_client::QueryParam::new("fs", &fs))
10438 .query(&progenitor_client::QueryParam::new("opt", &opt))
10439 .headers(header_map)
10440 .build()?;
10441 let info = OperationInfo {
10442 operation_id: "backend_command",
10443 };
10444 self.pre(&mut request, &info).await?;
10445 let result = self.exec(request, &info).await;
10446 self.post(&result, &info).await?;
10447 let response = result?;
10448 match response.status().as_u16() {
10449 200u16 => ResponseValue::from_response(response).await,
10450 400u16..=499u16 => Err(Error::ErrorResponse(
10451 ResponseValue::from_response(response).await?,
10452 )),
10453 500u16..=599u16 => Err(Error::ErrorResponse(
10454 ResponseValue::from_response(response).await?,
10455 )),
10456 _ => Err(Error::UnexpectedResponse(response)),
10457 }
10458 }
10459
10460 pub async fn cache_expire<'a>(
10476 &'a self,
10477 async_: Option<bool>,
10478 group: Option<&'a str>,
10479 remote: &'a str,
10480 with_data: Option<bool>,
10481 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10482 let url = format!("{}/cache/expire", self.baseurl,);
10483 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10484 header_map.append(
10485 ::reqwest::header::HeaderName::from_static("api-version"),
10486 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10487 );
10488 #[allow(unused_mut)]
10489 let mut request = self
10490 .client
10491 .post(url)
10492 .header(
10493 ::reqwest::header::ACCEPT,
10494 ::reqwest::header::HeaderValue::from_static("application/json"),
10495 )
10496 .query(&progenitor_client::QueryParam::new("_async", &async_))
10497 .query(&progenitor_client::QueryParam::new("_group", &group))
10498 .query(&progenitor_client::QueryParam::new("remote", &remote))
10499 .query(&progenitor_client::QueryParam::new("withData", &with_data))
10500 .headers(header_map)
10501 .build()?;
10502 let info = OperationInfo {
10503 operation_id: "cache_expire",
10504 };
10505 self.pre(&mut request, &info).await?;
10506 let result = self.exec(request, &info).await;
10507 self.post(&result, &info).await?;
10508 let response = result?;
10509 match response.status().as_u16() {
10510 200u16 => Ok(ResponseValue::empty(response)),
10511 400u16..=499u16 => Err(Error::ErrorResponse(
10512 ResponseValue::from_response(response).await?,
10513 )),
10514 500u16..=599u16 => Err(Error::ErrorResponse(
10515 ResponseValue::from_response(response).await?,
10516 )),
10517 _ => Err(Error::UnexpectedResponse(response)),
10518 }
10519 }
10520
10521 pub async fn cache_fetch<'a>(
10535 &'a self,
10536 async_: Option<bool>,
10537 group: Option<&'a str>,
10538 chunks: Option<&'a str>,
10539 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10540 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10541 let url = format!("{}/cache/fetch", self.baseurl,);
10542 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10543 header_map.append(
10544 ::reqwest::header::HeaderName::from_static("api-version"),
10545 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10546 );
10547 #[allow(unused_mut)]
10548 let mut request = self
10549 .client
10550 .post(url)
10551 .header(
10552 ::reqwest::header::ACCEPT,
10553 ::reqwest::header::HeaderValue::from_static("application/json"),
10554 )
10555 .query(&progenitor_client::QueryParam::new("_async", &async_))
10556 .query(&progenitor_client::QueryParam::new("_group", &group))
10557 .query(&progenitor_client::QueryParam::new("chunks", &chunks))
10558 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10559 .headers(header_map)
10560 .build()?;
10561 let info = OperationInfo {
10562 operation_id: "cache_fetch",
10563 };
10564 self.pre(&mut request, &info).await?;
10565 let result = self.exec(request, &info).await;
10566 self.post(&result, &info).await?;
10567 let response = result?;
10568 match response.status().as_u16() {
10569 200u16 => Ok(ResponseValue::empty(response)),
10570 400u16..=499u16 => Err(Error::ErrorResponse(
10571 ResponseValue::from_response(response).await?,
10572 )),
10573 500u16..=599u16 => Err(Error::ErrorResponse(
10574 ResponseValue::from_response(response).await?,
10575 )),
10576 _ => Err(Error::UnexpectedResponse(response)),
10577 }
10578 }
10579
10580 pub async fn cache_stats<'a>(
10591 &'a self,
10592 async_: Option<bool>,
10593 group: Option<&'a str>,
10594 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10595 let url = format!("{}/cache/stats", self.baseurl,);
10596 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10597 header_map.append(
10598 ::reqwest::header::HeaderName::from_static("api-version"),
10599 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10600 );
10601 #[allow(unused_mut)]
10602 let mut request = self
10603 .client
10604 .post(url)
10605 .header(
10606 ::reqwest::header::ACCEPT,
10607 ::reqwest::header::HeaderValue::from_static("application/json"),
10608 )
10609 .query(&progenitor_client::QueryParam::new("_async", &async_))
10610 .query(&progenitor_client::QueryParam::new("_group", &group))
10611 .headers(header_map)
10612 .build()?;
10613 let info = OperationInfo {
10614 operation_id: "cache_stats",
10615 };
10616 self.pre(&mut request, &info).await?;
10617 let result = self.exec(request, &info).await;
10618 self.post(&result, &info).await?;
10619 let response = result?;
10620 match response.status().as_u16() {
10621 200u16 => Ok(ResponseValue::empty(response)),
10622 400u16..=499u16 => Err(Error::ErrorResponse(
10623 ResponseValue::from_response(response).await?,
10624 )),
10625 500u16..=599u16 => Err(Error::ErrorResponse(
10626 ResponseValue::from_response(response).await?,
10627 )),
10628 _ => Err(Error::UnexpectedResponse(response)),
10629 }
10630 }
10631
10632 pub async fn config_create<'a>(
10649 &'a self,
10650 async_: Option<bool>,
10651 group: Option<&'a str>,
10652 name: &'a str,
10653 opt: Option<&'a str>,
10654 parameters: &'a str,
10655 type_: &'a str,
10656 ) -> Result<
10657 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10658 Error<types::RcError>,
10659 > {
10660 let url = format!("{}/config/create", self.baseurl,);
10661 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10662 header_map.append(
10663 ::reqwest::header::HeaderName::from_static("api-version"),
10664 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10665 );
10666 #[allow(unused_mut)]
10667 let mut request = self
10668 .client
10669 .post(url)
10670 .header(
10671 ::reqwest::header::ACCEPT,
10672 ::reqwest::header::HeaderValue::from_static("application/json"),
10673 )
10674 .query(&progenitor_client::QueryParam::new("_async", &async_))
10675 .query(&progenitor_client::QueryParam::new("_group", &group))
10676 .query(&progenitor_client::QueryParam::new("name", &name))
10677 .query(&progenitor_client::QueryParam::new("opt", &opt))
10678 .query(&progenitor_client::QueryParam::new(
10679 "parameters",
10680 ¶meters,
10681 ))
10682 .query(&progenitor_client::QueryParam::new("type", &type_))
10683 .headers(header_map)
10684 .build()?;
10685 let info = OperationInfo {
10686 operation_id: "config_create",
10687 };
10688 self.pre(&mut request, &info).await?;
10689 let result = self.exec(request, &info).await;
10690 self.post(&result, &info).await?;
10691 let response = result?;
10692 match response.status().as_u16() {
10693 200u16 => ResponseValue::from_response(response).await,
10694 400u16..=499u16 => Err(Error::ErrorResponse(
10695 ResponseValue::from_response(response).await?,
10696 )),
10697 500u16..=599u16 => Err(Error::ErrorResponse(
10698 ResponseValue::from_response(response).await?,
10699 )),
10700 _ => Err(Error::UnexpectedResponse(response)),
10701 }
10702 }
10703
10704 pub async fn config_delete<'a>(
10716 &'a self,
10717 async_: Option<bool>,
10718 group: Option<&'a str>,
10719 name: &'a str,
10720 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10721 let url = format!("{}/config/delete", self.baseurl,);
10722 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10723 header_map.append(
10724 ::reqwest::header::HeaderName::from_static("api-version"),
10725 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10726 );
10727 #[allow(unused_mut)]
10728 let mut request = self
10729 .client
10730 .post(url)
10731 .header(
10732 ::reqwest::header::ACCEPT,
10733 ::reqwest::header::HeaderValue::from_static("application/json"),
10734 )
10735 .query(&progenitor_client::QueryParam::new("_async", &async_))
10736 .query(&progenitor_client::QueryParam::new("_group", &group))
10737 .query(&progenitor_client::QueryParam::new("name", &name))
10738 .headers(header_map)
10739 .build()?;
10740 let info = OperationInfo {
10741 operation_id: "config_delete",
10742 };
10743 self.pre(&mut request, &info).await?;
10744 let result = self.exec(request, &info).await;
10745 self.post(&result, &info).await?;
10746 let response = result?;
10747 match response.status().as_u16() {
10748 200u16 => Ok(ResponseValue::empty(response)),
10749 400u16..=499u16 => Err(Error::ErrorResponse(
10750 ResponseValue::from_response(response).await?,
10751 )),
10752 500u16..=599u16 => Err(Error::ErrorResponse(
10753 ResponseValue::from_response(response).await?,
10754 )),
10755 _ => Err(Error::UnexpectedResponse(response)),
10756 }
10757 }
10758
10759 pub async fn config_dump<'a>(
10771 &'a self,
10772 async_: Option<bool>,
10773 group: Option<&'a str>,
10774 ) -> Result<
10775 ResponseValue<
10776 ::std::collections::HashMap<
10777 ::std::string::String,
10778 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
10779 >,
10780 >,
10781 Error<types::RcError>,
10782 > {
10783 let url = format!("{}/config/dump", self.baseurl,);
10784 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10785 header_map.append(
10786 ::reqwest::header::HeaderName::from_static("api-version"),
10787 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10788 );
10789 #[allow(unused_mut)]
10790 let mut request = self
10791 .client
10792 .post(url)
10793 .header(
10794 ::reqwest::header::ACCEPT,
10795 ::reqwest::header::HeaderValue::from_static("application/json"),
10796 )
10797 .query(&progenitor_client::QueryParam::new("_async", &async_))
10798 .query(&progenitor_client::QueryParam::new("_group", &group))
10799 .headers(header_map)
10800 .build()?;
10801 let info = OperationInfo {
10802 operation_id: "config_dump",
10803 };
10804 self.pre(&mut request, &info).await?;
10805 let result = self.exec(request, &info).await;
10806 self.post(&result, &info).await?;
10807 let response = result?;
10808 match response.status().as_u16() {
10809 200u16 => ResponseValue::from_response(response).await,
10810 400u16..=499u16 => Err(Error::ErrorResponse(
10811 ResponseValue::from_response(response).await?,
10812 )),
10813 500u16..=599u16 => Err(Error::ErrorResponse(
10814 ResponseValue::from_response(response).await?,
10815 )),
10816 _ => Err(Error::UnexpectedResponse(response)),
10817 }
10818 }
10819
10820 pub async fn config_get<'a>(
10832 &'a self,
10833 async_: Option<bool>,
10834 group: Option<&'a str>,
10835 name: &'a str,
10836 ) -> Result<ResponseValue<types::ConfigGetResponse>, Error<types::RcError>> {
10837 let url = format!("{}/config/get", self.baseurl,);
10838 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10839 header_map.append(
10840 ::reqwest::header::HeaderName::from_static("api-version"),
10841 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10842 );
10843 #[allow(unused_mut)]
10844 let mut request = self
10845 .client
10846 .post(url)
10847 .header(
10848 ::reqwest::header::ACCEPT,
10849 ::reqwest::header::HeaderValue::from_static("application/json"),
10850 )
10851 .query(&progenitor_client::QueryParam::new("_async", &async_))
10852 .query(&progenitor_client::QueryParam::new("_group", &group))
10853 .query(&progenitor_client::QueryParam::new("name", &name))
10854 .headers(header_map)
10855 .build()?;
10856 let info = OperationInfo {
10857 operation_id: "config_get",
10858 };
10859 self.pre(&mut request, &info).await?;
10860 let result = self.exec(request, &info).await;
10861 self.post(&result, &info).await?;
10862 let response = result?;
10863 match response.status().as_u16() {
10864 200u16 => ResponseValue::from_response(response).await,
10865 400u16..=499u16 => Err(Error::ErrorResponse(
10866 ResponseValue::from_response(response).await?,
10867 )),
10868 500u16..=599u16 => Err(Error::ErrorResponse(
10869 ResponseValue::from_response(response).await?,
10870 )),
10871 _ => Err(Error::UnexpectedResponse(response)),
10872 }
10873 }
10874
10875 pub async fn config_listremotes<'a>(
10886 &'a self,
10887 async_: Option<bool>,
10888 group: Option<&'a str>,
10889 ) -> Result<ResponseValue<types::ConfigListremotesResponse>, Error<types::RcError>> {
10890 let url = format!("{}/config/listremotes", self.baseurl,);
10891 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10892 header_map.append(
10893 ::reqwest::header::HeaderName::from_static("api-version"),
10894 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10895 );
10896 #[allow(unused_mut)]
10897 let mut request = self
10898 .client
10899 .post(url)
10900 .header(
10901 ::reqwest::header::ACCEPT,
10902 ::reqwest::header::HeaderValue::from_static("application/json"),
10903 )
10904 .query(&progenitor_client::QueryParam::new("_async", &async_))
10905 .query(&progenitor_client::QueryParam::new("_group", &group))
10906 .headers(header_map)
10907 .build()?;
10908 let info = OperationInfo {
10909 operation_id: "config_listremotes",
10910 };
10911 self.pre(&mut request, &info).await?;
10912 let result = self.exec(request, &info).await;
10913 self.post(&result, &info).await?;
10914 let response = result?;
10915 match response.status().as_u16() {
10916 200u16 => ResponseValue::from_response(response).await,
10917 400u16..=499u16 => Err(Error::ErrorResponse(
10918 ResponseValue::from_response(response).await?,
10919 )),
10920 500u16..=599u16 => Err(Error::ErrorResponse(
10921 ResponseValue::from_response(response).await?,
10922 )),
10923 _ => Err(Error::UnexpectedResponse(response)),
10924 }
10925 }
10926
10927 pub async fn config_password<'a>(
10941 &'a self,
10942 async_: Option<bool>,
10943 group: Option<&'a str>,
10944 name: &'a str,
10945 parameters: &'a str,
10946 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10947 let url = format!("{}/config/password", self.baseurl,);
10948 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10949 header_map.append(
10950 ::reqwest::header::HeaderName::from_static("api-version"),
10951 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10952 );
10953 #[allow(unused_mut)]
10954 let mut request = self
10955 .client
10956 .post(url)
10957 .header(
10958 ::reqwest::header::ACCEPT,
10959 ::reqwest::header::HeaderValue::from_static("application/json"),
10960 )
10961 .query(&progenitor_client::QueryParam::new("_async", &async_))
10962 .query(&progenitor_client::QueryParam::new("_group", &group))
10963 .query(&progenitor_client::QueryParam::new("name", &name))
10964 .query(&progenitor_client::QueryParam::new(
10965 "parameters",
10966 ¶meters,
10967 ))
10968 .headers(header_map)
10969 .build()?;
10970 let info = OperationInfo {
10971 operation_id: "config_password",
10972 };
10973 self.pre(&mut request, &info).await?;
10974 let result = self.exec(request, &info).await;
10975 self.post(&result, &info).await?;
10976 let response = result?;
10977 match response.status().as_u16() {
10978 200u16 => Ok(ResponseValue::empty(response)),
10979 400u16..=499u16 => Err(Error::ErrorResponse(
10980 ResponseValue::from_response(response).await?,
10981 )),
10982 500u16..=599u16 => Err(Error::ErrorResponse(
10983 ResponseValue::from_response(response).await?,
10984 )),
10985 _ => Err(Error::UnexpectedResponse(response)),
10986 }
10987 }
10988
10989 pub async fn config_paths<'a>(
11001 &'a self,
11002 async_: Option<bool>,
11003 group: Option<&'a str>,
11004 ) -> Result<ResponseValue<types::ConfigPathsResponse>, Error<types::RcError>> {
11005 let url = format!("{}/config/paths", self.baseurl,);
11006 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11007 header_map.append(
11008 ::reqwest::header::HeaderName::from_static("api-version"),
11009 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11010 );
11011 #[allow(unused_mut)]
11012 let mut request = self
11013 .client
11014 .post(url)
11015 .header(
11016 ::reqwest::header::ACCEPT,
11017 ::reqwest::header::HeaderValue::from_static("application/json"),
11018 )
11019 .query(&progenitor_client::QueryParam::new("_async", &async_))
11020 .query(&progenitor_client::QueryParam::new("_group", &group))
11021 .headers(header_map)
11022 .build()?;
11023 let info = OperationInfo {
11024 operation_id: "config_paths",
11025 };
11026 self.pre(&mut request, &info).await?;
11027 let result = self.exec(request, &info).await;
11028 self.post(&result, &info).await?;
11029 let response = result?;
11030 match response.status().as_u16() {
11031 200u16 => ResponseValue::from_response(response).await,
11032 400u16..=499u16 => Err(Error::ErrorResponse(
11033 ResponseValue::from_response(response).await?,
11034 )),
11035 500u16..=599u16 => Err(Error::ErrorResponse(
11036 ResponseValue::from_response(response).await?,
11037 )),
11038 _ => Err(Error::UnexpectedResponse(response)),
11039 }
11040 }
11041
11042 pub async fn config_providers<'a>(
11053 &'a self,
11054 async_: Option<bool>,
11055 group: Option<&'a str>,
11056 ) -> Result<ResponseValue<types::ConfigProvidersResponse>, Error<types::RcError>> {
11057 let url = format!("{}/config/providers", self.baseurl,);
11058 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11059 header_map.append(
11060 ::reqwest::header::HeaderName::from_static("api-version"),
11061 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11062 );
11063 #[allow(unused_mut)]
11064 let mut request = self
11065 .client
11066 .post(url)
11067 .header(
11068 ::reqwest::header::ACCEPT,
11069 ::reqwest::header::HeaderValue::from_static("application/json"),
11070 )
11071 .query(&progenitor_client::QueryParam::new("_async", &async_))
11072 .query(&progenitor_client::QueryParam::new("_group", &group))
11073 .headers(header_map)
11074 .build()?;
11075 let info = OperationInfo {
11076 operation_id: "config_providers",
11077 };
11078 self.pre(&mut request, &info).await?;
11079 let result = self.exec(request, &info).await;
11080 self.post(&result, &info).await?;
11081 let response = result?;
11082 match response.status().as_u16() {
11083 200u16 => ResponseValue::from_response(response).await,
11084 400u16..=499u16 => Err(Error::ErrorResponse(
11085 ResponseValue::from_response(response).await?,
11086 )),
11087 500u16..=599u16 => Err(Error::ErrorResponse(
11088 ResponseValue::from_response(response).await?,
11089 )),
11090 _ => Err(Error::UnexpectedResponse(response)),
11091 }
11092 }
11093
11094 pub async fn config_setpath<'a>(
11107 &'a self,
11108 async_: Option<bool>,
11109 group: Option<&'a str>,
11110 path: &'a str,
11111 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
11112 let url = format!("{}/config/setpath", self.baseurl,);
11113 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11114 header_map.append(
11115 ::reqwest::header::HeaderName::from_static("api-version"),
11116 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11117 );
11118 #[allow(unused_mut)]
11119 let mut request = self
11120 .client
11121 .post(url)
11122 .header(
11123 ::reqwest::header::ACCEPT,
11124 ::reqwest::header::HeaderValue::from_static("application/json"),
11125 )
11126 .query(&progenitor_client::QueryParam::new("_async", &async_))
11127 .query(&progenitor_client::QueryParam::new("_group", &group))
11128 .query(&progenitor_client::QueryParam::new("path", &path))
11129 .headers(header_map)
11130 .build()?;
11131 let info = OperationInfo {
11132 operation_id: "config_setpath",
11133 };
11134 self.pre(&mut request, &info).await?;
11135 let result = self.exec(request, &info).await;
11136 self.post(&result, &info).await?;
11137 let response = result?;
11138 match response.status().as_u16() {
11139 200u16 => Ok(ResponseValue::empty(response)),
11140 400u16..=499u16 => Err(Error::ErrorResponse(
11141 ResponseValue::from_response(response).await?,
11142 )),
11143 500u16..=599u16 => Err(Error::ErrorResponse(
11144 ResponseValue::from_response(response).await?,
11145 )),
11146 _ => Err(Error::UnexpectedResponse(response)),
11147 }
11148 }
11149
11150 pub async fn config_unlock<'a>(
11162 &'a self,
11163 async_: Option<bool>,
11164 group: Option<&'a str>,
11165 config_password: &'a str,
11166 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
11167 let url = format!("{}/config/unlock", self.baseurl,);
11168 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11169 header_map.append(
11170 ::reqwest::header::HeaderName::from_static("api-version"),
11171 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11172 );
11173 #[allow(unused_mut)]
11174 let mut request = self
11175 .client
11176 .post(url)
11177 .header(
11178 ::reqwest::header::ACCEPT,
11179 ::reqwest::header::HeaderValue::from_static("application/json"),
11180 )
11181 .query(&progenitor_client::QueryParam::new("_async", &async_))
11182 .query(&progenitor_client::QueryParam::new("_group", &group))
11183 .query(&progenitor_client::QueryParam::new(
11184 "configPassword",
11185 &config_password,
11186 ))
11187 .headers(header_map)
11188 .build()?;
11189 let info = OperationInfo {
11190 operation_id: "config_unlock",
11191 };
11192 self.pre(&mut request, &info).await?;
11193 let result = self.exec(request, &info).await;
11194 self.post(&result, &info).await?;
11195 let response = result?;
11196 match response.status().as_u16() {
11197 200u16 => Ok(ResponseValue::empty(response)),
11198 400u16..=499u16 => Err(Error::ErrorResponse(
11199 ResponseValue::from_response(response).await?,
11200 )),
11201 500u16..=599u16 => Err(Error::ErrorResponse(
11202 ResponseValue::from_response(response).await?,
11203 )),
11204 _ => Err(Error::UnexpectedResponse(response)),
11205 }
11206 }
11207
11208 pub async fn config_update<'a>(
11224 &'a self,
11225 async_: Option<bool>,
11226 group: Option<&'a str>,
11227 name: &'a str,
11228 opt: Option<&'a str>,
11229 parameters: &'a str,
11230 ) -> Result<
11231 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11232 Error<types::RcError>,
11233 > {
11234 let url = format!("{}/config/update", self.baseurl,);
11235 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11236 header_map.append(
11237 ::reqwest::header::HeaderName::from_static("api-version"),
11238 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11239 );
11240 #[allow(unused_mut)]
11241 let mut request = self
11242 .client
11243 .post(url)
11244 .header(
11245 ::reqwest::header::ACCEPT,
11246 ::reqwest::header::HeaderValue::from_static("application/json"),
11247 )
11248 .query(&progenitor_client::QueryParam::new("_async", &async_))
11249 .query(&progenitor_client::QueryParam::new("_group", &group))
11250 .query(&progenitor_client::QueryParam::new("name", &name))
11251 .query(&progenitor_client::QueryParam::new("opt", &opt))
11252 .query(&progenitor_client::QueryParam::new(
11253 "parameters",
11254 ¶meters,
11255 ))
11256 .headers(header_map)
11257 .build()?;
11258 let info = OperationInfo {
11259 operation_id: "config_update",
11260 };
11261 self.pre(&mut request, &info).await?;
11262 let result = self.exec(request, &info).await;
11263 self.post(&result, &info).await?;
11264 let response = result?;
11265 match response.status().as_u16() {
11266 200u16 => ResponseValue::from_response(response).await,
11267 400u16..=499u16 => Err(Error::ErrorResponse(
11268 ResponseValue::from_response(response).await?,
11269 )),
11270 500u16..=599u16 => Err(Error::ErrorResponse(
11271 ResponseValue::from_response(response).await?,
11272 )),
11273 _ => Err(Error::UnexpectedResponse(response)),
11274 }
11275 }
11276
11277 pub async fn core_version<'a>(
11289 &'a self,
11290 async_: Option<bool>,
11291 group: Option<&'a str>,
11292 ) -> Result<ResponseValue<types::CoreVersionResponse>, Error<types::RcError>> {
11293 let url = format!("{}/core/version", self.baseurl,);
11294 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11295 header_map.append(
11296 ::reqwest::header::HeaderName::from_static("api-version"),
11297 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11298 );
11299 #[allow(unused_mut)]
11300 let mut request = self
11301 .client
11302 .post(url)
11303 .header(
11304 ::reqwest::header::ACCEPT,
11305 ::reqwest::header::HeaderValue::from_static("application/json"),
11306 )
11307 .query(&progenitor_client::QueryParam::new("_async", &async_))
11308 .query(&progenitor_client::QueryParam::new("_group", &group))
11309 .headers(header_map)
11310 .build()?;
11311 let info = OperationInfo {
11312 operation_id: "core_version",
11313 };
11314 self.pre(&mut request, &info).await?;
11315 let result = self.exec(request, &info).await;
11316 self.post(&result, &info).await?;
11317 let response = result?;
11318 match response.status().as_u16() {
11319 200u16 => ResponseValue::from_response(response).await,
11320 400u16..=499u16 => Err(Error::ErrorResponse(
11321 ResponseValue::from_response(response).await?,
11322 )),
11323 500u16..=599u16 => Err(Error::ErrorResponse(
11324 ResponseValue::from_response(response).await?,
11325 )),
11326 _ => Err(Error::UnexpectedResponse(response)),
11327 }
11328 }
11329
11330 pub async fn core_stats<'a>(
11346 &'a self,
11347 async_: Option<bool>,
11348 _group: Option<&'a str>,
11349 group: Option<&'a str>,
11350 short: Option<bool>
11351 ) -> Result<ResponseValue<types::CoreStatsResponse>, Error<types::RcError>> {
11352 let url = format!("{}/core/stats", self.baseurl,);
11353 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11354 header_map.append(
11355 ::reqwest::header::HeaderName::from_static("api-version"),
11356 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11357 );
11358 #[allow(unused_mut)]
11359 let mut request = self
11360 .client
11361 .post(url)
11362 .header(
11363 ::reqwest::header::ACCEPT,
11364 ::reqwest::header::HeaderValue::from_static("application/json"),
11365 )
11366 .query(&progenitor_client::QueryParam::new("_async", &async_))
11367 .query(&progenitor_client::QueryParam::new("_group", &group))
11368 .query(&progenitor_client::QueryParam::new("group", &group))
11369 .query(&progenitor_client::QueryParam::new("short", &short))
11370 .headers(header_map)
11371 .build()?;
11372 let info = OperationInfo {
11373 operation_id: "core_stats",
11374 };
11375 self.pre(&mut request, &info).await?;
11376 let result = self.exec(request, &info).await;
11377 self.post(&result, &info).await?;
11378 let response = result?;
11379 match response.status().as_u16() {
11380 200u16 => ResponseValue::from_response(response).await,
11381 400u16..=499u16 => Err(Error::ErrorResponse(
11382 ResponseValue::from_response(response).await?,
11383 )),
11384 500u16..=599u16 => Err(Error::ErrorResponse(
11385 ResponseValue::from_response(response).await?,
11386 )),
11387 _ => Err(Error::UnexpectedResponse(response)),
11388 }
11389 }
11390
11391 pub async fn job_batch<'a>(
11406 &'a self,
11407 async_: Option<bool>,
11408 concurrency: Option<i64>,
11409 inputs: Option<&'a ::std::vec::Vec<types::JobBatchInputsItem>>,
11410 body: &'a types::JobBatchRequest,
11411 ) -> Result<ResponseValue<types::JobBatchResponse>, Error<types::RcError>> {
11412 let url = format!("{}/job/batch", self.baseurl,);
11413 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11414 header_map.append(
11415 ::reqwest::header::HeaderName::from_static("api-version"),
11416 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11417 );
11418 #[allow(unused_mut)]
11419 let mut request = self
11420 .client
11421 .post(url)
11422 .header(
11423 ::reqwest::header::ACCEPT,
11424 ::reqwest::header::HeaderValue::from_static("application/json"),
11425 )
11426 .json(&body)
11427 .query(&progenitor_client::QueryParam::new("_async", &async_))
11428 .query(&progenitor_client::QueryParam::new(
11429 "concurrency",
11430 &concurrency,
11431 ))
11432 .query(&progenitor_client::QueryParam::new("inputs", &inputs))
11433 .headers(header_map)
11434 .build()?;
11435 let info = OperationInfo {
11436 operation_id: "job_batch",
11437 };
11438 self.pre(&mut request, &info).await?;
11439 let result = self.exec(request, &info).await;
11440 self.post(&result, &info).await?;
11441 let response = result?;
11442 match response.status().as_u16() {
11443 200u16 => ResponseValue::from_response(response).await,
11444 400u16..=499u16 => Err(Error::ErrorResponse(
11445 ResponseValue::from_response(response).await?,
11446 )),
11447 500u16..=599u16 => Err(Error::ErrorResponse(
11448 ResponseValue::from_response(response).await?,
11449 )),
11450 _ => Err(Error::UnexpectedResponse(response)),
11451 }
11452 }
11453
11454 pub async fn job_list<'a>(
11464 &'a self,
11465 async_: Option<bool>,
11466 ) -> Result<ResponseValue<types::JobListResponse>, Error<types::RcError>> {
11467 let url = format!("{}/job/list", self.baseurl,);
11468 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11469 header_map.append(
11470 ::reqwest::header::HeaderName::from_static("api-version"),
11471 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11472 );
11473 #[allow(unused_mut)]
11474 let mut request = self
11475 .client
11476 .post(url)
11477 .header(
11478 ::reqwest::header::ACCEPT,
11479 ::reqwest::header::HeaderValue::from_static("application/json"),
11480 )
11481 .query(&progenitor_client::QueryParam::new("_async", &async_))
11482 .headers(header_map)
11483 .build()?;
11484 let info = OperationInfo {
11485 operation_id: "job_list",
11486 };
11487 self.pre(&mut request, &info).await?;
11488 let result = self.exec(request, &info).await;
11489 self.post(&result, &info).await?;
11490 let response = result?;
11491 match response.status().as_u16() {
11492 200u16 => ResponseValue::from_response(response).await,
11493 400u16..=499u16 => Err(Error::ErrorResponse(
11494 ResponseValue::from_response(response).await?,
11495 )),
11496 500u16..=599u16 => Err(Error::ErrorResponse(
11497 ResponseValue::from_response(response).await?,
11498 )),
11499 _ => Err(Error::UnexpectedResponse(response)),
11500 }
11501 }
11502
11503 pub async fn job_status<'a>(
11515 &'a self,
11516 async_: Option<bool>,
11517 jobid: f64,
11518 ) -> Result<ResponseValue<types::JobStatusResponse>, Error<types::RcError>> {
11519 let url = format!("{}/job/status", self.baseurl,);
11520 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11521 header_map.append(
11522 ::reqwest::header::HeaderName::from_static("api-version"),
11523 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11524 );
11525 #[allow(unused_mut)]
11526 let mut request = self
11527 .client
11528 .post(url)
11529 .header(
11530 ::reqwest::header::ACCEPT,
11531 ::reqwest::header::HeaderValue::from_static("application/json"),
11532 )
11533 .query(&progenitor_client::QueryParam::new("_async", &async_))
11534 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
11535 .headers(header_map)
11536 .build()?;
11537 let info = OperationInfo {
11538 operation_id: "job_status",
11539 };
11540 self.pre(&mut request, &info).await?;
11541 let result = self.exec(request, &info).await;
11542 self.post(&result, &info).await?;
11543 let response = result?;
11544 match response.status().as_u16() {
11545 200u16 => ResponseValue::from_response(response).await,
11546 400u16..=499u16 => Err(Error::ErrorResponse(
11547 ResponseValue::from_response(response).await?,
11548 )),
11549 500u16..=599u16 => Err(Error::ErrorResponse(
11550 ResponseValue::from_response(response).await?,
11551 )),
11552 _ => Err(Error::UnexpectedResponse(response)),
11553 }
11554 }
11555
11556 pub async fn job_stop<'a>(
11567 &'a self,
11568 async_: Option<bool>,
11569 jobid: f64,
11570 ) -> Result<
11571 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11572 Error<types::RcError>,
11573 > {
11574 let url = format!("{}/job/stop", self.baseurl,);
11575 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11576 header_map.append(
11577 ::reqwest::header::HeaderName::from_static("api-version"),
11578 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11579 );
11580 #[allow(unused_mut)]
11581 let mut request = self
11582 .client
11583 .post(url)
11584 .header(
11585 ::reqwest::header::ACCEPT,
11586 ::reqwest::header::HeaderValue::from_static("application/json"),
11587 )
11588 .query(&progenitor_client::QueryParam::new("_async", &async_))
11589 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
11590 .headers(header_map)
11591 .build()?;
11592 let info = OperationInfo {
11593 operation_id: "job_stop",
11594 };
11595 self.pre(&mut request, &info).await?;
11596 let result = self.exec(request, &info).await;
11597 self.post(&result, &info).await?;
11598 let response = result?;
11599 match response.status().as_u16() {
11600 200u16 => ResponseValue::from_response(response).await,
11601 400u16..=499u16 => Err(Error::ErrorResponse(
11602 ResponseValue::from_response(response).await?,
11603 )),
11604 500u16..=599u16 => Err(Error::ErrorResponse(
11605 ResponseValue::from_response(response).await?,
11606 )),
11607 _ => Err(Error::UnexpectedResponse(response)),
11608 }
11609 }
11610
11611 pub async fn job_stopgroup<'a>(
11622 &'a self,
11623 async_: Option<bool>,
11624 group: &'a str,
11625 ) -> Result<
11626 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11627 Error<types::RcError>,
11628 > {
11629 let url = format!("{}/job/stopgroup", self.baseurl,);
11630 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11631 header_map.append(
11632 ::reqwest::header::HeaderName::from_static("api-version"),
11633 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11634 );
11635 #[allow(unused_mut)]
11636 let mut request = self
11637 .client
11638 .post(url)
11639 .header(
11640 ::reqwest::header::ACCEPT,
11641 ::reqwest::header::HeaderValue::from_static("application/json"),
11642 )
11643 .query(&progenitor_client::QueryParam::new("_async", &async_))
11644 .query(&progenitor_client::QueryParam::new("group", &group))
11645 .headers(header_map)
11646 .build()?;
11647 let info = OperationInfo {
11648 operation_id: "job_stopgroup",
11649 };
11650 self.pre(&mut request, &info).await?;
11651 let result = self.exec(request, &info).await;
11652 self.post(&result, &info).await?;
11653 let response = result?;
11654 match response.status().as_u16() {
11655 200u16 => ResponseValue::from_response(response).await,
11656 400u16..=499u16 => Err(Error::ErrorResponse(
11657 ResponseValue::from_response(response).await?,
11658 )),
11659 500u16..=599u16 => Err(Error::ErrorResponse(
11660 ResponseValue::from_response(response).await?,
11661 )),
11662 _ => Err(Error::UnexpectedResponse(response)),
11663 }
11664 }
11665
11666 pub async fn operations_list<'a>(
11697 &'a self,
11698 async_: Option<bool>,
11699 group: Option<&'a str>,
11700 dirs_only: Option<bool>,
11701 files_only: Option<bool>,
11702 fs: &'a str,
11703 hash_types: Option<&'a ::std::vec::Vec<::std::string::String>>,
11704 metadata: Option<bool>,
11705 no_mime_type: Option<bool>,
11706 no_mod_time: Option<bool>,
11707 opt: Option<&'a str>,
11708 recurse: Option<bool>,
11709 remote: &'a str,
11710 show_encrypted: Option<bool>,
11711 show_hash: Option<bool>,
11712 show_orig_i_ds: Option<bool>,
11713 ) -> Result<ResponseValue<types::OperationsListResponse>, Error<types::RcError>> {
11714 let url = format!("{}/operations/list", self.baseurl,);
11715 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11716 header_map.append(
11717 ::reqwest::header::HeaderName::from_static("api-version"),
11718 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11719 );
11720 #[allow(unused_mut)]
11721 let mut request = self
11722 .client
11723 .post(url)
11724 .header(
11725 ::reqwest::header::ACCEPT,
11726 ::reqwest::header::HeaderValue::from_static("application/json"),
11727 )
11728 .query(&progenitor_client::QueryParam::new("_async", &async_))
11729 .query(&progenitor_client::QueryParam::new("_group", &group))
11730 .query(&progenitor_client::QueryParam::new("dirsOnly", &dirs_only))
11731 .query(&progenitor_client::QueryParam::new(
11732 "filesOnly",
11733 &files_only,
11734 ))
11735 .query(&progenitor_client::QueryParam::new("fs", &fs))
11736 .query(&progenitor_client::QueryParam::new(
11737 "hashTypes",
11738 &hash_types,
11739 ))
11740 .query(&progenitor_client::QueryParam::new("metadata", &metadata))
11741 .query(&progenitor_client::QueryParam::new(
11742 "noMimeType",
11743 &no_mime_type,
11744 ))
11745 .query(&progenitor_client::QueryParam::new(
11746 "noModTime",
11747 &no_mod_time,
11748 ))
11749 .query(&progenitor_client::QueryParam::new("opt", &opt))
11750 .query(&progenitor_client::QueryParam::new("recurse", &recurse))
11751 .query(&progenitor_client::QueryParam::new("remote", &remote))
11752 .query(&progenitor_client::QueryParam::new(
11753 "showEncrypted",
11754 &show_encrypted,
11755 ))
11756 .query(&progenitor_client::QueryParam::new("showHash", &show_hash))
11757 .query(&progenitor_client::QueryParam::new(
11758 "showOrigIDs",
11759 &show_orig_i_ds,
11760 ))
11761 .headers(header_map)
11762 .build()?;
11763 let info = OperationInfo {
11764 operation_id: "operations_list",
11765 };
11766 self.pre(&mut request, &info).await?;
11767 let result = self.exec(request, &info).await;
11768 self.post(&result, &info).await?;
11769 let response = result?;
11770 match response.status().as_u16() {
11771 200u16 => ResponseValue::from_response(response).await,
11772 400u16..=499u16 => Err(Error::ErrorResponse(
11773 ResponseValue::from_response(response).await?,
11774 )),
11775 500u16..=599u16 => Err(Error::ErrorResponse(
11776 ResponseValue::from_response(response).await?,
11777 )),
11778 _ => Err(Error::UnexpectedResponse(response)),
11779 }
11780 }
11781
11782 pub async fn operations_stat<'a>(
11798 &'a self,
11799 async_: Option<bool>,
11800 group: Option<&'a str>,
11801 fs: &'a str,
11802 opt: Option<&'a str>,
11803 remote: &'a str,
11804 ) -> Result<ResponseValue<types::OperationsStatResponse>, Error<types::RcError>> {
11805 let url = format!("{}/operations/stat", self.baseurl,);
11806 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11807 header_map.append(
11808 ::reqwest::header::HeaderName::from_static("api-version"),
11809 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11810 );
11811 #[allow(unused_mut)]
11812 let mut request = self
11813 .client
11814 .post(url)
11815 .header(
11816 ::reqwest::header::ACCEPT,
11817 ::reqwest::header::HeaderValue::from_static("application/json"),
11818 )
11819 .query(&progenitor_client::QueryParam::new("_async", &async_))
11820 .query(&progenitor_client::QueryParam::new("_group", &group))
11821 .query(&progenitor_client::QueryParam::new("fs", &fs))
11822 .query(&progenitor_client::QueryParam::new("opt", &opt))
11823 .query(&progenitor_client::QueryParam::new("remote", &remote))
11824 .headers(header_map)
11825 .build()?;
11826 let info = OperationInfo {
11827 operation_id: "operations_stat",
11828 };
11829 self.pre(&mut request, &info).await?;
11830 let result = self.exec(request, &info).await;
11831 self.post(&result, &info).await?;
11832 let response = result?;
11833 match response.status().as_u16() {
11834 200u16 => ResponseValue::from_response(response).await,
11835 400u16..=499u16 => Err(Error::ErrorResponse(
11836 ResponseValue::from_response(response).await?,
11837 )),
11838 500u16..=599u16 => Err(Error::ErrorResponse(
11839 ResponseValue::from_response(response).await?,
11840 )),
11841 _ => Err(Error::UnexpectedResponse(response)),
11842 }
11843 }
11844
11845 pub async fn operations_about<'a>(
11858 &'a self,
11859 async_: Option<bool>,
11860 group: Option<&'a str>,
11861 fs: &'a str,
11862 ) -> Result<ResponseValue<types::OperationsAboutResponse>, Error<types::RcError>> {
11863 let url = format!("{}/operations/about", self.baseurl,);
11864 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11865 header_map.append(
11866 ::reqwest::header::HeaderName::from_static("api-version"),
11867 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11868 );
11869 #[allow(unused_mut)]
11870 let mut request = self
11871 .client
11872 .post(url)
11873 .header(
11874 ::reqwest::header::ACCEPT,
11875 ::reqwest::header::HeaderValue::from_static("application/json"),
11876 )
11877 .query(&progenitor_client::QueryParam::new("_async", &async_))
11878 .query(&progenitor_client::QueryParam::new("_group", &group))
11879 .query(&progenitor_client::QueryParam::new("fs", &fs))
11880 .headers(header_map)
11881 .build()?;
11882 let info = OperationInfo {
11883 operation_id: "operations_about",
11884 };
11885 self.pre(&mut request, &info).await?;
11886 let result = self.exec(request, &info).await;
11887 self.post(&result, &info).await?;
11888 let response = result?;
11889 match response.status().as_u16() {
11890 200u16 => ResponseValue::from_response(response).await,
11891 400u16..=499u16 => Err(Error::ErrorResponse(
11892 ResponseValue::from_response(response).await?,
11893 )),
11894 500u16..=599u16 => Err(Error::ErrorResponse(
11895 ResponseValue::from_response(response).await?,
11896 )),
11897 _ => Err(Error::UnexpectedResponse(response)),
11898 }
11899 }
11900
11901 pub async fn operations_uploadfile<'a, B: Into<reqwest::Body>>(
11916 &'a self,
11917 async_: Option<bool>,
11918 group: Option<&'a str>,
11919 fs: &'a str,
11920 remote: &'a str,
11921 body: B,
11922 ) -> Result<
11923 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11924 Error<types::RcError>,
11925 > {
11926 let url = format!("{}/operations/uploadfile", self.baseurl,);
11927 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11928 header_map.append(
11929 ::reqwest::header::HeaderName::from_static("api-version"),
11930 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11931 );
11932 #[allow(unused_mut)]
11933 let mut request = self
11934 .client
11935 .post(url)
11936 .header(
11937 ::reqwest::header::ACCEPT,
11938 ::reqwest::header::HeaderValue::from_static("application/json"),
11939 )
11940 .header(
11941 ::reqwest::header::CONTENT_TYPE,
11942 ::reqwest::header::HeaderValue::from_static("application/octet-stream"),
11943 )
11944 .body(body)
11945 .query(&progenitor_client::QueryParam::new("_async", &async_))
11946 .query(&progenitor_client::QueryParam::new("_group", &group))
11947 .query(&progenitor_client::QueryParam::new("fs", &fs))
11948 .query(&progenitor_client::QueryParam::new("remote", &remote))
11949 .headers(header_map)
11950 .build()?;
11951 let info = OperationInfo {
11952 operation_id: "operations_uploadfile",
11953 };
11954 self.pre(&mut request, &info).await?;
11955 let result = self.exec(request, &info).await;
11956 self.post(&result, &info).await?;
11957 let response = result?;
11958 match response.status().as_u16() {
11959 200u16 => ResponseValue::from_response(response).await,
11960 400u16..=499u16 => Err(Error::ErrorResponse(
11961 ResponseValue::from_response(response).await?,
11962 )),
11963 500u16..=599u16 => Err(Error::ErrorResponse(
11964 ResponseValue::from_response(response).await?,
11965 )),
11966 _ => Err(Error::UnexpectedResponse(response)),
11967 }
11968 }
11969
11970 pub async fn operations_purge<'a>(
11985 &'a self,
11986 async_: Option<bool>,
11987 config: Option<&'a str>,
11988 filter: Option<&'a str>,
11989 group: Option<&'a str>,
11990 fs: &'a str,
11991 remote: &'a str,
11992 ) -> Result<
11993 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11994 Error<types::RcError>,
11995 > {
11996 let url = format!("{}/operations/purge", self.baseurl,);
11997 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11998 header_map.append(
11999 ::reqwest::header::HeaderName::from_static("api-version"),
12000 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12001 );
12002 #[allow(unused_mut)]
12003 let mut request = self
12004 .client
12005 .post(url)
12006 .header(
12007 ::reqwest::header::ACCEPT,
12008 ::reqwest::header::HeaderValue::from_static("application/json"),
12009 )
12010 .query(&progenitor_client::QueryParam::new("_async", &async_))
12011 .query(&progenitor_client::QueryParam::new("_config", &config))
12012 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12013 .query(&progenitor_client::QueryParam::new("_group", &group))
12014 .query(&progenitor_client::QueryParam::new("fs", &fs))
12015 .query(&progenitor_client::QueryParam::new("remote", &remote))
12016 .headers(header_map)
12017 .build()?;
12018 let info = OperationInfo {
12019 operation_id: "operations_purge",
12020 };
12021 self.pre(&mut request, &info).await?;
12022 let result = self.exec(request, &info).await;
12023 self.post(&result, &info).await?;
12024 let response = result?;
12025 match response.status().as_u16() {
12026 200u16 => ResponseValue::from_response(response).await,
12027 400u16..=499u16 => Err(Error::ErrorResponse(
12028 ResponseValue::from_response(response).await?,
12029 )),
12030 500u16..=599u16 => Err(Error::ErrorResponse(
12031 ResponseValue::from_response(response).await?,
12032 )),
12033 _ => Err(Error::UnexpectedResponse(response)),
12034 }
12035 }
12036
12037 pub async fn operations_mkdir<'a>(
12050 &'a self,
12051 async_: Option<bool>,
12052 group: Option<&'a str>,
12053 fs: &'a str,
12054 remote: &'a str,
12055 ) -> Result<
12056 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12057 Error<types::RcError>,
12058 > {
12059 let url = format!("{}/operations/mkdir", self.baseurl,);
12060 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12061 header_map.append(
12062 ::reqwest::header::HeaderName::from_static("api-version"),
12063 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12064 );
12065 #[allow(unused_mut)]
12066 let mut request = self
12067 .client
12068 .post(url)
12069 .header(
12070 ::reqwest::header::ACCEPT,
12071 ::reqwest::header::HeaderValue::from_static("application/json"),
12072 )
12073 .query(&progenitor_client::QueryParam::new("_async", &async_))
12074 .query(&progenitor_client::QueryParam::new("_group", &group))
12075 .query(&progenitor_client::QueryParam::new("fs", &fs))
12076 .query(&progenitor_client::QueryParam::new("remote", &remote))
12077 .headers(header_map)
12078 .build()?;
12079 let info = OperationInfo {
12080 operation_id: "operations_mkdir",
12081 };
12082 self.pre(&mut request, &info).await?;
12083 let result = self.exec(request, &info).await;
12084 self.post(&result, &info).await?;
12085 let response = result?;
12086 match response.status().as_u16() {
12087 200u16 => ResponseValue::from_response(response).await,
12088 400u16..=499u16 => Err(Error::ErrorResponse(
12089 ResponseValue::from_response(response).await?,
12090 )),
12091 500u16..=599u16 => Err(Error::ErrorResponse(
12092 ResponseValue::from_response(response).await?,
12093 )),
12094 _ => Err(Error::UnexpectedResponse(response)),
12095 }
12096 }
12097
12098 pub async fn operations_rmdir<'a>(
12111 &'a self,
12112 async_: Option<bool>,
12113 group: Option<&'a str>,
12114 fs: &'a str,
12115 remote: &'a str,
12116 ) -> Result<
12117 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12118 Error<types::RcError>,
12119 > {
12120 let url = format!("{}/operations/rmdir", self.baseurl,);
12121 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12122 header_map.append(
12123 ::reqwest::header::HeaderName::from_static("api-version"),
12124 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12125 );
12126 #[allow(unused_mut)]
12127 let mut request = self
12128 .client
12129 .post(url)
12130 .header(
12131 ::reqwest::header::ACCEPT,
12132 ::reqwest::header::HeaderValue::from_static("application/json"),
12133 )
12134 .query(&progenitor_client::QueryParam::new("_async", &async_))
12135 .query(&progenitor_client::QueryParam::new("_group", &group))
12136 .query(&progenitor_client::QueryParam::new("fs", &fs))
12137 .query(&progenitor_client::QueryParam::new("remote", &remote))
12138 .headers(header_map)
12139 .build()?;
12140 let info = OperationInfo {
12141 operation_id: "operations_rmdir",
12142 };
12143 self.pre(&mut request, &info).await?;
12144 let result = self.exec(request, &info).await;
12145 self.post(&result, &info).await?;
12146 let response = result?;
12147 match response.status().as_u16() {
12148 200u16 => ResponseValue::from_response(response).await,
12149 400u16..=499u16 => Err(Error::ErrorResponse(
12150 ResponseValue::from_response(response).await?,
12151 )),
12152 500u16..=599u16 => Err(Error::ErrorResponse(
12153 ResponseValue::from_response(response).await?,
12154 )),
12155 _ => Err(Error::UnexpectedResponse(response)),
12156 }
12157 }
12158
12159 pub async fn operations_check<'a>(
12192 &'a self,
12193 async_: Option<bool>,
12194 group: Option<&'a str>,
12195 check_file_fs: Option<&'a str>,
12196 check_file_hash: Option<&'a str>,
12197 check_file_remote: Option<&'a str>,
12198 combined: Option<bool>,
12199 differ: Option<bool>,
12200 download: Option<bool>,
12201 dst_fs: &'a str,
12202 error: Option<bool>,
12203 match_: Option<bool>,
12204 missing_on_dst: Option<bool>,
12205 missing_on_src: Option<bool>,
12206 one_way: Option<bool>,
12207 src_fs: &'a str,
12208 ) -> Result<ResponseValue<types::OperationsCheckResponse>, Error<types::RcError>> {
12209 let url = format!("{}/operations/check", self.baseurl,);
12210 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12211 header_map.append(
12212 ::reqwest::header::HeaderName::from_static("api-version"),
12213 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12214 );
12215 #[allow(unused_mut)]
12216 let mut request = self
12217 .client
12218 .post(url)
12219 .header(
12220 ::reqwest::header::ACCEPT,
12221 ::reqwest::header::HeaderValue::from_static("application/json"),
12222 )
12223 .query(&progenitor_client::QueryParam::new("_async", &async_))
12224 .query(&progenitor_client::QueryParam::new("_group", &group))
12225 .query(&progenitor_client::QueryParam::new(
12226 "checkFileFs",
12227 &check_file_fs,
12228 ))
12229 .query(&progenitor_client::QueryParam::new(
12230 "checkFileHash",
12231 &check_file_hash,
12232 ))
12233 .query(&progenitor_client::QueryParam::new(
12234 "checkFileRemote",
12235 &check_file_remote,
12236 ))
12237 .query(&progenitor_client::QueryParam::new("combined", &combined))
12238 .query(&progenitor_client::QueryParam::new("differ", &differ))
12239 .query(&progenitor_client::QueryParam::new("download", &download))
12240 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12241 .query(&progenitor_client::QueryParam::new("error", &error))
12242 .query(&progenitor_client::QueryParam::new("match", &match_))
12243 .query(&progenitor_client::QueryParam::new(
12244 "missingOnDst",
12245 &missing_on_dst,
12246 ))
12247 .query(&progenitor_client::QueryParam::new(
12248 "missingOnSrc",
12249 &missing_on_src,
12250 ))
12251 .query(&progenitor_client::QueryParam::new("oneWay", &one_way))
12252 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12253 .headers(header_map)
12254 .build()?;
12255 let info = OperationInfo {
12256 operation_id: "operations_check",
12257 };
12258 self.pre(&mut request, &info).await?;
12259 let result = self.exec(request, &info).await;
12260 self.post(&result, &info).await?;
12261 let response = result?;
12262 match response.status().as_u16() {
12263 200u16 => ResponseValue::from_response(response).await,
12264 400u16..=499u16 => Err(Error::ErrorResponse(
12265 ResponseValue::from_response(response).await?,
12266 )),
12267 500u16..=599u16 => Err(Error::ErrorResponse(
12268 ResponseValue::from_response(response).await?,
12269 )),
12270 _ => Err(Error::UnexpectedResponse(response)),
12271 }
12272 }
12273
12274 pub async fn sync_sync<'a>(
12292 &'a self,
12293 async_: Option<bool>,
12294 config: Option<&'a str>,
12295 filter: Option<&'a str>,
12296 group: Option<&'a str>,
12297 create_empty_src_dirs: Option<bool>,
12298 dst_fs: &'a str,
12299 src_fs: &'a str,
12300 ) -> Result<ResponseValue<types::SyncSyncResponse>, Error<types::RcError>> {
12301 let url = format!("{}/sync/sync", self.baseurl,);
12302 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12303 header_map.append(
12304 ::reqwest::header::HeaderName::from_static("api-version"),
12305 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12306 );
12307 #[allow(unused_mut)]
12308 let mut request = self
12309 .client
12310 .post(url)
12311 .header(
12312 ::reqwest::header::ACCEPT,
12313 ::reqwest::header::HeaderValue::from_static("application/json"),
12314 )
12315 .query(&progenitor_client::QueryParam::new("_async", &async_))
12316 .query(&progenitor_client::QueryParam::new("_config", &config))
12317 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12318 .query(&progenitor_client::QueryParam::new("_group", &group))
12319 .query(&progenitor_client::QueryParam::new(
12320 "createEmptySrcDirs",
12321 &create_empty_src_dirs,
12322 ))
12323 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12324 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12325 .headers(header_map)
12326 .build()?;
12327 let info = OperationInfo {
12328 operation_id: "sync_sync",
12329 };
12330 self.pre(&mut request, &info).await?;
12331 let result = self.exec(request, &info).await;
12332 self.post(&result, &info).await?;
12333 let response = result?;
12334 match response.status().as_u16() {
12335 200u16 => ResponseValue::from_response(response).await,
12336 400u16..=499u16 => Err(Error::ErrorResponse(
12337 ResponseValue::from_response(response).await?,
12338 )),
12339 500u16..=599u16 => Err(Error::ErrorResponse(
12340 ResponseValue::from_response(response).await?,
12341 )),
12342 _ => Err(Error::UnexpectedResponse(response)),
12343 }
12344 }
12345
12346 pub async fn sync_copy<'a>(
12364 &'a self,
12365 async_: Option<bool>,
12366 config: Option<&'a str>,
12367 filter: Option<&'a str>,
12368 group: Option<&'a str>,
12369 create_empty_src_dirs: Option<bool>,
12370 dst_fs: &'a str,
12371 src_fs: &'a str,
12372 ) -> Result<ResponseValue<types::SyncCopyResponse>, Error<types::RcError>> {
12373 let url = format!("{}/sync/copy", self.baseurl,);
12374 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12375 header_map.append(
12376 ::reqwest::header::HeaderName::from_static("api-version"),
12377 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12378 );
12379 #[allow(unused_mut)]
12380 let mut request = self
12381 .client
12382 .post(url)
12383 .header(
12384 ::reqwest::header::ACCEPT,
12385 ::reqwest::header::HeaderValue::from_static("application/json"),
12386 )
12387 .query(&progenitor_client::QueryParam::new("_async", &async_))
12388 .query(&progenitor_client::QueryParam::new("_config", &config))
12389 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12390 .query(&progenitor_client::QueryParam::new("_group", &group))
12391 .query(&progenitor_client::QueryParam::new(
12392 "createEmptySrcDirs",
12393 &create_empty_src_dirs,
12394 ))
12395 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12396 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12397 .headers(header_map)
12398 .build()?;
12399 let info = OperationInfo {
12400 operation_id: "sync_copy",
12401 };
12402 self.pre(&mut request, &info).await?;
12403 let result = self.exec(request, &info).await;
12404 self.post(&result, &info).await?;
12405 let response = result?;
12406 match response.status().as_u16() {
12407 200u16 => ResponseValue::from_response(response).await,
12408 400u16..=499u16 => Err(Error::ErrorResponse(
12409 ResponseValue::from_response(response).await?,
12410 )),
12411 500u16..=599u16 => Err(Error::ErrorResponse(
12412 ResponseValue::from_response(response).await?,
12413 )),
12414 _ => Err(Error::UnexpectedResponse(response)),
12415 }
12416 }
12417
12418 pub async fn sync_move<'a>(
12438 &'a self,
12439 async_: Option<bool>,
12440 config: Option<&'a str>,
12441 filter: Option<&'a str>,
12442 group: Option<&'a str>,
12443 create_empty_src_dirs: Option<bool>,
12444 delete_empty_src_dirs: Option<bool>,
12445 dst_fs: &'a str,
12446 src_fs: &'a str,
12447 ) -> Result<ResponseValue<types::SyncMoveResponse>, Error<types::RcError>> {
12448 let url = format!("{}/sync/move", self.baseurl,);
12449 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12450 header_map.append(
12451 ::reqwest::header::HeaderName::from_static("api-version"),
12452 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12453 );
12454 #[allow(unused_mut)]
12455 let mut request = self
12456 .client
12457 .post(url)
12458 .header(
12459 ::reqwest::header::ACCEPT,
12460 ::reqwest::header::HeaderValue::from_static("application/json"),
12461 )
12462 .query(&progenitor_client::QueryParam::new("_async", &async_))
12463 .query(&progenitor_client::QueryParam::new("_config", &config))
12464 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12465 .query(&progenitor_client::QueryParam::new("_group", &group))
12466 .query(&progenitor_client::QueryParam::new(
12467 "createEmptySrcDirs",
12468 &create_empty_src_dirs,
12469 ))
12470 .query(&progenitor_client::QueryParam::new(
12471 "deleteEmptySrcDirs",
12472 &delete_empty_src_dirs,
12473 ))
12474 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12475 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12476 .headers(header_map)
12477 .build()?;
12478 let info = OperationInfo {
12479 operation_id: "sync_move",
12480 };
12481 self.pre(&mut request, &info).await?;
12482 let result = self.exec(request, &info).await;
12483 self.post(&result, &info).await?;
12484 let response = result?;
12485 match response.status().as_u16() {
12486 200u16 => ResponseValue::from_response(response).await,
12487 400u16..=499u16 => Err(Error::ErrorResponse(
12488 ResponseValue::from_response(response).await?,
12489 )),
12490 500u16..=599u16 => Err(Error::ErrorResponse(
12491 ResponseValue::from_response(response).await?,
12492 )),
12493 _ => Err(Error::UnexpectedResponse(response)),
12494 }
12495 }
12496
12497 pub async fn sync_bisync<'a>(
12540 &'a self,
12541 async_: Option<bool>,
12542 config: Option<&'a str>,
12543 filter: Option<&'a str>,
12544 group: Option<&'a str>,
12545 backupdir1: Option<&'a str>,
12546 backupdir2: Option<&'a str>,
12547 check_access: Option<bool>,
12548 check_filename: Option<&'a str>,
12549 check_sync: Option<bool>,
12550 create_empty_src_dirs: Option<bool>,
12551 dry_run: Option<bool>,
12552 filters_file: Option<&'a str>,
12553 force: Option<bool>,
12554 ignore_listing_checksum: Option<bool>,
12555 max_delete: Option<f64>,
12556 no_cleanup: Option<bool>,
12557 path1: &'a str,
12558 path2: &'a str,
12559 remove_empty_dirs: Option<bool>,
12560 resilient: Option<bool>,
12561 resync: Option<bool>,
12562 workdir: Option<&'a str>,
12563 ) -> Result<ResponseValue<types::SyncBisyncResponse>, Error<types::RcError>> {
12564 let url = format!("{}/sync/bisync", self.baseurl,);
12565 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12566 header_map.append(
12567 ::reqwest::header::HeaderName::from_static("api-version"),
12568 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12569 );
12570 #[allow(unused_mut)]
12571 let mut request = self
12572 .client
12573 .post(url)
12574 .header(
12575 ::reqwest::header::ACCEPT,
12576 ::reqwest::header::HeaderValue::from_static("application/json"),
12577 )
12578 .query(&progenitor_client::QueryParam::new("_async", &async_))
12579 .query(&progenitor_client::QueryParam::new("_config", &config))
12580 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12581 .query(&progenitor_client::QueryParam::new("_group", &group))
12582 .query(&progenitor_client::QueryParam::new(
12583 "backupdir1",
12584 &backupdir1,
12585 ))
12586 .query(&progenitor_client::QueryParam::new(
12587 "backupdir2",
12588 &backupdir2,
12589 ))
12590 .query(&progenitor_client::QueryParam::new(
12591 "checkAccess",
12592 &check_access,
12593 ))
12594 .query(&progenitor_client::QueryParam::new(
12595 "checkFilename",
12596 &check_filename,
12597 ))
12598 .query(&progenitor_client::QueryParam::new(
12599 "checkSync",
12600 &check_sync,
12601 ))
12602 .query(&progenitor_client::QueryParam::new(
12603 "createEmptySrcDirs",
12604 &create_empty_src_dirs,
12605 ))
12606 .query(&progenitor_client::QueryParam::new("dryRun", &dry_run))
12607 .query(&progenitor_client::QueryParam::new(
12608 "filtersFile",
12609 &filters_file,
12610 ))
12611 .query(&progenitor_client::QueryParam::new("force", &force))
12612 .query(&progenitor_client::QueryParam::new(
12613 "ignoreListingChecksum",
12614 &ignore_listing_checksum,
12615 ))
12616 .query(&progenitor_client::QueryParam::new(
12617 "maxDelete",
12618 &max_delete,
12619 ))
12620 .query(&progenitor_client::QueryParam::new(
12621 "noCleanup",
12622 &no_cleanup,
12623 ))
12624 .query(&progenitor_client::QueryParam::new("path1", &path1))
12625 .query(&progenitor_client::QueryParam::new("path2", &path2))
12626 .query(&progenitor_client::QueryParam::new(
12627 "removeEmptyDirs",
12628 &remove_empty_dirs,
12629 ))
12630 .query(&progenitor_client::QueryParam::new("resilient", &resilient))
12631 .query(&progenitor_client::QueryParam::new("resync", &resync))
12632 .query(&progenitor_client::QueryParam::new("workdir", &workdir))
12633 .headers(header_map)
12634 .build()?;
12635 let info = OperationInfo {
12636 operation_id: "sync_bisync",
12637 };
12638 self.pre(&mut request, &info).await?;
12639 let result = self.exec(request, &info).await;
12640 self.post(&result, &info).await?;
12641 let response = result?;
12642 match response.status().as_u16() {
12643 200u16 => ResponseValue::from_response(response).await,
12644 400u16..=499u16 => Err(Error::ErrorResponse(
12645 ResponseValue::from_response(response).await?,
12646 )),
12647 500u16..=599u16 => Err(Error::ErrorResponse(
12648 ResponseValue::from_response(response).await?,
12649 )),
12650 _ => Err(Error::UnexpectedResponse(response)),
12651 }
12652 }
12653
12654 pub async fn options_blocks<'a>(
12665 &'a self,
12666 async_: Option<bool>,
12667 group: Option<&'a str>,
12668 ) -> Result<ResponseValue<types::OptionsBlocksResponse>, Error<types::RcError>> {
12669 let url = format!("{}/options/blocks", self.baseurl,);
12670 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12671 header_map.append(
12672 ::reqwest::header::HeaderName::from_static("api-version"),
12673 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12674 );
12675 #[allow(unused_mut)]
12676 let mut request = self
12677 .client
12678 .post(url)
12679 .header(
12680 ::reqwest::header::ACCEPT,
12681 ::reqwest::header::HeaderValue::from_static("application/json"),
12682 )
12683 .query(&progenitor_client::QueryParam::new("_async", &async_))
12684 .query(&progenitor_client::QueryParam::new("_group", &group))
12685 .headers(header_map)
12686 .build()?;
12687 let info = OperationInfo {
12688 operation_id: "options_blocks",
12689 };
12690 self.pre(&mut request, &info).await?;
12691 let result = self.exec(request, &info).await;
12692 self.post(&result, &info).await?;
12693 let response = result?;
12694 match response.status().as_u16() {
12695 200u16 => ResponseValue::from_response(response).await,
12696 400u16..=499u16 => Err(Error::ErrorResponse(
12697 ResponseValue::from_response(response).await?,
12698 )),
12699 500u16..=599u16 => Err(Error::ErrorResponse(
12700 ResponseValue::from_response(response).await?,
12701 )),
12702 _ => Err(Error::UnexpectedResponse(response)),
12703 }
12704 }
12705
12706 pub async fn options_get<'a>(
12719 &'a self,
12720 async_: Option<bool>,
12721 group: Option<&'a str>,
12722 blocks: Option<&'a str>,
12723 ) -> Result<ResponseValue<types::OptionsGetResponse>, Error<types::RcError>> {
12724 let url = format!("{}/options/get", self.baseurl,);
12725 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12726 header_map.append(
12727 ::reqwest::header::HeaderName::from_static("api-version"),
12728 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12729 );
12730 #[allow(unused_mut)]
12731 let mut request = self
12732 .client
12733 .post(url)
12734 .header(
12735 ::reqwest::header::ACCEPT,
12736 ::reqwest::header::HeaderValue::from_static("application/json"),
12737 )
12738 .query(&progenitor_client::QueryParam::new("_async", &async_))
12739 .query(&progenitor_client::QueryParam::new("_group", &group))
12740 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12741 .headers(header_map)
12742 .build()?;
12743 let info = OperationInfo {
12744 operation_id: "options_get",
12745 };
12746 self.pre(&mut request, &info).await?;
12747 let result = self.exec(request, &info).await;
12748 self.post(&result, &info).await?;
12749 let response = result?;
12750 match response.status().as_u16() {
12751 200u16 => ResponseValue::from_response(response).await,
12752 400u16..=499u16 => Err(Error::ErrorResponse(
12753 ResponseValue::from_response(response).await?,
12754 )),
12755 500u16..=599u16 => Err(Error::ErrorResponse(
12756 ResponseValue::from_response(response).await?,
12757 )),
12758 _ => Err(Error::UnexpectedResponse(response)),
12759 }
12760 }
12761
12762 pub async fn options_info<'a>(
12776 &'a self,
12777 async_: Option<bool>,
12778 group: Option<&'a str>,
12779 blocks: Option<&'a str>,
12780 ) -> Result<ResponseValue<types::OptionsInfoResponse>, Error<types::RcError>> {
12781 let url = format!("{}/options/info", self.baseurl,);
12782 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12783 header_map.append(
12784 ::reqwest::header::HeaderName::from_static("api-version"),
12785 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12786 );
12787 #[allow(unused_mut)]
12788 let mut request = self
12789 .client
12790 .post(url)
12791 .header(
12792 ::reqwest::header::ACCEPT,
12793 ::reqwest::header::HeaderValue::from_static("application/json"),
12794 )
12795 .query(&progenitor_client::QueryParam::new("_async", &async_))
12796 .query(&progenitor_client::QueryParam::new("_group", &group))
12797 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12798 .headers(header_map)
12799 .build()?;
12800 let info = OperationInfo {
12801 operation_id: "options_info",
12802 };
12803 self.pre(&mut request, &info).await?;
12804 let result = self.exec(request, &info).await;
12805 self.post(&result, &info).await?;
12806 let response = result?;
12807 match response.status().as_u16() {
12808 200u16 => ResponseValue::from_response(response).await,
12809 400u16..=499u16 => Err(Error::ErrorResponse(
12810 ResponseValue::from_response(response).await?,
12811 )),
12812 500u16..=599u16 => Err(Error::ErrorResponse(
12813 ResponseValue::from_response(response).await?,
12814 )),
12815 _ => Err(Error::UnexpectedResponse(response)),
12816 }
12817 }
12818
12819 pub async fn options_set<'a>(
12850 &'a self,
12851 async_: Option<bool>,
12852 group: Option<&'a str>,
12853 dlna: Option<
12854 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetDlnaValue>,
12855 >,
12856 filter: Option<
12857 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFilterValue>,
12858 >,
12859 ftp: Option<
12860 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFtpValue>,
12861 >,
12862 http: Option<
12863 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetHttpValue>,
12864 >,
12865 log: Option<
12866 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetLogValue>,
12867 >,
12868 main: Option<
12869 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMainValue>,
12870 >,
12871 mount: Option<
12872 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMountValue>,
12873 >,
12874 nfs: Option<
12875 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetNfsValue>,
12876 >,
12877 proxy: Option<
12878 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetProxyValue>,
12879 >,
12880 rc: Option<
12881 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetRcValue>,
12882 >,
12883 restic: Option<
12884 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetResticValue>,
12885 >,
12886 s3: Option<
12887 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetS3Value>,
12888 >,
12889 sftp: Option<
12890 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetSftpValue>,
12891 >,
12892 vfs: Option<
12893 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetVfsValue>,
12894 >,
12895 webdav: Option<
12896 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetWebdavValue>,
12897 >,
12898 ) -> Result<
12899 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12900 Error<types::RcError>,
12901 > {
12902 let url = format!("{}/options/set", self.baseurl,);
12903 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12904 header_map.append(
12905 ::reqwest::header::HeaderName::from_static("api-version"),
12906 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12907 );
12908 #[allow(unused_mut)]
12909 let mut request = self
12910 .client
12911 .post(url)
12912 .header(
12913 ::reqwest::header::ACCEPT,
12914 ::reqwest::header::HeaderValue::from_static("application/json"),
12915 )
12916 .query(&progenitor_client::QueryParam::new("_async", &async_))
12917 .query(&progenitor_client::QueryParam::new("_group", &group))
12918 .query(&progenitor_client::QueryParam::new("dlna", &dlna))
12919 .query(&progenitor_client::QueryParam::new("filter", &filter))
12920 .query(&progenitor_client::QueryParam::new("ftp", &ftp))
12921 .query(&progenitor_client::QueryParam::new("http", &http))
12922 .query(&progenitor_client::QueryParam::new("log", &log))
12923 .query(&progenitor_client::QueryParam::new("main", &main))
12924 .query(&progenitor_client::QueryParam::new("mount", &mount))
12925 .query(&progenitor_client::QueryParam::new("nfs", &nfs))
12926 .query(&progenitor_client::QueryParam::new("proxy", &proxy))
12927 .query(&progenitor_client::QueryParam::new("rc", &rc))
12928 .query(&progenitor_client::QueryParam::new("restic", &restic))
12929 .query(&progenitor_client::QueryParam::new("s3", &s3))
12930 .query(&progenitor_client::QueryParam::new("sftp", &sftp))
12931 .query(&progenitor_client::QueryParam::new("vfs", &vfs))
12932 .query(&progenitor_client::QueryParam::new("webdav", &webdav))
12933 .headers(header_map)
12934 .build()?;
12935 let info = OperationInfo {
12936 operation_id: "options_set",
12937 };
12938 self.pre(&mut request, &info).await?;
12939 let result = self.exec(request, &info).await;
12940 self.post(&result, &info).await?;
12941 let response = result?;
12942 match response.status().as_u16() {
12943 200u16 => ResponseValue::from_response(response).await,
12944 400u16..=499u16 => Err(Error::ErrorResponse(
12945 ResponseValue::from_response(response).await?,
12946 )),
12947 500u16..=599u16 => Err(Error::ErrorResponse(
12948 ResponseValue::from_response(response).await?,
12949 )),
12950 _ => Err(Error::UnexpectedResponse(response)),
12951 }
12952 }
12953
12954 pub async fn options_local<'a>(
12966 &'a self,
12967 async_: Option<bool>,
12968 group: Option<&'a str>,
12969 ) -> Result<ResponseValue<types::OptionsLocalResponse>, Error<types::RcError>> {
12970 let url = format!("{}/options/local", self.baseurl,);
12971 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12972 header_map.append(
12973 ::reqwest::header::HeaderName::from_static("api-version"),
12974 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12975 );
12976 #[allow(unused_mut)]
12977 let mut request = self
12978 .client
12979 .post(url)
12980 .header(
12981 ::reqwest::header::ACCEPT,
12982 ::reqwest::header::HeaderValue::from_static("application/json"),
12983 )
12984 .query(&progenitor_client::QueryParam::new("_async", &async_))
12985 .query(&progenitor_client::QueryParam::new("_group", &group))
12986 .headers(header_map)
12987 .build()?;
12988 let info = OperationInfo {
12989 operation_id: "options_local",
12990 };
12991 self.pre(&mut request, &info).await?;
12992 let result = self.exec(request, &info).await;
12993 self.post(&result, &info).await?;
12994 let response = result?;
12995 match response.status().as_u16() {
12996 200u16 => ResponseValue::from_response(response).await,
12997 400u16..=499u16 => Err(Error::ErrorResponse(
12998 ResponseValue::from_response(response).await?,
12999 )),
13000 500u16..=599u16 => Err(Error::ErrorResponse(
13001 ResponseValue::from_response(response).await?,
13002 )),
13003 _ => Err(Error::UnexpectedResponse(response)),
13004 }
13005 }
13006
13007 pub async fn serve_list<'a>(
13018 &'a self,
13019 async_: Option<bool>,
13020 group: Option<&'a str>,
13021 ) -> Result<ResponseValue<types::ServeListResponse>, Error<types::RcError>> {
13022 let url = format!("{}/serve/list", self.baseurl,);
13023 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13024 header_map.append(
13025 ::reqwest::header::HeaderName::from_static("api-version"),
13026 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13027 );
13028 #[allow(unused_mut)]
13029 let mut request = self
13030 .client
13031 .post(url)
13032 .header(
13033 ::reqwest::header::ACCEPT,
13034 ::reqwest::header::HeaderValue::from_static("application/json"),
13035 )
13036 .query(&progenitor_client::QueryParam::new("_async", &async_))
13037 .query(&progenitor_client::QueryParam::new("_group", &group))
13038 .headers(header_map)
13039 .build()?;
13040 let info = OperationInfo {
13041 operation_id: "serve_list",
13042 };
13043 self.pre(&mut request, &info).await?;
13044 let result = self.exec(request, &info).await;
13045 self.post(&result, &info).await?;
13046 let response = result?;
13047 match response.status().as_u16() {
13048 200u16 => ResponseValue::from_response(response).await,
13049 400u16..=499u16 => Err(Error::ErrorResponse(
13050 ResponseValue::from_response(response).await?,
13051 )),
13052 500u16..=599u16 => Err(Error::ErrorResponse(
13053 ResponseValue::from_response(response).await?,
13054 )),
13055 _ => Err(Error::UnexpectedResponse(response)),
13056 }
13057 }
13058
13059 pub async fn serve_start<'a>(
13079 &'a self,
13080 async_: Option<bool>,
13081 config: Option<&'a str>,
13082 filter: Option<&'a str>,
13083 group: Option<&'a str>,
13084 addr: &'a str,
13085 fs: &'a str,
13086 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13087 type_: &'a str,
13088 ) -> Result<ResponseValue<types::ServeStartResponse>, Error<types::RcError>> {
13089 let url = format!("{}/serve/start", self.baseurl,);
13090 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13091 header_map.append(
13092 ::reqwest::header::HeaderName::from_static("api-version"),
13093 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13094 );
13095 #[allow(unused_mut)]
13096 let mut request = self
13097 .client
13098 .post(url)
13099 .header(
13100 ::reqwest::header::ACCEPT,
13101 ::reqwest::header::HeaderValue::from_static("application/json"),
13102 )
13103 .query(&progenitor_client::QueryParam::new("_async", &async_))
13104 .query(&progenitor_client::QueryParam::new("_config", &config))
13105 .query(&progenitor_client::QueryParam::new("_filter", &filter))
13106 .query(&progenitor_client::QueryParam::new("_group", &group))
13107 .query(&progenitor_client::QueryParam::new("addr", &addr))
13108 .query(&progenitor_client::QueryParam::new("fs", &fs))
13109 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13110 .query(&progenitor_client::QueryParam::new("type", &type_))
13111 .headers(header_map)
13112 .build()?;
13113 let info = OperationInfo {
13114 operation_id: "serve_start",
13115 };
13116 self.pre(&mut request, &info).await?;
13117 let result = self.exec(request, &info).await;
13118 self.post(&result, &info).await?;
13119 let response = result?;
13120 match response.status().as_u16() {
13121 200u16 => ResponseValue::from_response(response).await,
13122 400u16..=499u16 => Err(Error::ErrorResponse(
13123 ResponseValue::from_response(response).await?,
13124 )),
13125 500u16..=599u16 => Err(Error::ErrorResponse(
13126 ResponseValue::from_response(response).await?,
13127 )),
13128 _ => Err(Error::UnexpectedResponse(response)),
13129 }
13130 }
13131
13132 pub async fn serve_stop<'a>(
13145 &'a self,
13146 async_: Option<bool>,
13147 group: Option<&'a str>,
13148 id: &'a str,
13149 ) -> Result<
13150 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13151 Error<types::RcError>,
13152 > {
13153 let url = format!("{}/serve/stop", self.baseurl,);
13154 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13155 header_map.append(
13156 ::reqwest::header::HeaderName::from_static("api-version"),
13157 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13158 );
13159 #[allow(unused_mut)]
13160 let mut request = self
13161 .client
13162 .post(url)
13163 .header(
13164 ::reqwest::header::ACCEPT,
13165 ::reqwest::header::HeaderValue::from_static("application/json"),
13166 )
13167 .query(&progenitor_client::QueryParam::new("_async", &async_))
13168 .query(&progenitor_client::QueryParam::new("_group", &group))
13169 .query(&progenitor_client::QueryParam::new("id", &id))
13170 .headers(header_map)
13171 .build()?;
13172 let info = OperationInfo {
13173 operation_id: "serve_stop",
13174 };
13175 self.pre(&mut request, &info).await?;
13176 let result = self.exec(request, &info).await;
13177 self.post(&result, &info).await?;
13178 let response = result?;
13179 match response.status().as_u16() {
13180 200u16 => ResponseValue::from_response(response).await,
13181 400u16..=499u16 => Err(Error::ErrorResponse(
13182 ResponseValue::from_response(response).await?,
13183 )),
13184 500u16..=599u16 => Err(Error::ErrorResponse(
13185 ResponseValue::from_response(response).await?,
13186 )),
13187 _ => Err(Error::UnexpectedResponse(response)),
13188 }
13189 }
13190
13191 pub async fn serve_stopall<'a>(
13202 &'a self,
13203 async_: Option<bool>,
13204 group: Option<&'a str>,
13205 ) -> Result<
13206 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13207 Error<types::RcError>,
13208 > {
13209 let url = format!("{}/serve/stopall", self.baseurl,);
13210 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13211 header_map.append(
13212 ::reqwest::header::HeaderName::from_static("api-version"),
13213 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13214 );
13215 #[allow(unused_mut)]
13216 let mut request = self
13217 .client
13218 .post(url)
13219 .header(
13220 ::reqwest::header::ACCEPT,
13221 ::reqwest::header::HeaderValue::from_static("application/json"),
13222 )
13223 .query(&progenitor_client::QueryParam::new("_async", &async_))
13224 .query(&progenitor_client::QueryParam::new("_group", &group))
13225 .headers(header_map)
13226 .build()?;
13227 let info = OperationInfo {
13228 operation_id: "serve_stopall",
13229 };
13230 self.pre(&mut request, &info).await?;
13231 let result = self.exec(request, &info).await;
13232 self.post(&result, &info).await?;
13233 let response = result?;
13234 match response.status().as_u16() {
13235 200u16 => ResponseValue::from_response(response).await,
13236 400u16..=499u16 => Err(Error::ErrorResponse(
13237 ResponseValue::from_response(response).await?,
13238 )),
13239 500u16..=599u16 => Err(Error::ErrorResponse(
13240 ResponseValue::from_response(response).await?,
13241 )),
13242 _ => Err(Error::UnexpectedResponse(response)),
13243 }
13244 }
13245
13246 pub async fn serve_types<'a>(
13257 &'a self,
13258 async_: Option<bool>,
13259 group: Option<&'a str>,
13260 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13261 let url = format!("{}/serve/types", self.baseurl,);
13262 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13263 header_map.append(
13264 ::reqwest::header::HeaderName::from_static("api-version"),
13265 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13266 );
13267 #[allow(unused_mut)]
13268 let mut request = self
13269 .client
13270 .post(url)
13271 .header(
13272 ::reqwest::header::ACCEPT,
13273 ::reqwest::header::HeaderValue::from_static("application/json"),
13274 )
13275 .query(&progenitor_client::QueryParam::new("_async", &async_))
13276 .query(&progenitor_client::QueryParam::new("_group", &group))
13277 .headers(header_map)
13278 .build()?;
13279 let info = OperationInfo {
13280 operation_id: "serve_types",
13281 };
13282 self.pre(&mut request, &info).await?;
13283 let result = self.exec(request, &info).await;
13284 self.post(&result, &info).await?;
13285 let response = result?;
13286 match response.status().as_u16() {
13287 200u16 => Ok(ResponseValue::empty(response)),
13288 400u16..=499u16 => Err(Error::ErrorResponse(
13289 ResponseValue::from_response(response).await?,
13290 )),
13291 500u16..=599u16 => Err(Error::ErrorResponse(
13292 ResponseValue::from_response(response).await?,
13293 )),
13294 _ => Err(Error::UnexpectedResponse(response)),
13295 }
13296 }
13297
13298 pub async fn vfs_forget<'a>(
13312 &'a self,
13313 async_: Option<bool>,
13314 group: Option<&'a str>,
13315 fs: Option<&'a str>,
13316 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13317 ) -> Result<ResponseValue<types::VfsForgetResponse>, Error<types::RcError>> {
13318 let url = format!("{}/vfs/forget", self.baseurl,);
13319 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13320 header_map.append(
13321 ::reqwest::header::HeaderName::from_static("api-version"),
13322 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13323 );
13324 #[allow(unused_mut)]
13325 let mut request = self
13326 .client
13327 .post(url)
13328 .header(
13329 ::reqwest::header::ACCEPT,
13330 ::reqwest::header::HeaderValue::from_static("application/json"),
13331 )
13332 .query(&progenitor_client::QueryParam::new("_async", &async_))
13333 .query(&progenitor_client::QueryParam::new("_group", &group))
13334 .query(&progenitor_client::QueryParam::new("fs", &fs))
13335 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13336 .headers(header_map)
13337 .build()?;
13338 let info = OperationInfo {
13339 operation_id: "vfs_forget",
13340 };
13341 self.pre(&mut request, &info).await?;
13342 let result = self.exec(request, &info).await;
13343 self.post(&result, &info).await?;
13344 let response = result?;
13345 match response.status().as_u16() {
13346 200u16 => ResponseValue::from_response(response).await,
13347 400u16..=499u16 => Err(Error::ErrorResponse(
13348 ResponseValue::from_response(response).await?,
13349 )),
13350 500u16..=599u16 => Err(Error::ErrorResponse(
13351 ResponseValue::from_response(response).await?,
13352 )),
13353 _ => Err(Error::UnexpectedResponse(response)),
13354 }
13355 }
13356
13357 pub async fn vfs_list<'a>(
13369 &'a self,
13370 async_: Option<bool>,
13371 group: Option<&'a str>,
13372 fs: Option<&'a str>,
13373 ) -> Result<ResponseValue<types::VfsListResponse>, Error<types::RcError>> {
13374 let url = format!("{}/vfs/list", self.baseurl,);
13375 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13376 header_map.append(
13377 ::reqwest::header::HeaderName::from_static("api-version"),
13378 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13379 );
13380 #[allow(unused_mut)]
13381 let mut request = self
13382 .client
13383 .post(url)
13384 .header(
13385 ::reqwest::header::ACCEPT,
13386 ::reqwest::header::HeaderValue::from_static("application/json"),
13387 )
13388 .query(&progenitor_client::QueryParam::new("_async", &async_))
13389 .query(&progenitor_client::QueryParam::new("_group", &group))
13390 .query(&progenitor_client::QueryParam::new("fs", &fs))
13391 .headers(header_map)
13392 .build()?;
13393 let info = OperationInfo {
13394 operation_id: "vfs_list",
13395 };
13396 self.pre(&mut request, &info).await?;
13397 let result = self.exec(request, &info).await;
13398 self.post(&result, &info).await?;
13399 let response = result?;
13400 match response.status().as_u16() {
13401 200u16 => ResponseValue::from_response(response).await,
13402 400u16..=499u16 => Err(Error::ErrorResponse(
13403 ResponseValue::from_response(response).await?,
13404 )),
13405 500u16..=599u16 => Err(Error::ErrorResponse(
13406 ResponseValue::from_response(response).await?,
13407 )),
13408 _ => Err(Error::UnexpectedResponse(response)),
13409 }
13410 }
13411
13412 pub async fn vfs_poll_interval<'a>(
13430 &'a self,
13431 async_: Option<bool>,
13432 group: Option<&'a str>,
13433 fs: Option<&'a str>,
13434 interval: Option<&'a str>,
13435 timeout: Option<&'a str>,
13436 ) -> Result<
13437 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13438 Error<types::RcError>,
13439 > {
13440 let url = format!("{}/vfs/poll-interval", self.baseurl,);
13441 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13442 header_map.append(
13443 ::reqwest::header::HeaderName::from_static("api-version"),
13444 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13445 );
13446 #[allow(unused_mut)]
13447 let mut request = self
13448 .client
13449 .post(url)
13450 .header(
13451 ::reqwest::header::ACCEPT,
13452 ::reqwest::header::HeaderValue::from_static("application/json"),
13453 )
13454 .query(&progenitor_client::QueryParam::new("_async", &async_))
13455 .query(&progenitor_client::QueryParam::new("_group", &group))
13456 .query(&progenitor_client::QueryParam::new("fs", &fs))
13457 .query(&progenitor_client::QueryParam::new("interval", &interval))
13458 .query(&progenitor_client::QueryParam::new("timeout", &timeout))
13459 .headers(header_map)
13460 .build()?;
13461 let info = OperationInfo {
13462 operation_id: "vfs_poll_interval",
13463 };
13464 self.pre(&mut request, &info).await?;
13465 let result = self.exec(request, &info).await;
13466 self.post(&result, &info).await?;
13467 let response = result?;
13468 match response.status().as_u16() {
13469 200u16 => ResponseValue::from_response(response).await,
13470 400u16..=499u16 => Err(Error::ErrorResponse(
13471 ResponseValue::from_response(response).await?,
13472 )),
13473 500u16..=599u16 => Err(Error::ErrorResponse(
13474 ResponseValue::from_response(response).await?,
13475 )),
13476 _ => Err(Error::UnexpectedResponse(response)),
13477 }
13478 }
13479
13480 pub async fn vfs_queue<'a>(
13492 &'a self,
13493 async_: Option<bool>,
13494 group: Option<&'a str>,
13495 fs: Option<&'a str>,
13496 ) -> Result<ResponseValue<types::VfsQueueResponse>, Error<types::RcError>> {
13497 let url = format!("{}/vfs/queue", self.baseurl,);
13498 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13499 header_map.append(
13500 ::reqwest::header::HeaderName::from_static("api-version"),
13501 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13502 );
13503 #[allow(unused_mut)]
13504 let mut request = self
13505 .client
13506 .post(url)
13507 .header(
13508 ::reqwest::header::ACCEPT,
13509 ::reqwest::header::HeaderValue::from_static("application/json"),
13510 )
13511 .query(&progenitor_client::QueryParam::new("_async", &async_))
13512 .query(&progenitor_client::QueryParam::new("_group", &group))
13513 .query(&progenitor_client::QueryParam::new("fs", &fs))
13514 .headers(header_map)
13515 .build()?;
13516 let info = OperationInfo {
13517 operation_id: "vfs_queue",
13518 };
13519 self.pre(&mut request, &info).await?;
13520 let result = self.exec(request, &info).await;
13521 self.post(&result, &info).await?;
13522 let response = result?;
13523 match response.status().as_u16() {
13524 200u16 => ResponseValue::from_response(response).await,
13525 400u16..=499u16 => Err(Error::ErrorResponse(
13526 ResponseValue::from_response(response).await?,
13527 )),
13528 500u16..=599u16 => Err(Error::ErrorResponse(
13529 ResponseValue::from_response(response).await?,
13530 )),
13531 _ => Err(Error::UnexpectedResponse(response)),
13532 }
13533 }
13534
13535 pub async fn vfs_queue_set_expiry<'a>(
13553 &'a self,
13554 async_: Option<bool>,
13555 group: Option<&'a str>,
13556 expiry: f64,
13557 fs: Option<&'a str>,
13558 id: i64,
13559 relative: Option<bool>,
13560 ) -> Result<
13561 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13562 Error<types::RcError>,
13563 > {
13564 let url = format!("{}/vfs/queue-set-expiry", self.baseurl,);
13565 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13566 header_map.append(
13567 ::reqwest::header::HeaderName::from_static("api-version"),
13568 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13569 );
13570 #[allow(unused_mut)]
13571 let mut request = self
13572 .client
13573 .post(url)
13574 .header(
13575 ::reqwest::header::ACCEPT,
13576 ::reqwest::header::HeaderValue::from_static("application/json"),
13577 )
13578 .query(&progenitor_client::QueryParam::new("_async", &async_))
13579 .query(&progenitor_client::QueryParam::new("_group", &group))
13580 .query(&progenitor_client::QueryParam::new("expiry", &expiry))
13581 .query(&progenitor_client::QueryParam::new("fs", &fs))
13582 .query(&progenitor_client::QueryParam::new("id", &id))
13583 .query(&progenitor_client::QueryParam::new("relative", &relative))
13584 .headers(header_map)
13585 .build()?;
13586 let info = OperationInfo {
13587 operation_id: "vfs_queue_set_expiry",
13588 };
13589 self.pre(&mut request, &info).await?;
13590 let result = self.exec(request, &info).await;
13591 self.post(&result, &info).await?;
13592 let response = result?;
13593 match response.status().as_u16() {
13594 200u16 => ResponseValue::from_response(response).await,
13595 400u16..=499u16 => Err(Error::ErrorResponse(
13596 ResponseValue::from_response(response).await?,
13597 )),
13598 500u16..=599u16 => Err(Error::ErrorResponse(
13599 ResponseValue::from_response(response).await?,
13600 )),
13601 _ => Err(Error::UnexpectedResponse(response)),
13602 }
13603 }
13604
13605 pub async fn vfs_refresh<'a>(
13621 &'a self,
13622 async_: Option<bool>,
13623 group: Option<&'a str>,
13624 fs: Option<&'a str>,
13625 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13626 recursive: Option<bool>,
13627 ) -> Result<ResponseValue<types::VfsRefreshResponse>, Error<types::RcError>> {
13628 let url = format!("{}/vfs/refresh", self.baseurl,);
13629 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13630 header_map.append(
13631 ::reqwest::header::HeaderName::from_static("api-version"),
13632 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13633 );
13634 #[allow(unused_mut)]
13635 let mut request = self
13636 .client
13637 .post(url)
13638 .header(
13639 ::reqwest::header::ACCEPT,
13640 ::reqwest::header::HeaderValue::from_static("application/json"),
13641 )
13642 .query(&progenitor_client::QueryParam::new("_async", &async_))
13643 .query(&progenitor_client::QueryParam::new("_group", &group))
13644 .query(&progenitor_client::QueryParam::new("fs", &fs))
13645 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13646 .query(&progenitor_client::QueryParam::new("recursive", &recursive))
13647 .headers(header_map)
13648 .build()?;
13649 let info = OperationInfo {
13650 operation_id: "vfs_refresh",
13651 };
13652 self.pre(&mut request, &info).await?;
13653 let result = self.exec(request, &info).await;
13654 self.post(&result, &info).await?;
13655 let response = result?;
13656 match response.status().as_u16() {
13657 200u16 => ResponseValue::from_response(response).await,
13658 400u16..=499u16 => Err(Error::ErrorResponse(
13659 ResponseValue::from_response(response).await?,
13660 )),
13661 500u16..=599u16 => Err(Error::ErrorResponse(
13662 ResponseValue::from_response(response).await?,
13663 )),
13664 _ => Err(Error::UnexpectedResponse(response)),
13665 }
13666 }
13667
13668 pub async fn vfs_stats<'a>(
13681 &'a self,
13682 async_: Option<bool>,
13683 group: Option<&'a str>,
13684 fs: Option<&'a str>,
13685 ) -> Result<ResponseValue<types::VfsStatsResponse>, Error<types::RcError>> {
13686 let url = format!("{}/vfs/stats", self.baseurl,);
13687 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13688 header_map.append(
13689 ::reqwest::header::HeaderName::from_static("api-version"),
13690 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13691 );
13692 #[allow(unused_mut)]
13693 let mut request = self
13694 .client
13695 .post(url)
13696 .header(
13697 ::reqwest::header::ACCEPT,
13698 ::reqwest::header::HeaderValue::from_static("application/json"),
13699 )
13700 .query(&progenitor_client::QueryParam::new("_async", &async_))
13701 .query(&progenitor_client::QueryParam::new("_group", &group))
13702 .query(&progenitor_client::QueryParam::new("fs", &fs))
13703 .headers(header_map)
13704 .build()?;
13705 let info = OperationInfo {
13706 operation_id: "vfs_stats",
13707 };
13708 self.pre(&mut request, &info).await?;
13709 let result = self.exec(request, &info).await;
13710 self.post(&result, &info).await?;
13711 let response = result?;
13712 match response.status().as_u16() {
13713 200u16 => ResponseValue::from_response(response).await,
13714 400u16..=499u16 => Err(Error::ErrorResponse(
13715 ResponseValue::from_response(response).await?,
13716 )),
13717 500u16..=599u16 => Err(Error::ErrorResponse(
13718 ResponseValue::from_response(response).await?,
13719 )),
13720 _ => Err(Error::UnexpectedResponse(response)),
13721 }
13722 }
13723
13724 pub async fn pluginsctl_add_plugin<'a>(
13737 &'a self,
13738 async_: Option<bool>,
13739 group: Option<&'a str>,
13740 url: &'a str,
13741 ) -> Result<
13742 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13743 Error<types::RcError>,
13744 > {
13745 let _url = format!("{}/pluginsctl/addPlugin", self.baseurl,);
13746 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13747 header_map.append(
13748 ::reqwest::header::HeaderName::from_static("api-version"),
13749 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13750 );
13751 #[allow(unused_mut)]
13752 let mut request = self
13753 .client
13754 .post(_url)
13755 .header(
13756 ::reqwest::header::ACCEPT,
13757 ::reqwest::header::HeaderValue::from_static("application/json"),
13758 )
13759 .query(&progenitor_client::QueryParam::new("_async", &async_))
13760 .query(&progenitor_client::QueryParam::new("_group", &group))
13761 .query(&progenitor_client::QueryParam::new("url", &url))
13762 .headers(header_map)
13763 .build()?;
13764 let info = OperationInfo {
13765 operation_id: "pluginsctl_add_plugin",
13766 };
13767 self.pre(&mut request, &info).await?;
13768 let result = self.exec(request, &info).await;
13769 self.post(&result, &info).await?;
13770 let response = result?;
13771 match response.status().as_u16() {
13772 200u16 => ResponseValue::from_response(response).await,
13773 400u16..=499u16 => Err(Error::ErrorResponse(
13774 ResponseValue::from_response(response).await?,
13775 )),
13776 500u16..=599u16 => Err(Error::ErrorResponse(
13777 ResponseValue::from_response(response).await?,
13778 )),
13779 _ => Err(Error::UnexpectedResponse(response)),
13780 }
13781 }
13782
13783 pub async fn pluginsctl_get_plugins_for_type<'a>(
13797 &'a self,
13798 async_: Option<bool>,
13799 group: Option<&'a str>,
13800 plugin_type: Option<&'a str>,
13801 type_: Option<&'a str>,
13802 ) -> Result<ResponseValue<types::PluginsctlGetPluginsForTypeResponse>, Error<types::RcError>>
13803 {
13804 let url = format!("{}/pluginsctl/getPluginsForType", self.baseurl,);
13805 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13806 header_map.append(
13807 ::reqwest::header::HeaderName::from_static("api-version"),
13808 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13809 );
13810 #[allow(unused_mut)]
13811 let mut request = self
13812 .client
13813 .post(url)
13814 .header(
13815 ::reqwest::header::ACCEPT,
13816 ::reqwest::header::HeaderValue::from_static("application/json"),
13817 )
13818 .query(&progenitor_client::QueryParam::new("_async", &async_))
13819 .query(&progenitor_client::QueryParam::new("_group", &group))
13820 .query(&progenitor_client::QueryParam::new(
13821 "pluginType",
13822 &plugin_type,
13823 ))
13824 .query(&progenitor_client::QueryParam::new("type", &type_))
13825 .headers(header_map)
13826 .build()?;
13827 let info = OperationInfo {
13828 operation_id: "pluginsctl_get_plugins_for_type",
13829 };
13830 self.pre(&mut request, &info).await?;
13831 let result = self.exec(request, &info).await;
13832 self.post(&result, &info).await?;
13833 let response = result?;
13834 match response.status().as_u16() {
13835 200u16 => ResponseValue::from_response(response).await,
13836 400u16..=499u16 => Err(Error::ErrorResponse(
13837 ResponseValue::from_response(response).await?,
13838 )),
13839 500u16..=599u16 => Err(Error::ErrorResponse(
13840 ResponseValue::from_response(response).await?,
13841 )),
13842 _ => Err(Error::UnexpectedResponse(response)),
13843 }
13844 }
13845
13846 pub async fn pluginsctl_list_plugins<'a>(
13857 &'a self,
13858 async_: Option<bool>,
13859 group: Option<&'a str>,
13860 ) -> Result<ResponseValue<types::PluginsctlListPluginsResponse>, Error<types::RcError>> {
13861 let url = format!("{}/pluginsctl/listPlugins", self.baseurl,);
13862 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13863 header_map.append(
13864 ::reqwest::header::HeaderName::from_static("api-version"),
13865 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13866 );
13867 #[allow(unused_mut)]
13868 let mut request = self
13869 .client
13870 .post(url)
13871 .header(
13872 ::reqwest::header::ACCEPT,
13873 ::reqwest::header::HeaderValue::from_static("application/json"),
13874 )
13875 .query(&progenitor_client::QueryParam::new("_async", &async_))
13876 .query(&progenitor_client::QueryParam::new("_group", &group))
13877 .headers(header_map)
13878 .build()?;
13879 let info = OperationInfo {
13880 operation_id: "pluginsctl_list_plugins",
13881 };
13882 self.pre(&mut request, &info).await?;
13883 let result = self.exec(request, &info).await;
13884 self.post(&result, &info).await?;
13885 let response = result?;
13886 match response.status().as_u16() {
13887 200u16 => ResponseValue::from_response(response).await,
13888 400u16..=499u16 => Err(Error::ErrorResponse(
13889 ResponseValue::from_response(response).await?,
13890 )),
13891 500u16..=599u16 => Err(Error::ErrorResponse(
13892 ResponseValue::from_response(response).await?,
13893 )),
13894 _ => Err(Error::UnexpectedResponse(response)),
13895 }
13896 }
13897
13898 pub async fn pluginsctl_list_test_plugins<'a>(
13909 &'a self,
13910 async_: Option<bool>,
13911 group: Option<&'a str>,
13912 ) -> Result<ResponseValue<types::PluginsctlListTestPluginsResponse>, Error<types::RcError>>
13913 {
13914 let url = format!("{}/pluginsctl/listTestPlugins", self.baseurl,);
13915 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13916 header_map.append(
13917 ::reqwest::header::HeaderName::from_static("api-version"),
13918 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13919 );
13920 #[allow(unused_mut)]
13921 let mut request = self
13922 .client
13923 .post(url)
13924 .header(
13925 ::reqwest::header::ACCEPT,
13926 ::reqwest::header::HeaderValue::from_static("application/json"),
13927 )
13928 .query(&progenitor_client::QueryParam::new("_async", &async_))
13929 .query(&progenitor_client::QueryParam::new("_group", &group))
13930 .headers(header_map)
13931 .build()?;
13932 let info = OperationInfo {
13933 operation_id: "pluginsctl_list_test_plugins",
13934 };
13935 self.pre(&mut request, &info).await?;
13936 let result = self.exec(request, &info).await;
13937 self.post(&result, &info).await?;
13938 let response = result?;
13939 match response.status().as_u16() {
13940 200u16 => ResponseValue::from_response(response).await,
13941 400u16..=499u16 => Err(Error::ErrorResponse(
13942 ResponseValue::from_response(response).await?,
13943 )),
13944 500u16..=599u16 => Err(Error::ErrorResponse(
13945 ResponseValue::from_response(response).await?,
13946 )),
13947 _ => Err(Error::UnexpectedResponse(response)),
13948 }
13949 }
13950
13951 pub async fn pluginsctl_remove_plugin<'a>(
13963 &'a self,
13964 async_: Option<bool>,
13965 group: Option<&'a str>,
13966 name: &'a str,
13967 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13968 let url = format!("{}/pluginsctl/removePlugin", self.baseurl,);
13969 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13970 header_map.append(
13971 ::reqwest::header::HeaderName::from_static("api-version"),
13972 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13973 );
13974 #[allow(unused_mut)]
13975 let mut request = self
13976 .client
13977 .post(url)
13978 .header(
13979 ::reqwest::header::ACCEPT,
13980 ::reqwest::header::HeaderValue::from_static("application/json"),
13981 )
13982 .query(&progenitor_client::QueryParam::new("_async", &async_))
13983 .query(&progenitor_client::QueryParam::new("_group", &group))
13984 .query(&progenitor_client::QueryParam::new("name", &name))
13985 .headers(header_map)
13986 .build()?;
13987 let info = OperationInfo {
13988 operation_id: "pluginsctl_remove_plugin",
13989 };
13990 self.pre(&mut request, &info).await?;
13991 let result = self.exec(request, &info).await;
13992 self.post(&result, &info).await?;
13993 let response = result?;
13994 match response.status().as_u16() {
13995 200u16 => Ok(ResponseValue::empty(response)),
13996 400u16..=499u16 => Err(Error::ErrorResponse(
13997 ResponseValue::from_response(response).await?,
13998 )),
13999 500u16..=599u16 => Err(Error::ErrorResponse(
14000 ResponseValue::from_response(response).await?,
14001 )),
14002 _ => Err(Error::UnexpectedResponse(response)),
14003 }
14004 }
14005
14006 pub async fn pluginsctl_remove_test_plugin<'a>(
14018 &'a self,
14019 async_: Option<bool>,
14020 group: Option<&'a str>,
14021 name: &'a str,
14022 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
14023 let url = format!("{}/pluginsctl/removeTestPlugin", self.baseurl,);
14024 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
14025 header_map.append(
14026 ::reqwest::header::HeaderName::from_static("api-version"),
14027 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
14028 );
14029 #[allow(unused_mut)]
14030 let mut request = self
14031 .client
14032 .post(url)
14033 .header(
14034 ::reqwest::header::ACCEPT,
14035 ::reqwest::header::HeaderValue::from_static("application/json"),
14036 )
14037 .query(&progenitor_client::QueryParam::new("_async", &async_))
14038 .query(&progenitor_client::QueryParam::new("_group", &group))
14039 .query(&progenitor_client::QueryParam::new("name", &name))
14040 .headers(header_map)
14041 .build()?;
14042 let info = OperationInfo {
14043 operation_id: "pluginsctl_remove_test_plugin",
14044 };
14045 self.pre(&mut request, &info).await?;
14046 let result = self.exec(request, &info).await;
14047 self.post(&result, &info).await?;
14048 let response = result?;
14049 match response.status().as_u16() {
14050 200u16 => Ok(ResponseValue::empty(response)),
14051 400u16..=499u16 => Err(Error::ErrorResponse(
14052 ResponseValue::from_response(response).await?,
14053 )),
14054 500u16..=599u16 => Err(Error::ErrorResponse(
14055 ResponseValue::from_response(response).await?,
14056 )),
14057 _ => Err(Error::UnexpectedResponse(response)),
14058 }
14059 }
14060}
14061
14062pub mod prelude {
14064 #[allow(unused_imports)]
14065 pub use super::Client;
14066}