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)]
1352 pub struct CoreStatsResponse {
1353 pub bytes: f64,
1354 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1356 pub checking: ::std::vec::Vec<CoreStatsChecking>,
1357 pub checks: f64,
1358 #[serde(rename = "deletedDirs")]
1359 pub deleted_dirs: f64,
1360 pub deletes: f64,
1361 #[serde(rename = "elapsedTime")]
1362 pub elapsed_time: f64,
1363 pub errors: f64,
1364 pub eta: ::std::option::Option<f64>,
1365 #[serde(rename = "fatalError")]
1366 pub fatal_error: bool,
1367 #[serde(
1368 rename = "lastError",
1369 default,
1370 skip_serializing_if = "::std::option::Option::is_none"
1371 )]
1372 pub last_error: ::std::option::Option<::std::string::String>,
1373 pub renames: f64,
1374 #[serde(rename = "retryError")]
1375 pub retry_error: bool,
1376 #[serde(rename = "serverSideCopies")]
1377 pub server_side_copies: f64,
1378 #[serde(rename = "serverSideCopyBytes")]
1379 pub server_side_copy_bytes: f64,
1380 #[serde(rename = "serverSideMoveBytes")]
1381 pub server_side_move_bytes: f64,
1382 #[serde(rename = "serverSideMoves")]
1383 pub server_side_moves: f64,
1384 pub speed: f64,
1385 #[serde(rename = "totalBytes")]
1386 pub total_bytes: f64,
1387 #[serde(rename = "totalChecks")]
1388 pub total_checks: f64,
1389 #[serde(rename = "totalTransfers")]
1390 pub total_transfers: f64,
1391 #[serde(rename = "transferTime")]
1392 pub transfer_time: f64,
1393 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1395 pub transferring: ::std::vec::Vec<CoreStatsTransfer>,
1396 pub transfers: f64,
1397 }
1398
1399 impl ::std::convert::From<&CoreStatsResponse> for CoreStatsResponse {
1400 fn from(value: &CoreStatsResponse) -> Self {
1401 value.clone()
1402 }
1403 }
1404
1405 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1451 pub struct CoreStatsTransfer {
1452 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1453 pub bytes: ::std::option::Option<f64>,
1454 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1456 pub eta: ::std::option::Option<f64>,
1457 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1459 pub group: ::std::option::Option<::std::string::String>,
1460 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1462 pub name: ::std::option::Option<::std::string::String>,
1463 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1464 pub percentage: ::std::option::Option<f64>,
1465 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1466 pub size: ::std::option::Option<f64>,
1467 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1468 pub speed: ::std::option::Option<f64>,
1469 }
1470
1471 impl ::std::convert::From<&CoreStatsTransfer> for CoreStatsTransfer {
1472 fn from(value: &CoreStatsTransfer) -> Self {
1473 value.clone()
1474 }
1475 }
1476
1477 impl ::std::default::Default for CoreStatsTransfer {
1478 fn default() -> Self {
1479 Self {
1480 bytes: Default::default(),
1481 eta: Default::default(),
1482 group: Default::default(),
1483 name: Default::default(),
1484 percentage: Default::default(),
1485 size: Default::default(),
1486 speed: Default::default(),
1487 }
1488 }
1489 }
1490
1491 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1567 pub struct CoreTransferredResponse {
1568 pub transferred: ::std::vec::Vec<CoreTransferredResponseTransferredItem>,
1569 }
1570
1571 impl ::std::convert::From<&CoreTransferredResponse> for CoreTransferredResponse {
1572 fn from(value: &CoreTransferredResponse) -> Self {
1573 value.clone()
1574 }
1575 }
1576
1577 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1640 pub struct CoreTransferredResponseTransferredItem {
1641 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1642 pub bytes: ::std::option::Option<i64>,
1643 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1644 pub checked: ::std::option::Option<bool>,
1645 #[serde(
1647 rename = "dstFs",
1648 default,
1649 skip_serializing_if = "::std::option::Option::is_none"
1650 )]
1651 pub dst_fs: ::std::option::Option<::std::string::String>,
1652 #[serde(
1654 rename = "dstRemote",
1655 default,
1656 skip_serializing_if = "::std::option::Option::is_none"
1657 )]
1658 pub dst_remote: ::std::option::Option<::std::string::String>,
1659 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1660 pub error: ::std::option::Option<::std::string::String>,
1661 pub group: ::std::string::String,
1663 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1664 pub jobid: ::std::option::Option<i64>,
1665 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1666 pub name: ::std::option::Option<::std::string::String>,
1667 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1668 pub size: ::std::option::Option<i64>,
1669 #[serde(
1671 rename = "srcFs",
1672 default,
1673 skip_serializing_if = "::std::option::Option::is_none"
1674 )]
1675 pub src_fs: ::std::option::Option<::std::string::String>,
1676 #[serde(
1678 rename = "srcRemote",
1679 default,
1680 skip_serializing_if = "::std::option::Option::is_none"
1681 )]
1682 pub src_remote: ::std::option::Option<::std::string::String>,
1683 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1684 pub timestamp: ::std::option::Option<i64>,
1685 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1686 pub what: ::std::option::Option<::std::string::String>,
1687 }
1688
1689 impl ::std::convert::From<&CoreTransferredResponseTransferredItem>
1690 for CoreTransferredResponseTransferredItem
1691 {
1692 fn from(value: &CoreTransferredResponseTransferredItem) -> Self {
1693 value.clone()
1694 }
1695 }
1696
1697 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1775 pub struct CoreVersionResponse {
1776 pub arch: ::std::string::String,
1778 pub decomposed: ::std::vec::Vec<f64>,
1780 #[serde(rename = "goTags")]
1782 pub go_tags: ::std::string::String,
1783 #[serde(rename = "goVersion")]
1785 pub go_version: ::std::string::String,
1786 #[serde(rename = "isBeta")]
1788 pub is_beta: bool,
1789 #[serde(rename = "isGit")]
1791 pub is_git: bool,
1792 pub linking: ::std::string::String,
1794 pub os: ::std::string::String,
1796 #[serde(
1798 rename = "osArch",
1799 default,
1800 skip_serializing_if = "::std::option::Option::is_none"
1801 )]
1802 pub os_arch: ::std::option::Option<::std::string::String>,
1803 #[serde(
1805 rename = "osKernel",
1806 default,
1807 skip_serializing_if = "::std::option::Option::is_none"
1808 )]
1809 pub os_kernel: ::std::option::Option<::std::string::String>,
1810 #[serde(
1812 rename = "osVersion",
1813 default,
1814 skip_serializing_if = "::std::option::Option::is_none"
1815 )]
1816 pub os_version: ::std::option::Option<::std::string::String>,
1817 pub version: ::std::string::String,
1819 }
1820
1821 impl ::std::convert::From<&CoreVersionResponse> for CoreVersionResponse {
1822 fn from(value: &CoreVersionResponse) -> Self {
1823 value.clone()
1824 }
1825 }
1826
1827 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1846 pub struct DebugSetGcPercentResponse {
1847 #[serde(rename = "existing-gc-percent")]
1848 pub existing_gc_percent: i64,
1849 }
1850
1851 impl ::std::convert::From<&DebugSetGcPercentResponse> for DebugSetGcPercentResponse {
1852 fn from(value: &DebugSetGcPercentResponse) -> Self {
1853 value.clone()
1854 }
1855 }
1856
1857 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1876 pub struct DebugSetMutexProfileFractionResponse {
1877 #[serde(rename = "previousRate")]
1878 pub previous_rate: i64,
1879 }
1880
1881 impl ::std::convert::From<&DebugSetMutexProfileFractionResponse>
1882 for DebugSetMutexProfileFractionResponse
1883 {
1884 fn from(value: &DebugSetMutexProfileFractionResponse) -> Self {
1885 value.clone()
1886 }
1887 }
1888
1889 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1908 pub struct DebugSetSoftMemoryLimitResponse {
1909 #[serde(rename = "existing-mem-limit")]
1910 pub existing_mem_limit: i64,
1911 }
1912
1913 impl ::std::convert::From<&DebugSetSoftMemoryLimitResponse> for DebugSetSoftMemoryLimitResponse {
1914 fn from(value: &DebugSetSoftMemoryLimitResponse) -> Self {
1915 value.clone()
1916 }
1917 }
1918
1919 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1938 pub struct FscacheEntriesResponse {
1939 pub entries: i64,
1940 }
1941
1942 impl ::std::convert::From<&FscacheEntriesResponse> for FscacheEntriesResponse {
1943 fn from(value: &FscacheEntriesResponse) -> Self {
1944 value.clone()
1945 }
1946 }
1947
1948 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1969 pub struct JobBatchInputsItem {
1970 #[serde(rename = "_path")]
1972 pub path: ::std::string::String,
1973 }
1974
1975 impl ::std::convert::From<&JobBatchInputsItem> for JobBatchInputsItem {
1976 fn from(value: &JobBatchInputsItem) -> Self {
1977 value.clone()
1978 }
1979 }
1980
1981 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2001 pub struct JobBatchResponse {
2002 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2003 pub results: ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
2004 }
2005
2006 impl ::std::convert::From<&JobBatchResponse> for JobBatchResponse {
2007 fn from(value: &JobBatchResponse) -> Self {
2008 value.clone()
2009 }
2010 }
2011
2012 impl ::std::default::Default for JobBatchResponse {
2013 fn default() -> Self {
2014 Self {
2015 results: Default::default(),
2016 }
2017 }
2018 }
2019
2020 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2065 pub struct JobListResponse {
2066 #[serde(rename = "executeId")]
2068 pub execute_id: ::std::string::String,
2069 #[serde(rename = "finishedIds")]
2071 pub finished_ids: ::std::vec::Vec<i64>,
2072 pub jobids: ::std::vec::Vec<f64>,
2074 #[serde(rename = "runningIds")]
2076 pub running_ids: ::std::vec::Vec<i64>,
2077 }
2078
2079 impl ::std::convert::From<&JobListResponse> for JobListResponse {
2080 fn from(value: &JobListResponse) -> Self {
2081 value.clone()
2082 }
2083 }
2084
2085 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2144 pub struct JobStatusResponse {
2145 pub duration: f64,
2146 #[serde(rename = "endTime")]
2149 pub end_time: ::std::string::String,
2150 pub error: ::std::string::String,
2152 pub finished: bool,
2154 pub id: f64,
2155 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2157 pub output: ::std::option::Option<::serde_json::Value>,
2158 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2160 pub progress: ::std::option::Option<::serde_json::Value>,
2161 #[serde(rename = "startTime")]
2164 pub start_time: ::std::string::String,
2165 pub success: bool,
2167 }
2168
2169 impl ::std::convert::From<&JobStatusResponse> for JobStatusResponse {
2170 fn from(value: &JobStatusResponse) -> Self {
2171 value.clone()
2172 }
2173 }
2174
2175 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2215 pub struct MountListmountsResponse {
2216 #[serde(rename = "mountPoints")]
2217 pub mount_points: ::std::vec::Vec<MountListmountsResponseMountPointsItem>,
2218 }
2219
2220 impl ::std::convert::From<&MountListmountsResponse> for MountListmountsResponse {
2221 fn from(value: &MountListmountsResponse) -> Self {
2222 value.clone()
2223 }
2224 }
2225
2226 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2255 #[serde(deny_unknown_fields)]
2256 pub struct MountListmountsResponseMountPointsItem {
2257 #[serde(rename = "Fs")]
2258 pub fs: ::std::string::String,
2259 #[serde(rename = "MountPoint")]
2260 pub mount_point: ::std::string::String,
2261 #[serde(rename = "MountedOn")]
2262 pub mounted_on: ::chrono::DateTime<::chrono::offset::Utc>,
2263 }
2264
2265 impl ::std::convert::From<&MountListmountsResponseMountPointsItem>
2266 for MountListmountsResponseMountPointsItem
2267 {
2268 fn from(value: &MountListmountsResponseMountPointsItem) -> Self {
2269 value.clone()
2270 }
2271 }
2272
2273 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2295 pub struct MountTypesResponse {
2296 #[serde(rename = "mountTypes")]
2297 pub mount_types: ::std::vec::Vec<::std::string::String>,
2298 }
2299
2300 impl ::std::convert::From<&MountTypesResponse> for MountTypesResponse {
2301 fn from(value: &MountTypesResponse) -> Self {
2302 value.clone()
2303 }
2304 }
2305
2306 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2342 pub struct OperationsAboutResponse {
2343 pub free: f64,
2344 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2345 pub objects: ::std::option::Option<f64>,
2346 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2347 pub other: ::std::option::Option<f64>,
2348 pub total: f64,
2349 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2350 pub trashed: ::std::option::Option<f64>,
2351 pub used: f64,
2352 }
2353
2354 impl ::std::convert::From<&OperationsAboutResponse> for OperationsAboutResponse {
2355 fn from(value: &OperationsAboutResponse) -> Self {
2356 value.clone()
2357 }
2358 }
2359
2360 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2437 pub struct OperationsCheckResponse {
2438 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2440 pub combined: ::std::vec::Vec<::std::string::String>,
2441 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2443 pub differ: ::std::vec::Vec<::std::string::String>,
2444 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2446 pub error: ::std::vec::Vec<::std::string::String>,
2447 #[serde(
2449 rename = "hashType",
2450 default,
2451 skip_serializing_if = "::std::option::Option::is_none"
2452 )]
2453 pub hash_type: ::std::option::Option<::std::string::String>,
2454 #[serde(
2456 rename = "match",
2457 default,
2458 skip_serializing_if = "::std::vec::Vec::is_empty"
2459 )]
2460 pub match_: ::std::vec::Vec<::std::string::String>,
2461 #[serde(
2463 rename = "missingOnDst",
2464 default,
2465 skip_serializing_if = "::std::vec::Vec::is_empty"
2466 )]
2467 pub missing_on_dst: ::std::vec::Vec<::std::string::String>,
2468 #[serde(
2470 rename = "missingOnSrc",
2471 default,
2472 skip_serializing_if = "::std::vec::Vec::is_empty"
2473 )]
2474 pub missing_on_src: ::std::vec::Vec<::std::string::String>,
2475 pub status: ::std::string::String,
2477 pub success: bool,
2479 }
2480
2481 impl ::std::convert::From<&OperationsCheckResponse> for OperationsCheckResponse {
2482 fn from(value: &OperationsCheckResponse) -> Self {
2483 value.clone()
2484 }
2485 }
2486
2487 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2539 pub struct OperationsFsinfoResponse {
2540 #[serde(rename = "Features")]
2541 pub features: ::std::collections::HashMap<::std::string::String, bool>,
2542 #[serde(rename = "Hashes")]
2543 pub hashes: ::std::vec::Vec<::std::string::String>,
2544 #[serde(
2545 rename = "MetadataInfo",
2546 default,
2547 skip_serializing_if = "::std::option::Option::is_none"
2548 )]
2549 pub metadata_info:
2550 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
2551 #[serde(rename = "Name")]
2552 pub name: ::std::string::String,
2553 #[serde(rename = "Precision")]
2554 pub precision: f64,
2555 #[serde(rename = "Root")]
2556 pub root: ::std::string::String,
2557 #[serde(rename = "String")]
2558 pub string: ::std::string::String,
2559 }
2560
2561 impl ::std::convert::From<&OperationsFsinfoResponse> for OperationsFsinfoResponse {
2562 fn from(value: &OperationsFsinfoResponse) -> Self {
2563 value.clone()
2564 }
2565 }
2566
2567 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2593 pub struct OperationsHashsumResponse {
2594 #[serde(rename = "hashType")]
2595 pub hash_type: ::std::string::String,
2596 pub hashsum: ::std::vec::Vec<::std::string::String>,
2597 }
2598
2599 impl ::std::convert::From<&OperationsHashsumResponse> for OperationsHashsumResponse {
2600 fn from(value: &OperationsHashsumResponse) -> Self {
2601 value.clone()
2602 }
2603 }
2604
2605 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2700 pub struct OperationsListResponse {
2701 pub list: ::std::vec::Vec<OperationsListResponseListItem>,
2704 }
2705
2706 impl ::std::convert::From<&OperationsListResponse> for OperationsListResponse {
2707 fn from(value: &OperationsListResponse) -> Self {
2708 value.clone()
2709 }
2710 }
2711
2712 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2792 pub struct OperationsListResponseListItem {
2793 #[serde(
2795 rename = "Encrypted",
2796 default,
2797 skip_serializing_if = "::std::option::Option::is_none"
2798 )]
2799 pub encrypted: ::std::option::Option<::std::string::String>,
2800 #[serde(
2802 rename = "EncryptedPath",
2803 default,
2804 skip_serializing_if = "::std::option::Option::is_none"
2805 )]
2806 pub encrypted_path: ::std::option::Option<::std::string::String>,
2807 #[serde(
2809 rename = "Hashes",
2810 default,
2811 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
2812 )]
2813 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
2814 #[serde(
2816 rename = "ID",
2817 default,
2818 skip_serializing_if = "::std::option::Option::is_none"
2819 )]
2820 pub id: ::std::option::Option<::std::string::String>,
2821 #[serde(
2823 rename = "IsBucket",
2824 default,
2825 skip_serializing_if = "::std::option::Option::is_none"
2826 )]
2827 pub is_bucket: ::std::option::Option<bool>,
2828 #[serde(rename = "IsDir")]
2830 pub is_dir: bool,
2831 #[serde(
2833 rename = "Metadata",
2834 default,
2835 skip_serializing_if = "::serde_json::Map::is_empty"
2836 )]
2837 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
2838 #[serde(
2840 rename = "MimeType",
2841 default,
2842 skip_serializing_if = "::std::option::Option::is_none"
2843 )]
2844 pub mime_type: ::std::option::Option<::std::string::String>,
2845 #[serde(
2847 rename = "ModTime",
2848 default,
2849 skip_serializing_if = "::std::option::Option::is_none"
2850 )]
2851 pub mod_time: ::std::option::Option<::std::string::String>,
2852 #[serde(rename = "Name")]
2854 pub name: ::std::string::String,
2855 #[serde(
2857 rename = "OrigID",
2858 default,
2859 skip_serializing_if = "::std::option::Option::is_none"
2860 )]
2861 pub orig_id: ::std::option::Option<::std::string::String>,
2862 #[serde(rename = "Path")]
2864 pub path: ::std::string::String,
2865 #[serde(
2866 rename = "Size",
2867 default,
2868 skip_serializing_if = "::std::option::Option::is_none"
2869 )]
2870 pub size: ::std::option::Option<f64>,
2871 #[serde(
2873 rename = "Tier",
2874 default,
2875 skip_serializing_if = "::std::option::Option::is_none"
2876 )]
2877 pub tier: ::std::option::Option<::std::string::String>,
2878 }
2879
2880 impl ::std::convert::From<&OperationsListResponseListItem> for OperationsListResponseListItem {
2881 fn from(value: &OperationsListResponseListItem) -> Self {
2882 value.clone()
2883 }
2884 }
2885
2886 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2906 pub struct OperationsPubliclinkResponse {
2907 pub url: ::std::string::String,
2908 }
2909
2910 impl ::std::convert::From<&OperationsPubliclinkResponse> for OperationsPubliclinkResponse {
2911 fn from(value: &OperationsPubliclinkResponse) -> Self {
2912 value.clone()
2913 }
2914 }
2915
2916 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2943 pub struct OperationsSizeResponse {
2944 pub bytes: f64,
2945 pub count: i64,
2946 pub sizeless: i64,
2947 }
2948
2949 impl ::std::convert::From<&OperationsSizeResponse> for OperationsSizeResponse {
2950 fn from(value: &OperationsSizeResponse) -> Self {
2951 value.clone()
2952 }
2953 }
2954
2955 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3038 pub struct OperationsStatResponse {
3039 #[serde(
3041 rename = "Encrypted",
3042 default,
3043 skip_serializing_if = "::std::option::Option::is_none"
3044 )]
3045 pub encrypted: ::std::option::Option<::std::string::String>,
3046 #[serde(
3048 rename = "EncryptedPath",
3049 default,
3050 skip_serializing_if = "::std::option::Option::is_none"
3051 )]
3052 pub encrypted_path: ::std::option::Option<::std::string::String>,
3053 #[serde(
3055 rename = "Hashes",
3056 default,
3057 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
3058 )]
3059 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
3060 #[serde(
3062 rename = "ID",
3063 default,
3064 skip_serializing_if = "::std::option::Option::is_none"
3065 )]
3066 pub id: ::std::option::Option<::std::string::String>,
3067 #[serde(
3069 rename = "IsBucket",
3070 default,
3071 skip_serializing_if = "::std::option::Option::is_none"
3072 )]
3073 pub is_bucket: ::std::option::Option<bool>,
3074 #[serde(rename = "IsDir")]
3076 pub is_dir: bool,
3077 #[serde(
3079 rename = "Metadata",
3080 default,
3081 skip_serializing_if = "::serde_json::Map::is_empty"
3082 )]
3083 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3084 #[serde(rename = "MimeType")]
3086 pub mime_type: ::std::string::String,
3087 #[serde(rename = "ModTime")]
3089 pub mod_time: ::std::string::String,
3090 #[serde(rename = "Name")]
3092 pub name: ::std::string::String,
3093 #[serde(
3095 rename = "OrigID",
3096 default,
3097 skip_serializing_if = "::std::option::Option::is_none"
3098 )]
3099 pub orig_id: ::std::option::Option<::std::string::String>,
3100 #[serde(rename = "Path")]
3102 pub path: ::std::string::String,
3103 #[serde(rename = "Size")]
3104 pub size: f64,
3105 #[serde(
3107 rename = "Tier",
3108 default,
3109 skip_serializing_if = "::std::option::Option::is_none"
3110 )]
3111 pub tier: ::std::option::Option<::std::string::String>,
3112 }
3113
3114 impl ::std::convert::From<&OperationsStatResponse> for OperationsStatResponse {
3115 fn from(value: &OperationsStatResponse) -> Self {
3116 value.clone()
3117 }
3118 }
3119
3120 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3142 pub struct OptionsBlocksResponse {
3143 pub options: ::std::vec::Vec<::std::string::String>,
3144 }
3145
3146 impl ::std::convert::From<&OptionsBlocksResponse> for OptionsBlocksResponse {
3147 fn from(value: &OptionsBlocksResponse) -> Self {
3148 value.clone()
3149 }
3150 }
3151
3152 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3243 pub struct OptionsGetResponse {
3244 pub dlna: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3245 pub filter: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3246 pub ftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3247 pub http: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3248 pub log: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3249 pub main: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3250 pub mount: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3251 pub nfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3252 pub proxy: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3253 pub rc: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3254 pub restic: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3255 pub s3: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3256 pub sftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3257 pub vfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3258 pub webdav: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3259 }
3260
3261 impl ::std::convert::From<&OptionsGetResponse> for OptionsGetResponse {
3262 fn from(value: &OptionsGetResponse) -> Self {
3263 value.clone()
3264 }
3265 }
3266
3267 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3402 pub struct OptionsInfoOption {
3403 #[serde(rename = "Advanced")]
3404 pub advanced: bool,
3405 #[serde(rename = "Default")]
3407 pub default: OptionsInfoOptionDefault,
3408 #[serde(rename = "DefaultStr")]
3409 pub default_str: ::std::string::String,
3410 #[serde(
3411 rename = "Examples",
3412 default,
3413 skip_serializing_if = "::std::vec::Vec::is_empty"
3414 )]
3415 pub examples: ::std::vec::Vec<OptionsInfoOptionExample>,
3416 #[serde(rename = "Exclusive")]
3417 pub exclusive: bool,
3418 #[serde(rename = "FieldName")]
3419 pub field_name: ::std::string::String,
3420 #[serde(
3421 rename = "Groups",
3422 default,
3423 skip_serializing_if = "::std::option::Option::is_none"
3424 )]
3425 pub groups: ::std::option::Option<::std::string::String>,
3426 #[serde(rename = "Help")]
3427 pub help: ::std::string::String,
3428 #[serde(rename = "Hide")]
3429 pub hide: i64,
3430 #[serde(rename = "IsPassword")]
3431 pub is_password: bool,
3432 #[serde(rename = "Name")]
3433 pub name: ::std::string::String,
3434 #[serde(rename = "NoPrefix")]
3435 pub no_prefix: bool,
3436 #[serde(rename = "Required")]
3437 pub required: bool,
3438 #[serde(rename = "Sensitive")]
3439 pub sensitive: bool,
3440 #[serde(
3441 rename = "ShortOpt",
3442 default,
3443 skip_serializing_if = "::std::option::Option::is_none"
3444 )]
3445 pub short_opt: ::std::option::Option<::std::string::String>,
3446 #[serde(rename = "Type")]
3447 pub type_: ::std::string::String,
3448 #[serde(rename = "Value")]
3449 pub value: ::std::option::Option<OptionsInfoOptionValue>,
3450 #[serde(rename = "ValueStr")]
3451 pub value_str: ::std::string::String,
3452 }
3453
3454 impl ::std::convert::From<&OptionsInfoOption> for OptionsInfoOption {
3455 fn from(value: &OptionsInfoOption) -> Self {
3456 value.clone()
3457 }
3458 }
3459
3460 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3504 #[serde(untagged, deny_unknown_fields)]
3505 pub enum OptionsInfoOptionDefault {
3506 Variant0(::std::vec::Vec<::std::string::String>),
3507 Variant1(bool),
3508 Variant2(f64),
3509 Variant3(::std::string::String),
3510 Variant4 {
3511 #[serde(rename = "Valid")]
3512 valid: bool,
3513 #[serde(rename = "Value")]
3514 value: bool,
3515 },
3516 }
3517
3518 impl ::std::convert::From<&Self> for OptionsInfoOptionDefault {
3519 fn from(value: &OptionsInfoOptionDefault) -> Self {
3520 value.clone()
3521 }
3522 }
3523
3524 impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for OptionsInfoOptionDefault {
3525 fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
3526 Self::Variant0(value)
3527 }
3528 }
3529
3530 impl ::std::convert::From<bool> for OptionsInfoOptionDefault {
3531 fn from(value: bool) -> Self {
3532 Self::Variant1(value)
3533 }
3534 }
3535
3536 impl ::std::convert::From<f64> for OptionsInfoOptionDefault {
3537 fn from(value: f64) -> Self {
3538 Self::Variant2(value)
3539 }
3540 }
3541
3542 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3566 pub struct OptionsInfoOptionExample {
3567 #[serde(rename = "Help")]
3568 pub help: ::std::string::String,
3569 #[serde(rename = "Value")]
3570 pub value: ::std::string::String,
3571 }
3572
3573 impl ::std::convert::From<&OptionsInfoOptionExample> for OptionsInfoOptionExample {
3574 fn from(value: &OptionsInfoOptionExample) -> Self {
3575 value.clone()
3576 }
3577 }
3578
3579 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3597 #[serde(untagged)]
3598 pub enum OptionsInfoOptionValue {
3599 Variant0(bool),
3600 Variant1(f64),
3601 }
3602
3603 impl ::std::convert::From<&Self> for OptionsInfoOptionValue {
3604 fn from(value: &OptionsInfoOptionValue) -> Self {
3605 value.clone()
3606 }
3607 }
3608
3609 impl ::std::str::FromStr for OptionsInfoOptionValue {
3610 type Err = self::error::ConversionError;
3611 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3612 if let Ok(v) = value.parse() {
3613 Ok(Self::Variant0(v))
3614 } else if let Ok(v) = value.parse() {
3615 Ok(Self::Variant1(v))
3616 } else {
3617 Err("string conversion failed for all variants".into())
3618 }
3619 }
3620 }
3621
3622 impl ::std::convert::TryFrom<&str> for OptionsInfoOptionValue {
3623 type Error = self::error::ConversionError;
3624 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3625 value.parse()
3626 }
3627 }
3628
3629 impl ::std::convert::TryFrom<&::std::string::String> for OptionsInfoOptionValue {
3630 type Error = self::error::ConversionError;
3631 fn try_from(
3632 value: &::std::string::String,
3633 ) -> ::std::result::Result<Self, self::error::ConversionError> {
3634 value.parse()
3635 }
3636 }
3637
3638 impl ::std::convert::TryFrom<::std::string::String> for OptionsInfoOptionValue {
3639 type Error = self::error::ConversionError;
3640 fn try_from(
3641 value: ::std::string::String,
3642 ) -> ::std::result::Result<Self, self::error::ConversionError> {
3643 value.parse()
3644 }
3645 }
3646
3647 impl ::std::fmt::Display for OptionsInfoOptionValue {
3648 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3649 match self {
3650 Self::Variant0(x) => x.fmt(f),
3651 Self::Variant1(x) => x.fmt(f),
3652 }
3653 }
3654 }
3655
3656 impl ::std::convert::From<bool> for OptionsInfoOptionValue {
3657 fn from(value: bool) -> Self {
3658 Self::Variant0(value)
3659 }
3660 }
3661
3662 impl ::std::convert::From<f64> for OptionsInfoOptionValue {
3663 fn from(value: f64) -> Self {
3664 Self::Variant1(value)
3665 }
3666 }
3667
3668 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3794 pub struct OptionsInfoResponse {
3795 pub dlna: ::std::vec::Vec<OptionsInfoOption>,
3796 pub filter: ::std::vec::Vec<OptionsInfoOption>,
3797 pub ftp: ::std::vec::Vec<OptionsInfoOption>,
3798 pub http: ::std::vec::Vec<OptionsInfoOption>,
3799 pub log: ::std::vec::Vec<OptionsInfoOption>,
3800 pub main: ::std::vec::Vec<OptionsInfoOption>,
3801 pub mount: ::std::vec::Vec<OptionsInfoOption>,
3802 pub nfs: ::std::vec::Vec<OptionsInfoOption>,
3803 pub proxy: ::std::vec::Vec<OptionsInfoOption>,
3804 pub rc: ::std::vec::Vec<OptionsInfoOption>,
3805 pub restic: ::std::vec::Vec<OptionsInfoOption>,
3806 pub s3: ::std::vec::Vec<OptionsInfoOption>,
3807 pub sftp: ::std::vec::Vec<OptionsInfoOption>,
3808 pub vfs: ::std::vec::Vec<OptionsInfoOption>,
3809 pub webdav: ::std::vec::Vec<OptionsInfoOption>,
3810 #[serde(flatten)]
3811 pub extra:
3812 ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<OptionsInfoOption>>,
3813 }
3814
3815 impl ::std::convert::From<&OptionsInfoResponse> for OptionsInfoResponse {
3816 fn from(value: &OptionsInfoResponse) -> Self {
3817 value.clone()
3818 }
3819 }
3820
3821 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4450 pub struct OptionsLocalResponse {
4451 pub config: OptionsLocalResponseConfig,
4452 pub filter: OptionsLocalResponseFilter,
4453 }
4454
4455 impl ::std::convert::From<&OptionsLocalResponse> for OptionsLocalResponse {
4456 fn from(value: &OptionsLocalResponse) -> Self {
4457 value.clone()
4458 }
4459 }
4460
4461 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4933 pub struct OptionsLocalResponseConfig {
4934 #[serde(rename = "AskPassword")]
4935 pub ask_password: bool,
4936 #[serde(rename = "AutoConfirm")]
4937 pub auto_confirm: bool,
4938 #[serde(rename = "BackupDir")]
4939 pub backup_dir: ::std::string::String,
4940 #[serde(rename = "BindAddr")]
4941 pub bind_addr: ::std::string::String,
4942 #[serde(rename = "BufferSize")]
4943 pub buffer_size: f64,
4944 #[serde(rename = "BwLimit")]
4945 pub bw_limit: ::std::string::String,
4946 #[serde(rename = "BwLimitFile")]
4947 pub bw_limit_file: ::std::string::String,
4948 #[serde(rename = "CaCert")]
4949 pub ca_cert: ::std::vec::Vec<::std::string::String>,
4950 #[serde(rename = "CheckFirst")]
4951 pub check_first: bool,
4952 #[serde(rename = "CheckSum")]
4953 pub check_sum: bool,
4954 #[serde(rename = "Checkers")]
4955 pub checkers: f64,
4956 #[serde(rename = "ClientCert")]
4957 pub client_cert: ::std::string::String,
4958 #[serde(rename = "ClientKey")]
4959 pub client_key: ::std::string::String,
4960 #[serde(rename = "CompareDest")]
4961 pub compare_dest: ::std::vec::Vec<::std::string::String>,
4962 #[serde(rename = "ConnectTimeout")]
4963 pub connect_timeout: f64,
4964 #[serde(rename = "Cookie")]
4965 pub cookie: bool,
4966 #[serde(rename = "CopyDest")]
4967 pub copy_dest: ::std::vec::Vec<::std::string::String>,
4968 #[serde(rename = "CutoffMode")]
4969 pub cutoff_mode: ::std::string::String,
4970 #[serde(rename = "DataRateUnit")]
4971 pub data_rate_unit: ::std::string::String,
4972 #[serde(rename = "DefaultTime")]
4973 pub default_time: ::std::string::String,
4974 #[serde(rename = "DeleteMode")]
4975 pub delete_mode: f64,
4976 #[serde(rename = "DisableFeatures")]
4977 pub disable_features: ::std::option::Option<::std::string::String>,
4978 #[serde(rename = "DisableHTTP2")]
4979 pub disable_http2: bool,
4980 #[serde(rename = "DisableHTTPKeepAlives")]
4981 pub disable_http_keep_alives: bool,
4982 #[serde(rename = "DownloadHeaders")]
4983 pub download_headers: ::std::option::Option<::std::string::String>,
4984 #[serde(rename = "DryRun")]
4985 pub dry_run: bool,
4986 #[serde(rename = "Dump")]
4987 pub dump: ::std::string::String,
4988 #[serde(rename = "ErrorOnNoTransfer")]
4989 pub error_on_no_transfer: bool,
4990 #[serde(rename = "ExpectContinueTimeout")]
4991 pub expect_continue_timeout: f64,
4992 #[serde(rename = "FixCase")]
4993 pub fix_case: bool,
4994 #[serde(rename = "FsCacheExpireDuration")]
4995 pub fs_cache_expire_duration: f64,
4996 #[serde(rename = "FsCacheExpireInterval")]
4997 pub fs_cache_expire_interval: f64,
4998 #[serde(rename = "Headers")]
4999 pub headers: ::std::option::Option<::std::string::String>,
5000 #[serde(rename = "HumanReadable")]
5001 pub human_readable: bool,
5002 #[serde(rename = "IgnoreCaseSync")]
5003 pub ignore_case_sync: bool,
5004 #[serde(rename = "IgnoreChecksum")]
5005 pub ignore_checksum: bool,
5006 #[serde(rename = "IgnoreErrors")]
5007 pub ignore_errors: bool,
5008 #[serde(rename = "IgnoreExisting")]
5009 pub ignore_existing: bool,
5010 #[serde(rename = "IgnoreSize")]
5011 pub ignore_size: bool,
5012 #[serde(rename = "IgnoreTimes")]
5013 pub ignore_times: bool,
5014 #[serde(rename = "Immutable")]
5015 pub immutable: bool,
5016 #[serde(rename = "Inplace")]
5017 pub inplace: bool,
5018 #[serde(rename = "InsecureSkipVerify")]
5019 pub insecure_skip_verify: bool,
5020 #[serde(rename = "Interactive")]
5021 pub interactive: bool,
5022 #[serde(rename = "KvLockTime")]
5023 pub kv_lock_time: f64,
5024 #[serde(rename = "Links")]
5025 pub links: bool,
5026 #[serde(rename = "LogLevel")]
5027 pub log_level: ::std::string::String,
5028 #[serde(rename = "LowLevelRetries")]
5029 pub low_level_retries: f64,
5030 #[serde(rename = "MaxBacklog")]
5031 pub max_backlog: f64,
5032 #[serde(rename = "MaxBufferMemory")]
5033 pub max_buffer_memory: f64,
5034 #[serde(rename = "MaxDelete")]
5035 pub max_delete: f64,
5036 #[serde(rename = "MaxDeleteSize")]
5037 pub max_delete_size: f64,
5038 #[serde(rename = "MaxDepth")]
5039 pub max_depth: f64,
5040 #[serde(rename = "MaxDuration")]
5041 pub max_duration: f64,
5042 #[serde(rename = "MaxStatsGroups")]
5043 pub max_stats_groups: f64,
5044 #[serde(rename = "MaxTransfer")]
5045 pub max_transfer: f64,
5046 #[serde(rename = "Metadata")]
5047 pub metadata: bool,
5048 #[serde(rename = "MetadataMapper")]
5049 pub metadata_mapper: ::std::option::Option<::std::string::String>,
5050 #[serde(rename = "MetadataSet")]
5051 pub metadata_set: ::std::option::Option<::std::string::String>,
5052 #[serde(rename = "ModifyWindow")]
5053 pub modify_window: f64,
5054 #[serde(rename = "MultiThreadChunkSize")]
5055 pub multi_thread_chunk_size: f64,
5056 #[serde(rename = "MultiThreadCutoff")]
5057 pub multi_thread_cutoff: f64,
5058 #[serde(rename = "MultiThreadSet")]
5059 pub multi_thread_set: bool,
5060 #[serde(rename = "MultiThreadStreams")]
5061 pub multi_thread_streams: f64,
5062 #[serde(rename = "MultiThreadWriteBufferSize")]
5063 pub multi_thread_write_buffer_size: f64,
5064 #[serde(rename = "NoCheckDest")]
5065 pub no_check_dest: bool,
5066 #[serde(rename = "NoConsole")]
5067 pub no_console: bool,
5068 #[serde(rename = "NoGzip")]
5069 pub no_gzip: bool,
5070 #[serde(rename = "NoTraverse")]
5071 pub no_traverse: bool,
5072 #[serde(rename = "NoUnicodeNormalization")]
5073 pub no_unicode_normalization: bool,
5074 #[serde(rename = "NoUpdateDirModTime")]
5075 pub no_update_dir_mod_time: bool,
5076 #[serde(rename = "NoUpdateModTime")]
5077 pub no_update_mod_time: bool,
5078 #[serde(rename = "OrderBy")]
5079 pub order_by: ::std::string::String,
5080 #[serde(rename = "PartialSuffix")]
5081 pub partial_suffix: ::std::string::String,
5082 #[serde(rename = "PasswordCommand")]
5083 pub password_command: ::std::option::Option<::std::string::String>,
5084 #[serde(rename = "Progress")]
5085 pub progress: bool,
5086 #[serde(rename = "ProgressTerminalTitle")]
5087 pub progress_terminal_title: bool,
5088 #[serde(rename = "RefreshTimes")]
5089 pub refresh_times: bool,
5090 #[serde(rename = "Retries")]
5091 pub retries: f64,
5092 #[serde(rename = "RetriesInterval")]
5093 pub retries_interval: f64,
5094 #[serde(rename = "ServerSideAcrossConfigs")]
5095 pub server_side_across_configs: bool,
5096 #[serde(rename = "SizeOnly")]
5097 pub size_only: bool,
5098 #[serde(rename = "StatsFileNameLength")]
5099 pub stats_file_name_length: f64,
5100 #[serde(rename = "StatsLogLevel")]
5101 pub stats_log_level: ::std::string::String,
5102 #[serde(rename = "StatsOneLine")]
5103 pub stats_one_line: bool,
5104 #[serde(rename = "StatsOneLineDate")]
5105 pub stats_one_line_date: bool,
5106 #[serde(rename = "StatsOneLineDateFormat")]
5107 pub stats_one_line_date_format: ::std::string::String,
5108 #[serde(rename = "StreamingUploadCutoff")]
5109 pub streaming_upload_cutoff: f64,
5110 #[serde(rename = "Suffix")]
5111 pub suffix: ::std::string::String,
5112 #[serde(rename = "SuffixKeepExtension")]
5113 pub suffix_keep_extension: bool,
5114 #[serde(rename = "TerminalColorMode")]
5115 pub terminal_color_mode: ::std::string::String,
5116 #[serde(rename = "Timeout")]
5117 pub timeout: f64,
5118 #[serde(rename = "TPSLimit")]
5119 pub tps_limit: f64,
5120 #[serde(rename = "TPSLimitBurst")]
5121 pub tps_limit_burst: f64,
5122 #[serde(rename = "TrackRenames")]
5123 pub track_renames: bool,
5124 #[serde(rename = "TrackRenamesStrategy")]
5125 pub track_renames_strategy: ::std::string::String,
5126 #[serde(rename = "TrafficClass")]
5127 pub traffic_class: f64,
5128 #[serde(rename = "Transfers")]
5129 pub transfers: f64,
5130 #[serde(rename = "UpdateOlder")]
5131 pub update_older: bool,
5132 #[serde(rename = "UploadHeaders")]
5133 pub upload_headers: ::std::option::Option<::std::string::String>,
5134 #[serde(rename = "UseJSONLog")]
5135 pub use_json_log: bool,
5136 #[serde(rename = "UseListR")]
5137 pub use_list_r: bool,
5138 #[serde(rename = "UseMmap")]
5139 pub use_mmap: bool,
5140 #[serde(rename = "UseServerModTime")]
5141 pub use_server_mod_time: bool,
5142 #[serde(rename = "UserAgent")]
5143 pub user_agent: ::std::string::String,
5144 }
5145
5146 impl ::std::convert::From<&OptionsLocalResponseConfig> for OptionsLocalResponseConfig {
5147 fn from(value: &OptionsLocalResponseConfig) -> Self {
5148 value.clone()
5149 }
5150 }
5151
5152 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5308 pub struct OptionsLocalResponseFilter {
5309 #[serde(rename = "DeleteExcluded")]
5310 pub delete_excluded: bool,
5311 #[serde(rename = "ExcludeFile")]
5312 pub exclude_file: ::std::vec::Vec<::std::string::String>,
5313 #[serde(rename = "ExcludeFrom")]
5314 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5315 #[serde(rename = "ExcludeRule")]
5316 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5317 #[serde(rename = "FilesFrom")]
5318 pub files_from: ::std::vec::Vec<::std::string::String>,
5319 #[serde(rename = "FilesFromRaw")]
5320 pub files_from_raw: ::std::vec::Vec<::std::string::String>,
5321 #[serde(rename = "FilterFrom")]
5322 pub filter_from: ::std::vec::Vec<::std::string::String>,
5323 #[serde(rename = "FilterRule")]
5324 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5325 #[serde(rename = "HashFilter")]
5326 pub hash_filter: ::std::string::String,
5327 #[serde(rename = "IgnoreCase")]
5328 pub ignore_case: bool,
5329 #[serde(rename = "IncludeFrom")]
5330 pub include_from: ::std::vec::Vec<::std::string::String>,
5331 #[serde(rename = "IncludeRule")]
5332 pub include_rule: ::std::vec::Vec<::std::string::String>,
5333 #[serde(rename = "MaxAge")]
5334 pub max_age: f64,
5335 #[serde(rename = "MaxSize")]
5336 pub max_size: f64,
5337 #[serde(rename = "MetaRules")]
5338 pub meta_rules: OptionsLocalResponseFilterMetaRules,
5339 #[serde(rename = "MinAge")]
5340 pub min_age: f64,
5341 #[serde(rename = "MinSize")]
5342 pub min_size: f64,
5343 }
5344
5345 impl ::std::convert::From<&OptionsLocalResponseFilter> for OptionsLocalResponseFilter {
5346 fn from(value: &OptionsLocalResponseFilter) -> Self {
5347 value.clone()
5348 }
5349 }
5350
5351 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5408 pub struct OptionsLocalResponseFilterMetaRules {
5409 #[serde(rename = "ExcludeFrom")]
5410 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5411 #[serde(rename = "ExcludeRule")]
5412 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5413 #[serde(rename = "FilterFrom")]
5414 pub filter_from: ::std::vec::Vec<::std::string::String>,
5415 #[serde(rename = "FilterRule")]
5416 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5417 #[serde(rename = "IncludeFrom")]
5418 pub include_from: ::std::vec::Vec<::std::string::String>,
5419 #[serde(rename = "IncludeRule")]
5420 pub include_rule: ::std::vec::Vec<::std::string::String>,
5421 }
5422
5423 impl ::std::convert::From<&OptionsLocalResponseFilterMetaRules>
5424 for OptionsLocalResponseFilterMetaRules
5425 {
5426 fn from(value: &OptionsLocalResponseFilterMetaRules) -> Self {
5427 value.clone()
5428 }
5429 }
5430
5431 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5463 #[serde(untagged)]
5464 pub enum OptionsSetDlnaValue {
5465 Variant0(::std::string::String),
5466 Variant1(f64),
5467 Variant2(i64),
5468 Variant3(bool),
5469 Variant4(::std::vec::Vec<::serde_json::Value>),
5470 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5471 }
5472
5473 impl ::std::convert::From<&Self> for OptionsSetDlnaValue {
5474 fn from(value: &OptionsSetDlnaValue) -> Self {
5475 value.clone()
5476 }
5477 }
5478
5479 impl ::std::convert::From<f64> for OptionsSetDlnaValue {
5480 fn from(value: f64) -> Self {
5481 Self::Variant1(value)
5482 }
5483 }
5484
5485 impl ::std::convert::From<i64> for OptionsSetDlnaValue {
5486 fn from(value: i64) -> Self {
5487 Self::Variant2(value)
5488 }
5489 }
5490
5491 impl ::std::convert::From<bool> for OptionsSetDlnaValue {
5492 fn from(value: bool) -> Self {
5493 Self::Variant3(value)
5494 }
5495 }
5496
5497 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetDlnaValue {
5498 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5499 Self::Variant4(value)
5500 }
5501 }
5502
5503 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5504 for OptionsSetDlnaValue
5505 {
5506 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5507 Self::Variant5(value)
5508 }
5509 }
5510
5511 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5543 #[serde(untagged)]
5544 pub enum OptionsSetFilterValue {
5545 Variant0(::std::string::String),
5546 Variant1(f64),
5547 Variant2(i64),
5548 Variant3(bool),
5549 Variant4(::std::vec::Vec<::serde_json::Value>),
5550 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5551 }
5552
5553 impl ::std::convert::From<&Self> for OptionsSetFilterValue {
5554 fn from(value: &OptionsSetFilterValue) -> Self {
5555 value.clone()
5556 }
5557 }
5558
5559 impl ::std::convert::From<f64> for OptionsSetFilterValue {
5560 fn from(value: f64) -> Self {
5561 Self::Variant1(value)
5562 }
5563 }
5564
5565 impl ::std::convert::From<i64> for OptionsSetFilterValue {
5566 fn from(value: i64) -> Self {
5567 Self::Variant2(value)
5568 }
5569 }
5570
5571 impl ::std::convert::From<bool> for OptionsSetFilterValue {
5572 fn from(value: bool) -> Self {
5573 Self::Variant3(value)
5574 }
5575 }
5576
5577 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFilterValue {
5578 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5579 Self::Variant4(value)
5580 }
5581 }
5582
5583 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5584 for OptionsSetFilterValue
5585 {
5586 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5587 Self::Variant5(value)
5588 }
5589 }
5590
5591 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5623 #[serde(untagged)]
5624 pub enum OptionsSetFtpValue {
5625 Variant0(::std::string::String),
5626 Variant1(f64),
5627 Variant2(i64),
5628 Variant3(bool),
5629 Variant4(::std::vec::Vec<::serde_json::Value>),
5630 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5631 }
5632
5633 impl ::std::convert::From<&Self> for OptionsSetFtpValue {
5634 fn from(value: &OptionsSetFtpValue) -> Self {
5635 value.clone()
5636 }
5637 }
5638
5639 impl ::std::convert::From<f64> for OptionsSetFtpValue {
5640 fn from(value: f64) -> Self {
5641 Self::Variant1(value)
5642 }
5643 }
5644
5645 impl ::std::convert::From<i64> for OptionsSetFtpValue {
5646 fn from(value: i64) -> Self {
5647 Self::Variant2(value)
5648 }
5649 }
5650
5651 impl ::std::convert::From<bool> for OptionsSetFtpValue {
5652 fn from(value: bool) -> Self {
5653 Self::Variant3(value)
5654 }
5655 }
5656
5657 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFtpValue {
5658 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5659 Self::Variant4(value)
5660 }
5661 }
5662
5663 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5664 for OptionsSetFtpValue
5665 {
5666 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5667 Self::Variant5(value)
5668 }
5669 }
5670
5671 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5703 #[serde(untagged)]
5704 pub enum OptionsSetHttpValue {
5705 Variant0(::std::string::String),
5706 Variant1(f64),
5707 Variant2(i64),
5708 Variant3(bool),
5709 Variant4(::std::vec::Vec<::serde_json::Value>),
5710 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5711 }
5712
5713 impl ::std::convert::From<&Self> for OptionsSetHttpValue {
5714 fn from(value: &OptionsSetHttpValue) -> Self {
5715 value.clone()
5716 }
5717 }
5718
5719 impl ::std::convert::From<f64> for OptionsSetHttpValue {
5720 fn from(value: f64) -> Self {
5721 Self::Variant1(value)
5722 }
5723 }
5724
5725 impl ::std::convert::From<i64> for OptionsSetHttpValue {
5726 fn from(value: i64) -> Self {
5727 Self::Variant2(value)
5728 }
5729 }
5730
5731 impl ::std::convert::From<bool> for OptionsSetHttpValue {
5732 fn from(value: bool) -> Self {
5733 Self::Variant3(value)
5734 }
5735 }
5736
5737 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetHttpValue {
5738 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5739 Self::Variant4(value)
5740 }
5741 }
5742
5743 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5744 for OptionsSetHttpValue
5745 {
5746 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5747 Self::Variant5(value)
5748 }
5749 }
5750
5751 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5783 #[serde(untagged)]
5784 pub enum OptionsSetLogValue {
5785 Variant0(::std::string::String),
5786 Variant1(f64),
5787 Variant2(i64),
5788 Variant3(bool),
5789 Variant4(::std::vec::Vec<::serde_json::Value>),
5790 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5791 }
5792
5793 impl ::std::convert::From<&Self> for OptionsSetLogValue {
5794 fn from(value: &OptionsSetLogValue) -> Self {
5795 value.clone()
5796 }
5797 }
5798
5799 impl ::std::convert::From<f64> for OptionsSetLogValue {
5800 fn from(value: f64) -> Self {
5801 Self::Variant1(value)
5802 }
5803 }
5804
5805 impl ::std::convert::From<i64> for OptionsSetLogValue {
5806 fn from(value: i64) -> Self {
5807 Self::Variant2(value)
5808 }
5809 }
5810
5811 impl ::std::convert::From<bool> for OptionsSetLogValue {
5812 fn from(value: bool) -> Self {
5813 Self::Variant3(value)
5814 }
5815 }
5816
5817 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetLogValue {
5818 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5819 Self::Variant4(value)
5820 }
5821 }
5822
5823 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5824 for OptionsSetLogValue
5825 {
5826 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5827 Self::Variant5(value)
5828 }
5829 }
5830
5831 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5863 #[serde(untagged)]
5864 pub enum OptionsSetMainValue {
5865 Variant0(::std::string::String),
5866 Variant1(f64),
5867 Variant2(i64),
5868 Variant3(bool),
5869 Variant4(::std::vec::Vec<::serde_json::Value>),
5870 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5871 }
5872
5873 impl ::std::convert::From<&Self> for OptionsSetMainValue {
5874 fn from(value: &OptionsSetMainValue) -> Self {
5875 value.clone()
5876 }
5877 }
5878
5879 impl ::std::convert::From<f64> for OptionsSetMainValue {
5880 fn from(value: f64) -> Self {
5881 Self::Variant1(value)
5882 }
5883 }
5884
5885 impl ::std::convert::From<i64> for OptionsSetMainValue {
5886 fn from(value: i64) -> Self {
5887 Self::Variant2(value)
5888 }
5889 }
5890
5891 impl ::std::convert::From<bool> for OptionsSetMainValue {
5892 fn from(value: bool) -> Self {
5893 Self::Variant3(value)
5894 }
5895 }
5896
5897 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMainValue {
5898 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5899 Self::Variant4(value)
5900 }
5901 }
5902
5903 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5904 for OptionsSetMainValue
5905 {
5906 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5907 Self::Variant5(value)
5908 }
5909 }
5910
5911 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5943 #[serde(untagged)]
5944 pub enum OptionsSetMountValue {
5945 Variant0(::std::string::String),
5946 Variant1(f64),
5947 Variant2(i64),
5948 Variant3(bool),
5949 Variant4(::std::vec::Vec<::serde_json::Value>),
5950 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5951 }
5952
5953 impl ::std::convert::From<&Self> for OptionsSetMountValue {
5954 fn from(value: &OptionsSetMountValue) -> Self {
5955 value.clone()
5956 }
5957 }
5958
5959 impl ::std::convert::From<f64> for OptionsSetMountValue {
5960 fn from(value: f64) -> Self {
5961 Self::Variant1(value)
5962 }
5963 }
5964
5965 impl ::std::convert::From<i64> for OptionsSetMountValue {
5966 fn from(value: i64) -> Self {
5967 Self::Variant2(value)
5968 }
5969 }
5970
5971 impl ::std::convert::From<bool> for OptionsSetMountValue {
5972 fn from(value: bool) -> Self {
5973 Self::Variant3(value)
5974 }
5975 }
5976
5977 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMountValue {
5978 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5979 Self::Variant4(value)
5980 }
5981 }
5982
5983 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5984 for OptionsSetMountValue
5985 {
5986 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5987 Self::Variant5(value)
5988 }
5989 }
5990
5991 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6023 #[serde(untagged)]
6024 pub enum OptionsSetNfsValue {
6025 Variant0(::std::string::String),
6026 Variant1(f64),
6027 Variant2(i64),
6028 Variant3(bool),
6029 Variant4(::std::vec::Vec<::serde_json::Value>),
6030 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6031 }
6032
6033 impl ::std::convert::From<&Self> for OptionsSetNfsValue {
6034 fn from(value: &OptionsSetNfsValue) -> Self {
6035 value.clone()
6036 }
6037 }
6038
6039 impl ::std::convert::From<f64> for OptionsSetNfsValue {
6040 fn from(value: f64) -> Self {
6041 Self::Variant1(value)
6042 }
6043 }
6044
6045 impl ::std::convert::From<i64> for OptionsSetNfsValue {
6046 fn from(value: i64) -> Self {
6047 Self::Variant2(value)
6048 }
6049 }
6050
6051 impl ::std::convert::From<bool> for OptionsSetNfsValue {
6052 fn from(value: bool) -> Self {
6053 Self::Variant3(value)
6054 }
6055 }
6056
6057 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetNfsValue {
6058 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6059 Self::Variant4(value)
6060 }
6061 }
6062
6063 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6064 for OptionsSetNfsValue
6065 {
6066 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6067 Self::Variant5(value)
6068 }
6069 }
6070
6071 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6103 #[serde(untagged)]
6104 pub enum OptionsSetProxyValue {
6105 Variant0(::std::string::String),
6106 Variant1(f64),
6107 Variant2(i64),
6108 Variant3(bool),
6109 Variant4(::std::vec::Vec<::serde_json::Value>),
6110 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6111 }
6112
6113 impl ::std::convert::From<&Self> for OptionsSetProxyValue {
6114 fn from(value: &OptionsSetProxyValue) -> Self {
6115 value.clone()
6116 }
6117 }
6118
6119 impl ::std::convert::From<f64> for OptionsSetProxyValue {
6120 fn from(value: f64) -> Self {
6121 Self::Variant1(value)
6122 }
6123 }
6124
6125 impl ::std::convert::From<i64> for OptionsSetProxyValue {
6126 fn from(value: i64) -> Self {
6127 Self::Variant2(value)
6128 }
6129 }
6130
6131 impl ::std::convert::From<bool> for OptionsSetProxyValue {
6132 fn from(value: bool) -> Self {
6133 Self::Variant3(value)
6134 }
6135 }
6136
6137 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetProxyValue {
6138 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6139 Self::Variant4(value)
6140 }
6141 }
6142
6143 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6144 for OptionsSetProxyValue
6145 {
6146 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6147 Self::Variant5(value)
6148 }
6149 }
6150
6151 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6183 #[serde(untagged)]
6184 pub enum OptionsSetRcValue {
6185 Variant0(::std::string::String),
6186 Variant1(f64),
6187 Variant2(i64),
6188 Variant3(bool),
6189 Variant4(::std::vec::Vec<::serde_json::Value>),
6190 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6191 }
6192
6193 impl ::std::convert::From<&Self> for OptionsSetRcValue {
6194 fn from(value: &OptionsSetRcValue) -> Self {
6195 value.clone()
6196 }
6197 }
6198
6199 impl ::std::convert::From<f64> for OptionsSetRcValue {
6200 fn from(value: f64) -> Self {
6201 Self::Variant1(value)
6202 }
6203 }
6204
6205 impl ::std::convert::From<i64> for OptionsSetRcValue {
6206 fn from(value: i64) -> Self {
6207 Self::Variant2(value)
6208 }
6209 }
6210
6211 impl ::std::convert::From<bool> for OptionsSetRcValue {
6212 fn from(value: bool) -> Self {
6213 Self::Variant3(value)
6214 }
6215 }
6216
6217 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetRcValue {
6218 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6219 Self::Variant4(value)
6220 }
6221 }
6222
6223 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6224 for OptionsSetRcValue
6225 {
6226 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6227 Self::Variant5(value)
6228 }
6229 }
6230
6231 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6263 #[serde(untagged)]
6264 pub enum OptionsSetResticValue {
6265 Variant0(::std::string::String),
6266 Variant1(f64),
6267 Variant2(i64),
6268 Variant3(bool),
6269 Variant4(::std::vec::Vec<::serde_json::Value>),
6270 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6271 }
6272
6273 impl ::std::convert::From<&Self> for OptionsSetResticValue {
6274 fn from(value: &OptionsSetResticValue) -> Self {
6275 value.clone()
6276 }
6277 }
6278
6279 impl ::std::convert::From<f64> for OptionsSetResticValue {
6280 fn from(value: f64) -> Self {
6281 Self::Variant1(value)
6282 }
6283 }
6284
6285 impl ::std::convert::From<i64> for OptionsSetResticValue {
6286 fn from(value: i64) -> Self {
6287 Self::Variant2(value)
6288 }
6289 }
6290
6291 impl ::std::convert::From<bool> for OptionsSetResticValue {
6292 fn from(value: bool) -> Self {
6293 Self::Variant3(value)
6294 }
6295 }
6296
6297 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetResticValue {
6298 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6299 Self::Variant4(value)
6300 }
6301 }
6302
6303 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6304 for OptionsSetResticValue
6305 {
6306 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6307 Self::Variant5(value)
6308 }
6309 }
6310
6311 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6343 #[serde(untagged)]
6344 pub enum OptionsSetS3Value {
6345 Variant0(::std::string::String),
6346 Variant1(f64),
6347 Variant2(i64),
6348 Variant3(bool),
6349 Variant4(::std::vec::Vec<::serde_json::Value>),
6350 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6351 }
6352
6353 impl ::std::convert::From<&Self> for OptionsSetS3Value {
6354 fn from(value: &OptionsSetS3Value) -> Self {
6355 value.clone()
6356 }
6357 }
6358
6359 impl ::std::convert::From<f64> for OptionsSetS3Value {
6360 fn from(value: f64) -> Self {
6361 Self::Variant1(value)
6362 }
6363 }
6364
6365 impl ::std::convert::From<i64> for OptionsSetS3Value {
6366 fn from(value: i64) -> Self {
6367 Self::Variant2(value)
6368 }
6369 }
6370
6371 impl ::std::convert::From<bool> for OptionsSetS3Value {
6372 fn from(value: bool) -> Self {
6373 Self::Variant3(value)
6374 }
6375 }
6376
6377 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetS3Value {
6378 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6379 Self::Variant4(value)
6380 }
6381 }
6382
6383 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6384 for OptionsSetS3Value
6385 {
6386 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6387 Self::Variant5(value)
6388 }
6389 }
6390
6391 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6423 #[serde(untagged)]
6424 pub enum OptionsSetSftpValue {
6425 Variant0(::std::string::String),
6426 Variant1(f64),
6427 Variant2(i64),
6428 Variant3(bool),
6429 Variant4(::std::vec::Vec<::serde_json::Value>),
6430 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6431 }
6432
6433 impl ::std::convert::From<&Self> for OptionsSetSftpValue {
6434 fn from(value: &OptionsSetSftpValue) -> Self {
6435 value.clone()
6436 }
6437 }
6438
6439 impl ::std::convert::From<f64> for OptionsSetSftpValue {
6440 fn from(value: f64) -> Self {
6441 Self::Variant1(value)
6442 }
6443 }
6444
6445 impl ::std::convert::From<i64> for OptionsSetSftpValue {
6446 fn from(value: i64) -> Self {
6447 Self::Variant2(value)
6448 }
6449 }
6450
6451 impl ::std::convert::From<bool> for OptionsSetSftpValue {
6452 fn from(value: bool) -> Self {
6453 Self::Variant3(value)
6454 }
6455 }
6456
6457 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetSftpValue {
6458 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6459 Self::Variant4(value)
6460 }
6461 }
6462
6463 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6464 for OptionsSetSftpValue
6465 {
6466 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6467 Self::Variant5(value)
6468 }
6469 }
6470
6471 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6503 #[serde(untagged)]
6504 pub enum OptionsSetVfsValue {
6505 Variant0(::std::string::String),
6506 Variant1(f64),
6507 Variant2(i64),
6508 Variant3(bool),
6509 Variant4(::std::vec::Vec<::serde_json::Value>),
6510 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6511 }
6512
6513 impl ::std::convert::From<&Self> for OptionsSetVfsValue {
6514 fn from(value: &OptionsSetVfsValue) -> Self {
6515 value.clone()
6516 }
6517 }
6518
6519 impl ::std::convert::From<f64> for OptionsSetVfsValue {
6520 fn from(value: f64) -> Self {
6521 Self::Variant1(value)
6522 }
6523 }
6524
6525 impl ::std::convert::From<i64> for OptionsSetVfsValue {
6526 fn from(value: i64) -> Self {
6527 Self::Variant2(value)
6528 }
6529 }
6530
6531 impl ::std::convert::From<bool> for OptionsSetVfsValue {
6532 fn from(value: bool) -> Self {
6533 Self::Variant3(value)
6534 }
6535 }
6536
6537 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetVfsValue {
6538 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6539 Self::Variant4(value)
6540 }
6541 }
6542
6543 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6544 for OptionsSetVfsValue
6545 {
6546 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6547 Self::Variant5(value)
6548 }
6549 }
6550
6551 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6583 #[serde(untagged)]
6584 pub enum OptionsSetWebdavValue {
6585 Variant0(::std::string::String),
6586 Variant1(f64),
6587 Variant2(i64),
6588 Variant3(bool),
6589 Variant4(::std::vec::Vec<::serde_json::Value>),
6590 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6591 }
6592
6593 impl ::std::convert::From<&Self> for OptionsSetWebdavValue {
6594 fn from(value: &OptionsSetWebdavValue) -> Self {
6595 value.clone()
6596 }
6597 }
6598
6599 impl ::std::convert::From<f64> for OptionsSetWebdavValue {
6600 fn from(value: f64) -> Self {
6601 Self::Variant1(value)
6602 }
6603 }
6604
6605 impl ::std::convert::From<i64> for OptionsSetWebdavValue {
6606 fn from(value: i64) -> Self {
6607 Self::Variant2(value)
6608 }
6609 }
6610
6611 impl ::std::convert::From<bool> for OptionsSetWebdavValue {
6612 fn from(value: bool) -> Self {
6613 Self::Variant3(value)
6614 }
6615 }
6616
6617 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetWebdavValue {
6618 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6619 Self::Variant4(value)
6620 }
6621 }
6622
6623 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6624 for OptionsSetWebdavValue
6625 {
6626 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6627 Self::Variant5(value)
6628 }
6629 }
6630
6631 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6664 pub struct PluginsctlGetPluginsForTypeResponse {
6665 #[serde(rename = "loadedPlugins")]
6667 pub loaded_plugins: ::std::collections::HashMap<
6668 ::std::string::String,
6669 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
6670 >,
6671 #[serde(rename = "loadedTestPlugins")]
6673 pub loaded_test_plugins: ::std::collections::HashMap<
6674 ::std::string::String,
6675 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
6676 >,
6677 }
6678
6679 impl ::std::convert::From<&PluginsctlGetPluginsForTypeResponse>
6680 for PluginsctlGetPluginsForTypeResponse
6681 {
6682 fn from(value: &PluginsctlGetPluginsForTypeResponse) -> Self {
6683 value.clone()
6684 }
6685 }
6686
6687 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6720 pub struct PluginsctlListPluginsResponse {
6721 #[serde(rename = "loadedPlugins")]
6723 pub loaded_plugins:
6724 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
6725 #[serde(rename = "testPlugins")]
6727 pub test_plugins:
6728 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
6729 }
6730
6731 impl ::std::convert::From<&PluginsctlListPluginsResponse> for PluginsctlListPluginsResponse {
6732 fn from(value: &PluginsctlListPluginsResponse) -> Self {
6733 value.clone()
6734 }
6735 }
6736
6737 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6762 pub struct PluginsctlListTestPluginsResponse {
6763 #[serde(rename = "loadedTestPlugins")]
6765 pub loaded_test_plugins: ::std::collections::HashMap<
6766 ::std::string::String,
6767 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
6768 >,
6769 }
6770
6771 impl ::std::convert::From<&PluginsctlListTestPluginsResponse>
6772 for PluginsctlListTestPluginsResponse
6773 {
6774 fn from(value: &PluginsctlListTestPluginsResponse) -> Self {
6775 value.clone()
6776 }
6777 }
6778
6779 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6815 pub struct RcError {
6816 pub error: ::std::string::String,
6817 pub input:
6819 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
6820 pub path: ::std::string::String,
6821 pub status: i64,
6822 }
6823
6824 impl ::std::convert::From<&RcError> for RcError {
6825 fn from(value: &RcError) -> Self {
6826 value.clone()
6827 }
6828 }
6829
6830 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6873 pub struct RcListResponse {
6874 pub commands: ::std::vec::Vec<RcListResponseCommandsItem>,
6875 }
6876
6877 impl ::std::convert::From<&RcListResponse> for RcListResponse {
6878 fn from(value: &RcListResponse) -> Self {
6879 value.clone()
6880 }
6881 }
6882
6883 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6915 pub struct RcListResponseCommandsItem {
6916 #[serde(
6917 rename = "AuthRequired",
6918 default,
6919 skip_serializing_if = "::std::option::Option::is_none"
6920 )]
6921 pub auth_required: ::std::option::Option<bool>,
6922 #[serde(
6923 rename = "Help",
6924 default,
6925 skip_serializing_if = "::std::option::Option::is_none"
6926 )]
6927 pub help: ::std::option::Option<::std::string::String>,
6928 #[serde(
6929 rename = "NeedsRequest",
6930 default,
6931 skip_serializing_if = "::std::option::Option::is_none"
6932 )]
6933 pub needs_request: ::std::option::Option<bool>,
6934 #[serde(
6935 rename = "NeedsResponse",
6936 default,
6937 skip_serializing_if = "::std::option::Option::is_none"
6938 )]
6939 pub needs_response: ::std::option::Option<bool>,
6940 #[serde(
6941 rename = "Path",
6942 default,
6943 skip_serializing_if = "::std::option::Option::is_none"
6944 )]
6945 pub path: ::std::option::Option<::std::string::String>,
6946 #[serde(
6947 rename = "Title",
6948 default,
6949 skip_serializing_if = "::std::option::Option::is_none"
6950 )]
6951 pub title: ::std::option::Option<::std::string::String>,
6952 }
6953
6954 impl ::std::convert::From<&RcListResponseCommandsItem> for RcListResponseCommandsItem {
6955 fn from(value: &RcListResponseCommandsItem) -> Self {
6956 value.clone()
6957 }
6958 }
6959
6960 impl ::std::default::Default for RcListResponseCommandsItem {
6961 fn default() -> Self {
6962 Self {
6963 auth_required: Default::default(),
6964 help: Default::default(),
6965 needs_request: Default::default(),
6966 needs_response: Default::default(),
6967 path: Default::default(),
6968 title: Default::default(),
6969 }
6970 }
6971 }
6972
6973 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7038 pub struct ServeListResponse {
7039 pub list: ::std::vec::Vec<ServeListResponseListItem>,
7040 }
7041
7042 impl ::std::convert::From<&ServeListResponse> for ServeListResponse {
7043 fn from(value: &ServeListResponse) -> Self {
7044 value.clone()
7045 }
7046 }
7047
7048 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7101 #[serde(deny_unknown_fields)]
7102 pub struct ServeListResponseListItem {
7103 pub addr: ::std::string::String,
7105 pub id: ::std::string::String,
7107 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7108 pub params: ::std::option::Option<ServeListResponseListItemParams>,
7109 }
7110
7111 impl ::std::convert::From<&ServeListResponseListItem> for ServeListResponseListItem {
7112 fn from(value: &ServeListResponseListItem) -> Self {
7113 value.clone()
7114 }
7115 }
7116
7117 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7151 pub struct ServeListResponseListItemParams {
7152 pub fs: ::std::string::String,
7153 pub id: ::serde_json::Value,
7154 #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")]
7155 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7156 #[serde(rename = "type")]
7157 pub type_: ::std::string::String,
7158 #[serde(
7159 rename = "vfsOpt",
7160 default,
7161 skip_serializing_if = "::serde_json::Map::is_empty"
7162 )]
7163 pub vfs_opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7164 }
7165
7166 impl ::std::convert::From<&ServeListResponseListItemParams> for ServeListResponseListItemParams {
7167 fn from(value: &ServeListResponseListItemParams) -> Self {
7168 value.clone()
7169 }
7170 }
7171
7172 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7197 pub struct ServeStartResponse {
7198 pub addr: ::std::string::String,
7200 pub id: ::std::string::String,
7202 }
7203
7204 impl ::std::convert::From<&ServeStartResponse> for ServeStartResponse {
7205 fn from(value: &ServeStartResponse) -> Self {
7206 value.clone()
7207 }
7208 }
7209
7210 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7233 pub struct VfsForgetResponse {
7234 pub forgotten: ::std::vec::Vec<::std::string::String>,
7236 }
7237
7238 impl ::std::convert::From<&VfsForgetResponse> for VfsForgetResponse {
7239 fn from(value: &VfsForgetResponse) -> Self {
7240 value.clone()
7241 }
7242 }
7243
7244 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7268 pub struct VfsListResponse {
7269 pub vfses: ::std::vec::Vec<::std::string::String>,
7271 }
7272
7273 impl ::std::convert::From<&VfsListResponse> for VfsListResponse {
7274 fn from(value: &VfsListResponse) -> Self {
7275 value.clone()
7276 }
7277 }
7278
7279 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7301 pub struct VfsQueueResponse {
7302 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7303 pub queued: ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7304 }
7305
7306 impl ::std::convert::From<&VfsQueueResponse> for VfsQueueResponse {
7307 fn from(value: &VfsQueueResponse) -> Self {
7308 value.clone()
7309 }
7310 }
7311
7312 impl ::std::default::Default for VfsQueueResponse {
7313 fn default() -> Self {
7314 Self {
7315 queued: Default::default(),
7316 }
7317 }
7318 }
7319
7320 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7343 pub struct VfsRefreshResponse {
7344 pub result: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
7346 }
7347
7348 impl ::std::convert::From<&VfsRefreshResponse> for VfsRefreshResponse {
7349 fn from(value: &VfsRefreshResponse) -> Self {
7350 value.clone()
7351 }
7352 }
7353
7354 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7401 pub struct VfsStatsResponse {
7402 #[serde(
7404 rename = "diskCache",
7405 default,
7406 skip_serializing_if = "::std::option::Option::is_none"
7407 )]
7408 pub disk_cache:
7409 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7410 pub fs: ::std::string::String,
7412 #[serde(rename = "inUse")]
7414 pub in_use: i64,
7415 #[serde(rename = "metadataCache")]
7417 pub metadata_cache: ::std::collections::HashMap<::std::string::String, i64>,
7418 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7420 }
7421
7422 impl ::std::convert::From<&VfsStatsResponse> for VfsStatsResponse {
7423 fn from(value: &VfsStatsResponse) -> Self {
7424 value.clone()
7425 }
7426 }
7427}
7428
7429#[derive(Clone, Debug)]
7430pub struct Client {
7436 pub(crate) baseurl: String,
7437 pub(crate) client: reqwest::Client,
7438}
7439
7440impl Client {
7441 pub fn new(baseurl: &str) -> Self {
7447 #[cfg(not(target_arch = "wasm32"))]
7448 let client = {
7449 let dur = ::std::time::Duration::from_secs(15u64);
7450 reqwest::ClientBuilder::new()
7451 .connect_timeout(dur)
7452 .timeout(dur)
7453 };
7454 #[cfg(target_arch = "wasm32")]
7455 let client = reqwest::ClientBuilder::new();
7456 Self::new_with_client(baseurl, client.build().unwrap())
7457 }
7458
7459 pub fn new_with_client(baseurl: &str, client: reqwest::Client) -> Self {
7466 Self {
7467 baseurl: baseurl.to_string(),
7468 client,
7469 }
7470 }
7471}
7472
7473impl ClientInfo<()> for Client {
7474 fn api_version() -> &'static str {
7475 "0.1.3"
7476 }
7477
7478 fn baseurl(&self) -> &str {
7479 self.baseurl.as_str()
7480 }
7481
7482 fn client(&self) -> &reqwest::Client {
7483 &self.client
7484 }
7485
7486 fn inner(&self) -> &() {
7487 &()
7488 }
7489}
7490
7491impl ClientHooks<()> for &Client {}
7492#[allow(clippy::all)]
7493impl Client {
7494 pub async fn rc_noop<'a>(
7506 &'a self,
7507 async_: Option<bool>,
7508 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7509 ) -> Result<
7510 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7511 Error<types::RcError>,
7512 > {
7513 let url = format!("{}/rc/noop", self.baseurl,);
7514 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7515 header_map.append(
7516 ::reqwest::header::HeaderName::from_static("api-version"),
7517 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7518 );
7519 #[allow(unused_mut)]
7520 let mut request = self
7521 .client
7522 .post(url)
7523 .header(
7524 ::reqwest::header::ACCEPT,
7525 ::reqwest::header::HeaderValue::from_static("application/json"),
7526 )
7527 .query(&progenitor_client::QueryParam::new("_async", &async_))
7528 .query(&progenitor_client::QueryParam::new("params", ¶ms))
7529 .headers(header_map)
7530 .build()?;
7531 let info = OperationInfo {
7532 operation_id: "rc_noop",
7533 };
7534 self.pre(&mut request, &info).await?;
7535 let result = self.exec(request, &info).await;
7536 self.post(&result, &info).await?;
7537 let response = result?;
7538 match response.status().as_u16() {
7539 200u16 => ResponseValue::from_response(response).await,
7540 400u16..=499u16 => Err(Error::ErrorResponse(
7541 ResponseValue::from_response(response).await?,
7542 )),
7543 500u16..=599u16 => Err(Error::ErrorResponse(
7544 ResponseValue::from_response(response).await?,
7545 )),
7546 _ => Err(Error::UnexpectedResponse(response)),
7547 }
7548 }
7549
7550 pub async fn operations_cleanup<'a>(
7562 &'a self,
7563 async_: Option<bool>,
7564 group: Option<&'a str>,
7565 fs: &'a str,
7566 ) -> Result<
7567 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7568 Error<types::RcError>,
7569 > {
7570 let url = format!("{}/operations/cleanup", self.baseurl,);
7571 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7572 header_map.append(
7573 ::reqwest::header::HeaderName::from_static("api-version"),
7574 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7575 );
7576 #[allow(unused_mut)]
7577 let mut request = self
7578 .client
7579 .post(url)
7580 .header(
7581 ::reqwest::header::ACCEPT,
7582 ::reqwest::header::HeaderValue::from_static("application/json"),
7583 )
7584 .query(&progenitor_client::QueryParam::new("_async", &async_))
7585 .query(&progenitor_client::QueryParam::new("_group", &group))
7586 .query(&progenitor_client::QueryParam::new("fs", &fs))
7587 .headers(header_map)
7588 .build()?;
7589 let info = OperationInfo {
7590 operation_id: "operations_cleanup",
7591 };
7592 self.pre(&mut request, &info).await?;
7593 let result = self.exec(request, &info).await;
7594 self.post(&result, &info).await?;
7595 let response = result?;
7596 match response.status().as_u16() {
7597 200u16 => ResponseValue::from_response(response).await,
7598 400u16..=499u16 => Err(Error::ErrorResponse(
7599 ResponseValue::from_response(response).await?,
7600 )),
7601 500u16..=599u16 => Err(Error::ErrorResponse(
7602 ResponseValue::from_response(response).await?,
7603 )),
7604 _ => Err(Error::UnexpectedResponse(response)),
7605 }
7606 }
7607
7608 pub async fn operations_copyfile<'a>(
7628 &'a self,
7629 async_: Option<bool>,
7630 group: Option<&'a str>,
7631 dst_fs: &'a str,
7632 dst_remote: &'a str,
7633 src_fs: &'a str,
7634 src_remote: &'a str,
7635 ) -> Result<
7636 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7637 Error<types::RcError>,
7638 > {
7639 let url = format!("{}/operations/copyfile", self.baseurl,);
7640 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7641 header_map.append(
7642 ::reqwest::header::HeaderName::from_static("api-version"),
7643 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7644 );
7645 #[allow(unused_mut)]
7646 let mut request = self
7647 .client
7648 .post(url)
7649 .header(
7650 ::reqwest::header::ACCEPT,
7651 ::reqwest::header::HeaderValue::from_static("application/json"),
7652 )
7653 .query(&progenitor_client::QueryParam::new("_async", &async_))
7654 .query(&progenitor_client::QueryParam::new("_group", &group))
7655 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
7656 .query(&progenitor_client::QueryParam::new(
7657 "dstRemote",
7658 &dst_remote,
7659 ))
7660 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
7661 .query(&progenitor_client::QueryParam::new(
7662 "srcRemote",
7663 &src_remote,
7664 ))
7665 .headers(header_map)
7666 .build()?;
7667 let info = OperationInfo {
7668 operation_id: "operations_copyfile",
7669 };
7670 self.pre(&mut request, &info).await?;
7671 let result = self.exec(request, &info).await;
7672 self.post(&result, &info).await?;
7673 let response = result?;
7674 match response.status().as_u16() {
7675 200u16 => ResponseValue::from_response(response).await,
7676 400u16..=499u16 => Err(Error::ErrorResponse(
7677 ResponseValue::from_response(response).await?,
7678 )),
7679 500u16..=599u16 => Err(Error::ErrorResponse(
7680 ResponseValue::from_response(response).await?,
7681 )),
7682 _ => Err(Error::UnexpectedResponse(response)),
7683 }
7684 }
7685
7686 pub async fn operations_copyurl<'a>(
7704 &'a self,
7705 async_: Option<bool>,
7706 group: Option<&'a str>,
7707 auto_filename: Option<bool>,
7708 fs: &'a str,
7709 remote: &'a str,
7710 url: &'a str,
7711 ) -> Result<
7712 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7713 Error<types::RcError>,
7714 > {
7715 let _url = format!("{}/operations/copyurl", self.baseurl,);
7716 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7717 header_map.append(
7718 ::reqwest::header::HeaderName::from_static("api-version"),
7719 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7720 );
7721 #[allow(unused_mut)]
7722 let mut request = self
7723 .client
7724 .post(_url)
7725 .header(
7726 ::reqwest::header::ACCEPT,
7727 ::reqwest::header::HeaderValue::from_static("application/json"),
7728 )
7729 .query(&progenitor_client::QueryParam::new("_async", &async_))
7730 .query(&progenitor_client::QueryParam::new("_group", &group))
7731 .query(&progenitor_client::QueryParam::new(
7732 "autoFilename",
7733 &auto_filename,
7734 ))
7735 .query(&progenitor_client::QueryParam::new("fs", &fs))
7736 .query(&progenitor_client::QueryParam::new("remote", &remote))
7737 .query(&progenitor_client::QueryParam::new("url", &url))
7738 .headers(header_map)
7739 .build()?;
7740 let info = OperationInfo {
7741 operation_id: "operations_copyurl",
7742 };
7743 self.pre(&mut request, &info).await?;
7744 let result = self.exec(request, &info).await;
7745 self.post(&result, &info).await?;
7746 let response = result?;
7747 match response.status().as_u16() {
7748 200u16 => ResponseValue::from_response(response).await,
7749 400u16..=499u16 => Err(Error::ErrorResponse(
7750 ResponseValue::from_response(response).await?,
7751 )),
7752 500u16..=599u16 => Err(Error::ErrorResponse(
7753 ResponseValue::from_response(response).await?,
7754 )),
7755 _ => Err(Error::UnexpectedResponse(response)),
7756 }
7757 }
7758
7759 pub async fn operations_delete<'a>(
7774 &'a self,
7775 async_: Option<bool>,
7776 config: Option<&'a str>,
7777 filter: Option<&'a str>,
7778 group: Option<&'a str>,
7779 fs: &'a str,
7780 ) -> Result<
7781 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7782 Error<types::RcError>,
7783 > {
7784 let url = format!("{}/operations/delete", self.baseurl,);
7785 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7786 header_map.append(
7787 ::reqwest::header::HeaderName::from_static("api-version"),
7788 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7789 );
7790 #[allow(unused_mut)]
7791 let mut request = self
7792 .client
7793 .post(url)
7794 .header(
7795 ::reqwest::header::ACCEPT,
7796 ::reqwest::header::HeaderValue::from_static("application/json"),
7797 )
7798 .query(&progenitor_client::QueryParam::new("_async", &async_))
7799 .query(&progenitor_client::QueryParam::new("_config", &config))
7800 .query(&progenitor_client::QueryParam::new("_filter", &filter))
7801 .query(&progenitor_client::QueryParam::new("_group", &group))
7802 .query(&progenitor_client::QueryParam::new("fs", &fs))
7803 .headers(header_map)
7804 .build()?;
7805 let info = OperationInfo {
7806 operation_id: "operations_delete",
7807 };
7808 self.pre(&mut request, &info).await?;
7809 let result = self.exec(request, &info).await;
7810 self.post(&result, &info).await?;
7811 let response = result?;
7812 match response.status().as_u16() {
7813 200u16 => ResponseValue::from_response(response).await,
7814 400u16..=499u16 => Err(Error::ErrorResponse(
7815 ResponseValue::from_response(response).await?,
7816 )),
7817 500u16..=599u16 => Err(Error::ErrorResponse(
7818 ResponseValue::from_response(response).await?,
7819 )),
7820 _ => Err(Error::UnexpectedResponse(response)),
7821 }
7822 }
7823
7824 pub async fn operations_deletefile<'a>(
7837 &'a self,
7838 async_: Option<bool>,
7839 group: Option<&'a str>,
7840 fs: &'a str,
7841 remote: &'a str,
7842 ) -> Result<
7843 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7844 Error<types::RcError>,
7845 > {
7846 let url = format!("{}/operations/deletefile", self.baseurl,);
7847 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7848 header_map.append(
7849 ::reqwest::header::HeaderName::from_static("api-version"),
7850 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7851 );
7852 #[allow(unused_mut)]
7853 let mut request = self
7854 .client
7855 .post(url)
7856 .header(
7857 ::reqwest::header::ACCEPT,
7858 ::reqwest::header::HeaderValue::from_static("application/json"),
7859 )
7860 .query(&progenitor_client::QueryParam::new("_async", &async_))
7861 .query(&progenitor_client::QueryParam::new("_group", &group))
7862 .query(&progenitor_client::QueryParam::new("fs", &fs))
7863 .query(&progenitor_client::QueryParam::new("remote", &remote))
7864 .headers(header_map)
7865 .build()?;
7866 let info = OperationInfo {
7867 operation_id: "operations_deletefile",
7868 };
7869 self.pre(&mut request, &info).await?;
7870 let result = self.exec(request, &info).await;
7871 self.post(&result, &info).await?;
7872 let response = result?;
7873 match response.status().as_u16() {
7874 200u16 => ResponseValue::from_response(response).await,
7875 400u16..=499u16 => Err(Error::ErrorResponse(
7876 ResponseValue::from_response(response).await?,
7877 )),
7878 500u16..=599u16 => Err(Error::ErrorResponse(
7879 ResponseValue::from_response(response).await?,
7880 )),
7881 _ => Err(Error::UnexpectedResponse(response)),
7882 }
7883 }
7884
7885 pub async fn operations_fsinfo<'a>(
7898 &'a self,
7899 async_: Option<bool>,
7900 group: Option<&'a str>,
7901 fs: &'a str,
7902 ) -> Result<ResponseValue<types::OperationsFsinfoResponse>, Error<types::RcError>> {
7903 let url = format!("{}/operations/fsinfo", self.baseurl,);
7904 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7905 header_map.append(
7906 ::reqwest::header::HeaderName::from_static("api-version"),
7907 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7908 );
7909 #[allow(unused_mut)]
7910 let mut request = self
7911 .client
7912 .post(url)
7913 .header(
7914 ::reqwest::header::ACCEPT,
7915 ::reqwest::header::HeaderValue::from_static("application/json"),
7916 )
7917 .query(&progenitor_client::QueryParam::new("_async", &async_))
7918 .query(&progenitor_client::QueryParam::new("_group", &group))
7919 .query(&progenitor_client::QueryParam::new("fs", &fs))
7920 .headers(header_map)
7921 .build()?;
7922 let info = OperationInfo {
7923 operation_id: "operations_fsinfo",
7924 };
7925 self.pre(&mut request, &info).await?;
7926 let result = self.exec(request, &info).await;
7927 self.post(&result, &info).await?;
7928 let response = result?;
7929 match response.status().as_u16() {
7930 200u16 => ResponseValue::from_response(response).await,
7931 400u16..=499u16 => Err(Error::ErrorResponse(
7932 ResponseValue::from_response(response).await?,
7933 )),
7934 500u16..=599u16 => Err(Error::ErrorResponse(
7935 ResponseValue::from_response(response).await?,
7936 )),
7937 _ => Err(Error::UnexpectedResponse(response)),
7938 }
7939 }
7940
7941 pub async fn operations_hashsum<'a>(
7960 &'a self,
7961 async_: Option<bool>,
7962 group: Option<&'a str>,
7963 base64: Option<bool>,
7964 download: Option<bool>,
7965 fs: &'a str,
7966 hash_type: &'a str,
7967 ) -> Result<ResponseValue<types::OperationsHashsumResponse>, Error<types::RcError>> {
7968 let url = format!("{}/operations/hashsum", self.baseurl,);
7969 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7970 header_map.append(
7971 ::reqwest::header::HeaderName::from_static("api-version"),
7972 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7973 );
7974 #[allow(unused_mut)]
7975 let mut request = self
7976 .client
7977 .post(url)
7978 .header(
7979 ::reqwest::header::ACCEPT,
7980 ::reqwest::header::HeaderValue::from_static("application/json"),
7981 )
7982 .query(&progenitor_client::QueryParam::new("_async", &async_))
7983 .query(&progenitor_client::QueryParam::new("_group", &group))
7984 .query(&progenitor_client::QueryParam::new("base64", &base64))
7985 .query(&progenitor_client::QueryParam::new("download", &download))
7986 .query(&progenitor_client::QueryParam::new("fs", &fs))
7987 .query(&progenitor_client::QueryParam::new("hashType", &hash_type))
7988 .headers(header_map)
7989 .build()?;
7990 let info = OperationInfo {
7991 operation_id: "operations_hashsum",
7992 };
7993 self.pre(&mut request, &info).await?;
7994 let result = self.exec(request, &info).await;
7995 self.post(&result, &info).await?;
7996 let response = result?;
7997 match response.status().as_u16() {
7998 200u16 => ResponseValue::from_response(response).await,
7999 400u16..=499u16 => Err(Error::ErrorResponse(
8000 ResponseValue::from_response(response).await?,
8001 )),
8002 500u16..=599u16 => Err(Error::ErrorResponse(
8003 ResponseValue::from_response(response).await?,
8004 )),
8005 _ => Err(Error::UnexpectedResponse(response)),
8006 }
8007 }
8008
8009 pub async fn operations_movefile<'a>(
8026 &'a self,
8027 async_: Option<bool>,
8028 group: Option<&'a str>,
8029 dst_fs: &'a str,
8030 dst_remote: &'a str,
8031 src_fs: &'a str,
8032 src_remote: &'a str,
8033 ) -> Result<
8034 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8035 Error<types::RcError>,
8036 > {
8037 let url = format!("{}/operations/movefile", self.baseurl,);
8038 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8039 header_map.append(
8040 ::reqwest::header::HeaderName::from_static("api-version"),
8041 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8042 );
8043 #[allow(unused_mut)]
8044 let mut request = self
8045 .client
8046 .post(url)
8047 .header(
8048 ::reqwest::header::ACCEPT,
8049 ::reqwest::header::HeaderValue::from_static("application/json"),
8050 )
8051 .query(&progenitor_client::QueryParam::new("_async", &async_))
8052 .query(&progenitor_client::QueryParam::new("_group", &group))
8053 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
8054 .query(&progenitor_client::QueryParam::new(
8055 "dstRemote",
8056 &dst_remote,
8057 ))
8058 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
8059 .query(&progenitor_client::QueryParam::new(
8060 "srcRemote",
8061 &src_remote,
8062 ))
8063 .headers(header_map)
8064 .build()?;
8065 let info = OperationInfo {
8066 operation_id: "operations_movefile",
8067 };
8068 self.pre(&mut request, &info).await?;
8069 let result = self.exec(request, &info).await;
8070 self.post(&result, &info).await?;
8071 let response = result?;
8072 match response.status().as_u16() {
8073 200u16 => ResponseValue::from_response(response).await,
8074 400u16..=499u16 => Err(Error::ErrorResponse(
8075 ResponseValue::from_response(response).await?,
8076 )),
8077 500u16..=599u16 => Err(Error::ErrorResponse(
8078 ResponseValue::from_response(response).await?,
8079 )),
8080 _ => Err(Error::UnexpectedResponse(response)),
8081 }
8082 }
8083
8084 pub async fn operations_publiclink<'a>(
8104 &'a self,
8105 async_: Option<bool>,
8106 group: Option<&'a str>,
8107 expire: Option<&'a str>,
8108 fs: &'a str,
8109 remote: &'a str,
8110 unlink: Option<bool>,
8111 ) -> Result<ResponseValue<types::OperationsPubliclinkResponse>, Error<types::RcError>> {
8112 let url = format!("{}/operations/publiclink", self.baseurl,);
8113 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8114 header_map.append(
8115 ::reqwest::header::HeaderName::from_static("api-version"),
8116 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8117 );
8118 #[allow(unused_mut)]
8119 let mut request = self
8120 .client
8121 .post(url)
8122 .header(
8123 ::reqwest::header::ACCEPT,
8124 ::reqwest::header::HeaderValue::from_static("application/json"),
8125 )
8126 .query(&progenitor_client::QueryParam::new("_async", &async_))
8127 .query(&progenitor_client::QueryParam::new("_group", &group))
8128 .query(&progenitor_client::QueryParam::new("expire", &expire))
8129 .query(&progenitor_client::QueryParam::new("fs", &fs))
8130 .query(&progenitor_client::QueryParam::new("remote", &remote))
8131 .query(&progenitor_client::QueryParam::new("unlink", &unlink))
8132 .headers(header_map)
8133 .build()?;
8134 let info = OperationInfo {
8135 operation_id: "operations_publiclink",
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_rmdirs<'a>(
8170 &'a self,
8171 async_: Option<bool>,
8172 group: Option<&'a str>,
8173 fs: &'a str,
8174 leave_root: Option<bool>,
8175 remote: &'a str,
8176 ) -> Result<
8177 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8178 Error<types::RcError>,
8179 > {
8180 let url = format!("{}/operations/rmdirs", self.baseurl,);
8181 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8182 header_map.append(
8183 ::reqwest::header::HeaderName::from_static("api-version"),
8184 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8185 );
8186 #[allow(unused_mut)]
8187 let mut request = self
8188 .client
8189 .post(url)
8190 .header(
8191 ::reqwest::header::ACCEPT,
8192 ::reqwest::header::HeaderValue::from_static("application/json"),
8193 )
8194 .query(&progenitor_client::QueryParam::new("_async", &async_))
8195 .query(&progenitor_client::QueryParam::new("_group", &group))
8196 .query(&progenitor_client::QueryParam::new("fs", &fs))
8197 .query(&progenitor_client::QueryParam::new(
8198 "leaveRoot",
8199 &leave_root,
8200 ))
8201 .query(&progenitor_client::QueryParam::new("remote", &remote))
8202 .headers(header_map)
8203 .build()?;
8204 let info = OperationInfo {
8205 operation_id: "operations_rmdirs",
8206 };
8207 self.pre(&mut request, &info).await?;
8208 let result = self.exec(request, &info).await;
8209 self.post(&result, &info).await?;
8210 let response = result?;
8211 match response.status().as_u16() {
8212 200u16 => ResponseValue::from_response(response).await,
8213 400u16..=499u16 => Err(Error::ErrorResponse(
8214 ResponseValue::from_response(response).await?,
8215 )),
8216 500u16..=599u16 => Err(Error::ErrorResponse(
8217 ResponseValue::from_response(response).await?,
8218 )),
8219 _ => Err(Error::UnexpectedResponse(response)),
8220 }
8221 }
8222
8223 pub async fn operations_settier<'a>(
8236 &'a self,
8237 async_: Option<bool>,
8238 group: Option<&'a str>,
8239 fs: &'a str,
8240 ) -> Result<
8241 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8242 Error<types::RcError>,
8243 > {
8244 let url = format!("{}/operations/settier", self.baseurl,);
8245 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8246 header_map.append(
8247 ::reqwest::header::HeaderName::from_static("api-version"),
8248 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8249 );
8250 #[allow(unused_mut)]
8251 let mut request = self
8252 .client
8253 .post(url)
8254 .header(
8255 ::reqwest::header::ACCEPT,
8256 ::reqwest::header::HeaderValue::from_static("application/json"),
8257 )
8258 .query(&progenitor_client::QueryParam::new("_async", &async_))
8259 .query(&progenitor_client::QueryParam::new("_group", &group))
8260 .query(&progenitor_client::QueryParam::new("fs", &fs))
8261 .headers(header_map)
8262 .build()?;
8263 let info = OperationInfo {
8264 operation_id: "operations_settier",
8265 };
8266 self.pre(&mut request, &info).await?;
8267 let result = self.exec(request, &info).await;
8268 self.post(&result, &info).await?;
8269 let response = result?;
8270 match response.status().as_u16() {
8271 200u16 => ResponseValue::from_response(response).await,
8272 400u16..=499u16 => Err(Error::ErrorResponse(
8273 ResponseValue::from_response(response).await?,
8274 )),
8275 500u16..=599u16 => Err(Error::ErrorResponse(
8276 ResponseValue::from_response(response).await?,
8277 )),
8278 _ => Err(Error::UnexpectedResponse(response)),
8279 }
8280 }
8281
8282 pub async fn operations_settierfile<'a>(
8297 &'a self,
8298 async_: Option<bool>,
8299 group: Option<&'a str>,
8300 fs: &'a str,
8301 remote: &'a str,
8302 ) -> Result<
8303 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8304 Error<types::RcError>,
8305 > {
8306 let url = format!("{}/operations/settierfile", self.baseurl,);
8307 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8308 header_map.append(
8309 ::reqwest::header::HeaderName::from_static("api-version"),
8310 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8311 );
8312 #[allow(unused_mut)]
8313 let mut request = self
8314 .client
8315 .post(url)
8316 .header(
8317 ::reqwest::header::ACCEPT,
8318 ::reqwest::header::HeaderValue::from_static("application/json"),
8319 )
8320 .query(&progenitor_client::QueryParam::new("_async", &async_))
8321 .query(&progenitor_client::QueryParam::new("_group", &group))
8322 .query(&progenitor_client::QueryParam::new("fs", &fs))
8323 .query(&progenitor_client::QueryParam::new("remote", &remote))
8324 .headers(header_map)
8325 .build()?;
8326 let info = OperationInfo {
8327 operation_id: "operations_settierfile",
8328 };
8329 self.pre(&mut request, &info).await?;
8330 let result = self.exec(request, &info).await;
8331 self.post(&result, &info).await?;
8332 let response = result?;
8333 match response.status().as_u16() {
8334 200u16 => ResponseValue::from_response(response).await,
8335 400u16..=499u16 => Err(Error::ErrorResponse(
8336 ResponseValue::from_response(response).await?,
8337 )),
8338 500u16..=599u16 => Err(Error::ErrorResponse(
8339 ResponseValue::from_response(response).await?,
8340 )),
8341 _ => Err(Error::UnexpectedResponse(response)),
8342 }
8343 }
8344
8345 pub async fn operations_size<'a>(
8358 &'a self,
8359 async_: Option<bool>,
8360 group: Option<&'a str>,
8361 fs: &'a str,
8362 ) -> Result<ResponseValue<types::OperationsSizeResponse>, Error<types::RcError>> {
8363 let url = format!("{}/operations/size", self.baseurl,);
8364 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8365 header_map.append(
8366 ::reqwest::header::HeaderName::from_static("api-version"),
8367 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8368 );
8369 #[allow(unused_mut)]
8370 let mut request = self
8371 .client
8372 .post(url)
8373 .header(
8374 ::reqwest::header::ACCEPT,
8375 ::reqwest::header::HeaderValue::from_static("application/json"),
8376 )
8377 .query(&progenitor_client::QueryParam::new("_async", &async_))
8378 .query(&progenitor_client::QueryParam::new("_group", &group))
8379 .query(&progenitor_client::QueryParam::new("fs", &fs))
8380 .headers(header_map)
8381 .build()?;
8382 let info = OperationInfo {
8383 operation_id: "operations_size",
8384 };
8385 self.pre(&mut request, &info).await?;
8386 let result = self.exec(request, &info).await;
8387 self.post(&result, &info).await?;
8388 let response = result?;
8389 match response.status().as_u16() {
8390 200u16 => ResponseValue::from_response(response).await,
8391 400u16..=499u16 => Err(Error::ErrorResponse(
8392 ResponseValue::from_response(response).await?,
8393 )),
8394 500u16..=599u16 => Err(Error::ErrorResponse(
8395 ResponseValue::from_response(response).await?,
8396 )),
8397 _ => Err(Error::UnexpectedResponse(response)),
8398 }
8399 }
8400
8401 pub async fn core_bwlimit<'a>(
8415 &'a self,
8416 async_: Option<bool>,
8417 group: Option<&'a str>,
8418 rate: Option<&'a str>,
8419 ) -> Result<ResponseValue<types::CoreBwlimitResponse>, Error<types::RcError>> {
8420 let url = format!("{}/core/bwlimit", self.baseurl,);
8421 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8422 header_map.append(
8423 ::reqwest::header::HeaderName::from_static("api-version"),
8424 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8425 );
8426 #[allow(unused_mut)]
8427 let mut request = self
8428 .client
8429 .post(url)
8430 .header(
8431 ::reqwest::header::ACCEPT,
8432 ::reqwest::header::HeaderValue::from_static("application/json"),
8433 )
8434 .query(&progenitor_client::QueryParam::new("_async", &async_))
8435 .query(&progenitor_client::QueryParam::new("_group", &group))
8436 .query(&progenitor_client::QueryParam::new("rate", &rate))
8437 .headers(header_map)
8438 .build()?;
8439 let info = OperationInfo {
8440 operation_id: "core_bwlimit",
8441 };
8442 self.pre(&mut request, &info).await?;
8443 let result = self.exec(request, &info).await;
8444 self.post(&result, &info).await?;
8445 let response = result?;
8446 match response.status().as_u16() {
8447 200u16 => ResponseValue::from_response(response).await,
8448 400u16..=499u16 => Err(Error::ErrorResponse(
8449 ResponseValue::from_response(response).await?,
8450 )),
8451 500u16..=599u16 => Err(Error::ErrorResponse(
8452 ResponseValue::from_response(response).await?,
8453 )),
8454 _ => Err(Error::UnexpectedResponse(response)),
8455 }
8456 }
8457
8458 pub async fn core_command<'a>(
8478 &'a self,
8479 async_: Option<bool>,
8480 group: Option<&'a str>,
8481 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
8482 command: &'a str,
8483 opt: Option<&'a str>,
8484 return_type: Option<&'a str>,
8485 ) -> Result<ResponseValue<types::CoreCommandResponse>, Error<types::RcError>> {
8486 let url = format!("{}/core/command", self.baseurl,);
8487 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8488 header_map.append(
8489 ::reqwest::header::HeaderName::from_static("api-version"),
8490 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8491 );
8492 #[allow(unused_mut)]
8493 let mut request = self
8494 .client
8495 .post(url)
8496 .header(
8497 ::reqwest::header::ACCEPT,
8498 ::reqwest::header::HeaderValue::from_static("application/json"),
8499 )
8500 .query(&progenitor_client::QueryParam::new("_async", &async_))
8501 .query(&progenitor_client::QueryParam::new("_group", &group))
8502 .query(&progenitor_client::QueryParam::new("arg", &arg))
8503 .query(&progenitor_client::QueryParam::new("command", &command))
8504 .query(&progenitor_client::QueryParam::new("opt", &opt))
8505 .query(&progenitor_client::QueryParam::new(
8506 "returnType",
8507 &return_type,
8508 ))
8509 .headers(header_map)
8510 .build()?;
8511 let info = OperationInfo {
8512 operation_id: "core_command",
8513 };
8514 self.pre(&mut request, &info).await?;
8515 let result = self.exec(request, &info).await;
8516 self.post(&result, &info).await?;
8517 let response = result?;
8518 match response.status().as_u16() {
8519 200u16 => ResponseValue::from_response(response).await,
8520 400u16..=499u16 => Err(Error::ErrorResponse(
8521 ResponseValue::from_response(response).await?,
8522 )),
8523 500u16..=599u16 => Err(Error::ErrorResponse(
8524 ResponseValue::from_response(response).await?,
8525 )),
8526 _ => Err(Error::UnexpectedResponse(response)),
8527 }
8528 }
8529
8530 pub async fn core_du<'a>(
8544 &'a self,
8545 async_: Option<bool>,
8546 group: Option<&'a str>,
8547 dir: Option<&'a str>,
8548 ) -> Result<ResponseValue<types::CoreDuResponse>, Error<types::RcError>> {
8549 let url = format!("{}/core/du", self.baseurl,);
8550 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8551 header_map.append(
8552 ::reqwest::header::HeaderName::from_static("api-version"),
8553 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8554 );
8555 #[allow(unused_mut)]
8556 let mut request = self
8557 .client
8558 .post(url)
8559 .header(
8560 ::reqwest::header::ACCEPT,
8561 ::reqwest::header::HeaderValue::from_static("application/json"),
8562 )
8563 .query(&progenitor_client::QueryParam::new("_async", &async_))
8564 .query(&progenitor_client::QueryParam::new("_group", &group))
8565 .query(&progenitor_client::QueryParam::new("dir", &dir))
8566 .headers(header_map)
8567 .build()?;
8568 let info = OperationInfo {
8569 operation_id: "core_du",
8570 };
8571 self.pre(&mut request, &info).await?;
8572 let result = self.exec(request, &info).await;
8573 self.post(&result, &info).await?;
8574 let response = result?;
8575 match response.status().as_u16() {
8576 200u16 => ResponseValue::from_response(response).await,
8577 400u16..=499u16 => Err(Error::ErrorResponse(
8578 ResponseValue::from_response(response).await?,
8579 )),
8580 500u16..=599u16 => Err(Error::ErrorResponse(
8581 ResponseValue::from_response(response).await?,
8582 )),
8583 _ => Err(Error::UnexpectedResponse(response)),
8584 }
8585 }
8586
8587 pub async fn core_gc<'a>(
8598 &'a self,
8599 async_: Option<bool>,
8600 group: Option<&'a str>,
8601 ) -> Result<
8602 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8603 Error<types::RcError>,
8604 > {
8605 let url = format!("{}/core/gc", self.baseurl,);
8606 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8607 header_map.append(
8608 ::reqwest::header::HeaderName::from_static("api-version"),
8609 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8610 );
8611 #[allow(unused_mut)]
8612 let mut request = self
8613 .client
8614 .post(url)
8615 .header(
8616 ::reqwest::header::ACCEPT,
8617 ::reqwest::header::HeaderValue::from_static("application/json"),
8618 )
8619 .query(&progenitor_client::QueryParam::new("_async", &async_))
8620 .query(&progenitor_client::QueryParam::new("_group", &group))
8621 .headers(header_map)
8622 .build()?;
8623 let info = OperationInfo {
8624 operation_id: "core_gc",
8625 };
8626 self.pre(&mut request, &info).await?;
8627 let result = self.exec(request, &info).await;
8628 self.post(&result, &info).await?;
8629 let response = result?;
8630 match response.status().as_u16() {
8631 200u16 => ResponseValue::from_response(response).await,
8632 400u16..=499u16 => Err(Error::ErrorResponse(
8633 ResponseValue::from_response(response).await?,
8634 )),
8635 500u16..=599u16 => Err(Error::ErrorResponse(
8636 ResponseValue::from_response(response).await?,
8637 )),
8638 _ => Err(Error::UnexpectedResponse(response)),
8639 }
8640 }
8641
8642 pub async fn core_group_list<'a>(
8653 &'a self,
8654 async_: Option<bool>,
8655 group: Option<&'a str>,
8656 ) -> Result<ResponseValue<types::CoreGroupListResponse>, Error<types::RcError>> {
8657 let url = format!("{}/core/group-list", 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 .headers(header_map)
8674 .build()?;
8675 let info = OperationInfo {
8676 operation_id: "core_group_list",
8677 };
8678 self.pre(&mut request, &info).await?;
8679 let result = self.exec(request, &info).await;
8680 self.post(&result, &info).await?;
8681 let response = result?;
8682 match response.status().as_u16() {
8683 200u16 => ResponseValue::from_response(response).await,
8684 400u16..=499u16 => Err(Error::ErrorResponse(
8685 ResponseValue::from_response(response).await?,
8686 )),
8687 500u16..=599u16 => Err(Error::ErrorResponse(
8688 ResponseValue::from_response(response).await?,
8689 )),
8690 _ => Err(Error::UnexpectedResponse(response)),
8691 }
8692 }
8693
8694 pub async fn core_memstats<'a>(
8705 &'a self,
8706 async_: Option<bool>,
8707 group: Option<&'a str>,
8708 ) -> Result<
8709 ResponseValue<::std::collections::HashMap<::std::string::String, f64>>,
8710 Error<types::RcError>,
8711 > {
8712 let url = format!("{}/core/memstats", self.baseurl,);
8713 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8714 header_map.append(
8715 ::reqwest::header::HeaderName::from_static("api-version"),
8716 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8717 );
8718 #[allow(unused_mut)]
8719 let mut request = self
8720 .client
8721 .post(url)
8722 .header(
8723 ::reqwest::header::ACCEPT,
8724 ::reqwest::header::HeaderValue::from_static("application/json"),
8725 )
8726 .query(&progenitor_client::QueryParam::new("_async", &async_))
8727 .query(&progenitor_client::QueryParam::new("_group", &group))
8728 .headers(header_map)
8729 .build()?;
8730 let info = OperationInfo {
8731 operation_id: "core_memstats",
8732 };
8733 self.pre(&mut request, &info).await?;
8734 let result = self.exec(request, &info).await;
8735 self.post(&result, &info).await?;
8736 let response = result?;
8737 match response.status().as_u16() {
8738 200u16 => ResponseValue::from_response(response).await,
8739 400u16..=499u16 => Err(Error::ErrorResponse(
8740 ResponseValue::from_response(response).await?,
8741 )),
8742 500u16..=599u16 => Err(Error::ErrorResponse(
8743 ResponseValue::from_response(response).await?,
8744 )),
8745 _ => Err(Error::UnexpectedResponse(response)),
8746 }
8747 }
8748
8749 pub async fn core_obscure<'a>(
8761 &'a self,
8762 async_: Option<bool>,
8763 group: Option<&'a str>,
8764 clear: &'a str,
8765 ) -> Result<ResponseValue<types::CoreObscureResponse>, Error<types::RcError>> {
8766 let url = format!("{}/core/obscure", self.baseurl,);
8767 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8768 header_map.append(
8769 ::reqwest::header::HeaderName::from_static("api-version"),
8770 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8771 );
8772 #[allow(unused_mut)]
8773 let mut request = self
8774 .client
8775 .post(url)
8776 .header(
8777 ::reqwest::header::ACCEPT,
8778 ::reqwest::header::HeaderValue::from_static("application/json"),
8779 )
8780 .query(&progenitor_client::QueryParam::new("_async", &async_))
8781 .query(&progenitor_client::QueryParam::new("_group", &group))
8782 .query(&progenitor_client::QueryParam::new("clear", &clear))
8783 .headers(header_map)
8784 .build()?;
8785 let info = OperationInfo {
8786 operation_id: "core_obscure",
8787 };
8788 self.pre(&mut request, &info).await?;
8789 let result = self.exec(request, &info).await;
8790 self.post(&result, &info).await?;
8791 let response = result?;
8792 match response.status().as_u16() {
8793 200u16 => ResponseValue::from_response(response).await,
8794 400u16..=499u16 => Err(Error::ErrorResponse(
8795 ResponseValue::from_response(response).await?,
8796 )),
8797 500u16..=599u16 => Err(Error::ErrorResponse(
8798 ResponseValue::from_response(response).await?,
8799 )),
8800 _ => Err(Error::UnexpectedResponse(response)),
8801 }
8802 }
8803
8804 pub async fn core_pid<'a>(
8815 &'a self,
8816 async_: Option<bool>,
8817 group: Option<&'a str>,
8818 ) -> Result<ResponseValue<types::CorePidResponse>, Error<types::RcError>> {
8819 let url = format!("{}/core/pid", self.baseurl,);
8820 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8821 header_map.append(
8822 ::reqwest::header::HeaderName::from_static("api-version"),
8823 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8824 );
8825 #[allow(unused_mut)]
8826 let mut request = self
8827 .client
8828 .post(url)
8829 .header(
8830 ::reqwest::header::ACCEPT,
8831 ::reqwest::header::HeaderValue::from_static("application/json"),
8832 )
8833 .query(&progenitor_client::QueryParam::new("_async", &async_))
8834 .query(&progenitor_client::QueryParam::new("_group", &group))
8835 .headers(header_map)
8836 .build()?;
8837 let info = OperationInfo {
8838 operation_id: "core_pid",
8839 };
8840 self.pre(&mut request, &info).await?;
8841 let result = self.exec(request, &info).await;
8842 self.post(&result, &info).await?;
8843 let response = result?;
8844 match response.status().as_u16() {
8845 200u16 => ResponseValue::from_response(response).await,
8846 400u16..=499u16 => Err(Error::ErrorResponse(
8847 ResponseValue::from_response(response).await?,
8848 )),
8849 500u16..=599u16 => Err(Error::ErrorResponse(
8850 ResponseValue::from_response(response).await?,
8851 )),
8852 _ => Err(Error::UnexpectedResponse(response)),
8853 }
8854 }
8855
8856 pub async fn core_quit<'a>(
8869 &'a self,
8870 async_: Option<bool>,
8871 group: Option<&'a str>,
8872 exit_code: Option<i64>,
8873 ) -> Result<
8874 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8875 Error<types::RcError>,
8876 > {
8877 let url = format!("{}/core/quit", self.baseurl,);
8878 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8879 header_map.append(
8880 ::reqwest::header::HeaderName::from_static("api-version"),
8881 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8882 );
8883 #[allow(unused_mut)]
8884 let mut request = self
8885 .client
8886 .post(url)
8887 .header(
8888 ::reqwest::header::ACCEPT,
8889 ::reqwest::header::HeaderValue::from_static("application/json"),
8890 )
8891 .query(&progenitor_client::QueryParam::new("_async", &async_))
8892 .query(&progenitor_client::QueryParam::new("_group", &group))
8893 .query(&progenitor_client::QueryParam::new("exitCode", &exit_code))
8894 .headers(header_map)
8895 .build()?;
8896 let info = OperationInfo {
8897 operation_id: "core_quit",
8898 };
8899 self.pre(&mut request, &info).await?;
8900 let result = self.exec(request, &info).await;
8901 self.post(&result, &info).await?;
8902 let response = result?;
8903 match response.status().as_u16() {
8904 200u16 => ResponseValue::from_response(response).await,
8905 400u16..=499u16 => Err(Error::ErrorResponse(
8906 ResponseValue::from_response(response).await?,
8907 )),
8908 500u16..=599u16 => Err(Error::ErrorResponse(
8909 ResponseValue::from_response(response).await?,
8910 )),
8911 _ => Err(Error::UnexpectedResponse(response)),
8912 }
8913 }
8914
8915 pub async fn core_stats_delete<'a>(
8927 &'a self,
8928 async_: Option<bool>,
8929 _group: Option<&'a str>,
8930 group: &'a str
8931 ) -> Result<
8932 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8933 Error<types::RcError>,
8934 > {
8935 let url = format!("{}/core/stats-delete", self.baseurl,);
8936 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8937 header_map.append(
8938 ::reqwest::header::HeaderName::from_static("api-version"),
8939 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8940 );
8941 #[allow(unused_mut)]
8942 let mut request = self
8943 .client
8944 .post(url)
8945 .header(
8946 ::reqwest::header::ACCEPT,
8947 ::reqwest::header::HeaderValue::from_static("application/json"),
8948 )
8949 .query(&progenitor_client::QueryParam::new("_async", &async_))
8950 .query(&progenitor_client::QueryParam::new("_group", &group))
8951 .query(&progenitor_client::QueryParam::new("group", &group))
8952 .headers(header_map)
8953 .build()?;
8954 let info = OperationInfo {
8955 operation_id: "core_stats_delete",
8956 };
8957 self.pre(&mut request, &info).await?;
8958 let result = self.exec(request, &info).await;
8959 self.post(&result, &info).await?;
8960 let response = result?;
8961 match response.status().as_u16() {
8962 200u16 => ResponseValue::from_response(response).await,
8963 400u16..=499u16 => Err(Error::ErrorResponse(
8964 ResponseValue::from_response(response).await?,
8965 )),
8966 500u16..=599u16 => Err(Error::ErrorResponse(
8967 ResponseValue::from_response(response).await?,
8968 )),
8969 _ => Err(Error::UnexpectedResponse(response)),
8970 }
8971 }
8972
8973 pub async fn core_stats_reset<'a>(
8987 &'a self,
8988 async_: Option<bool>,
8989 _group: Option<&'a str>,
8990 group: Option<&'a str>
8991 ) -> Result<
8992 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8993 Error<types::RcError>,
8994 > {
8995 let url = format!("{}/core/stats-reset", self.baseurl,);
8996 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8997 header_map.append(
8998 ::reqwest::header::HeaderName::from_static("api-version"),
8999 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9000 );
9001 #[allow(unused_mut)]
9002 let mut request = self
9003 .client
9004 .post(url)
9005 .header(
9006 ::reqwest::header::ACCEPT,
9007 ::reqwest::header::HeaderValue::from_static("application/json"),
9008 )
9009 .query(&progenitor_client::QueryParam::new("_async", &async_))
9010 .query(&progenitor_client::QueryParam::new("_group", &group))
9011 .query(&progenitor_client::QueryParam::new("group", &group))
9012 .headers(header_map)
9013 .build()?;
9014 let info = OperationInfo {
9015 operation_id: "core_stats_reset",
9016 };
9017 self.pre(&mut request, &info).await?;
9018 let result = self.exec(request, &info).await;
9019 self.post(&result, &info).await?;
9020 let response = result?;
9021 match response.status().as_u16() {
9022 200u16 => ResponseValue::from_response(response).await,
9023 400u16..=499u16 => Err(Error::ErrorResponse(
9024 ResponseValue::from_response(response).await?,
9025 )),
9026 500u16..=599u16 => Err(Error::ErrorResponse(
9027 ResponseValue::from_response(response).await?,
9028 )),
9029 _ => Err(Error::UnexpectedResponse(response)),
9030 }
9031 }
9032
9033 pub async fn core_transferred<'a>(
9047 &'a self,
9048 async_: Option<bool>,
9049 _group: Option<&'a str>,
9050 group: Option<&'a str>
9051 ) -> Result<ResponseValue<types::CoreTransferredResponse>, Error<types::RcError>> {
9052 let url = format!("{}/core/transferred", self.baseurl,);
9053 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9054 header_map.append(
9055 ::reqwest::header::HeaderName::from_static("api-version"),
9056 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9057 );
9058 #[allow(unused_mut)]
9059 let mut request = self
9060 .client
9061 .post(url)
9062 .header(
9063 ::reqwest::header::ACCEPT,
9064 ::reqwest::header::HeaderValue::from_static("application/json"),
9065 )
9066 .query(&progenitor_client::QueryParam::new("_async", &async_))
9067 .query(&progenitor_client::QueryParam::new("_group", &group))
9068 .query(&progenitor_client::QueryParam::new("group", &group))
9069 .headers(header_map)
9070 .build()?;
9071 let info = OperationInfo {
9072 operation_id: "core_transferred",
9073 };
9074 self.pre(&mut request, &info).await?;
9075 let result = self.exec(request, &info).await;
9076 self.post(&result, &info).await?;
9077 let response = result?;
9078 match response.status().as_u16() {
9079 200u16 => ResponseValue::from_response(response).await,
9080 400u16..=499u16 => Err(Error::ErrorResponse(
9081 ResponseValue::from_response(response).await?,
9082 )),
9083 500u16..=599u16 => Err(Error::ErrorResponse(
9084 ResponseValue::from_response(response).await?,
9085 )),
9086 _ => Err(Error::UnexpectedResponse(response)),
9087 }
9088 }
9089
9090 pub async fn debug_set_block_profile_rate<'a>(
9099 &'a self,
9100 async_: Option<bool>,
9101 group: Option<&'a str>,
9102 rate: i64,
9103 ) -> Result<
9104 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9105 Error<types::RcError>,
9106 > {
9107 let url = format!("{}/debug/set-block-profile-rate", self.baseurl,);
9108 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9109 header_map.append(
9110 ::reqwest::header::HeaderName::from_static("api-version"),
9111 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9112 );
9113 #[allow(unused_mut)]
9114 let mut request = self
9115 .client
9116 .post(url)
9117 .header(
9118 ::reqwest::header::ACCEPT,
9119 ::reqwest::header::HeaderValue::from_static("application/json"),
9120 )
9121 .query(&progenitor_client::QueryParam::new("_async", &async_))
9122 .query(&progenitor_client::QueryParam::new("_group", &group))
9123 .query(&progenitor_client::QueryParam::new("rate", &rate))
9124 .headers(header_map)
9125 .build()?;
9126 let info = OperationInfo {
9127 operation_id: "debug_set_block_profile_rate",
9128 };
9129 self.pre(&mut request, &info).await?;
9130 let result = self.exec(request, &info).await;
9131 self.post(&result, &info).await?;
9132 let response = result?;
9133 match response.status().as_u16() {
9134 200u16 => ResponseValue::from_response(response).await,
9135 400u16..=499u16 => Err(Error::ErrorResponse(
9136 ResponseValue::from_response(response).await?,
9137 )),
9138 500u16..=599u16 => Err(Error::ErrorResponse(
9139 ResponseValue::from_response(response).await?,
9140 )),
9141 _ => Err(Error::UnexpectedResponse(response)),
9142 }
9143 }
9144
9145 pub async fn debug_set_gc_percent<'a>(
9154 &'a self,
9155 async_: Option<bool>,
9156 group: Option<&'a str>,
9157 gc_percent: i64,
9158 ) -> Result<ResponseValue<types::DebugSetGcPercentResponse>, Error<types::RcError>> {
9159 let url = format!("{}/debug/set-gc-percent", self.baseurl,);
9160 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9161 header_map.append(
9162 ::reqwest::header::HeaderName::from_static("api-version"),
9163 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9164 );
9165 #[allow(unused_mut)]
9166 let mut request = self
9167 .client
9168 .post(url)
9169 .header(
9170 ::reqwest::header::ACCEPT,
9171 ::reqwest::header::HeaderValue::from_static("application/json"),
9172 )
9173 .query(&progenitor_client::QueryParam::new("_async", &async_))
9174 .query(&progenitor_client::QueryParam::new("_group", &group))
9175 .query(&progenitor_client::QueryParam::new(
9176 "gc-percent",
9177 &gc_percent,
9178 ))
9179 .headers(header_map)
9180 .build()?;
9181 let info = OperationInfo {
9182 operation_id: "debug_set_gc_percent",
9183 };
9184 self.pre(&mut request, &info).await?;
9185 let result = self.exec(request, &info).await;
9186 self.post(&result, &info).await?;
9187 let response = result?;
9188 match response.status().as_u16() {
9189 200u16 => ResponseValue::from_response(response).await,
9190 400u16..=499u16 => Err(Error::ErrorResponse(
9191 ResponseValue::from_response(response).await?,
9192 )),
9193 500u16..=599u16 => Err(Error::ErrorResponse(
9194 ResponseValue::from_response(response).await?,
9195 )),
9196 _ => Err(Error::UnexpectedResponse(response)),
9197 }
9198 }
9199
9200 pub async fn debug_set_mutex_profile_fraction<'a>(
9209 &'a self,
9210 async_: Option<bool>,
9211 group: Option<&'a str>,
9212 rate: i64,
9213 ) -> Result<ResponseValue<types::DebugSetMutexProfileFractionResponse>, Error<types::RcError>>
9214 {
9215 let url = format!("{}/debug/set-mutex-profile-fraction", self.baseurl,);
9216 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9217 header_map.append(
9218 ::reqwest::header::HeaderName::from_static("api-version"),
9219 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9220 );
9221 #[allow(unused_mut)]
9222 let mut request = self
9223 .client
9224 .post(url)
9225 .header(
9226 ::reqwest::header::ACCEPT,
9227 ::reqwest::header::HeaderValue::from_static("application/json"),
9228 )
9229 .query(&progenitor_client::QueryParam::new("_async", &async_))
9230 .query(&progenitor_client::QueryParam::new("_group", &group))
9231 .query(&progenitor_client::QueryParam::new("rate", &rate))
9232 .headers(header_map)
9233 .build()?;
9234 let info = OperationInfo {
9235 operation_id: "debug_set_mutex_profile_fraction",
9236 };
9237 self.pre(&mut request, &info).await?;
9238 let result = self.exec(request, &info).await;
9239 self.post(&result, &info).await?;
9240 let response = result?;
9241 match response.status().as_u16() {
9242 200u16 => ResponseValue::from_response(response).await,
9243 400u16..=499u16 => Err(Error::ErrorResponse(
9244 ResponseValue::from_response(response).await?,
9245 )),
9246 500u16..=599u16 => Err(Error::ErrorResponse(
9247 ResponseValue::from_response(response).await?,
9248 )),
9249 _ => Err(Error::UnexpectedResponse(response)),
9250 }
9251 }
9252
9253 pub async fn debug_set_soft_memory_limit<'a>(
9261 &'a self,
9262 async_: Option<bool>,
9263 group: Option<&'a str>,
9264 mem_limit: i64,
9265 ) -> Result<ResponseValue<types::DebugSetSoftMemoryLimitResponse>, Error<types::RcError>> {
9266 let url = format!("{}/debug/set-soft-memory-limit", self.baseurl,);
9267 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9268 header_map.append(
9269 ::reqwest::header::HeaderName::from_static("api-version"),
9270 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9271 );
9272 #[allow(unused_mut)]
9273 let mut request = self
9274 .client
9275 .post(url)
9276 .header(
9277 ::reqwest::header::ACCEPT,
9278 ::reqwest::header::HeaderValue::from_static("application/json"),
9279 )
9280 .query(&progenitor_client::QueryParam::new("_async", &async_))
9281 .query(&progenitor_client::QueryParam::new("_group", &group))
9282 .query(&progenitor_client::QueryParam::new("mem-limit", &mem_limit))
9283 .headers(header_map)
9284 .build()?;
9285 let info = OperationInfo {
9286 operation_id: "debug_set_soft_memory_limit",
9287 };
9288 self.pre(&mut request, &info).await?;
9289 let result = self.exec(request, &info).await;
9290 self.post(&result, &info).await?;
9291 let response = result?;
9292 match response.status().as_u16() {
9293 200u16 => ResponseValue::from_response(response).await,
9294 400u16..=499u16 => Err(Error::ErrorResponse(
9295 ResponseValue::from_response(response).await?,
9296 )),
9297 500u16..=599u16 => Err(Error::ErrorResponse(
9298 ResponseValue::from_response(response).await?,
9299 )),
9300 _ => Err(Error::UnexpectedResponse(response)),
9301 }
9302 }
9303
9304 pub async fn fscache_clear<'a>(
9311 &'a self,
9312 async_: Option<bool>,
9313 group: Option<&'a str>,
9314 ) -> Result<
9315 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9316 Error<types::RcError>,
9317 > {
9318 let url = format!("{}/fscache/clear", self.baseurl,);
9319 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9320 header_map.append(
9321 ::reqwest::header::HeaderName::from_static("api-version"),
9322 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9323 );
9324 #[allow(unused_mut)]
9325 let mut request = self
9326 .client
9327 .post(url)
9328 .header(
9329 ::reqwest::header::ACCEPT,
9330 ::reqwest::header::HeaderValue::from_static("application/json"),
9331 )
9332 .query(&progenitor_client::QueryParam::new("_async", &async_))
9333 .query(&progenitor_client::QueryParam::new("_group", &group))
9334 .headers(header_map)
9335 .build()?;
9336 let info = OperationInfo {
9337 operation_id: "fscache_clear",
9338 };
9339 self.pre(&mut request, &info).await?;
9340 let result = self.exec(request, &info).await;
9341 self.post(&result, &info).await?;
9342 let response = result?;
9343 match response.status().as_u16() {
9344 200u16 => ResponseValue::from_response(response).await,
9345 400u16..=499u16 => Err(Error::ErrorResponse(
9346 ResponseValue::from_response(response).await?,
9347 )),
9348 500u16..=599u16 => Err(Error::ErrorResponse(
9349 ResponseValue::from_response(response).await?,
9350 )),
9351 _ => Err(Error::UnexpectedResponse(response)),
9352 }
9353 }
9354
9355 pub async fn fscache_entries<'a>(
9362 &'a self,
9363 async_: Option<bool>,
9364 group: Option<&'a str>,
9365 ) -> Result<ResponseValue<types::FscacheEntriesResponse>, Error<types::RcError>> {
9366 let url = format!("{}/fscache/entries", self.baseurl,);
9367 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9368 header_map.append(
9369 ::reqwest::header::HeaderName::from_static("api-version"),
9370 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9371 );
9372 #[allow(unused_mut)]
9373 let mut request = self
9374 .client
9375 .post(url)
9376 .header(
9377 ::reqwest::header::ACCEPT,
9378 ::reqwest::header::HeaderValue::from_static("application/json"),
9379 )
9380 .query(&progenitor_client::QueryParam::new("_async", &async_))
9381 .query(&progenitor_client::QueryParam::new("_group", &group))
9382 .headers(header_map)
9383 .build()?;
9384 let info = OperationInfo {
9385 operation_id: "fscache_entries",
9386 };
9387 self.pre(&mut request, &info).await?;
9388 let result = self.exec(request, &info).await;
9389 self.post(&result, &info).await?;
9390 let response = result?;
9391 match response.status().as_u16() {
9392 200u16 => ResponseValue::from_response(response).await,
9393 400u16..=499u16 => Err(Error::ErrorResponse(
9394 ResponseValue::from_response(response).await?,
9395 )),
9396 500u16..=599u16 => Err(Error::ErrorResponse(
9397 ResponseValue::from_response(response).await?,
9398 )),
9399 _ => Err(Error::UnexpectedResponse(response)),
9400 }
9401 }
9402
9403 pub async fn mount_listmounts<'a>(
9410 &'a self,
9411 async_: Option<bool>,
9412 group: Option<&'a str>,
9413 ) -> Result<ResponseValue<types::MountListmountsResponse>, Error<types::RcError>> {
9414 let url = format!("{}/mount/listmounts", self.baseurl,);
9415 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9416 header_map.append(
9417 ::reqwest::header::HeaderName::from_static("api-version"),
9418 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9419 );
9420 #[allow(unused_mut)]
9421 let mut request = self
9422 .client
9423 .post(url)
9424 .header(
9425 ::reqwest::header::ACCEPT,
9426 ::reqwest::header::HeaderValue::from_static("application/json"),
9427 )
9428 .query(&progenitor_client::QueryParam::new("_async", &async_))
9429 .query(&progenitor_client::QueryParam::new("_group", &group))
9430 .headers(header_map)
9431 .build()?;
9432 let info = OperationInfo {
9433 operation_id: "mount_listmounts",
9434 };
9435 self.pre(&mut request, &info).await?;
9436 let result = self.exec(request, &info).await;
9437 self.post(&result, &info).await?;
9438 let response = result?;
9439 match response.status().as_u16() {
9440 200u16 => ResponseValue::from_response(response).await,
9441 400u16..=499u16 => Err(Error::ErrorResponse(
9442 ResponseValue::from_response(response).await?,
9443 )),
9444 500u16..=599u16 => Err(Error::ErrorResponse(
9445 ResponseValue::from_response(response).await?,
9446 )),
9447 _ => Err(Error::UnexpectedResponse(response)),
9448 }
9449 }
9450
9451 pub async fn mount_mount<'a>(
9468 &'a self,
9469 async_: Option<bool>,
9470 config: Option<&'a str>,
9471 filter: Option<&'a str>,
9472 group: Option<&'a str>,
9473 fs: &'a str,
9474 mount_opt: Option<&'a str>,
9475 mount_point: &'a str,
9476 mount_type: Option<&'a str>,
9477 vfs_opt: Option<&'a str>,
9478 ) -> Result<
9479 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9480 Error<types::RcError>,
9481 > {
9482 let url = format!("{}/mount/mount", self.baseurl,);
9483 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9484 header_map.append(
9485 ::reqwest::header::HeaderName::from_static("api-version"),
9486 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9487 );
9488 #[allow(unused_mut)]
9489 let mut request = self
9490 .client
9491 .post(url)
9492 .header(
9493 ::reqwest::header::ACCEPT,
9494 ::reqwest::header::HeaderValue::from_static("application/json"),
9495 )
9496 .query(&progenitor_client::QueryParam::new("_async", &async_))
9497 .query(&progenitor_client::QueryParam::new("_config", &config))
9498 .query(&progenitor_client::QueryParam::new("_filter", &filter))
9499 .query(&progenitor_client::QueryParam::new("_group", &group))
9500 .query(&progenitor_client::QueryParam::new("fs", &fs))
9501 .query(&progenitor_client::QueryParam::new("mountOpt", &mount_opt))
9502 .query(&progenitor_client::QueryParam::new(
9503 "mountPoint",
9504 &mount_point,
9505 ))
9506 .query(&progenitor_client::QueryParam::new(
9507 "mountType",
9508 &mount_type,
9509 ))
9510 .query(&progenitor_client::QueryParam::new("vfsOpt", &vfs_opt))
9511 .headers(header_map)
9512 .build()?;
9513 let info = OperationInfo {
9514 operation_id: "mount_mount",
9515 };
9516 self.pre(&mut request, &info).await?;
9517 let result = self.exec(request, &info).await;
9518 self.post(&result, &info).await?;
9519 let response = result?;
9520 match response.status().as_u16() {
9521 200u16 => ResponseValue::from_response(response).await,
9522 400u16..=499u16 => Err(Error::ErrorResponse(
9523 ResponseValue::from_response(response).await?,
9524 )),
9525 500u16..=599u16 => Err(Error::ErrorResponse(
9526 ResponseValue::from_response(response).await?,
9527 )),
9528 _ => Err(Error::UnexpectedResponse(response)),
9529 }
9530 }
9531
9532 pub async fn mount_types<'a>(
9539 &'a self,
9540 async_: Option<bool>,
9541 group: Option<&'a str>,
9542 ) -> Result<ResponseValue<types::MountTypesResponse>, Error<types::RcError>> {
9543 let url = format!("{}/mount/types", self.baseurl,);
9544 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9545 header_map.append(
9546 ::reqwest::header::HeaderName::from_static("api-version"),
9547 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9548 );
9549 #[allow(unused_mut)]
9550 let mut request = self
9551 .client
9552 .post(url)
9553 .header(
9554 ::reqwest::header::ACCEPT,
9555 ::reqwest::header::HeaderValue::from_static("application/json"),
9556 )
9557 .query(&progenitor_client::QueryParam::new("_async", &async_))
9558 .query(&progenitor_client::QueryParam::new("_group", &group))
9559 .headers(header_map)
9560 .build()?;
9561 let info = OperationInfo {
9562 operation_id: "mount_types",
9563 };
9564 self.pre(&mut request, &info).await?;
9565 let result = self.exec(request, &info).await;
9566 self.post(&result, &info).await?;
9567 let response = result?;
9568 match response.status().as_u16() {
9569 200u16 => ResponseValue::from_response(response).await,
9570 400u16..=499u16 => Err(Error::ErrorResponse(
9571 ResponseValue::from_response(response).await?,
9572 )),
9573 500u16..=599u16 => Err(Error::ErrorResponse(
9574 ResponseValue::from_response(response).await?,
9575 )),
9576 _ => Err(Error::UnexpectedResponse(response)),
9577 }
9578 }
9579
9580 pub async fn mount_unmount<'a>(
9588 &'a self,
9589 async_: Option<bool>,
9590 group: Option<&'a str>,
9591 mount_point: &'a str,
9592 ) -> Result<
9593 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9594 Error<types::RcError>,
9595 > {
9596 let url = format!("{}/mount/unmount", self.baseurl,);
9597 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9598 header_map.append(
9599 ::reqwest::header::HeaderName::from_static("api-version"),
9600 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9601 );
9602 #[allow(unused_mut)]
9603 let mut request = self
9604 .client
9605 .post(url)
9606 .header(
9607 ::reqwest::header::ACCEPT,
9608 ::reqwest::header::HeaderValue::from_static("application/json"),
9609 )
9610 .query(&progenitor_client::QueryParam::new("_async", &async_))
9611 .query(&progenitor_client::QueryParam::new("_group", &group))
9612 .query(&progenitor_client::QueryParam::new(
9613 "mountPoint",
9614 &mount_point,
9615 ))
9616 .headers(header_map)
9617 .build()?;
9618 let info = OperationInfo {
9619 operation_id: "mount_unmount",
9620 };
9621 self.pre(&mut request, &info).await?;
9622 let result = self.exec(request, &info).await;
9623 self.post(&result, &info).await?;
9624 let response = result?;
9625 match response.status().as_u16() {
9626 200u16 => ResponseValue::from_response(response).await,
9627 400u16..=499u16 => Err(Error::ErrorResponse(
9628 ResponseValue::from_response(response).await?,
9629 )),
9630 500u16..=599u16 => Err(Error::ErrorResponse(
9631 ResponseValue::from_response(response).await?,
9632 )),
9633 _ => Err(Error::UnexpectedResponse(response)),
9634 }
9635 }
9636
9637 pub async fn mount_unmountall<'a>(
9644 &'a self,
9645 async_: Option<bool>,
9646 group: Option<&'a str>,
9647 ) -> Result<
9648 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9649 Error<types::RcError>,
9650 > {
9651 let url = format!("{}/mount/unmountall", self.baseurl,);
9652 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9653 header_map.append(
9654 ::reqwest::header::HeaderName::from_static("api-version"),
9655 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9656 );
9657 #[allow(unused_mut)]
9658 let mut request = self
9659 .client
9660 .post(url)
9661 .header(
9662 ::reqwest::header::ACCEPT,
9663 ::reqwest::header::HeaderValue::from_static("application/json"),
9664 )
9665 .query(&progenitor_client::QueryParam::new("_async", &async_))
9666 .query(&progenitor_client::QueryParam::new("_group", &group))
9667 .headers(header_map)
9668 .build()?;
9669 let info = OperationInfo {
9670 operation_id: "mount_unmountall",
9671 };
9672 self.pre(&mut request, &info).await?;
9673 let result = self.exec(request, &info).await;
9674 self.post(&result, &info).await?;
9675 let response = result?;
9676 match response.status().as_u16() {
9677 200u16 => ResponseValue::from_response(response).await,
9678 400u16..=499u16 => Err(Error::ErrorResponse(
9679 ResponseValue::from_response(response).await?,
9680 )),
9681 500u16..=599u16 => Err(Error::ErrorResponse(
9682 ResponseValue::from_response(response).await?,
9683 )),
9684 _ => Err(Error::UnexpectedResponse(response)),
9685 }
9686 }
9687
9688 pub async fn rc_noop_auth<'a>(
9700 &'a self,
9701 async_: Option<bool>,
9702 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9703 ) -> Result<
9704 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9705 Error<types::RcError>,
9706 > {
9707 let url = format!("{}/rc/noopauth", self.baseurl,);
9708 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9709 header_map.append(
9710 ::reqwest::header::HeaderName::from_static("api-version"),
9711 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9712 );
9713 #[allow(unused_mut)]
9714 let mut request = self
9715 .client
9716 .post(url)
9717 .header(
9718 ::reqwest::header::ACCEPT,
9719 ::reqwest::header::HeaderValue::from_static("application/json"),
9720 )
9721 .query(&progenitor_client::QueryParam::new("_async", &async_))
9722 .query(&progenitor_client::QueryParam::new("params", ¶ms))
9723 .headers(header_map)
9724 .build()?;
9725 let info = OperationInfo {
9726 operation_id: "rc_noop_auth",
9727 };
9728 self.pre(&mut request, &info).await?;
9729 let result = self.exec(request, &info).await;
9730 self.post(&result, &info).await?;
9731 let response = result?;
9732 match response.status().as_u16() {
9733 200u16 => ResponseValue::from_response(response).await,
9734 400u16..=499u16 => Err(Error::ErrorResponse(
9735 ResponseValue::from_response(response).await?,
9736 )),
9737 500u16..=599u16 => Err(Error::ErrorResponse(
9738 ResponseValue::from_response(response).await?,
9739 )),
9740 _ => Err(Error::UnexpectedResponse(response)),
9741 }
9742 }
9743
9744 pub async fn rc_error<'a>(
9756 &'a self,
9757 async_: Option<bool>,
9758 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9759 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9760 let url = format!("{}/rc/error", 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("params", ¶ms))
9776 .headers(header_map)
9777 .build()?;
9778 let info = OperationInfo {
9779 operation_id: "rc_error",
9780 };
9781 self.pre(&mut request, &info).await?;
9782 let result = self.exec(request, &info).await;
9783 self.post(&result, &info).await?;
9784 let response = result?;
9785 match response.status().as_u16() {
9786 200u16 => Ok(ResponseValue::empty(response)),
9787 400u16..=499u16 => Err(Error::ErrorResponse(
9788 ResponseValue::from_response(response).await?,
9789 )),
9790 500u16..=599u16 => Err(Error::ErrorResponse(
9791 ResponseValue::from_response(response).await?,
9792 )),
9793 _ => Err(Error::UnexpectedResponse(response)),
9794 }
9795 }
9796
9797 pub async fn rc_list<'a>(
9809 &'a self,
9810 async_: Option<bool>,
9811 group: Option<&'a str>,
9812 ) -> Result<ResponseValue<types::RcListResponse>, Error<types::RcError>> {
9813 let url = format!("{}/rc/list", self.baseurl,);
9814 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9815 header_map.append(
9816 ::reqwest::header::HeaderName::from_static("api-version"),
9817 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9818 );
9819 #[allow(unused_mut)]
9820 let mut request = self
9821 .client
9822 .post(url)
9823 .header(
9824 ::reqwest::header::ACCEPT,
9825 ::reqwest::header::HeaderValue::from_static("application/json"),
9826 )
9827 .query(&progenitor_client::QueryParam::new("_async", &async_))
9828 .query(&progenitor_client::QueryParam::new("_group", &group))
9829 .headers(header_map)
9830 .build()?;
9831 let info = OperationInfo {
9832 operation_id: "rc_list",
9833 };
9834 self.pre(&mut request, &info).await?;
9835 let result = self.exec(request, &info).await;
9836 self.post(&result, &info).await?;
9837 let response = result?;
9838 match response.status().as_u16() {
9839 200u16 => ResponseValue::from_response(response).await,
9840 400u16..=499u16 => Err(Error::ErrorResponse(
9841 ResponseValue::from_response(response).await?,
9842 )),
9843 500u16..=599u16 => Err(Error::ErrorResponse(
9844 ResponseValue::from_response(response).await?,
9845 )),
9846 _ => Err(Error::UnexpectedResponse(response)),
9847 }
9848 }
9849
9850 pub async fn backend_command<'a>(
9866 &'a self,
9867 async_: Option<bool>,
9868 group: Option<&'a str>,
9869 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
9870 command: &'a str,
9871 fs: Option<&'a str>,
9872 opt: Option<&'a str>,
9873 ) -> Result<ResponseValue<types::BackendCommandResponse>, Error<types::RcError>> {
9874 let url = format!("{}/backend/command", self.baseurl,);
9875 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9876 header_map.append(
9877 ::reqwest::header::HeaderName::from_static("api-version"),
9878 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9879 );
9880 #[allow(unused_mut)]
9881 let mut request = self
9882 .client
9883 .post(url)
9884 .header(
9885 ::reqwest::header::ACCEPT,
9886 ::reqwest::header::HeaderValue::from_static("application/json"),
9887 )
9888 .query(&progenitor_client::QueryParam::new("_async", &async_))
9889 .query(&progenitor_client::QueryParam::new("_group", &group))
9890 .query(&progenitor_client::QueryParam::new("arg", &arg))
9891 .query(&progenitor_client::QueryParam::new("command", &command))
9892 .query(&progenitor_client::QueryParam::new("fs", &fs))
9893 .query(&progenitor_client::QueryParam::new("opt", &opt))
9894 .headers(header_map)
9895 .build()?;
9896 let info = OperationInfo {
9897 operation_id: "backend_command",
9898 };
9899 self.pre(&mut request, &info).await?;
9900 let result = self.exec(request, &info).await;
9901 self.post(&result, &info).await?;
9902 let response = result?;
9903 match response.status().as_u16() {
9904 200u16 => ResponseValue::from_response(response).await,
9905 400u16..=499u16 => Err(Error::ErrorResponse(
9906 ResponseValue::from_response(response).await?,
9907 )),
9908 500u16..=599u16 => Err(Error::ErrorResponse(
9909 ResponseValue::from_response(response).await?,
9910 )),
9911 _ => Err(Error::UnexpectedResponse(response)),
9912 }
9913 }
9914
9915 pub async fn cache_expire<'a>(
9931 &'a self,
9932 async_: Option<bool>,
9933 group: Option<&'a str>,
9934 remote: &'a str,
9935 with_data: Option<bool>,
9936 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9937 let url = format!("{}/cache/expire", self.baseurl,);
9938 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9939 header_map.append(
9940 ::reqwest::header::HeaderName::from_static("api-version"),
9941 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9942 );
9943 #[allow(unused_mut)]
9944 let mut request = self
9945 .client
9946 .post(url)
9947 .header(
9948 ::reqwest::header::ACCEPT,
9949 ::reqwest::header::HeaderValue::from_static("application/json"),
9950 )
9951 .query(&progenitor_client::QueryParam::new("_async", &async_))
9952 .query(&progenitor_client::QueryParam::new("_group", &group))
9953 .query(&progenitor_client::QueryParam::new("remote", &remote))
9954 .query(&progenitor_client::QueryParam::new("withData", &with_data))
9955 .headers(header_map)
9956 .build()?;
9957 let info = OperationInfo {
9958 operation_id: "cache_expire",
9959 };
9960 self.pre(&mut request, &info).await?;
9961 let result = self.exec(request, &info).await;
9962 self.post(&result, &info).await?;
9963 let response = result?;
9964 match response.status().as_u16() {
9965 200u16 => Ok(ResponseValue::empty(response)),
9966 400u16..=499u16 => Err(Error::ErrorResponse(
9967 ResponseValue::from_response(response).await?,
9968 )),
9969 500u16..=599u16 => Err(Error::ErrorResponse(
9970 ResponseValue::from_response(response).await?,
9971 )),
9972 _ => Err(Error::UnexpectedResponse(response)),
9973 }
9974 }
9975
9976 pub async fn cache_fetch<'a>(
9990 &'a self,
9991 async_: Option<bool>,
9992 group: Option<&'a str>,
9993 chunks: Option<&'a str>,
9994 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9995 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9996 let url = format!("{}/cache/fetch", self.baseurl,);
9997 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9998 header_map.append(
9999 ::reqwest::header::HeaderName::from_static("api-version"),
10000 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10001 );
10002 #[allow(unused_mut)]
10003 let mut request = self
10004 .client
10005 .post(url)
10006 .header(
10007 ::reqwest::header::ACCEPT,
10008 ::reqwest::header::HeaderValue::from_static("application/json"),
10009 )
10010 .query(&progenitor_client::QueryParam::new("_async", &async_))
10011 .query(&progenitor_client::QueryParam::new("_group", &group))
10012 .query(&progenitor_client::QueryParam::new("chunks", &chunks))
10013 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10014 .headers(header_map)
10015 .build()?;
10016 let info = OperationInfo {
10017 operation_id: "cache_fetch",
10018 };
10019 self.pre(&mut request, &info).await?;
10020 let result = self.exec(request, &info).await;
10021 self.post(&result, &info).await?;
10022 let response = result?;
10023 match response.status().as_u16() {
10024 200u16 => Ok(ResponseValue::empty(response)),
10025 400u16..=499u16 => Err(Error::ErrorResponse(
10026 ResponseValue::from_response(response).await?,
10027 )),
10028 500u16..=599u16 => Err(Error::ErrorResponse(
10029 ResponseValue::from_response(response).await?,
10030 )),
10031 _ => Err(Error::UnexpectedResponse(response)),
10032 }
10033 }
10034
10035 pub async fn cache_stats<'a>(
10046 &'a self,
10047 async_: Option<bool>,
10048 group: Option<&'a str>,
10049 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10050 let url = format!("{}/cache/stats", self.baseurl,);
10051 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10052 header_map.append(
10053 ::reqwest::header::HeaderName::from_static("api-version"),
10054 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10055 );
10056 #[allow(unused_mut)]
10057 let mut request = self
10058 .client
10059 .post(url)
10060 .header(
10061 ::reqwest::header::ACCEPT,
10062 ::reqwest::header::HeaderValue::from_static("application/json"),
10063 )
10064 .query(&progenitor_client::QueryParam::new("_async", &async_))
10065 .query(&progenitor_client::QueryParam::new("_group", &group))
10066 .headers(header_map)
10067 .build()?;
10068 let info = OperationInfo {
10069 operation_id: "cache_stats",
10070 };
10071 self.pre(&mut request, &info).await?;
10072 let result = self.exec(request, &info).await;
10073 self.post(&result, &info).await?;
10074 let response = result?;
10075 match response.status().as_u16() {
10076 200u16 => Ok(ResponseValue::empty(response)),
10077 400u16..=499u16 => Err(Error::ErrorResponse(
10078 ResponseValue::from_response(response).await?,
10079 )),
10080 500u16..=599u16 => Err(Error::ErrorResponse(
10081 ResponseValue::from_response(response).await?,
10082 )),
10083 _ => Err(Error::UnexpectedResponse(response)),
10084 }
10085 }
10086
10087 pub async fn config_create<'a>(
10104 &'a self,
10105 async_: Option<bool>,
10106 group: Option<&'a str>,
10107 name: &'a str,
10108 opt: Option<&'a str>,
10109 parameters: &'a str,
10110 type_: &'a str,
10111 ) -> Result<
10112 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10113 Error<types::RcError>,
10114 > {
10115 let url = format!("{}/config/create", self.baseurl,);
10116 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10117 header_map.append(
10118 ::reqwest::header::HeaderName::from_static("api-version"),
10119 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10120 );
10121 #[allow(unused_mut)]
10122 let mut request = self
10123 .client
10124 .post(url)
10125 .header(
10126 ::reqwest::header::ACCEPT,
10127 ::reqwest::header::HeaderValue::from_static("application/json"),
10128 )
10129 .query(&progenitor_client::QueryParam::new("_async", &async_))
10130 .query(&progenitor_client::QueryParam::new("_group", &group))
10131 .query(&progenitor_client::QueryParam::new("name", &name))
10132 .query(&progenitor_client::QueryParam::new("opt", &opt))
10133 .query(&progenitor_client::QueryParam::new(
10134 "parameters",
10135 ¶meters,
10136 ))
10137 .query(&progenitor_client::QueryParam::new("type", &type_))
10138 .headers(header_map)
10139 .build()?;
10140 let info = OperationInfo {
10141 operation_id: "config_create",
10142 };
10143 self.pre(&mut request, &info).await?;
10144 let result = self.exec(request, &info).await;
10145 self.post(&result, &info).await?;
10146 let response = result?;
10147 match response.status().as_u16() {
10148 200u16 => ResponseValue::from_response(response).await,
10149 400u16..=499u16 => Err(Error::ErrorResponse(
10150 ResponseValue::from_response(response).await?,
10151 )),
10152 500u16..=599u16 => Err(Error::ErrorResponse(
10153 ResponseValue::from_response(response).await?,
10154 )),
10155 _ => Err(Error::UnexpectedResponse(response)),
10156 }
10157 }
10158
10159 pub async fn config_delete<'a>(
10171 &'a self,
10172 async_: Option<bool>,
10173 group: Option<&'a str>,
10174 name: &'a str,
10175 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10176 let url = format!("{}/config/delete", self.baseurl,);
10177 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10178 header_map.append(
10179 ::reqwest::header::HeaderName::from_static("api-version"),
10180 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10181 );
10182 #[allow(unused_mut)]
10183 let mut request = self
10184 .client
10185 .post(url)
10186 .header(
10187 ::reqwest::header::ACCEPT,
10188 ::reqwest::header::HeaderValue::from_static("application/json"),
10189 )
10190 .query(&progenitor_client::QueryParam::new("_async", &async_))
10191 .query(&progenitor_client::QueryParam::new("_group", &group))
10192 .query(&progenitor_client::QueryParam::new("name", &name))
10193 .headers(header_map)
10194 .build()?;
10195 let info = OperationInfo {
10196 operation_id: "config_delete",
10197 };
10198 self.pre(&mut request, &info).await?;
10199 let result = self.exec(request, &info).await;
10200 self.post(&result, &info).await?;
10201 let response = result?;
10202 match response.status().as_u16() {
10203 200u16 => Ok(ResponseValue::empty(response)),
10204 400u16..=499u16 => Err(Error::ErrorResponse(
10205 ResponseValue::from_response(response).await?,
10206 )),
10207 500u16..=599u16 => Err(Error::ErrorResponse(
10208 ResponseValue::from_response(response).await?,
10209 )),
10210 _ => Err(Error::UnexpectedResponse(response)),
10211 }
10212 }
10213
10214 pub async fn config_dump<'a>(
10226 &'a self,
10227 async_: Option<bool>,
10228 group: Option<&'a str>,
10229 ) -> Result<
10230 ResponseValue<
10231 ::std::collections::HashMap<
10232 ::std::string::String,
10233 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
10234 >,
10235 >,
10236 Error<types::RcError>,
10237 > {
10238 let url = format!("{}/config/dump", self.baseurl,);
10239 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10240 header_map.append(
10241 ::reqwest::header::HeaderName::from_static("api-version"),
10242 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10243 );
10244 #[allow(unused_mut)]
10245 let mut request = self
10246 .client
10247 .post(url)
10248 .header(
10249 ::reqwest::header::ACCEPT,
10250 ::reqwest::header::HeaderValue::from_static("application/json"),
10251 )
10252 .query(&progenitor_client::QueryParam::new("_async", &async_))
10253 .query(&progenitor_client::QueryParam::new("_group", &group))
10254 .headers(header_map)
10255 .build()?;
10256 let info = OperationInfo {
10257 operation_id: "config_dump",
10258 };
10259 self.pre(&mut request, &info).await?;
10260 let result = self.exec(request, &info).await;
10261 self.post(&result, &info).await?;
10262 let response = result?;
10263 match response.status().as_u16() {
10264 200u16 => ResponseValue::from_response(response).await,
10265 400u16..=499u16 => Err(Error::ErrorResponse(
10266 ResponseValue::from_response(response).await?,
10267 )),
10268 500u16..=599u16 => Err(Error::ErrorResponse(
10269 ResponseValue::from_response(response).await?,
10270 )),
10271 _ => Err(Error::UnexpectedResponse(response)),
10272 }
10273 }
10274
10275 pub async fn config_get<'a>(
10287 &'a self,
10288 async_: Option<bool>,
10289 group: Option<&'a str>,
10290 name: &'a str,
10291 ) -> Result<ResponseValue<types::ConfigGetResponse>, Error<types::RcError>> {
10292 let url = format!("{}/config/get", self.baseurl,);
10293 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10294 header_map.append(
10295 ::reqwest::header::HeaderName::from_static("api-version"),
10296 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10297 );
10298 #[allow(unused_mut)]
10299 let mut request = self
10300 .client
10301 .post(url)
10302 .header(
10303 ::reqwest::header::ACCEPT,
10304 ::reqwest::header::HeaderValue::from_static("application/json"),
10305 )
10306 .query(&progenitor_client::QueryParam::new("_async", &async_))
10307 .query(&progenitor_client::QueryParam::new("_group", &group))
10308 .query(&progenitor_client::QueryParam::new("name", &name))
10309 .headers(header_map)
10310 .build()?;
10311 let info = OperationInfo {
10312 operation_id: "config_get",
10313 };
10314 self.pre(&mut request, &info).await?;
10315 let result = self.exec(request, &info).await;
10316 self.post(&result, &info).await?;
10317 let response = result?;
10318 match response.status().as_u16() {
10319 200u16 => ResponseValue::from_response(response).await,
10320 400u16..=499u16 => Err(Error::ErrorResponse(
10321 ResponseValue::from_response(response).await?,
10322 )),
10323 500u16..=599u16 => Err(Error::ErrorResponse(
10324 ResponseValue::from_response(response).await?,
10325 )),
10326 _ => Err(Error::UnexpectedResponse(response)),
10327 }
10328 }
10329
10330 pub async fn config_listremotes<'a>(
10341 &'a self,
10342 async_: Option<bool>,
10343 group: Option<&'a str>,
10344 ) -> Result<ResponseValue<types::ConfigListremotesResponse>, Error<types::RcError>> {
10345 let url = format!("{}/config/listremotes", self.baseurl,);
10346 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10347 header_map.append(
10348 ::reqwest::header::HeaderName::from_static("api-version"),
10349 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10350 );
10351 #[allow(unused_mut)]
10352 let mut request = self
10353 .client
10354 .post(url)
10355 .header(
10356 ::reqwest::header::ACCEPT,
10357 ::reqwest::header::HeaderValue::from_static("application/json"),
10358 )
10359 .query(&progenitor_client::QueryParam::new("_async", &async_))
10360 .query(&progenitor_client::QueryParam::new("_group", &group))
10361 .headers(header_map)
10362 .build()?;
10363 let info = OperationInfo {
10364 operation_id: "config_listremotes",
10365 };
10366 self.pre(&mut request, &info).await?;
10367 let result = self.exec(request, &info).await;
10368 self.post(&result, &info).await?;
10369 let response = result?;
10370 match response.status().as_u16() {
10371 200u16 => ResponseValue::from_response(response).await,
10372 400u16..=499u16 => Err(Error::ErrorResponse(
10373 ResponseValue::from_response(response).await?,
10374 )),
10375 500u16..=599u16 => Err(Error::ErrorResponse(
10376 ResponseValue::from_response(response).await?,
10377 )),
10378 _ => Err(Error::UnexpectedResponse(response)),
10379 }
10380 }
10381
10382 pub async fn config_password<'a>(
10396 &'a self,
10397 async_: Option<bool>,
10398 group: Option<&'a str>,
10399 name: &'a str,
10400 parameters: &'a str,
10401 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10402 let url = format!("{}/config/password", self.baseurl,);
10403 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10404 header_map.append(
10405 ::reqwest::header::HeaderName::from_static("api-version"),
10406 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10407 );
10408 #[allow(unused_mut)]
10409 let mut request = self
10410 .client
10411 .post(url)
10412 .header(
10413 ::reqwest::header::ACCEPT,
10414 ::reqwest::header::HeaderValue::from_static("application/json"),
10415 )
10416 .query(&progenitor_client::QueryParam::new("_async", &async_))
10417 .query(&progenitor_client::QueryParam::new("_group", &group))
10418 .query(&progenitor_client::QueryParam::new("name", &name))
10419 .query(&progenitor_client::QueryParam::new(
10420 "parameters",
10421 ¶meters,
10422 ))
10423 .headers(header_map)
10424 .build()?;
10425 let info = OperationInfo {
10426 operation_id: "config_password",
10427 };
10428 self.pre(&mut request, &info).await?;
10429 let result = self.exec(request, &info).await;
10430 self.post(&result, &info).await?;
10431 let response = result?;
10432 match response.status().as_u16() {
10433 200u16 => Ok(ResponseValue::empty(response)),
10434 400u16..=499u16 => Err(Error::ErrorResponse(
10435 ResponseValue::from_response(response).await?,
10436 )),
10437 500u16..=599u16 => Err(Error::ErrorResponse(
10438 ResponseValue::from_response(response).await?,
10439 )),
10440 _ => Err(Error::UnexpectedResponse(response)),
10441 }
10442 }
10443
10444 pub async fn config_paths<'a>(
10456 &'a self,
10457 async_: Option<bool>,
10458 group: Option<&'a str>,
10459 ) -> Result<ResponseValue<types::ConfigPathsResponse>, Error<types::RcError>> {
10460 let url = format!("{}/config/paths", self.baseurl,);
10461 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10462 header_map.append(
10463 ::reqwest::header::HeaderName::from_static("api-version"),
10464 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10465 );
10466 #[allow(unused_mut)]
10467 let mut request = self
10468 .client
10469 .post(url)
10470 .header(
10471 ::reqwest::header::ACCEPT,
10472 ::reqwest::header::HeaderValue::from_static("application/json"),
10473 )
10474 .query(&progenitor_client::QueryParam::new("_async", &async_))
10475 .query(&progenitor_client::QueryParam::new("_group", &group))
10476 .headers(header_map)
10477 .build()?;
10478 let info = OperationInfo {
10479 operation_id: "config_paths",
10480 };
10481 self.pre(&mut request, &info).await?;
10482 let result = self.exec(request, &info).await;
10483 self.post(&result, &info).await?;
10484 let response = result?;
10485 match response.status().as_u16() {
10486 200u16 => ResponseValue::from_response(response).await,
10487 400u16..=499u16 => Err(Error::ErrorResponse(
10488 ResponseValue::from_response(response).await?,
10489 )),
10490 500u16..=599u16 => Err(Error::ErrorResponse(
10491 ResponseValue::from_response(response).await?,
10492 )),
10493 _ => Err(Error::UnexpectedResponse(response)),
10494 }
10495 }
10496
10497 pub async fn config_providers<'a>(
10508 &'a self,
10509 async_: Option<bool>,
10510 group: Option<&'a str>,
10511 ) -> Result<ResponseValue<types::ConfigProvidersResponse>, Error<types::RcError>> {
10512 let url = format!("{}/config/providers", self.baseurl,);
10513 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10514 header_map.append(
10515 ::reqwest::header::HeaderName::from_static("api-version"),
10516 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10517 );
10518 #[allow(unused_mut)]
10519 let mut request = self
10520 .client
10521 .post(url)
10522 .header(
10523 ::reqwest::header::ACCEPT,
10524 ::reqwest::header::HeaderValue::from_static("application/json"),
10525 )
10526 .query(&progenitor_client::QueryParam::new("_async", &async_))
10527 .query(&progenitor_client::QueryParam::new("_group", &group))
10528 .headers(header_map)
10529 .build()?;
10530 let info = OperationInfo {
10531 operation_id: "config_providers",
10532 };
10533 self.pre(&mut request, &info).await?;
10534 let result = self.exec(request, &info).await;
10535 self.post(&result, &info).await?;
10536 let response = result?;
10537 match response.status().as_u16() {
10538 200u16 => ResponseValue::from_response(response).await,
10539 400u16..=499u16 => Err(Error::ErrorResponse(
10540 ResponseValue::from_response(response).await?,
10541 )),
10542 500u16..=599u16 => Err(Error::ErrorResponse(
10543 ResponseValue::from_response(response).await?,
10544 )),
10545 _ => Err(Error::UnexpectedResponse(response)),
10546 }
10547 }
10548
10549 pub async fn config_setpath<'a>(
10562 &'a self,
10563 async_: Option<bool>,
10564 group: Option<&'a str>,
10565 path: &'a str,
10566 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10567 let url = format!("{}/config/setpath", self.baseurl,);
10568 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10569 header_map.append(
10570 ::reqwest::header::HeaderName::from_static("api-version"),
10571 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10572 );
10573 #[allow(unused_mut)]
10574 let mut request = self
10575 .client
10576 .post(url)
10577 .header(
10578 ::reqwest::header::ACCEPT,
10579 ::reqwest::header::HeaderValue::from_static("application/json"),
10580 )
10581 .query(&progenitor_client::QueryParam::new("_async", &async_))
10582 .query(&progenitor_client::QueryParam::new("_group", &group))
10583 .query(&progenitor_client::QueryParam::new("path", &path))
10584 .headers(header_map)
10585 .build()?;
10586 let info = OperationInfo {
10587 operation_id: "config_setpath",
10588 };
10589 self.pre(&mut request, &info).await?;
10590 let result = self.exec(request, &info).await;
10591 self.post(&result, &info).await?;
10592 let response = result?;
10593 match response.status().as_u16() {
10594 200u16 => Ok(ResponseValue::empty(response)),
10595 400u16..=499u16 => Err(Error::ErrorResponse(
10596 ResponseValue::from_response(response).await?,
10597 )),
10598 500u16..=599u16 => Err(Error::ErrorResponse(
10599 ResponseValue::from_response(response).await?,
10600 )),
10601 _ => Err(Error::UnexpectedResponse(response)),
10602 }
10603 }
10604
10605 pub async fn config_unlock<'a>(
10617 &'a self,
10618 async_: Option<bool>,
10619 group: Option<&'a str>,
10620 config_password: &'a str,
10621 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10622 let url = format!("{}/config/unlock", self.baseurl,);
10623 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10624 header_map.append(
10625 ::reqwest::header::HeaderName::from_static("api-version"),
10626 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10627 );
10628 #[allow(unused_mut)]
10629 let mut request = self
10630 .client
10631 .post(url)
10632 .header(
10633 ::reqwest::header::ACCEPT,
10634 ::reqwest::header::HeaderValue::from_static("application/json"),
10635 )
10636 .query(&progenitor_client::QueryParam::new("_async", &async_))
10637 .query(&progenitor_client::QueryParam::new("_group", &group))
10638 .query(&progenitor_client::QueryParam::new(
10639 "configPassword",
10640 &config_password,
10641 ))
10642 .headers(header_map)
10643 .build()?;
10644 let info = OperationInfo {
10645 operation_id: "config_unlock",
10646 };
10647 self.pre(&mut request, &info).await?;
10648 let result = self.exec(request, &info).await;
10649 self.post(&result, &info).await?;
10650 let response = result?;
10651 match response.status().as_u16() {
10652 200u16 => Ok(ResponseValue::empty(response)),
10653 400u16..=499u16 => Err(Error::ErrorResponse(
10654 ResponseValue::from_response(response).await?,
10655 )),
10656 500u16..=599u16 => Err(Error::ErrorResponse(
10657 ResponseValue::from_response(response).await?,
10658 )),
10659 _ => Err(Error::UnexpectedResponse(response)),
10660 }
10661 }
10662
10663 pub async fn config_update<'a>(
10679 &'a self,
10680 async_: Option<bool>,
10681 group: Option<&'a str>,
10682 name: &'a str,
10683 opt: Option<&'a str>,
10684 parameters: &'a str,
10685 ) -> Result<
10686 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10687 Error<types::RcError>,
10688 > {
10689 let url = format!("{}/config/update", self.baseurl,);
10690 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10691 header_map.append(
10692 ::reqwest::header::HeaderName::from_static("api-version"),
10693 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10694 );
10695 #[allow(unused_mut)]
10696 let mut request = self
10697 .client
10698 .post(url)
10699 .header(
10700 ::reqwest::header::ACCEPT,
10701 ::reqwest::header::HeaderValue::from_static("application/json"),
10702 )
10703 .query(&progenitor_client::QueryParam::new("_async", &async_))
10704 .query(&progenitor_client::QueryParam::new("_group", &group))
10705 .query(&progenitor_client::QueryParam::new("name", &name))
10706 .query(&progenitor_client::QueryParam::new("opt", &opt))
10707 .query(&progenitor_client::QueryParam::new(
10708 "parameters",
10709 ¶meters,
10710 ))
10711 .headers(header_map)
10712 .build()?;
10713 let info = OperationInfo {
10714 operation_id: "config_update",
10715 };
10716 self.pre(&mut request, &info).await?;
10717 let result = self.exec(request, &info).await;
10718 self.post(&result, &info).await?;
10719 let response = result?;
10720 match response.status().as_u16() {
10721 200u16 => ResponseValue::from_response(response).await,
10722 400u16..=499u16 => Err(Error::ErrorResponse(
10723 ResponseValue::from_response(response).await?,
10724 )),
10725 500u16..=599u16 => Err(Error::ErrorResponse(
10726 ResponseValue::from_response(response).await?,
10727 )),
10728 _ => Err(Error::UnexpectedResponse(response)),
10729 }
10730 }
10731
10732 pub async fn core_version<'a>(
10744 &'a self,
10745 async_: Option<bool>,
10746 group: Option<&'a str>,
10747 ) -> Result<ResponseValue<types::CoreVersionResponse>, Error<types::RcError>> {
10748 let url = format!("{}/core/version", self.baseurl,);
10749 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10750 header_map.append(
10751 ::reqwest::header::HeaderName::from_static("api-version"),
10752 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10753 );
10754 #[allow(unused_mut)]
10755 let mut request = self
10756 .client
10757 .post(url)
10758 .header(
10759 ::reqwest::header::ACCEPT,
10760 ::reqwest::header::HeaderValue::from_static("application/json"),
10761 )
10762 .query(&progenitor_client::QueryParam::new("_async", &async_))
10763 .query(&progenitor_client::QueryParam::new("_group", &group))
10764 .headers(header_map)
10765 .build()?;
10766 let info = OperationInfo {
10767 operation_id: "core_version",
10768 };
10769 self.pre(&mut request, &info).await?;
10770 let result = self.exec(request, &info).await;
10771 self.post(&result, &info).await?;
10772 let response = result?;
10773 match response.status().as_u16() {
10774 200u16 => ResponseValue::from_response(response).await,
10775 400u16..=499u16 => Err(Error::ErrorResponse(
10776 ResponseValue::from_response(response).await?,
10777 )),
10778 500u16..=599u16 => Err(Error::ErrorResponse(
10779 ResponseValue::from_response(response).await?,
10780 )),
10781 _ => Err(Error::UnexpectedResponse(response)),
10782 }
10783 }
10784
10785 pub async fn core_stats<'a>(
10801 &'a self,
10802 async_: Option<bool>,
10803 _group: Option<&'a str>,
10804 group: Option<&'a str>,
10805 short: Option<bool>
10806 ) -> Result<ResponseValue<types::CoreStatsResponse>, Error<types::RcError>> {
10807 let url = format!("{}/core/stats", self.baseurl,);
10808 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10809 header_map.append(
10810 ::reqwest::header::HeaderName::from_static("api-version"),
10811 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10812 );
10813 #[allow(unused_mut)]
10814 let mut request = self
10815 .client
10816 .post(url)
10817 .header(
10818 ::reqwest::header::ACCEPT,
10819 ::reqwest::header::HeaderValue::from_static("application/json"),
10820 )
10821 .query(&progenitor_client::QueryParam::new("_async", &async_))
10822 .query(&progenitor_client::QueryParam::new("_group", &group))
10823 .query(&progenitor_client::QueryParam::new("group", &group))
10824 .query(&progenitor_client::QueryParam::new("short", &short))
10825 .headers(header_map)
10826 .build()?;
10827 let info = OperationInfo {
10828 operation_id: "core_stats",
10829 };
10830 self.pre(&mut request, &info).await?;
10831 let result = self.exec(request, &info).await;
10832 self.post(&result, &info).await?;
10833 let response = result?;
10834 match response.status().as_u16() {
10835 200u16 => ResponseValue::from_response(response).await,
10836 400u16..=499u16 => Err(Error::ErrorResponse(
10837 ResponseValue::from_response(response).await?,
10838 )),
10839 500u16..=599u16 => Err(Error::ErrorResponse(
10840 ResponseValue::from_response(response).await?,
10841 )),
10842 _ => Err(Error::UnexpectedResponse(response)),
10843 }
10844 }
10845
10846 pub async fn job_batch<'a>(
10860 &'a self,
10861 async_: Option<bool>,
10862 concurrency: Option<i64>,
10863 inputs: Option<&'a ::std::vec::Vec<types::JobBatchInputsItem>>,
10864 ) -> Result<ResponseValue<types::JobBatchResponse>, Error<types::RcError>> {
10865 let url = format!("{}/job/batch", self.baseurl,);
10866 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10867 header_map.append(
10868 ::reqwest::header::HeaderName::from_static("api-version"),
10869 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10870 );
10871 #[allow(unused_mut)]
10872 let mut request = self
10873 .client
10874 .post(url)
10875 .header(
10876 ::reqwest::header::ACCEPT,
10877 ::reqwest::header::HeaderValue::from_static("application/json"),
10878 )
10879 .query(&progenitor_client::QueryParam::new("_async", &async_))
10880 .query(&progenitor_client::QueryParam::new(
10881 "concurrency",
10882 &concurrency,
10883 ))
10884 .query(&progenitor_client::QueryParam::new("inputs", &inputs))
10885 .headers(header_map)
10886 .build()?;
10887 let info = OperationInfo {
10888 operation_id: "job_batch",
10889 };
10890 self.pre(&mut request, &info).await?;
10891 let result = self.exec(request, &info).await;
10892 self.post(&result, &info).await?;
10893 let response = result?;
10894 match response.status().as_u16() {
10895 200u16 => ResponseValue::from_response(response).await,
10896 400u16..=499u16 => Err(Error::ErrorResponse(
10897 ResponseValue::from_response(response).await?,
10898 )),
10899 500u16..=599u16 => Err(Error::ErrorResponse(
10900 ResponseValue::from_response(response).await?,
10901 )),
10902 _ => Err(Error::UnexpectedResponse(response)),
10903 }
10904 }
10905
10906 pub async fn job_list<'a>(
10916 &'a self,
10917 async_: Option<bool>,
10918 ) -> Result<ResponseValue<types::JobListResponse>, Error<types::RcError>> {
10919 let url = format!("{}/job/list", self.baseurl,);
10920 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10921 header_map.append(
10922 ::reqwest::header::HeaderName::from_static("api-version"),
10923 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10924 );
10925 #[allow(unused_mut)]
10926 let mut request = self
10927 .client
10928 .post(url)
10929 .header(
10930 ::reqwest::header::ACCEPT,
10931 ::reqwest::header::HeaderValue::from_static("application/json"),
10932 )
10933 .query(&progenitor_client::QueryParam::new("_async", &async_))
10934 .headers(header_map)
10935 .build()?;
10936 let info = OperationInfo {
10937 operation_id: "job_list",
10938 };
10939 self.pre(&mut request, &info).await?;
10940 let result = self.exec(request, &info).await;
10941 self.post(&result, &info).await?;
10942 let response = result?;
10943 match response.status().as_u16() {
10944 200u16 => ResponseValue::from_response(response).await,
10945 400u16..=499u16 => Err(Error::ErrorResponse(
10946 ResponseValue::from_response(response).await?,
10947 )),
10948 500u16..=599u16 => Err(Error::ErrorResponse(
10949 ResponseValue::from_response(response).await?,
10950 )),
10951 _ => Err(Error::UnexpectedResponse(response)),
10952 }
10953 }
10954
10955 pub async fn job_status<'a>(
10967 &'a self,
10968 async_: Option<bool>,
10969 jobid: f64,
10970 ) -> Result<ResponseValue<types::JobStatusResponse>, Error<types::RcError>> {
10971 let url = format!("{}/job/status", self.baseurl,);
10972 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10973 header_map.append(
10974 ::reqwest::header::HeaderName::from_static("api-version"),
10975 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10976 );
10977 #[allow(unused_mut)]
10978 let mut request = self
10979 .client
10980 .post(url)
10981 .header(
10982 ::reqwest::header::ACCEPT,
10983 ::reqwest::header::HeaderValue::from_static("application/json"),
10984 )
10985 .query(&progenitor_client::QueryParam::new("_async", &async_))
10986 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
10987 .headers(header_map)
10988 .build()?;
10989 let info = OperationInfo {
10990 operation_id: "job_status",
10991 };
10992 self.pre(&mut request, &info).await?;
10993 let result = self.exec(request, &info).await;
10994 self.post(&result, &info).await?;
10995 let response = result?;
10996 match response.status().as_u16() {
10997 200u16 => ResponseValue::from_response(response).await,
10998 400u16..=499u16 => Err(Error::ErrorResponse(
10999 ResponseValue::from_response(response).await?,
11000 )),
11001 500u16..=599u16 => Err(Error::ErrorResponse(
11002 ResponseValue::from_response(response).await?,
11003 )),
11004 _ => Err(Error::UnexpectedResponse(response)),
11005 }
11006 }
11007
11008 pub async fn job_stop<'a>(
11019 &'a self,
11020 async_: Option<bool>,
11021 jobid: f64,
11022 ) -> Result<
11023 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11024 Error<types::RcError>,
11025 > {
11026 let url = format!("{}/job/stop", self.baseurl,);
11027 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11028 header_map.append(
11029 ::reqwest::header::HeaderName::from_static("api-version"),
11030 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11031 );
11032 #[allow(unused_mut)]
11033 let mut request = self
11034 .client
11035 .post(url)
11036 .header(
11037 ::reqwest::header::ACCEPT,
11038 ::reqwest::header::HeaderValue::from_static("application/json"),
11039 )
11040 .query(&progenitor_client::QueryParam::new("_async", &async_))
11041 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
11042 .headers(header_map)
11043 .build()?;
11044 let info = OperationInfo {
11045 operation_id: "job_stop",
11046 };
11047 self.pre(&mut request, &info).await?;
11048 let result = self.exec(request, &info).await;
11049 self.post(&result, &info).await?;
11050 let response = result?;
11051 match response.status().as_u16() {
11052 200u16 => ResponseValue::from_response(response).await,
11053 400u16..=499u16 => Err(Error::ErrorResponse(
11054 ResponseValue::from_response(response).await?,
11055 )),
11056 500u16..=599u16 => Err(Error::ErrorResponse(
11057 ResponseValue::from_response(response).await?,
11058 )),
11059 _ => Err(Error::UnexpectedResponse(response)),
11060 }
11061 }
11062
11063 pub async fn job_stopgroup<'a>(
11074 &'a self,
11075 async_: Option<bool>,
11076 group: &'a str,
11077 ) -> Result<
11078 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11079 Error<types::RcError>,
11080 > {
11081 let url = format!("{}/job/stopgroup", self.baseurl,);
11082 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11083 header_map.append(
11084 ::reqwest::header::HeaderName::from_static("api-version"),
11085 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11086 );
11087 #[allow(unused_mut)]
11088 let mut request = self
11089 .client
11090 .post(url)
11091 .header(
11092 ::reqwest::header::ACCEPT,
11093 ::reqwest::header::HeaderValue::from_static("application/json"),
11094 )
11095 .query(&progenitor_client::QueryParam::new("_async", &async_))
11096 .query(&progenitor_client::QueryParam::new("group", &group))
11097 .headers(header_map)
11098 .build()?;
11099 let info = OperationInfo {
11100 operation_id: "job_stopgroup",
11101 };
11102 self.pre(&mut request, &info).await?;
11103 let result = self.exec(request, &info).await;
11104 self.post(&result, &info).await?;
11105 let response = result?;
11106 match response.status().as_u16() {
11107 200u16 => ResponseValue::from_response(response).await,
11108 400u16..=499u16 => Err(Error::ErrorResponse(
11109 ResponseValue::from_response(response).await?,
11110 )),
11111 500u16..=599u16 => Err(Error::ErrorResponse(
11112 ResponseValue::from_response(response).await?,
11113 )),
11114 _ => Err(Error::UnexpectedResponse(response)),
11115 }
11116 }
11117
11118 pub async fn operations_list<'a>(
11149 &'a self,
11150 async_: Option<bool>,
11151 group: Option<&'a str>,
11152 dirs_only: Option<bool>,
11153 files_only: Option<bool>,
11154 fs: &'a str,
11155 hash_types: Option<&'a ::std::vec::Vec<::std::string::String>>,
11156 metadata: Option<bool>,
11157 no_mime_type: Option<bool>,
11158 no_mod_time: Option<bool>,
11159 opt: Option<&'a str>,
11160 recurse: Option<bool>,
11161 remote: &'a str,
11162 show_encrypted: Option<bool>,
11163 show_hash: Option<bool>,
11164 show_orig_i_ds: Option<bool>,
11165 ) -> Result<ResponseValue<types::OperationsListResponse>, Error<types::RcError>> {
11166 let url = format!("{}/operations/list", self.baseurl,);
11167 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11168 header_map.append(
11169 ::reqwest::header::HeaderName::from_static("api-version"),
11170 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11171 );
11172 #[allow(unused_mut)]
11173 let mut request = self
11174 .client
11175 .post(url)
11176 .header(
11177 ::reqwest::header::ACCEPT,
11178 ::reqwest::header::HeaderValue::from_static("application/json"),
11179 )
11180 .query(&progenitor_client::QueryParam::new("_async", &async_))
11181 .query(&progenitor_client::QueryParam::new("_group", &group))
11182 .query(&progenitor_client::QueryParam::new("dirsOnly", &dirs_only))
11183 .query(&progenitor_client::QueryParam::new(
11184 "filesOnly",
11185 &files_only,
11186 ))
11187 .query(&progenitor_client::QueryParam::new("fs", &fs))
11188 .query(&progenitor_client::QueryParam::new(
11189 "hashTypes",
11190 &hash_types,
11191 ))
11192 .query(&progenitor_client::QueryParam::new("metadata", &metadata))
11193 .query(&progenitor_client::QueryParam::new(
11194 "noMimeType",
11195 &no_mime_type,
11196 ))
11197 .query(&progenitor_client::QueryParam::new(
11198 "noModTime",
11199 &no_mod_time,
11200 ))
11201 .query(&progenitor_client::QueryParam::new("opt", &opt))
11202 .query(&progenitor_client::QueryParam::new("recurse", &recurse))
11203 .query(&progenitor_client::QueryParam::new("remote", &remote))
11204 .query(&progenitor_client::QueryParam::new(
11205 "showEncrypted",
11206 &show_encrypted,
11207 ))
11208 .query(&progenitor_client::QueryParam::new("showHash", &show_hash))
11209 .query(&progenitor_client::QueryParam::new(
11210 "showOrigIDs",
11211 &show_orig_i_ds,
11212 ))
11213 .headers(header_map)
11214 .build()?;
11215 let info = OperationInfo {
11216 operation_id: "operations_list",
11217 };
11218 self.pre(&mut request, &info).await?;
11219 let result = self.exec(request, &info).await;
11220 self.post(&result, &info).await?;
11221 let response = result?;
11222 match response.status().as_u16() {
11223 200u16 => ResponseValue::from_response(response).await,
11224 400u16..=499u16 => Err(Error::ErrorResponse(
11225 ResponseValue::from_response(response).await?,
11226 )),
11227 500u16..=599u16 => Err(Error::ErrorResponse(
11228 ResponseValue::from_response(response).await?,
11229 )),
11230 _ => Err(Error::UnexpectedResponse(response)),
11231 }
11232 }
11233
11234 pub async fn operations_stat<'a>(
11250 &'a self,
11251 async_: Option<bool>,
11252 group: Option<&'a str>,
11253 fs: &'a str,
11254 opt: Option<&'a str>,
11255 remote: &'a str,
11256 ) -> Result<ResponseValue<types::OperationsStatResponse>, Error<types::RcError>> {
11257 let url = format!("{}/operations/stat", self.baseurl,);
11258 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11259 header_map.append(
11260 ::reqwest::header::HeaderName::from_static("api-version"),
11261 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11262 );
11263 #[allow(unused_mut)]
11264 let mut request = self
11265 .client
11266 .post(url)
11267 .header(
11268 ::reqwest::header::ACCEPT,
11269 ::reqwest::header::HeaderValue::from_static("application/json"),
11270 )
11271 .query(&progenitor_client::QueryParam::new("_async", &async_))
11272 .query(&progenitor_client::QueryParam::new("_group", &group))
11273 .query(&progenitor_client::QueryParam::new("fs", &fs))
11274 .query(&progenitor_client::QueryParam::new("opt", &opt))
11275 .query(&progenitor_client::QueryParam::new("remote", &remote))
11276 .headers(header_map)
11277 .build()?;
11278 let info = OperationInfo {
11279 operation_id: "operations_stat",
11280 };
11281 self.pre(&mut request, &info).await?;
11282 let result = self.exec(request, &info).await;
11283 self.post(&result, &info).await?;
11284 let response = result?;
11285 match response.status().as_u16() {
11286 200u16 => ResponseValue::from_response(response).await,
11287 400u16..=499u16 => Err(Error::ErrorResponse(
11288 ResponseValue::from_response(response).await?,
11289 )),
11290 500u16..=599u16 => Err(Error::ErrorResponse(
11291 ResponseValue::from_response(response).await?,
11292 )),
11293 _ => Err(Error::UnexpectedResponse(response)),
11294 }
11295 }
11296
11297 pub async fn operations_about<'a>(
11310 &'a self,
11311 async_: Option<bool>,
11312 group: Option<&'a str>,
11313 fs: &'a str,
11314 ) -> Result<ResponseValue<types::OperationsAboutResponse>, Error<types::RcError>> {
11315 let url = format!("{}/operations/about", self.baseurl,);
11316 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11317 header_map.append(
11318 ::reqwest::header::HeaderName::from_static("api-version"),
11319 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11320 );
11321 #[allow(unused_mut)]
11322 let mut request = self
11323 .client
11324 .post(url)
11325 .header(
11326 ::reqwest::header::ACCEPT,
11327 ::reqwest::header::HeaderValue::from_static("application/json"),
11328 )
11329 .query(&progenitor_client::QueryParam::new("_async", &async_))
11330 .query(&progenitor_client::QueryParam::new("_group", &group))
11331 .query(&progenitor_client::QueryParam::new("fs", &fs))
11332 .headers(header_map)
11333 .build()?;
11334 let info = OperationInfo {
11335 operation_id: "operations_about",
11336 };
11337 self.pre(&mut request, &info).await?;
11338 let result = self.exec(request, &info).await;
11339 self.post(&result, &info).await?;
11340 let response = result?;
11341 match response.status().as_u16() {
11342 200u16 => ResponseValue::from_response(response).await,
11343 400u16..=499u16 => Err(Error::ErrorResponse(
11344 ResponseValue::from_response(response).await?,
11345 )),
11346 500u16..=599u16 => Err(Error::ErrorResponse(
11347 ResponseValue::from_response(response).await?,
11348 )),
11349 _ => Err(Error::UnexpectedResponse(response)),
11350 }
11351 }
11352
11353 pub async fn operations_uploadfile<'a, B: Into<reqwest::Body>>(
11368 &'a self,
11369 async_: Option<bool>,
11370 group: Option<&'a str>,
11371 fs: &'a str,
11372 remote: &'a str,
11373 body: B,
11374 ) -> Result<
11375 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11376 Error<types::RcError>,
11377 > {
11378 let url = format!("{}/operations/uploadfile", self.baseurl,);
11379 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11380 header_map.append(
11381 ::reqwest::header::HeaderName::from_static("api-version"),
11382 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11383 );
11384 #[allow(unused_mut)]
11385 let mut request = self
11386 .client
11387 .post(url)
11388 .header(
11389 ::reqwest::header::ACCEPT,
11390 ::reqwest::header::HeaderValue::from_static("application/json"),
11391 )
11392 .header(
11393 ::reqwest::header::CONTENT_TYPE,
11394 ::reqwest::header::HeaderValue::from_static("application/octet-stream"),
11395 )
11396 .body(body)
11397 .query(&progenitor_client::QueryParam::new("_async", &async_))
11398 .query(&progenitor_client::QueryParam::new("_group", &group))
11399 .query(&progenitor_client::QueryParam::new("fs", &fs))
11400 .query(&progenitor_client::QueryParam::new("remote", &remote))
11401 .headers(header_map)
11402 .build()?;
11403 let info = OperationInfo {
11404 operation_id: "operations_uploadfile",
11405 };
11406 self.pre(&mut request, &info).await?;
11407 let result = self.exec(request, &info).await;
11408 self.post(&result, &info).await?;
11409 let response = result?;
11410 match response.status().as_u16() {
11411 200u16 => ResponseValue::from_response(response).await,
11412 400u16..=499u16 => Err(Error::ErrorResponse(
11413 ResponseValue::from_response(response).await?,
11414 )),
11415 500u16..=599u16 => Err(Error::ErrorResponse(
11416 ResponseValue::from_response(response).await?,
11417 )),
11418 _ => Err(Error::UnexpectedResponse(response)),
11419 }
11420 }
11421
11422 pub async fn operations_purge<'a>(
11437 &'a self,
11438 async_: Option<bool>,
11439 config: Option<&'a str>,
11440 filter: Option<&'a str>,
11441 group: Option<&'a str>,
11442 fs: &'a str,
11443 remote: &'a str,
11444 ) -> Result<
11445 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11446 Error<types::RcError>,
11447 > {
11448 let url = format!("{}/operations/purge", self.baseurl,);
11449 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11450 header_map.append(
11451 ::reqwest::header::HeaderName::from_static("api-version"),
11452 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11453 );
11454 #[allow(unused_mut)]
11455 let mut request = self
11456 .client
11457 .post(url)
11458 .header(
11459 ::reqwest::header::ACCEPT,
11460 ::reqwest::header::HeaderValue::from_static("application/json"),
11461 )
11462 .query(&progenitor_client::QueryParam::new("_async", &async_))
11463 .query(&progenitor_client::QueryParam::new("_config", &config))
11464 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11465 .query(&progenitor_client::QueryParam::new("_group", &group))
11466 .query(&progenitor_client::QueryParam::new("fs", &fs))
11467 .query(&progenitor_client::QueryParam::new("remote", &remote))
11468 .headers(header_map)
11469 .build()?;
11470 let info = OperationInfo {
11471 operation_id: "operations_purge",
11472 };
11473 self.pre(&mut request, &info).await?;
11474 let result = self.exec(request, &info).await;
11475 self.post(&result, &info).await?;
11476 let response = result?;
11477 match response.status().as_u16() {
11478 200u16 => ResponseValue::from_response(response).await,
11479 400u16..=499u16 => Err(Error::ErrorResponse(
11480 ResponseValue::from_response(response).await?,
11481 )),
11482 500u16..=599u16 => Err(Error::ErrorResponse(
11483 ResponseValue::from_response(response).await?,
11484 )),
11485 _ => Err(Error::UnexpectedResponse(response)),
11486 }
11487 }
11488
11489 pub async fn operations_mkdir<'a>(
11502 &'a self,
11503 async_: Option<bool>,
11504 group: Option<&'a str>,
11505 fs: &'a str,
11506 remote: &'a str,
11507 ) -> Result<
11508 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11509 Error<types::RcError>,
11510 > {
11511 let url = format!("{}/operations/mkdir", self.baseurl,);
11512 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11513 header_map.append(
11514 ::reqwest::header::HeaderName::from_static("api-version"),
11515 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11516 );
11517 #[allow(unused_mut)]
11518 let mut request = self
11519 .client
11520 .post(url)
11521 .header(
11522 ::reqwest::header::ACCEPT,
11523 ::reqwest::header::HeaderValue::from_static("application/json"),
11524 )
11525 .query(&progenitor_client::QueryParam::new("_async", &async_))
11526 .query(&progenitor_client::QueryParam::new("_group", &group))
11527 .query(&progenitor_client::QueryParam::new("fs", &fs))
11528 .query(&progenitor_client::QueryParam::new("remote", &remote))
11529 .headers(header_map)
11530 .build()?;
11531 let info = OperationInfo {
11532 operation_id: "operations_mkdir",
11533 };
11534 self.pre(&mut request, &info).await?;
11535 let result = self.exec(request, &info).await;
11536 self.post(&result, &info).await?;
11537 let response = result?;
11538 match response.status().as_u16() {
11539 200u16 => ResponseValue::from_response(response).await,
11540 400u16..=499u16 => Err(Error::ErrorResponse(
11541 ResponseValue::from_response(response).await?,
11542 )),
11543 500u16..=599u16 => Err(Error::ErrorResponse(
11544 ResponseValue::from_response(response).await?,
11545 )),
11546 _ => Err(Error::UnexpectedResponse(response)),
11547 }
11548 }
11549
11550 pub async fn operations_rmdir<'a>(
11563 &'a self,
11564 async_: Option<bool>,
11565 group: Option<&'a str>,
11566 fs: &'a str,
11567 remote: &'a str,
11568 ) -> Result<
11569 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11570 Error<types::RcError>,
11571 > {
11572 let url = format!("{}/operations/rmdir", self.baseurl,);
11573 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11574 header_map.append(
11575 ::reqwest::header::HeaderName::from_static("api-version"),
11576 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11577 );
11578 #[allow(unused_mut)]
11579 let mut request = self
11580 .client
11581 .post(url)
11582 .header(
11583 ::reqwest::header::ACCEPT,
11584 ::reqwest::header::HeaderValue::from_static("application/json"),
11585 )
11586 .query(&progenitor_client::QueryParam::new("_async", &async_))
11587 .query(&progenitor_client::QueryParam::new("_group", &group))
11588 .query(&progenitor_client::QueryParam::new("fs", &fs))
11589 .query(&progenitor_client::QueryParam::new("remote", &remote))
11590 .headers(header_map)
11591 .build()?;
11592 let info = OperationInfo {
11593 operation_id: "operations_rmdir",
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 operations_check<'a>(
11644 &'a self,
11645 async_: Option<bool>,
11646 group: Option<&'a str>,
11647 check_file_fs: Option<&'a str>,
11648 check_file_hash: Option<&'a str>,
11649 check_file_remote: Option<&'a str>,
11650 combined: Option<bool>,
11651 differ: Option<bool>,
11652 download: Option<bool>,
11653 dst_fs: &'a str,
11654 error: Option<bool>,
11655 match_: Option<bool>,
11656 missing_on_dst: Option<bool>,
11657 missing_on_src: Option<bool>,
11658 one_way: Option<bool>,
11659 src_fs: &'a str,
11660 ) -> Result<ResponseValue<types::OperationsCheckResponse>, Error<types::RcError>> {
11661 let url = format!("{}/operations/check", self.baseurl,);
11662 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11663 header_map.append(
11664 ::reqwest::header::HeaderName::from_static("api-version"),
11665 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11666 );
11667 #[allow(unused_mut)]
11668 let mut request = self
11669 .client
11670 .post(url)
11671 .header(
11672 ::reqwest::header::ACCEPT,
11673 ::reqwest::header::HeaderValue::from_static("application/json"),
11674 )
11675 .query(&progenitor_client::QueryParam::new("_async", &async_))
11676 .query(&progenitor_client::QueryParam::new("_group", &group))
11677 .query(&progenitor_client::QueryParam::new(
11678 "checkFileFs",
11679 &check_file_fs,
11680 ))
11681 .query(&progenitor_client::QueryParam::new(
11682 "checkFileHash",
11683 &check_file_hash,
11684 ))
11685 .query(&progenitor_client::QueryParam::new(
11686 "checkFileRemote",
11687 &check_file_remote,
11688 ))
11689 .query(&progenitor_client::QueryParam::new("combined", &combined))
11690 .query(&progenitor_client::QueryParam::new("differ", &differ))
11691 .query(&progenitor_client::QueryParam::new("download", &download))
11692 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11693 .query(&progenitor_client::QueryParam::new("error", &error))
11694 .query(&progenitor_client::QueryParam::new("match", &match_))
11695 .query(&progenitor_client::QueryParam::new(
11696 "missingOnDst",
11697 &missing_on_dst,
11698 ))
11699 .query(&progenitor_client::QueryParam::new(
11700 "missingOnSrc",
11701 &missing_on_src,
11702 ))
11703 .query(&progenitor_client::QueryParam::new("oneWay", &one_way))
11704 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11705 .headers(header_map)
11706 .build()?;
11707 let info = OperationInfo {
11708 operation_id: "operations_check",
11709 };
11710 self.pre(&mut request, &info).await?;
11711 let result = self.exec(request, &info).await;
11712 self.post(&result, &info).await?;
11713 let response = result?;
11714 match response.status().as_u16() {
11715 200u16 => ResponseValue::from_response(response).await,
11716 400u16..=499u16 => Err(Error::ErrorResponse(
11717 ResponseValue::from_response(response).await?,
11718 )),
11719 500u16..=599u16 => Err(Error::ErrorResponse(
11720 ResponseValue::from_response(response).await?,
11721 )),
11722 _ => Err(Error::UnexpectedResponse(response)),
11723 }
11724 }
11725
11726 pub async fn sync_sync<'a>(
11744 &'a self,
11745 async_: Option<bool>,
11746 config: Option<&'a str>,
11747 filter: Option<&'a str>,
11748 group: Option<&'a str>,
11749 create_empty_src_dirs: Option<bool>,
11750 dst_fs: &'a str,
11751 src_fs: &'a str,
11752 ) -> Result<
11753 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11754 Error<types::RcError>,
11755 > {
11756 let url = format!("{}/sync/sync", self.baseurl,);
11757 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11758 header_map.append(
11759 ::reqwest::header::HeaderName::from_static("api-version"),
11760 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11761 );
11762 #[allow(unused_mut)]
11763 let mut request = self
11764 .client
11765 .post(url)
11766 .header(
11767 ::reqwest::header::ACCEPT,
11768 ::reqwest::header::HeaderValue::from_static("application/json"),
11769 )
11770 .query(&progenitor_client::QueryParam::new("_async", &async_))
11771 .query(&progenitor_client::QueryParam::new("_config", &config))
11772 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11773 .query(&progenitor_client::QueryParam::new("_group", &group))
11774 .query(&progenitor_client::QueryParam::new(
11775 "createEmptySrcDirs",
11776 &create_empty_src_dirs,
11777 ))
11778 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11779 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11780 .headers(header_map)
11781 .build()?;
11782 let info = OperationInfo {
11783 operation_id: "sync_sync",
11784 };
11785 self.pre(&mut request, &info).await?;
11786 let result = self.exec(request, &info).await;
11787 self.post(&result, &info).await?;
11788 let response = result?;
11789 match response.status().as_u16() {
11790 200u16 => ResponseValue::from_response(response).await,
11791 400u16..=499u16 => Err(Error::ErrorResponse(
11792 ResponseValue::from_response(response).await?,
11793 )),
11794 500u16..=599u16 => Err(Error::ErrorResponse(
11795 ResponseValue::from_response(response).await?,
11796 )),
11797 _ => Err(Error::UnexpectedResponse(response)),
11798 }
11799 }
11800
11801 pub async fn sync_copy<'a>(
11819 &'a self,
11820 async_: Option<bool>,
11821 config: Option<&'a str>,
11822 filter: Option<&'a str>,
11823 group: Option<&'a str>,
11824 create_empty_src_dirs: Option<bool>,
11825 dst_fs: &'a str,
11826 src_fs: &'a str,
11827 ) -> Result<
11828 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11829 Error<types::RcError>,
11830 > {
11831 let url = format!("{}/sync/copy", self.baseurl,);
11832 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11833 header_map.append(
11834 ::reqwest::header::HeaderName::from_static("api-version"),
11835 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11836 );
11837 #[allow(unused_mut)]
11838 let mut request = self
11839 .client
11840 .post(url)
11841 .header(
11842 ::reqwest::header::ACCEPT,
11843 ::reqwest::header::HeaderValue::from_static("application/json"),
11844 )
11845 .query(&progenitor_client::QueryParam::new("_async", &async_))
11846 .query(&progenitor_client::QueryParam::new("_config", &config))
11847 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11848 .query(&progenitor_client::QueryParam::new("_group", &group))
11849 .query(&progenitor_client::QueryParam::new(
11850 "createEmptySrcDirs",
11851 &create_empty_src_dirs,
11852 ))
11853 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11854 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11855 .headers(header_map)
11856 .build()?;
11857 let info = OperationInfo {
11858 operation_id: "sync_copy",
11859 };
11860 self.pre(&mut request, &info).await?;
11861 let result = self.exec(request, &info).await;
11862 self.post(&result, &info).await?;
11863 let response = result?;
11864 match response.status().as_u16() {
11865 200u16 => ResponseValue::from_response(response).await,
11866 400u16..=499u16 => Err(Error::ErrorResponse(
11867 ResponseValue::from_response(response).await?,
11868 )),
11869 500u16..=599u16 => Err(Error::ErrorResponse(
11870 ResponseValue::from_response(response).await?,
11871 )),
11872 _ => Err(Error::UnexpectedResponse(response)),
11873 }
11874 }
11875
11876 pub async fn sync_move<'a>(
11896 &'a self,
11897 async_: Option<bool>,
11898 config: Option<&'a str>,
11899 filter: Option<&'a str>,
11900 group: Option<&'a str>,
11901 create_empty_src_dirs: Option<bool>,
11902 delete_empty_src_dirs: Option<bool>,
11903 dst_fs: &'a str,
11904 src_fs: &'a str,
11905 ) -> Result<
11906 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11907 Error<types::RcError>,
11908 > {
11909 let url = format!("{}/sync/move", self.baseurl,);
11910 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11911 header_map.append(
11912 ::reqwest::header::HeaderName::from_static("api-version"),
11913 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11914 );
11915 #[allow(unused_mut)]
11916 let mut request = self
11917 .client
11918 .post(url)
11919 .header(
11920 ::reqwest::header::ACCEPT,
11921 ::reqwest::header::HeaderValue::from_static("application/json"),
11922 )
11923 .query(&progenitor_client::QueryParam::new("_async", &async_))
11924 .query(&progenitor_client::QueryParam::new("_config", &config))
11925 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11926 .query(&progenitor_client::QueryParam::new("_group", &group))
11927 .query(&progenitor_client::QueryParam::new(
11928 "createEmptySrcDirs",
11929 &create_empty_src_dirs,
11930 ))
11931 .query(&progenitor_client::QueryParam::new(
11932 "deleteEmptySrcDirs",
11933 &delete_empty_src_dirs,
11934 ))
11935 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11936 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11937 .headers(header_map)
11938 .build()?;
11939 let info = OperationInfo {
11940 operation_id: "sync_move",
11941 };
11942 self.pre(&mut request, &info).await?;
11943 let result = self.exec(request, &info).await;
11944 self.post(&result, &info).await?;
11945 let response = result?;
11946 match response.status().as_u16() {
11947 200u16 => ResponseValue::from_response(response).await,
11948 400u16..=499u16 => Err(Error::ErrorResponse(
11949 ResponseValue::from_response(response).await?,
11950 )),
11951 500u16..=599u16 => Err(Error::ErrorResponse(
11952 ResponseValue::from_response(response).await?,
11953 )),
11954 _ => Err(Error::UnexpectedResponse(response)),
11955 }
11956 }
11957
11958 pub async fn sync_bisync<'a>(
12001 &'a self,
12002 async_: Option<bool>,
12003 config: Option<&'a str>,
12004 filter: Option<&'a str>,
12005 group: Option<&'a str>,
12006 backupdir1: Option<&'a str>,
12007 backupdir2: Option<&'a str>,
12008 check_access: Option<bool>,
12009 check_filename: Option<&'a str>,
12010 check_sync: Option<bool>,
12011 create_empty_src_dirs: Option<bool>,
12012 dry_run: Option<bool>,
12013 filters_file: Option<&'a str>,
12014 force: Option<bool>,
12015 ignore_listing_checksum: Option<bool>,
12016 max_delete: Option<f64>,
12017 no_cleanup: Option<bool>,
12018 path1: &'a str,
12019 path2: &'a str,
12020 remove_empty_dirs: Option<bool>,
12021 resilient: Option<bool>,
12022 resync: Option<bool>,
12023 workdir: Option<&'a str>,
12024 ) -> Result<
12025 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12026 Error<types::RcError>,
12027 > {
12028 let url = format!("{}/sync/bisync", self.baseurl,);
12029 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12030 header_map.append(
12031 ::reqwest::header::HeaderName::from_static("api-version"),
12032 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12033 );
12034 #[allow(unused_mut)]
12035 let mut request = self
12036 .client
12037 .post(url)
12038 .header(
12039 ::reqwest::header::ACCEPT,
12040 ::reqwest::header::HeaderValue::from_static("application/json"),
12041 )
12042 .query(&progenitor_client::QueryParam::new("_async", &async_))
12043 .query(&progenitor_client::QueryParam::new("_config", &config))
12044 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12045 .query(&progenitor_client::QueryParam::new("_group", &group))
12046 .query(&progenitor_client::QueryParam::new(
12047 "backupdir1",
12048 &backupdir1,
12049 ))
12050 .query(&progenitor_client::QueryParam::new(
12051 "backupdir2",
12052 &backupdir2,
12053 ))
12054 .query(&progenitor_client::QueryParam::new(
12055 "checkAccess",
12056 &check_access,
12057 ))
12058 .query(&progenitor_client::QueryParam::new(
12059 "checkFilename",
12060 &check_filename,
12061 ))
12062 .query(&progenitor_client::QueryParam::new(
12063 "checkSync",
12064 &check_sync,
12065 ))
12066 .query(&progenitor_client::QueryParam::new(
12067 "createEmptySrcDirs",
12068 &create_empty_src_dirs,
12069 ))
12070 .query(&progenitor_client::QueryParam::new("dryRun", &dry_run))
12071 .query(&progenitor_client::QueryParam::new(
12072 "filtersFile",
12073 &filters_file,
12074 ))
12075 .query(&progenitor_client::QueryParam::new("force", &force))
12076 .query(&progenitor_client::QueryParam::new(
12077 "ignoreListingChecksum",
12078 &ignore_listing_checksum,
12079 ))
12080 .query(&progenitor_client::QueryParam::new(
12081 "maxDelete",
12082 &max_delete,
12083 ))
12084 .query(&progenitor_client::QueryParam::new(
12085 "noCleanup",
12086 &no_cleanup,
12087 ))
12088 .query(&progenitor_client::QueryParam::new("path1", &path1))
12089 .query(&progenitor_client::QueryParam::new("path2", &path2))
12090 .query(&progenitor_client::QueryParam::new(
12091 "removeEmptyDirs",
12092 &remove_empty_dirs,
12093 ))
12094 .query(&progenitor_client::QueryParam::new("resilient", &resilient))
12095 .query(&progenitor_client::QueryParam::new("resync", &resync))
12096 .query(&progenitor_client::QueryParam::new("workdir", &workdir))
12097 .headers(header_map)
12098 .build()?;
12099 let info = OperationInfo {
12100 operation_id: "sync_bisync",
12101 };
12102 self.pre(&mut request, &info).await?;
12103 let result = self.exec(request, &info).await;
12104 self.post(&result, &info).await?;
12105 let response = result?;
12106 match response.status().as_u16() {
12107 200u16 => ResponseValue::from_response(response).await,
12108 400u16..=499u16 => Err(Error::ErrorResponse(
12109 ResponseValue::from_response(response).await?,
12110 )),
12111 500u16..=599u16 => Err(Error::ErrorResponse(
12112 ResponseValue::from_response(response).await?,
12113 )),
12114 _ => Err(Error::UnexpectedResponse(response)),
12115 }
12116 }
12117
12118 pub async fn options_blocks<'a>(
12129 &'a self,
12130 async_: Option<bool>,
12131 group: Option<&'a str>,
12132 ) -> Result<ResponseValue<types::OptionsBlocksResponse>, Error<types::RcError>> {
12133 let url = format!("{}/options/blocks", self.baseurl,);
12134 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12135 header_map.append(
12136 ::reqwest::header::HeaderName::from_static("api-version"),
12137 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12138 );
12139 #[allow(unused_mut)]
12140 let mut request = self
12141 .client
12142 .post(url)
12143 .header(
12144 ::reqwest::header::ACCEPT,
12145 ::reqwest::header::HeaderValue::from_static("application/json"),
12146 )
12147 .query(&progenitor_client::QueryParam::new("_async", &async_))
12148 .query(&progenitor_client::QueryParam::new("_group", &group))
12149 .headers(header_map)
12150 .build()?;
12151 let info = OperationInfo {
12152 operation_id: "options_blocks",
12153 };
12154 self.pre(&mut request, &info).await?;
12155 let result = self.exec(request, &info).await;
12156 self.post(&result, &info).await?;
12157 let response = result?;
12158 match response.status().as_u16() {
12159 200u16 => ResponseValue::from_response(response).await,
12160 400u16..=499u16 => Err(Error::ErrorResponse(
12161 ResponseValue::from_response(response).await?,
12162 )),
12163 500u16..=599u16 => Err(Error::ErrorResponse(
12164 ResponseValue::from_response(response).await?,
12165 )),
12166 _ => Err(Error::UnexpectedResponse(response)),
12167 }
12168 }
12169
12170 pub async fn options_get<'a>(
12183 &'a self,
12184 async_: Option<bool>,
12185 group: Option<&'a str>,
12186 blocks: Option<&'a str>,
12187 ) -> Result<ResponseValue<types::OptionsGetResponse>, Error<types::RcError>> {
12188 let url = format!("{}/options/get", self.baseurl,);
12189 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12190 header_map.append(
12191 ::reqwest::header::HeaderName::from_static("api-version"),
12192 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12193 );
12194 #[allow(unused_mut)]
12195 let mut request = self
12196 .client
12197 .post(url)
12198 .header(
12199 ::reqwest::header::ACCEPT,
12200 ::reqwest::header::HeaderValue::from_static("application/json"),
12201 )
12202 .query(&progenitor_client::QueryParam::new("_async", &async_))
12203 .query(&progenitor_client::QueryParam::new("_group", &group))
12204 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12205 .headers(header_map)
12206 .build()?;
12207 let info = OperationInfo {
12208 operation_id: "options_get",
12209 };
12210 self.pre(&mut request, &info).await?;
12211 let result = self.exec(request, &info).await;
12212 self.post(&result, &info).await?;
12213 let response = result?;
12214 match response.status().as_u16() {
12215 200u16 => ResponseValue::from_response(response).await,
12216 400u16..=499u16 => Err(Error::ErrorResponse(
12217 ResponseValue::from_response(response).await?,
12218 )),
12219 500u16..=599u16 => Err(Error::ErrorResponse(
12220 ResponseValue::from_response(response).await?,
12221 )),
12222 _ => Err(Error::UnexpectedResponse(response)),
12223 }
12224 }
12225
12226 pub async fn options_info<'a>(
12240 &'a self,
12241 async_: Option<bool>,
12242 group: Option<&'a str>,
12243 blocks: Option<&'a str>,
12244 ) -> Result<ResponseValue<types::OptionsInfoResponse>, Error<types::RcError>> {
12245 let url = format!("{}/options/info", self.baseurl,);
12246 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12247 header_map.append(
12248 ::reqwest::header::HeaderName::from_static("api-version"),
12249 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12250 );
12251 #[allow(unused_mut)]
12252 let mut request = self
12253 .client
12254 .post(url)
12255 .header(
12256 ::reqwest::header::ACCEPT,
12257 ::reqwest::header::HeaderValue::from_static("application/json"),
12258 )
12259 .query(&progenitor_client::QueryParam::new("_async", &async_))
12260 .query(&progenitor_client::QueryParam::new("_group", &group))
12261 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12262 .headers(header_map)
12263 .build()?;
12264 let info = OperationInfo {
12265 operation_id: "options_info",
12266 };
12267 self.pre(&mut request, &info).await?;
12268 let result = self.exec(request, &info).await;
12269 self.post(&result, &info).await?;
12270 let response = result?;
12271 match response.status().as_u16() {
12272 200u16 => ResponseValue::from_response(response).await,
12273 400u16..=499u16 => Err(Error::ErrorResponse(
12274 ResponseValue::from_response(response).await?,
12275 )),
12276 500u16..=599u16 => Err(Error::ErrorResponse(
12277 ResponseValue::from_response(response).await?,
12278 )),
12279 _ => Err(Error::UnexpectedResponse(response)),
12280 }
12281 }
12282
12283 pub async fn options_set<'a>(
12314 &'a self,
12315 async_: Option<bool>,
12316 group: Option<&'a str>,
12317 dlna: Option<
12318 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetDlnaValue>,
12319 >,
12320 filter: Option<
12321 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFilterValue>,
12322 >,
12323 ftp: Option<
12324 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFtpValue>,
12325 >,
12326 http: Option<
12327 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetHttpValue>,
12328 >,
12329 log: Option<
12330 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetLogValue>,
12331 >,
12332 main: Option<
12333 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMainValue>,
12334 >,
12335 mount: Option<
12336 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMountValue>,
12337 >,
12338 nfs: Option<
12339 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetNfsValue>,
12340 >,
12341 proxy: Option<
12342 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetProxyValue>,
12343 >,
12344 rc: Option<
12345 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetRcValue>,
12346 >,
12347 restic: Option<
12348 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetResticValue>,
12349 >,
12350 s3: Option<
12351 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetS3Value>,
12352 >,
12353 sftp: Option<
12354 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetSftpValue>,
12355 >,
12356 vfs: Option<
12357 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetVfsValue>,
12358 >,
12359 webdav: Option<
12360 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetWebdavValue>,
12361 >,
12362 ) -> Result<
12363 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12364 Error<types::RcError>,
12365 > {
12366 let url = format!("{}/options/set", self.baseurl,);
12367 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12368 header_map.append(
12369 ::reqwest::header::HeaderName::from_static("api-version"),
12370 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12371 );
12372 #[allow(unused_mut)]
12373 let mut request = self
12374 .client
12375 .post(url)
12376 .header(
12377 ::reqwest::header::ACCEPT,
12378 ::reqwest::header::HeaderValue::from_static("application/json"),
12379 )
12380 .query(&progenitor_client::QueryParam::new("_async", &async_))
12381 .query(&progenitor_client::QueryParam::new("_group", &group))
12382 .query(&progenitor_client::QueryParam::new("dlna", &dlna))
12383 .query(&progenitor_client::QueryParam::new("filter", &filter))
12384 .query(&progenitor_client::QueryParam::new("ftp", &ftp))
12385 .query(&progenitor_client::QueryParam::new("http", &http))
12386 .query(&progenitor_client::QueryParam::new("log", &log))
12387 .query(&progenitor_client::QueryParam::new("main", &main))
12388 .query(&progenitor_client::QueryParam::new("mount", &mount))
12389 .query(&progenitor_client::QueryParam::new("nfs", &nfs))
12390 .query(&progenitor_client::QueryParam::new("proxy", &proxy))
12391 .query(&progenitor_client::QueryParam::new("rc", &rc))
12392 .query(&progenitor_client::QueryParam::new("restic", &restic))
12393 .query(&progenitor_client::QueryParam::new("s3", &s3))
12394 .query(&progenitor_client::QueryParam::new("sftp", &sftp))
12395 .query(&progenitor_client::QueryParam::new("vfs", &vfs))
12396 .query(&progenitor_client::QueryParam::new("webdav", &webdav))
12397 .headers(header_map)
12398 .build()?;
12399 let info = OperationInfo {
12400 operation_id: "options_set",
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 options_local<'a>(
12430 &'a self,
12431 async_: Option<bool>,
12432 group: Option<&'a str>,
12433 ) -> Result<ResponseValue<types::OptionsLocalResponse>, Error<types::RcError>> {
12434 let url = format!("{}/options/local", self.baseurl,);
12435 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12436 header_map.append(
12437 ::reqwest::header::HeaderName::from_static("api-version"),
12438 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12439 );
12440 #[allow(unused_mut)]
12441 let mut request = self
12442 .client
12443 .post(url)
12444 .header(
12445 ::reqwest::header::ACCEPT,
12446 ::reqwest::header::HeaderValue::from_static("application/json"),
12447 )
12448 .query(&progenitor_client::QueryParam::new("_async", &async_))
12449 .query(&progenitor_client::QueryParam::new("_group", &group))
12450 .headers(header_map)
12451 .build()?;
12452 let info = OperationInfo {
12453 operation_id: "options_local",
12454 };
12455 self.pre(&mut request, &info).await?;
12456 let result = self.exec(request, &info).await;
12457 self.post(&result, &info).await?;
12458 let response = result?;
12459 match response.status().as_u16() {
12460 200u16 => ResponseValue::from_response(response).await,
12461 400u16..=499u16 => Err(Error::ErrorResponse(
12462 ResponseValue::from_response(response).await?,
12463 )),
12464 500u16..=599u16 => Err(Error::ErrorResponse(
12465 ResponseValue::from_response(response).await?,
12466 )),
12467 _ => Err(Error::UnexpectedResponse(response)),
12468 }
12469 }
12470
12471 pub async fn serve_list<'a>(
12482 &'a self,
12483 async_: Option<bool>,
12484 group: Option<&'a str>,
12485 ) -> Result<ResponseValue<types::ServeListResponse>, Error<types::RcError>> {
12486 let url = format!("{}/serve/list", self.baseurl,);
12487 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12488 header_map.append(
12489 ::reqwest::header::HeaderName::from_static("api-version"),
12490 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12491 );
12492 #[allow(unused_mut)]
12493 let mut request = self
12494 .client
12495 .post(url)
12496 .header(
12497 ::reqwest::header::ACCEPT,
12498 ::reqwest::header::HeaderValue::from_static("application/json"),
12499 )
12500 .query(&progenitor_client::QueryParam::new("_async", &async_))
12501 .query(&progenitor_client::QueryParam::new("_group", &group))
12502 .headers(header_map)
12503 .build()?;
12504 let info = OperationInfo {
12505 operation_id: "serve_list",
12506 };
12507 self.pre(&mut request, &info).await?;
12508 let result = self.exec(request, &info).await;
12509 self.post(&result, &info).await?;
12510 let response = result?;
12511 match response.status().as_u16() {
12512 200u16 => ResponseValue::from_response(response).await,
12513 400u16..=499u16 => Err(Error::ErrorResponse(
12514 ResponseValue::from_response(response).await?,
12515 )),
12516 500u16..=599u16 => Err(Error::ErrorResponse(
12517 ResponseValue::from_response(response).await?,
12518 )),
12519 _ => Err(Error::UnexpectedResponse(response)),
12520 }
12521 }
12522
12523 pub async fn serve_start<'a>(
12543 &'a self,
12544 async_: Option<bool>,
12545 config: Option<&'a str>,
12546 filter: Option<&'a str>,
12547 group: Option<&'a str>,
12548 addr: &'a str,
12549 fs: &'a str,
12550 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12551 type_: &'a str,
12552 ) -> Result<ResponseValue<types::ServeStartResponse>, Error<types::RcError>> {
12553 let url = format!("{}/serve/start", self.baseurl,);
12554 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12555 header_map.append(
12556 ::reqwest::header::HeaderName::from_static("api-version"),
12557 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12558 );
12559 #[allow(unused_mut)]
12560 let mut request = self
12561 .client
12562 .post(url)
12563 .header(
12564 ::reqwest::header::ACCEPT,
12565 ::reqwest::header::HeaderValue::from_static("application/json"),
12566 )
12567 .query(&progenitor_client::QueryParam::new("_async", &async_))
12568 .query(&progenitor_client::QueryParam::new("_config", &config))
12569 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12570 .query(&progenitor_client::QueryParam::new("_group", &group))
12571 .query(&progenitor_client::QueryParam::new("addr", &addr))
12572 .query(&progenitor_client::QueryParam::new("fs", &fs))
12573 .query(&progenitor_client::QueryParam::new("params", ¶ms))
12574 .query(&progenitor_client::QueryParam::new("type", &type_))
12575 .headers(header_map)
12576 .build()?;
12577 let info = OperationInfo {
12578 operation_id: "serve_start",
12579 };
12580 self.pre(&mut request, &info).await?;
12581 let result = self.exec(request, &info).await;
12582 self.post(&result, &info).await?;
12583 let response = result?;
12584 match response.status().as_u16() {
12585 200u16 => ResponseValue::from_response(response).await,
12586 400u16..=499u16 => Err(Error::ErrorResponse(
12587 ResponseValue::from_response(response).await?,
12588 )),
12589 500u16..=599u16 => Err(Error::ErrorResponse(
12590 ResponseValue::from_response(response).await?,
12591 )),
12592 _ => Err(Error::UnexpectedResponse(response)),
12593 }
12594 }
12595
12596 pub async fn serve_stop<'a>(
12609 &'a self,
12610 async_: Option<bool>,
12611 group: Option<&'a str>,
12612 id: &'a str,
12613 ) -> Result<
12614 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12615 Error<types::RcError>,
12616 > {
12617 let url = format!("{}/serve/stop", self.baseurl,);
12618 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12619 header_map.append(
12620 ::reqwest::header::HeaderName::from_static("api-version"),
12621 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12622 );
12623 #[allow(unused_mut)]
12624 let mut request = self
12625 .client
12626 .post(url)
12627 .header(
12628 ::reqwest::header::ACCEPT,
12629 ::reqwest::header::HeaderValue::from_static("application/json"),
12630 )
12631 .query(&progenitor_client::QueryParam::new("_async", &async_))
12632 .query(&progenitor_client::QueryParam::new("_group", &group))
12633 .query(&progenitor_client::QueryParam::new("id", &id))
12634 .headers(header_map)
12635 .build()?;
12636 let info = OperationInfo {
12637 operation_id: "serve_stop",
12638 };
12639 self.pre(&mut request, &info).await?;
12640 let result = self.exec(request, &info).await;
12641 self.post(&result, &info).await?;
12642 let response = result?;
12643 match response.status().as_u16() {
12644 200u16 => ResponseValue::from_response(response).await,
12645 400u16..=499u16 => Err(Error::ErrorResponse(
12646 ResponseValue::from_response(response).await?,
12647 )),
12648 500u16..=599u16 => Err(Error::ErrorResponse(
12649 ResponseValue::from_response(response).await?,
12650 )),
12651 _ => Err(Error::UnexpectedResponse(response)),
12652 }
12653 }
12654
12655 pub async fn serve_stopall<'a>(
12666 &'a self,
12667 async_: Option<bool>,
12668 group: Option<&'a str>,
12669 ) -> Result<
12670 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12671 Error<types::RcError>,
12672 > {
12673 let url = format!("{}/serve/stopall", self.baseurl,);
12674 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12675 header_map.append(
12676 ::reqwest::header::HeaderName::from_static("api-version"),
12677 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12678 );
12679 #[allow(unused_mut)]
12680 let mut request = self
12681 .client
12682 .post(url)
12683 .header(
12684 ::reqwest::header::ACCEPT,
12685 ::reqwest::header::HeaderValue::from_static("application/json"),
12686 )
12687 .query(&progenitor_client::QueryParam::new("_async", &async_))
12688 .query(&progenitor_client::QueryParam::new("_group", &group))
12689 .headers(header_map)
12690 .build()?;
12691 let info = OperationInfo {
12692 operation_id: "serve_stopall",
12693 };
12694 self.pre(&mut request, &info).await?;
12695 let result = self.exec(request, &info).await;
12696 self.post(&result, &info).await?;
12697 let response = result?;
12698 match response.status().as_u16() {
12699 200u16 => ResponseValue::from_response(response).await,
12700 400u16..=499u16 => Err(Error::ErrorResponse(
12701 ResponseValue::from_response(response).await?,
12702 )),
12703 500u16..=599u16 => Err(Error::ErrorResponse(
12704 ResponseValue::from_response(response).await?,
12705 )),
12706 _ => Err(Error::UnexpectedResponse(response)),
12707 }
12708 }
12709
12710 pub async fn serve_types<'a>(
12721 &'a self,
12722 async_: Option<bool>,
12723 group: Option<&'a str>,
12724 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
12725 let url = format!("{}/serve/types", self.baseurl,);
12726 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12727 header_map.append(
12728 ::reqwest::header::HeaderName::from_static("api-version"),
12729 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12730 );
12731 #[allow(unused_mut)]
12732 let mut request = self
12733 .client
12734 .post(url)
12735 .header(
12736 ::reqwest::header::ACCEPT,
12737 ::reqwest::header::HeaderValue::from_static("application/json"),
12738 )
12739 .query(&progenitor_client::QueryParam::new("_async", &async_))
12740 .query(&progenitor_client::QueryParam::new("_group", &group))
12741 .headers(header_map)
12742 .build()?;
12743 let info = OperationInfo {
12744 operation_id: "serve_types",
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 => Ok(ResponseValue::empty(response)),
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 vfs_forget<'a>(
12776 &'a self,
12777 async_: Option<bool>,
12778 group: Option<&'a str>,
12779 fs: Option<&'a str>,
12780 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12781 ) -> Result<ResponseValue<types::VfsForgetResponse>, Error<types::RcError>> {
12782 let url = format!("{}/vfs/forget", self.baseurl,);
12783 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12784 header_map.append(
12785 ::reqwest::header::HeaderName::from_static("api-version"),
12786 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12787 );
12788 #[allow(unused_mut)]
12789 let mut request = self
12790 .client
12791 .post(url)
12792 .header(
12793 ::reqwest::header::ACCEPT,
12794 ::reqwest::header::HeaderValue::from_static("application/json"),
12795 )
12796 .query(&progenitor_client::QueryParam::new("_async", &async_))
12797 .query(&progenitor_client::QueryParam::new("_group", &group))
12798 .query(&progenitor_client::QueryParam::new("fs", &fs))
12799 .query(&progenitor_client::QueryParam::new("params", ¶ms))
12800 .headers(header_map)
12801 .build()?;
12802 let info = OperationInfo {
12803 operation_id: "vfs_forget",
12804 };
12805 self.pre(&mut request, &info).await?;
12806 let result = self.exec(request, &info).await;
12807 self.post(&result, &info).await?;
12808 let response = result?;
12809 match response.status().as_u16() {
12810 200u16 => ResponseValue::from_response(response).await,
12811 400u16..=499u16 => Err(Error::ErrorResponse(
12812 ResponseValue::from_response(response).await?,
12813 )),
12814 500u16..=599u16 => Err(Error::ErrorResponse(
12815 ResponseValue::from_response(response).await?,
12816 )),
12817 _ => Err(Error::UnexpectedResponse(response)),
12818 }
12819 }
12820
12821 pub async fn vfs_list<'a>(
12833 &'a self,
12834 async_: Option<bool>,
12835 group: Option<&'a str>,
12836 fs: Option<&'a str>,
12837 ) -> Result<ResponseValue<types::VfsListResponse>, Error<types::RcError>> {
12838 let url = format!("{}/vfs/list", self.baseurl,);
12839 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12840 header_map.append(
12841 ::reqwest::header::HeaderName::from_static("api-version"),
12842 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12843 );
12844 #[allow(unused_mut)]
12845 let mut request = self
12846 .client
12847 .post(url)
12848 .header(
12849 ::reqwest::header::ACCEPT,
12850 ::reqwest::header::HeaderValue::from_static("application/json"),
12851 )
12852 .query(&progenitor_client::QueryParam::new("_async", &async_))
12853 .query(&progenitor_client::QueryParam::new("_group", &group))
12854 .query(&progenitor_client::QueryParam::new("fs", &fs))
12855 .headers(header_map)
12856 .build()?;
12857 let info = OperationInfo {
12858 operation_id: "vfs_list",
12859 };
12860 self.pre(&mut request, &info).await?;
12861 let result = self.exec(request, &info).await;
12862 self.post(&result, &info).await?;
12863 let response = result?;
12864 match response.status().as_u16() {
12865 200u16 => ResponseValue::from_response(response).await,
12866 400u16..=499u16 => Err(Error::ErrorResponse(
12867 ResponseValue::from_response(response).await?,
12868 )),
12869 500u16..=599u16 => Err(Error::ErrorResponse(
12870 ResponseValue::from_response(response).await?,
12871 )),
12872 _ => Err(Error::UnexpectedResponse(response)),
12873 }
12874 }
12875
12876 pub async fn vfs_poll_interval<'a>(
12894 &'a self,
12895 async_: Option<bool>,
12896 group: Option<&'a str>,
12897 fs: Option<&'a str>,
12898 interval: Option<&'a str>,
12899 timeout: Option<&'a str>,
12900 ) -> Result<
12901 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12902 Error<types::RcError>,
12903 > {
12904 let url = format!("{}/vfs/poll-interval", self.baseurl,);
12905 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12906 header_map.append(
12907 ::reqwest::header::HeaderName::from_static("api-version"),
12908 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12909 );
12910 #[allow(unused_mut)]
12911 let mut request = self
12912 .client
12913 .post(url)
12914 .header(
12915 ::reqwest::header::ACCEPT,
12916 ::reqwest::header::HeaderValue::from_static("application/json"),
12917 )
12918 .query(&progenitor_client::QueryParam::new("_async", &async_))
12919 .query(&progenitor_client::QueryParam::new("_group", &group))
12920 .query(&progenitor_client::QueryParam::new("fs", &fs))
12921 .query(&progenitor_client::QueryParam::new("interval", &interval))
12922 .query(&progenitor_client::QueryParam::new("timeout", &timeout))
12923 .headers(header_map)
12924 .build()?;
12925 let info = OperationInfo {
12926 operation_id: "vfs_poll_interval",
12927 };
12928 self.pre(&mut request, &info).await?;
12929 let result = self.exec(request, &info).await;
12930 self.post(&result, &info).await?;
12931 let response = result?;
12932 match response.status().as_u16() {
12933 200u16 => ResponseValue::from_response(response).await,
12934 400u16..=499u16 => Err(Error::ErrorResponse(
12935 ResponseValue::from_response(response).await?,
12936 )),
12937 500u16..=599u16 => Err(Error::ErrorResponse(
12938 ResponseValue::from_response(response).await?,
12939 )),
12940 _ => Err(Error::UnexpectedResponse(response)),
12941 }
12942 }
12943
12944 pub async fn vfs_queue<'a>(
12956 &'a self,
12957 async_: Option<bool>,
12958 group: Option<&'a str>,
12959 fs: Option<&'a str>,
12960 ) -> Result<ResponseValue<types::VfsQueueResponse>, Error<types::RcError>> {
12961 let url = format!("{}/vfs/queue", self.baseurl,);
12962 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12963 header_map.append(
12964 ::reqwest::header::HeaderName::from_static("api-version"),
12965 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12966 );
12967 #[allow(unused_mut)]
12968 let mut request = self
12969 .client
12970 .post(url)
12971 .header(
12972 ::reqwest::header::ACCEPT,
12973 ::reqwest::header::HeaderValue::from_static("application/json"),
12974 )
12975 .query(&progenitor_client::QueryParam::new("_async", &async_))
12976 .query(&progenitor_client::QueryParam::new("_group", &group))
12977 .query(&progenitor_client::QueryParam::new("fs", &fs))
12978 .headers(header_map)
12979 .build()?;
12980 let info = OperationInfo {
12981 operation_id: "vfs_queue",
12982 };
12983 self.pre(&mut request, &info).await?;
12984 let result = self.exec(request, &info).await;
12985 self.post(&result, &info).await?;
12986 let response = result?;
12987 match response.status().as_u16() {
12988 200u16 => ResponseValue::from_response(response).await,
12989 400u16..=499u16 => Err(Error::ErrorResponse(
12990 ResponseValue::from_response(response).await?,
12991 )),
12992 500u16..=599u16 => Err(Error::ErrorResponse(
12993 ResponseValue::from_response(response).await?,
12994 )),
12995 _ => Err(Error::UnexpectedResponse(response)),
12996 }
12997 }
12998
12999 pub async fn vfs_queue_set_expiry<'a>(
13017 &'a self,
13018 async_: Option<bool>,
13019 group: Option<&'a str>,
13020 expiry: f64,
13021 fs: Option<&'a str>,
13022 id: i64,
13023 relative: Option<bool>,
13024 ) -> Result<
13025 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13026 Error<types::RcError>,
13027 > {
13028 let url = format!("{}/vfs/queue-set-expiry", self.baseurl,);
13029 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13030 header_map.append(
13031 ::reqwest::header::HeaderName::from_static("api-version"),
13032 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13033 );
13034 #[allow(unused_mut)]
13035 let mut request = self
13036 .client
13037 .post(url)
13038 .header(
13039 ::reqwest::header::ACCEPT,
13040 ::reqwest::header::HeaderValue::from_static("application/json"),
13041 )
13042 .query(&progenitor_client::QueryParam::new("_async", &async_))
13043 .query(&progenitor_client::QueryParam::new("_group", &group))
13044 .query(&progenitor_client::QueryParam::new("expiry", &expiry))
13045 .query(&progenitor_client::QueryParam::new("fs", &fs))
13046 .query(&progenitor_client::QueryParam::new("id", &id))
13047 .query(&progenitor_client::QueryParam::new("relative", &relative))
13048 .headers(header_map)
13049 .build()?;
13050 let info = OperationInfo {
13051 operation_id: "vfs_queue_set_expiry",
13052 };
13053 self.pre(&mut request, &info).await?;
13054 let result = self.exec(request, &info).await;
13055 self.post(&result, &info).await?;
13056 let response = result?;
13057 match response.status().as_u16() {
13058 200u16 => ResponseValue::from_response(response).await,
13059 400u16..=499u16 => Err(Error::ErrorResponse(
13060 ResponseValue::from_response(response).await?,
13061 )),
13062 500u16..=599u16 => Err(Error::ErrorResponse(
13063 ResponseValue::from_response(response).await?,
13064 )),
13065 _ => Err(Error::UnexpectedResponse(response)),
13066 }
13067 }
13068
13069 pub async fn vfs_refresh<'a>(
13085 &'a self,
13086 async_: Option<bool>,
13087 group: Option<&'a str>,
13088 fs: Option<&'a str>,
13089 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13090 recursive: Option<bool>,
13091 ) -> Result<ResponseValue<types::VfsRefreshResponse>, Error<types::RcError>> {
13092 let url = format!("{}/vfs/refresh", self.baseurl,);
13093 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13094 header_map.append(
13095 ::reqwest::header::HeaderName::from_static("api-version"),
13096 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13097 );
13098 #[allow(unused_mut)]
13099 let mut request = self
13100 .client
13101 .post(url)
13102 .header(
13103 ::reqwest::header::ACCEPT,
13104 ::reqwest::header::HeaderValue::from_static("application/json"),
13105 )
13106 .query(&progenitor_client::QueryParam::new("_async", &async_))
13107 .query(&progenitor_client::QueryParam::new("_group", &group))
13108 .query(&progenitor_client::QueryParam::new("fs", &fs))
13109 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13110 .query(&progenitor_client::QueryParam::new("recursive", &recursive))
13111 .headers(header_map)
13112 .build()?;
13113 let info = OperationInfo {
13114 operation_id: "vfs_refresh",
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 vfs_stats<'a>(
13145 &'a self,
13146 async_: Option<bool>,
13147 group: Option<&'a str>,
13148 fs: Option<&'a str>,
13149 ) -> Result<ResponseValue<types::VfsStatsResponse>, Error<types::RcError>> {
13150 let url = format!("{}/vfs/stats", self.baseurl,);
13151 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13152 header_map.append(
13153 ::reqwest::header::HeaderName::from_static("api-version"),
13154 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13155 );
13156 #[allow(unused_mut)]
13157 let mut request = self
13158 .client
13159 .post(url)
13160 .header(
13161 ::reqwest::header::ACCEPT,
13162 ::reqwest::header::HeaderValue::from_static("application/json"),
13163 )
13164 .query(&progenitor_client::QueryParam::new("_async", &async_))
13165 .query(&progenitor_client::QueryParam::new("_group", &group))
13166 .query(&progenitor_client::QueryParam::new("fs", &fs))
13167 .headers(header_map)
13168 .build()?;
13169 let info = OperationInfo {
13170 operation_id: "vfs_stats",
13171 };
13172 self.pre(&mut request, &info).await?;
13173 let result = self.exec(request, &info).await;
13174 self.post(&result, &info).await?;
13175 let response = result?;
13176 match response.status().as_u16() {
13177 200u16 => ResponseValue::from_response(response).await,
13178 400u16..=499u16 => Err(Error::ErrorResponse(
13179 ResponseValue::from_response(response).await?,
13180 )),
13181 500u16..=599u16 => Err(Error::ErrorResponse(
13182 ResponseValue::from_response(response).await?,
13183 )),
13184 _ => Err(Error::UnexpectedResponse(response)),
13185 }
13186 }
13187
13188 pub async fn pluginsctl_add_plugin<'a>(
13201 &'a self,
13202 async_: Option<bool>,
13203 group: Option<&'a str>,
13204 url: &'a str,
13205 ) -> Result<
13206 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13207 Error<types::RcError>,
13208 > {
13209 let _url = format!("{}/pluginsctl/addPlugin", 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 .query(&progenitor_client::QueryParam::new("url", &url))
13226 .headers(header_map)
13227 .build()?;
13228 let info = OperationInfo {
13229 operation_id: "pluginsctl_add_plugin",
13230 };
13231 self.pre(&mut request, &info).await?;
13232 let result = self.exec(request, &info).await;
13233 self.post(&result, &info).await?;
13234 let response = result?;
13235 match response.status().as_u16() {
13236 200u16 => ResponseValue::from_response(response).await,
13237 400u16..=499u16 => Err(Error::ErrorResponse(
13238 ResponseValue::from_response(response).await?,
13239 )),
13240 500u16..=599u16 => Err(Error::ErrorResponse(
13241 ResponseValue::from_response(response).await?,
13242 )),
13243 _ => Err(Error::UnexpectedResponse(response)),
13244 }
13245 }
13246
13247 pub async fn pluginsctl_get_plugins_for_type<'a>(
13261 &'a self,
13262 async_: Option<bool>,
13263 group: Option<&'a str>,
13264 plugin_type: Option<&'a str>,
13265 type_: Option<&'a str>,
13266 ) -> Result<ResponseValue<types::PluginsctlGetPluginsForTypeResponse>, Error<types::RcError>>
13267 {
13268 let url = format!("{}/pluginsctl/getPluginsForType", self.baseurl,);
13269 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13270 header_map.append(
13271 ::reqwest::header::HeaderName::from_static("api-version"),
13272 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13273 );
13274 #[allow(unused_mut)]
13275 let mut request = self
13276 .client
13277 .post(url)
13278 .header(
13279 ::reqwest::header::ACCEPT,
13280 ::reqwest::header::HeaderValue::from_static("application/json"),
13281 )
13282 .query(&progenitor_client::QueryParam::new("_async", &async_))
13283 .query(&progenitor_client::QueryParam::new("_group", &group))
13284 .query(&progenitor_client::QueryParam::new(
13285 "pluginType",
13286 &plugin_type,
13287 ))
13288 .query(&progenitor_client::QueryParam::new("type", &type_))
13289 .headers(header_map)
13290 .build()?;
13291 let info = OperationInfo {
13292 operation_id: "pluginsctl_get_plugins_for_type",
13293 };
13294 self.pre(&mut request, &info).await?;
13295 let result = self.exec(request, &info).await;
13296 self.post(&result, &info).await?;
13297 let response = result?;
13298 match response.status().as_u16() {
13299 200u16 => ResponseValue::from_response(response).await,
13300 400u16..=499u16 => Err(Error::ErrorResponse(
13301 ResponseValue::from_response(response).await?,
13302 )),
13303 500u16..=599u16 => Err(Error::ErrorResponse(
13304 ResponseValue::from_response(response).await?,
13305 )),
13306 _ => Err(Error::UnexpectedResponse(response)),
13307 }
13308 }
13309
13310 pub async fn pluginsctl_list_plugins<'a>(
13321 &'a self,
13322 async_: Option<bool>,
13323 group: Option<&'a str>,
13324 ) -> Result<ResponseValue<types::PluginsctlListPluginsResponse>, Error<types::RcError>> {
13325 let url = format!("{}/pluginsctl/listPlugins", self.baseurl,);
13326 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13327 header_map.append(
13328 ::reqwest::header::HeaderName::from_static("api-version"),
13329 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13330 );
13331 #[allow(unused_mut)]
13332 let mut request = self
13333 .client
13334 .post(url)
13335 .header(
13336 ::reqwest::header::ACCEPT,
13337 ::reqwest::header::HeaderValue::from_static("application/json"),
13338 )
13339 .query(&progenitor_client::QueryParam::new("_async", &async_))
13340 .query(&progenitor_client::QueryParam::new("_group", &group))
13341 .headers(header_map)
13342 .build()?;
13343 let info = OperationInfo {
13344 operation_id: "pluginsctl_list_plugins",
13345 };
13346 self.pre(&mut request, &info).await?;
13347 let result = self.exec(request, &info).await;
13348 self.post(&result, &info).await?;
13349 let response = result?;
13350 match response.status().as_u16() {
13351 200u16 => ResponseValue::from_response(response).await,
13352 400u16..=499u16 => Err(Error::ErrorResponse(
13353 ResponseValue::from_response(response).await?,
13354 )),
13355 500u16..=599u16 => Err(Error::ErrorResponse(
13356 ResponseValue::from_response(response).await?,
13357 )),
13358 _ => Err(Error::UnexpectedResponse(response)),
13359 }
13360 }
13361
13362 pub async fn pluginsctl_list_test_plugins<'a>(
13373 &'a self,
13374 async_: Option<bool>,
13375 group: Option<&'a str>,
13376 ) -> Result<ResponseValue<types::PluginsctlListTestPluginsResponse>, Error<types::RcError>>
13377 {
13378 let url = format!("{}/pluginsctl/listTestPlugins", self.baseurl,);
13379 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13380 header_map.append(
13381 ::reqwest::header::HeaderName::from_static("api-version"),
13382 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13383 );
13384 #[allow(unused_mut)]
13385 let mut request = self
13386 .client
13387 .post(url)
13388 .header(
13389 ::reqwest::header::ACCEPT,
13390 ::reqwest::header::HeaderValue::from_static("application/json"),
13391 )
13392 .query(&progenitor_client::QueryParam::new("_async", &async_))
13393 .query(&progenitor_client::QueryParam::new("_group", &group))
13394 .headers(header_map)
13395 .build()?;
13396 let info = OperationInfo {
13397 operation_id: "pluginsctl_list_test_plugins",
13398 };
13399 self.pre(&mut request, &info).await?;
13400 let result = self.exec(request, &info).await;
13401 self.post(&result, &info).await?;
13402 let response = result?;
13403 match response.status().as_u16() {
13404 200u16 => ResponseValue::from_response(response).await,
13405 400u16..=499u16 => Err(Error::ErrorResponse(
13406 ResponseValue::from_response(response).await?,
13407 )),
13408 500u16..=599u16 => Err(Error::ErrorResponse(
13409 ResponseValue::from_response(response).await?,
13410 )),
13411 _ => Err(Error::UnexpectedResponse(response)),
13412 }
13413 }
13414
13415 pub async fn pluginsctl_remove_plugin<'a>(
13427 &'a self,
13428 async_: Option<bool>,
13429 group: Option<&'a str>,
13430 name: &'a str,
13431 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13432 let url = format!("{}/pluginsctl/removePlugin", self.baseurl,);
13433 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13434 header_map.append(
13435 ::reqwest::header::HeaderName::from_static("api-version"),
13436 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13437 );
13438 #[allow(unused_mut)]
13439 let mut request = self
13440 .client
13441 .post(url)
13442 .header(
13443 ::reqwest::header::ACCEPT,
13444 ::reqwest::header::HeaderValue::from_static("application/json"),
13445 )
13446 .query(&progenitor_client::QueryParam::new("_async", &async_))
13447 .query(&progenitor_client::QueryParam::new("_group", &group))
13448 .query(&progenitor_client::QueryParam::new("name", &name))
13449 .headers(header_map)
13450 .build()?;
13451 let info = OperationInfo {
13452 operation_id: "pluginsctl_remove_plugin",
13453 };
13454 self.pre(&mut request, &info).await?;
13455 let result = self.exec(request, &info).await;
13456 self.post(&result, &info).await?;
13457 let response = result?;
13458 match response.status().as_u16() {
13459 200u16 => Ok(ResponseValue::empty(response)),
13460 400u16..=499u16 => Err(Error::ErrorResponse(
13461 ResponseValue::from_response(response).await?,
13462 )),
13463 500u16..=599u16 => Err(Error::ErrorResponse(
13464 ResponseValue::from_response(response).await?,
13465 )),
13466 _ => Err(Error::UnexpectedResponse(response)),
13467 }
13468 }
13469
13470 pub async fn pluginsctl_remove_test_plugin<'a>(
13482 &'a self,
13483 async_: Option<bool>,
13484 group: Option<&'a str>,
13485 name: &'a str,
13486 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13487 let url = format!("{}/pluginsctl/removeTestPlugin", self.baseurl,);
13488 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13489 header_map.append(
13490 ::reqwest::header::HeaderName::from_static("api-version"),
13491 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13492 );
13493 #[allow(unused_mut)]
13494 let mut request = self
13495 .client
13496 .post(url)
13497 .header(
13498 ::reqwest::header::ACCEPT,
13499 ::reqwest::header::HeaderValue::from_static("application/json"),
13500 )
13501 .query(&progenitor_client::QueryParam::new("_async", &async_))
13502 .query(&progenitor_client::QueryParam::new("_group", &group))
13503 .query(&progenitor_client::QueryParam::new("name", &name))
13504 .headers(header_map)
13505 .build()?;
13506 let info = OperationInfo {
13507 operation_id: "pluginsctl_remove_test_plugin",
13508 };
13509 self.pre(&mut request, &info).await?;
13510 let result = self.exec(request, &info).await;
13511 self.post(&result, &info).await?;
13512 let response = result?;
13513 match response.status().as_u16() {
13514 200u16 => Ok(ResponseValue::empty(response)),
13515 400u16..=499u16 => Err(Error::ErrorResponse(
13516 ResponseValue::from_response(response).await?,
13517 )),
13518 500u16..=599u16 => Err(Error::ErrorResponse(
13519 ResponseValue::from_response(response).await?,
13520 )),
13521 _ => Err(Error::UnexpectedResponse(response)),
13522 }
13523 }
13524}
13525
13526pub mod prelude {
13528 #[allow(unused_imports)]
13529 pub use super::Client;
13530}