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)]
102 pub struct ConfigGetResponse {
103 pub name: ::std::string::String,
104 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
105 pub provider: ::std::option::Option<::std::string::String>,
106 #[serde(rename = "type")]
107 pub type_: ::std::string::String,
108 }
109
110 impl ::std::convert::From<&ConfigGetResponse> for ConfigGetResponse {
111 fn from(value: &ConfigGetResponse) -> Self {
112 value.clone()
113 }
114 }
115
116 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
138 pub struct ConfigListremotesResponse {
139 pub remotes: ::std::vec::Vec<::std::string::String>,
140 }
141
142 impl ::std::convert::From<&ConfigListremotesResponse> for ConfigListremotesResponse {
143 fn from(value: &ConfigListremotesResponse) -> Self {
144 value.clone()
145 }
146 }
147
148 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
175 pub struct ConfigPathsResponse {
176 pub cache: ::std::string::String,
177 pub config: ::std::string::String,
178 pub temp: ::std::string::String,
179 }
180
181 impl ::std::convert::From<&ConfigPathsResponse> for ConfigPathsResponse {
182 fn from(value: &ConfigPathsResponse) -> Self {
183 value.clone()
184 }
185 }
186
187 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
246 pub struct ConfigProvider {
247 #[serde(
248 rename = "Aliases",
249 default,
250 skip_serializing_if = "::std::option::Option::is_none"
251 )]
252 pub aliases: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
253 #[serde(
254 rename = "CommandHelp",
255 default,
256 skip_serializing_if = "::std::option::Option::is_none"
257 )]
258 pub command_help: ::std::option::Option<::std::vec::Vec<ConfigProviderCommandHelp>>,
259 #[serde(rename = "Description")]
260 pub description: ::std::string::String,
261 #[serde(
262 rename = "Hide",
263 default,
264 skip_serializing_if = "::std::option::Option::is_none"
265 )]
266 pub hide: ::std::option::Option<bool>,
267 #[serde(
268 rename = "MetadataInfo",
269 default,
270 skip_serializing_if = "::std::option::Option::is_none"
271 )]
272 pub metadata_info: ::std::option::Option<ConfigProviderMetadataInfo>,
273 #[serde(rename = "Name")]
274 pub name: ::std::string::String,
275 #[serde(rename = "Options")]
276 pub options: ::std::vec::Vec<ConfigProviderOption>,
277 #[serde(rename = "Prefix")]
278 pub prefix: ::std::string::String,
279 }
280
281 impl ::std::convert::From<&ConfigProvider> for ConfigProvider {
282 fn from(value: &ConfigProvider) -> Self {
283 value.clone()
284 }
285 }
286
287 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
317 pub struct ConfigProviderCommandHelp {
318 #[serde(
319 rename = "Long",
320 default,
321 skip_serializing_if = "::std::option::Option::is_none"
322 )]
323 pub long: ::std::option::Option<::std::string::String>,
324 #[serde(
325 rename = "Name",
326 default,
327 skip_serializing_if = "::std::option::Option::is_none"
328 )]
329 pub name: ::std::option::Option<::std::string::String>,
330 #[serde(
331 rename = "Opts",
332 default,
333 skip_serializing_if = "::std::option::Option::is_none"
334 )]
335 pub opts:
336 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
337 #[serde(
338 rename = "Short",
339 default,
340 skip_serializing_if = "::std::option::Option::is_none"
341 )]
342 pub short: ::std::option::Option<::std::string::String>,
343 }
344
345 impl ::std::convert::From<&ConfigProviderCommandHelp> for ConfigProviderCommandHelp {
346 fn from(value: &ConfigProviderCommandHelp) -> Self {
347 value.clone()
348 }
349 }
350
351 impl ::std::default::Default for ConfigProviderCommandHelp {
352 fn default() -> Self {
353 Self {
354 long: Default::default(),
355 name: Default::default(),
356 opts: Default::default(),
357 short: Default::default(),
358 }
359 }
360 }
361
362 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
388 pub struct ConfigProviderMetadataInfo {
389 #[serde(
390 rename = "Help",
391 default,
392 skip_serializing_if = "::std::option::Option::is_none"
393 )]
394 pub help: ::std::option::Option<::std::string::String>,
395 #[serde(
396 rename = "System",
397 default,
398 skip_serializing_if = "::std::option::Option::is_none"
399 )]
400 pub system: ::std::option::Option<
401 ::std::collections::HashMap<::std::string::String, ConfigProviderMetadataSystemEntry>,
402 >,
403 }
404
405 impl ::std::convert::From<&ConfigProviderMetadataInfo> for ConfigProviderMetadataInfo {
406 fn from(value: &ConfigProviderMetadataInfo) -> Self {
407 value.clone()
408 }
409 }
410
411 impl ::std::default::Default for ConfigProviderMetadataInfo {
412 fn default() -> Self {
413 Self {
414 help: Default::default(),
415 system: Default::default(),
416 }
417 }
418 }
419
420 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
446 pub struct ConfigProviderMetadataSystemEntry {
447 #[serde(
448 rename = "Example",
449 default,
450 skip_serializing_if = "::std::option::Option::is_none"
451 )]
452 pub example: ::std::option::Option<::std::string::String>,
453 #[serde(
454 rename = "Help",
455 default,
456 skip_serializing_if = "::std::option::Option::is_none"
457 )]
458 pub help: ::std::option::Option<::std::string::String>,
459 #[serde(
460 rename = "ReadOnly",
461 default,
462 skip_serializing_if = "::std::option::Option::is_none"
463 )]
464 pub read_only: ::std::option::Option<bool>,
465 #[serde(
466 rename = "Type",
467 default,
468 skip_serializing_if = "::std::option::Option::is_none"
469 )]
470 pub type_: ::std::option::Option<::std::string::String>,
471 }
472
473 impl ::std::convert::From<&ConfigProviderMetadataSystemEntry>
474 for ConfigProviderMetadataSystemEntry
475 {
476 fn from(value: &ConfigProviderMetadataSystemEntry) -> Self {
477 value.clone()
478 }
479 }
480
481 impl ::std::default::Default for ConfigProviderMetadataSystemEntry {
482 fn default() -> Self {
483 Self {
484 example: Default::default(),
485 help: Default::default(),
486 read_only: Default::default(),
487 type_: Default::default(),
488 }
489 }
490 }
491
492 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
580 pub struct ConfigProviderOption {
581 #[serde(rename = "Advanced")]
582 pub advanced: bool,
583 #[serde(rename = "Default")]
584 pub default: ConfigProviderOptionAny,
585 #[serde(rename = "DefaultStr")]
586 pub default_str: ::std::string::String,
587 #[serde(
588 rename = "Examples",
589 default,
590 skip_serializing_if = "::std::vec::Vec::is_empty"
591 )]
592 pub examples: ::std::vec::Vec<ConfigProviderOptionExample>,
593 #[serde(rename = "Exclusive")]
594 pub exclusive: bool,
595 #[serde(rename = "FieldName")]
596 pub field_name: ::std::string::String,
597 #[serde(rename = "Help")]
598 pub help: ::std::string::String,
599 #[serde(rename = "Hide")]
600 pub hide: f64,
601 #[serde(rename = "IsPassword")]
602 pub is_password: bool,
603 #[serde(rename = "Name")]
604 pub name: ::std::string::String,
605 #[serde(rename = "NoPrefix")]
606 pub no_prefix: bool,
607 #[serde(
608 rename = "Provider",
609 default,
610 skip_serializing_if = "::std::option::Option::is_none"
611 )]
612 pub provider: ::std::option::Option<::std::string::String>,
613 #[serde(rename = "Required")]
614 pub required: bool,
615 #[serde(rename = "Sensitive")]
616 pub sensitive: bool,
617 #[serde(
618 rename = "ShortOpt",
619 default,
620 skip_serializing_if = "::std::option::Option::is_none"
621 )]
622 pub short_opt: ::std::option::Option<::std::string::String>,
623 #[serde(rename = "Type")]
624 pub type_: ConfigProviderOptionType,
625 #[serde(rename = "Value")]
626 pub value: ConfigProviderOptionAny,
627 #[serde(rename = "ValueStr")]
628 pub value_str: ::std::string::String,
629 }
630
631 impl ::std::convert::From<&ConfigProviderOption> for ConfigProviderOption {
632 fn from(value: &ConfigProviderOption) -> Self {
633 value.clone()
634 }
635 }
636
637 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
653 #[serde(transparent)]
654 pub struct ConfigProviderOptionAny(
655 pub ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
656 );
657 impl ::std::ops::Deref for ConfigProviderOptionAny {
658 type Target =
659 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>;
660 fn deref(
661 &self,
662 ) -> &::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>
663 {
664 &self.0
665 }
666 }
667
668 impl ::std::convert::From<ConfigProviderOptionAny>
669 for ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>
670 {
671 fn from(value: ConfigProviderOptionAny) -> Self {
672 value.0
673 }
674 }
675
676 impl ::std::convert::From<&ConfigProviderOptionAny> for ConfigProviderOptionAny {
677 fn from(value: &ConfigProviderOptionAny) -> Self {
678 value.clone()
679 }
680 }
681
682 impl
683 ::std::convert::From<
684 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
685 > for ConfigProviderOptionAny
686 {
687 fn from(
688 value: ::std::option::Option<
689 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
690 >,
691 ) -> Self {
692 Self(value)
693 }
694 }
695
696 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
723 pub struct ConfigProviderOptionExample {
724 #[serde(rename = "Help")]
725 pub help: ::std::string::String,
726 #[serde(
727 rename = "Provider",
728 default,
729 skip_serializing_if = "::std::option::Option::is_none"
730 )]
731 pub provider: ::std::option::Option<::std::string::String>,
732 #[serde(rename = "Value")]
733 pub value: ::std::string::String,
734 }
735
736 impl ::std::convert::From<&ConfigProviderOptionExample> for ConfigProviderOptionExample {
737 fn from(value: &ConfigProviderOptionExample) -> Self {
738 value.clone()
739 }
740 }
741
742 #[derive(
768 :: serde :: Deserialize,
769 :: serde :: Serialize,
770 Clone,
771 Copy,
772 Debug,
773 Eq,
774 Hash,
775 Ord,
776 PartialEq,
777 PartialOrd,
778 )]
779 pub enum ConfigProviderOptionType {
780 Bits,
781 #[serde(rename = "bool")]
782 Bool,
783 CommaSepList,
784 Duration,
785 Encoding,
786 #[serde(rename = "int")]
787 Int,
788 #[serde(rename = "mtime|atime|btime|ctime")]
789 MtimeAtimeBtimeCtime,
790 SizeSuffix,
791 SpaceSepList,
792 #[serde(rename = "string")]
793 String,
794 #[serde(rename = "stringArray")]
795 StringArray,
796 Time,
797 Tristate,
798 }
799
800 impl ::std::convert::From<&Self> for ConfigProviderOptionType {
801 fn from(value: &ConfigProviderOptionType) -> Self {
802 value.clone()
803 }
804 }
805
806 impl ::std::fmt::Display for ConfigProviderOptionType {
807 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
808 match *self {
809 Self::Bits => f.write_str("Bits"),
810 Self::Bool => f.write_str("bool"),
811 Self::CommaSepList => f.write_str("CommaSepList"),
812 Self::Duration => f.write_str("Duration"),
813 Self::Encoding => f.write_str("Encoding"),
814 Self::Int => f.write_str("int"),
815 Self::MtimeAtimeBtimeCtime => f.write_str("mtime|atime|btime|ctime"),
816 Self::SizeSuffix => f.write_str("SizeSuffix"),
817 Self::SpaceSepList => f.write_str("SpaceSepList"),
818 Self::String => f.write_str("string"),
819 Self::StringArray => f.write_str("stringArray"),
820 Self::Time => f.write_str("Time"),
821 Self::Tristate => f.write_str("Tristate"),
822 }
823 }
824 }
825
826 impl ::std::str::FromStr for ConfigProviderOptionType {
827 type Err = self::error::ConversionError;
828 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
829 match value {
830 "Bits" => Ok(Self::Bits),
831 "bool" => Ok(Self::Bool),
832 "CommaSepList" => Ok(Self::CommaSepList),
833 "Duration" => Ok(Self::Duration),
834 "Encoding" => Ok(Self::Encoding),
835 "int" => Ok(Self::Int),
836 "mtime|atime|btime|ctime" => Ok(Self::MtimeAtimeBtimeCtime),
837 "SizeSuffix" => Ok(Self::SizeSuffix),
838 "SpaceSepList" => Ok(Self::SpaceSepList),
839 "string" => Ok(Self::String),
840 "stringArray" => Ok(Self::StringArray),
841 "Time" => Ok(Self::Time),
842 "Tristate" => Ok(Self::Tristate),
843 _ => Err("invalid value".into()),
844 }
845 }
846 }
847
848 impl ::std::convert::TryFrom<&str> for ConfigProviderOptionType {
849 type Error = self::error::ConversionError;
850 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
851 value.parse()
852 }
853 }
854
855 impl ::std::convert::TryFrom<&::std::string::String> for ConfigProviderOptionType {
856 type Error = self::error::ConversionError;
857 fn try_from(
858 value: &::std::string::String,
859 ) -> ::std::result::Result<Self, self::error::ConversionError> {
860 value.parse()
861 }
862 }
863
864 impl ::std::convert::TryFrom<::std::string::String> for ConfigProviderOptionType {
865 type Error = self::error::ConversionError;
866 fn try_from(
867 value: ::std::string::String,
868 ) -> ::std::result::Result<Self, self::error::ConversionError> {
869 value.parse()
870 }
871 }
872
873 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
896 pub struct ConfigProvidersResponse {
897 pub providers: ::std::vec::Vec<ConfigProvider>,
898 }
899
900 impl ::std::convert::From<&ConfigProvidersResponse> for ConfigProvidersResponse {
901 fn from(value: &ConfigProvidersResponse) -> Self {
902 value.clone()
903 }
904 }
905
906 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
937 pub struct CoreBwlimitResponse {
938 #[serde(rename = "bytesPerSecond")]
939 pub bytes_per_second: i64,
940 #[serde(rename = "bytesPerSecondRx")]
941 pub bytes_per_second_rx: i64,
942 #[serde(rename = "bytesPerSecondTx")]
943 pub bytes_per_second_tx: i64,
944 pub rate: ::std::string::String,
945 }
946
947 impl ::std::convert::From<&CoreBwlimitResponse> for CoreBwlimitResponse {
948 fn from(value: &CoreBwlimitResponse) -> Self {
949 value.clone()
950 }
951 }
952
953 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
984 pub struct CoreCommandResponse {
985 pub error: bool,
986 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
987 pub result: ::std::option::Option<::std::string::String>,
988 #[serde(
989 rename = "returnType",
990 default,
991 skip_serializing_if = "::std::option::Option::is_none"
992 )]
993 pub return_type: ::std::option::Option<::std::string::String>,
994 }
995
996 impl ::std::convert::From<&CoreCommandResponse> for CoreCommandResponse {
997 fn from(value: &CoreCommandResponse) -> Self {
998 value.clone()
999 }
1000 }
1001
1002 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1041 pub struct CoreDuResponse {
1042 pub dir: ::std::string::String,
1043 pub info: CoreDuResponseInfo,
1044 }
1045
1046 impl ::std::convert::From<&CoreDuResponse> for CoreDuResponse {
1047 fn from(value: &CoreDuResponse) -> Self {
1048 value.clone()
1049 }
1050 }
1051
1052 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1079 pub struct CoreDuResponseInfo {
1080 #[serde(rename = "Available")]
1081 pub available: i64,
1082 #[serde(rename = "Free")]
1083 pub free: i64,
1084 #[serde(rename = "Total")]
1085 pub total: i64,
1086 }
1087
1088 impl ::std::convert::From<&CoreDuResponseInfo> for CoreDuResponseInfo {
1089 fn from(value: &CoreDuResponseInfo) -> Self {
1090 value.clone()
1091 }
1092 }
1093
1094 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1116 pub struct CoreGroupListResponse {
1117 pub groups: ::std::vec::Vec<::std::string::String>,
1118 }
1119
1120 impl ::std::convert::From<&CoreGroupListResponse> for CoreGroupListResponse {
1121 fn from(value: &CoreGroupListResponse) -> Self {
1122 value.clone()
1123 }
1124 }
1125
1126 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1145 pub struct CoreObscureResponse {
1146 pub obscured: ::std::string::String,
1147 }
1148
1149 impl ::std::convert::From<&CoreObscureResponse> for CoreObscureResponse {
1150 fn from(value: &CoreObscureResponse) -> Self {
1151 value.clone()
1152 }
1153 }
1154
1155 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1174 pub struct CorePidResponse {
1175 pub pid: i64,
1176 }
1177
1178 impl ::std::convert::From<&CorePidResponse> for CorePidResponse {
1179 fn from(value: &CorePidResponse) -> Self {
1180 value.clone()
1181 }
1182 }
1183
1184 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1213 pub struct CoreStatsChecking {
1214 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1216 pub group: ::std::option::Option<::std::string::String>,
1217 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1219 pub name: ::std::option::Option<::std::string::String>,
1220 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1221 pub size: ::std::option::Option<f64>,
1222 }
1223
1224 impl ::std::convert::From<&CoreStatsChecking> for CoreStatsChecking {
1225 fn from(value: &CoreStatsChecking) -> Self {
1226 value.clone()
1227 }
1228 }
1229
1230 impl ::std::default::Default for CoreStatsChecking {
1231 fn default() -> Self {
1232 Self {
1233 group: Default::default(),
1234 name: Default::default(),
1235 size: Default::default(),
1236 }
1237 }
1238 }
1239
1240 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1359 pub struct CoreStatsResponse {
1360 pub bytes: f64,
1361 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1363 pub checking: ::std::vec::Vec<CoreStatsChecking>,
1364 pub checks: f64,
1365 #[serde(rename = "deletedDirs")]
1366 pub deleted_dirs: f64,
1367 pub deletes: f64,
1368 #[serde(rename = "elapsedTime")]
1369 pub elapsed_time: f64,
1370 pub errors: f64,
1371 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1372 pub eta: ::std::option::Option<f64>,
1373 #[serde(rename = "fatalError")]
1374 pub fatal_error: bool,
1375 #[serde(
1376 rename = "lastError",
1377 default,
1378 skip_serializing_if = "::std::option::Option::is_none"
1379 )]
1380 pub last_error: ::std::option::Option<::std::string::String>,
1381 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1382 pub listed: ::std::option::Option<f64>,
1383 pub renames: f64,
1384 #[serde(rename = "retryError")]
1385 pub retry_error: bool,
1386 #[serde(rename = "serverSideCopies")]
1387 pub server_side_copies: f64,
1388 #[serde(rename = "serverSideCopyBytes")]
1389 pub server_side_copy_bytes: f64,
1390 #[serde(rename = "serverSideMoveBytes")]
1391 pub server_side_move_bytes: f64,
1392 #[serde(rename = "serverSideMoves")]
1393 pub server_side_moves: f64,
1394 pub speed: f64,
1395 #[serde(rename = "totalBytes")]
1396 pub total_bytes: f64,
1397 #[serde(rename = "totalChecks")]
1398 pub total_checks: f64,
1399 #[serde(rename = "totalTransfers")]
1400 pub total_transfers: f64,
1401 #[serde(rename = "transferTime")]
1402 pub transfer_time: f64,
1403 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1405 pub transferring: ::std::vec::Vec<CoreStatsTransfer>,
1406 pub transfers: f64,
1407 }
1408
1409 impl ::std::convert::From<&CoreStatsResponse> for CoreStatsResponse {
1410 fn from(value: &CoreStatsResponse) -> Self {
1411 value.clone()
1412 }
1413 }
1414
1415 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1466 pub struct CoreStatsTransfer {
1467 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1468 pub bytes: ::std::option::Option<f64>,
1469 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1471 pub eta: ::std::option::Option<f64>,
1472 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1474 pub group: ::std::option::Option<::std::string::String>,
1475 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1477 pub name: ::std::option::Option<::std::string::String>,
1478 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1479 pub percentage: ::std::option::Option<f64>,
1480 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1481 pub size: ::std::option::Option<f64>,
1482 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1483 pub speed: ::std::option::Option<f64>,
1484 #[serde(
1485 rename = "speedAvg",
1486 default,
1487 skip_serializing_if = "::std::option::Option::is_none"
1488 )]
1489 pub speed_avg: ::std::option::Option<f64>,
1490 }
1491
1492 impl ::std::convert::From<&CoreStatsTransfer> for CoreStatsTransfer {
1493 fn from(value: &CoreStatsTransfer) -> Self {
1494 value.clone()
1495 }
1496 }
1497
1498 impl ::std::default::Default for CoreStatsTransfer {
1499 fn default() -> Self {
1500 Self {
1501 bytes: Default::default(),
1502 eta: Default::default(),
1503 group: Default::default(),
1504 name: Default::default(),
1505 percentage: Default::default(),
1506 size: Default::default(),
1507 speed: Default::default(),
1508 speed_avg: Default::default(),
1509 }
1510 }
1511 }
1512
1513 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1610 pub struct CoreTransferredResponse {
1611 pub transferred: ::std::vec::Vec<CoreTransferredResponseTransferredItem>,
1612 }
1613
1614 impl ::std::convert::From<&CoreTransferredResponse> for CoreTransferredResponse {
1615 fn from(value: &CoreTransferredResponse) -> Self {
1616 value.clone()
1617 }
1618 }
1619
1620 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1702 pub struct CoreTransferredResponseTransferredItem {
1703 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1704 pub bytes: ::std::option::Option<i64>,
1705 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1706 pub checked: ::std::option::Option<bool>,
1707 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1709 pub completed_at: ::std::option::Option<::std::string::String>,
1710 #[serde(
1712 rename = "dstFs",
1713 default,
1714 skip_serializing_if = "::std::option::Option::is_none"
1715 )]
1716 pub dst_fs: ::std::option::Option<::std::string::String>,
1717 #[serde(
1719 rename = "dstRemote",
1720 default,
1721 skip_serializing_if = "::std::option::Option::is_none"
1722 )]
1723 pub dst_remote: ::std::option::Option<::std::string::String>,
1724 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1725 pub error: ::std::option::Option<::std::string::String>,
1726 pub group: ::std::string::String,
1728 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1729 pub jobid: ::std::option::Option<i64>,
1730 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1731 pub name: ::std::option::Option<::std::string::String>,
1732 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1733 pub size: ::std::option::Option<i64>,
1734 #[serde(
1736 rename = "srcFs",
1737 default,
1738 skip_serializing_if = "::std::option::Option::is_none"
1739 )]
1740 pub src_fs: ::std::option::Option<::std::string::String>,
1741 #[serde(
1743 rename = "srcRemote",
1744 default,
1745 skip_serializing_if = "::std::option::Option::is_none"
1746 )]
1747 pub src_remote: ::std::option::Option<::std::string::String>,
1748 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1750 pub started_at: ::std::option::Option<::std::string::String>,
1751 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1752 pub timestamp: ::std::option::Option<i64>,
1753 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1754 pub what: ::std::option::Option<CoreTransferredResponseTransferredItemWhat>,
1755 }
1756
1757 impl ::std::convert::From<&CoreTransferredResponseTransferredItem>
1758 for CoreTransferredResponseTransferredItem
1759 {
1760 fn from(value: &CoreTransferredResponseTransferredItem) -> Self {
1761 value.clone()
1762 }
1763 }
1764
1765 #[derive(
1787 :: serde :: Deserialize,
1788 :: serde :: Serialize,
1789 Clone,
1790 Copy,
1791 Debug,
1792 Eq,
1793 Hash,
1794 Ord,
1795 PartialEq,
1796 PartialOrd,
1797 )]
1798 pub enum CoreTransferredResponseTransferredItemWhat {
1799 #[serde(rename = "transferring")]
1800 Transferring,
1801 #[serde(rename = "deleting")]
1802 Deleting,
1803 #[serde(rename = "checking")]
1804 Checking,
1805 #[serde(rename = "importing")]
1806 Importing,
1807 #[serde(rename = "hashing")]
1808 Hashing,
1809 #[serde(rename = "merging")]
1810 Merging,
1811 #[serde(rename = "listing")]
1812 Listing,
1813 #[serde(rename = "moving")]
1814 Moving,
1815 #[serde(rename = "renaming")]
1816 Renaming,
1817 }
1818
1819 impl ::std::convert::From<&Self> for CoreTransferredResponseTransferredItemWhat {
1820 fn from(value: &CoreTransferredResponseTransferredItemWhat) -> Self {
1821 value.clone()
1822 }
1823 }
1824
1825 impl ::std::fmt::Display for CoreTransferredResponseTransferredItemWhat {
1826 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1827 match *self {
1828 Self::Transferring => f.write_str("transferring"),
1829 Self::Deleting => f.write_str("deleting"),
1830 Self::Checking => f.write_str("checking"),
1831 Self::Importing => f.write_str("importing"),
1832 Self::Hashing => f.write_str("hashing"),
1833 Self::Merging => f.write_str("merging"),
1834 Self::Listing => f.write_str("listing"),
1835 Self::Moving => f.write_str("moving"),
1836 Self::Renaming => f.write_str("renaming"),
1837 }
1838 }
1839 }
1840
1841 impl ::std::str::FromStr for CoreTransferredResponseTransferredItemWhat {
1842 type Err = self::error::ConversionError;
1843 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1844 match value {
1845 "transferring" => Ok(Self::Transferring),
1846 "deleting" => Ok(Self::Deleting),
1847 "checking" => Ok(Self::Checking),
1848 "importing" => Ok(Self::Importing),
1849 "hashing" => Ok(Self::Hashing),
1850 "merging" => Ok(Self::Merging),
1851 "listing" => Ok(Self::Listing),
1852 "moving" => Ok(Self::Moving),
1853 "renaming" => Ok(Self::Renaming),
1854 _ => Err("invalid value".into()),
1855 }
1856 }
1857 }
1858
1859 impl ::std::convert::TryFrom<&str> for CoreTransferredResponseTransferredItemWhat {
1860 type Error = self::error::ConversionError;
1861 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1862 value.parse()
1863 }
1864 }
1865
1866 impl ::std::convert::TryFrom<&::std::string::String>
1867 for CoreTransferredResponseTransferredItemWhat
1868 {
1869 type Error = self::error::ConversionError;
1870 fn try_from(
1871 value: &::std::string::String,
1872 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1873 value.parse()
1874 }
1875 }
1876
1877 impl ::std::convert::TryFrom<::std::string::String> for CoreTransferredResponseTransferredItemWhat {
1878 type Error = self::error::ConversionError;
1879 fn try_from(
1880 value: ::std::string::String,
1881 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1882 value.parse()
1883 }
1884 }
1885
1886 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1964 pub struct CoreVersionResponse {
1965 pub arch: ::std::string::String,
1967 pub decomposed: ::std::vec::Vec<f64>,
1969 #[serde(rename = "goTags")]
1971 pub go_tags: ::std::string::String,
1972 #[serde(rename = "goVersion")]
1974 pub go_version: ::std::string::String,
1975 #[serde(rename = "isBeta")]
1977 pub is_beta: bool,
1978 #[serde(rename = "isGit")]
1980 pub is_git: bool,
1981 pub linking: ::std::string::String,
1983 pub os: ::std::string::String,
1985 #[serde(
1987 rename = "osArch",
1988 default,
1989 skip_serializing_if = "::std::option::Option::is_none"
1990 )]
1991 pub os_arch: ::std::option::Option<::std::string::String>,
1992 #[serde(
1994 rename = "osKernel",
1995 default,
1996 skip_serializing_if = "::std::option::Option::is_none"
1997 )]
1998 pub os_kernel: ::std::option::Option<::std::string::String>,
1999 #[serde(
2001 rename = "osVersion",
2002 default,
2003 skip_serializing_if = "::std::option::Option::is_none"
2004 )]
2005 pub os_version: ::std::option::Option<::std::string::String>,
2006 pub version: ::std::string::String,
2008 }
2009
2010 impl ::std::convert::From<&CoreVersionResponse> for CoreVersionResponse {
2011 fn from(value: &CoreVersionResponse) -> Self {
2012 value.clone()
2013 }
2014 }
2015
2016 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2035 pub struct DebugSetGcPercentResponse {
2036 #[serde(rename = "existing-gc-percent")]
2037 pub existing_gc_percent: i64,
2038 }
2039
2040 impl ::std::convert::From<&DebugSetGcPercentResponse> for DebugSetGcPercentResponse {
2041 fn from(value: &DebugSetGcPercentResponse) -> Self {
2042 value.clone()
2043 }
2044 }
2045
2046 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2065 pub struct DebugSetMutexProfileFractionResponse {
2066 #[serde(rename = "previousRate")]
2067 pub previous_rate: i64,
2068 }
2069
2070 impl ::std::convert::From<&DebugSetMutexProfileFractionResponse>
2071 for DebugSetMutexProfileFractionResponse
2072 {
2073 fn from(value: &DebugSetMutexProfileFractionResponse) -> Self {
2074 value.clone()
2075 }
2076 }
2077
2078 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2097 pub struct DebugSetSoftMemoryLimitResponse {
2098 #[serde(rename = "existing-mem-limit")]
2099 pub existing_mem_limit: i64,
2100 }
2101
2102 impl ::std::convert::From<&DebugSetSoftMemoryLimitResponse> for DebugSetSoftMemoryLimitResponse {
2103 fn from(value: &DebugSetSoftMemoryLimitResponse) -> Self {
2104 value.clone()
2105 }
2106 }
2107
2108 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2127 pub struct FscacheEntriesResponse {
2128 pub entries: i64,
2129 }
2130
2131 impl ::std::convert::From<&FscacheEntriesResponse> for FscacheEntriesResponse {
2132 fn from(value: &FscacheEntriesResponse) -> Self {
2133 value.clone()
2134 }
2135 }
2136
2137 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2158 pub struct JobBatchInputsItem {
2159 #[serde(rename = "_path")]
2161 pub path: ::std::string::String,
2162 }
2163
2164 impl ::std::convert::From<&JobBatchInputsItem> for JobBatchInputsItem {
2165 fn from(value: &JobBatchInputsItem) -> Self {
2166 value.clone()
2167 }
2168 }
2169
2170 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2211 pub struct JobBatchRequest {
2212 #[serde(
2214 rename = "_async",
2215 default,
2216 skip_serializing_if = "::std::option::Option::is_none"
2217 )]
2218 pub async_: ::std::option::Option<bool>,
2219 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2222 pub concurrency: ::std::option::Option<i64>,
2223 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2225 pub inputs: ::std::vec::Vec<JobBatchRequestInputsItem>,
2226 }
2227
2228 impl ::std::convert::From<&JobBatchRequest> for JobBatchRequest {
2229 fn from(value: &JobBatchRequest) -> Self {
2230 value.clone()
2231 }
2232 }
2233
2234 impl ::std::default::Default for JobBatchRequest {
2235 fn default() -> Self {
2236 Self {
2237 async_: Default::default(),
2238 concurrency: Default::default(),
2239 inputs: Default::default(),
2240 }
2241 }
2242 }
2243
2244 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2265 pub struct JobBatchRequestInputsItem {
2266 #[serde(rename = "_path")]
2268 pub path: ::std::string::String,
2269 }
2270
2271 impl ::std::convert::From<&JobBatchRequestInputsItem> for JobBatchRequestInputsItem {
2272 fn from(value: &JobBatchRequestInputsItem) -> Self {
2273 value.clone()
2274 }
2275 }
2276
2277 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2302 pub struct JobBatchResponse {
2303 #[serde(rename = "executeId")]
2305 pub execute_id: ::std::string::String,
2306 pub jobid: i64,
2308 }
2309
2310 impl ::std::convert::From<&JobBatchResponse> for JobBatchResponse {
2311 fn from(value: &JobBatchResponse) -> Self {
2312 value.clone()
2313 }
2314 }
2315
2316 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2361 pub struct JobListResponse {
2362 #[serde(rename = "executeId")]
2364 pub execute_id: ::std::string::String,
2365 #[serde(rename = "finishedIds")]
2367 pub finished_ids: ::std::vec::Vec<i64>,
2368 pub jobids: ::std::vec::Vec<f64>,
2370 #[serde(rename = "runningIds")]
2372 pub running_ids: ::std::vec::Vec<i64>,
2373 }
2374
2375 impl ::std::convert::From<&JobListResponse> for JobListResponse {
2376 fn from(value: &JobListResponse) -> Self {
2377 value.clone()
2378 }
2379 }
2380
2381 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2440 pub struct JobStatusResponse {
2441 pub duration: f64,
2442 #[serde(rename = "endTime")]
2445 pub end_time: ::std::string::String,
2446 pub error: ::std::string::String,
2448 pub finished: bool,
2450 pub id: f64,
2451 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2453 pub output: ::std::option::Option<::serde_json::Value>,
2454 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2456 pub progress: ::std::option::Option<::serde_json::Value>,
2457 #[serde(rename = "startTime")]
2460 pub start_time: ::std::string::String,
2461 pub success: bool,
2463 }
2464
2465 impl ::std::convert::From<&JobStatusResponse> for JobStatusResponse {
2466 fn from(value: &JobStatusResponse) -> Self {
2467 value.clone()
2468 }
2469 }
2470
2471 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2511 pub struct MountListmountsResponse {
2512 #[serde(rename = "mountPoints")]
2513 pub mount_points: ::std::vec::Vec<MountListmountsResponseMountPointsItem>,
2514 }
2515
2516 impl ::std::convert::From<&MountListmountsResponse> for MountListmountsResponse {
2517 fn from(value: &MountListmountsResponse) -> Self {
2518 value.clone()
2519 }
2520 }
2521
2522 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2551 #[serde(deny_unknown_fields)]
2552 pub struct MountListmountsResponseMountPointsItem {
2553 #[serde(rename = "Fs")]
2554 pub fs: ::std::string::String,
2555 #[serde(rename = "MountPoint")]
2556 pub mount_point: ::std::string::String,
2557 #[serde(rename = "MountedOn")]
2558 pub mounted_on: ::chrono::DateTime<::chrono::offset::Utc>,
2559 }
2560
2561 impl ::std::convert::From<&MountListmountsResponseMountPointsItem>
2562 for MountListmountsResponseMountPointsItem
2563 {
2564 fn from(value: &MountListmountsResponseMountPointsItem) -> Self {
2565 value.clone()
2566 }
2567 }
2568
2569 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2591 pub struct MountTypesResponse {
2592 #[serde(rename = "mountTypes")]
2593 pub mount_types: ::std::vec::Vec<::std::string::String>,
2594 }
2595
2596 impl ::std::convert::From<&MountTypesResponse> for MountTypesResponse {
2597 fn from(value: &MountTypesResponse) -> Self {
2598 value.clone()
2599 }
2600 }
2601
2602 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2638 pub struct OperationsAboutResponse {
2639 pub free: f64,
2640 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2641 pub objects: ::std::option::Option<f64>,
2642 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2643 pub other: ::std::option::Option<f64>,
2644 pub total: f64,
2645 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2646 pub trashed: ::std::option::Option<f64>,
2647 pub used: f64,
2648 }
2649
2650 impl ::std::convert::From<&OperationsAboutResponse> for OperationsAboutResponse {
2651 fn from(value: &OperationsAboutResponse) -> Self {
2652 value.clone()
2653 }
2654 }
2655
2656 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2733 pub struct OperationsCheckResponse {
2734 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2736 pub combined: ::std::vec::Vec<::std::string::String>,
2737 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2739 pub differ: ::std::vec::Vec<::std::string::String>,
2740 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2742 pub error: ::std::vec::Vec<::std::string::String>,
2743 #[serde(
2745 rename = "hashType",
2746 default,
2747 skip_serializing_if = "::std::option::Option::is_none"
2748 )]
2749 pub hash_type: ::std::option::Option<::std::string::String>,
2750 #[serde(
2752 rename = "match",
2753 default,
2754 skip_serializing_if = "::std::vec::Vec::is_empty"
2755 )]
2756 pub match_: ::std::vec::Vec<::std::string::String>,
2757 #[serde(
2759 rename = "missingOnDst",
2760 default,
2761 skip_serializing_if = "::std::vec::Vec::is_empty"
2762 )]
2763 pub missing_on_dst: ::std::vec::Vec<::std::string::String>,
2764 #[serde(
2766 rename = "missingOnSrc",
2767 default,
2768 skip_serializing_if = "::std::vec::Vec::is_empty"
2769 )]
2770 pub missing_on_src: ::std::vec::Vec<::std::string::String>,
2771 pub status: ::std::string::String,
2773 pub success: bool,
2775 }
2776
2777 impl ::std::convert::From<&OperationsCheckResponse> for OperationsCheckResponse {
2778 fn from(value: &OperationsCheckResponse) -> Self {
2779 value.clone()
2780 }
2781 }
2782
2783 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2835 pub struct OperationsFsinfoResponse {
2836 #[serde(rename = "Features")]
2837 pub features: ::std::collections::HashMap<::std::string::String, bool>,
2838 #[serde(rename = "Hashes")]
2839 pub hashes: ::std::vec::Vec<::std::string::String>,
2840 #[serde(
2841 rename = "MetadataInfo",
2842 default,
2843 skip_serializing_if = "::std::option::Option::is_none"
2844 )]
2845 pub metadata_info:
2846 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
2847 #[serde(rename = "Name")]
2848 pub name: ::std::string::String,
2849 #[serde(rename = "Precision")]
2850 pub precision: f64,
2851 #[serde(rename = "Root")]
2852 pub root: ::std::string::String,
2853 #[serde(rename = "String")]
2854 pub string: ::std::string::String,
2855 }
2856
2857 impl ::std::convert::From<&OperationsFsinfoResponse> for OperationsFsinfoResponse {
2858 fn from(value: &OperationsFsinfoResponse) -> Self {
2859 value.clone()
2860 }
2861 }
2862
2863 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2889 pub struct OperationsHashsumResponse {
2890 #[serde(rename = "hashType")]
2891 pub hash_type: ::std::string::String,
2892 pub hashsum: ::std::vec::Vec<::std::string::String>,
2893 }
2894
2895 impl ::std::convert::From<&OperationsHashsumResponse> for OperationsHashsumResponse {
2896 fn from(value: &OperationsHashsumResponse) -> Self {
2897 value.clone()
2898 }
2899 }
2900
2901 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2926 pub struct OperationsHashsumfileResponse {
2927 pub hash: ::std::string::String,
2929 #[serde(rename = "hashType")]
2931 pub hash_type: ::std::string::String,
2932 }
2933
2934 impl ::std::convert::From<&OperationsHashsumfileResponse> for OperationsHashsumfileResponse {
2935 fn from(value: &OperationsHashsumfileResponse) -> Self {
2936 value.clone()
2937 }
2938 }
2939
2940 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3035 pub struct OperationsListResponse {
3036 pub list: ::std::vec::Vec<OperationsListResponseListItem>,
3039 }
3040
3041 impl ::std::convert::From<&OperationsListResponse> for OperationsListResponse {
3042 fn from(value: &OperationsListResponse) -> Self {
3043 value.clone()
3044 }
3045 }
3046
3047 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3127 pub struct OperationsListResponseListItem {
3128 #[serde(
3130 rename = "Encrypted",
3131 default,
3132 skip_serializing_if = "::std::option::Option::is_none"
3133 )]
3134 pub encrypted: ::std::option::Option<::std::string::String>,
3135 #[serde(
3137 rename = "EncryptedPath",
3138 default,
3139 skip_serializing_if = "::std::option::Option::is_none"
3140 )]
3141 pub encrypted_path: ::std::option::Option<::std::string::String>,
3142 #[serde(
3144 rename = "Hashes",
3145 default,
3146 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
3147 )]
3148 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
3149 #[serde(
3151 rename = "ID",
3152 default,
3153 skip_serializing_if = "::std::option::Option::is_none"
3154 )]
3155 pub id: ::std::option::Option<::std::string::String>,
3156 #[serde(
3158 rename = "IsBucket",
3159 default,
3160 skip_serializing_if = "::std::option::Option::is_none"
3161 )]
3162 pub is_bucket: ::std::option::Option<bool>,
3163 #[serde(rename = "IsDir")]
3165 pub is_dir: bool,
3166 #[serde(
3168 rename = "Metadata",
3169 default,
3170 skip_serializing_if = "::serde_json::Map::is_empty"
3171 )]
3172 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3173 #[serde(
3175 rename = "MimeType",
3176 default,
3177 skip_serializing_if = "::std::option::Option::is_none"
3178 )]
3179 pub mime_type: ::std::option::Option<::std::string::String>,
3180 #[serde(
3182 rename = "ModTime",
3183 default,
3184 skip_serializing_if = "::std::option::Option::is_none"
3185 )]
3186 pub mod_time: ::std::option::Option<::std::string::String>,
3187 #[serde(rename = "Name")]
3189 pub name: ::std::string::String,
3190 #[serde(
3192 rename = "OrigID",
3193 default,
3194 skip_serializing_if = "::std::option::Option::is_none"
3195 )]
3196 pub orig_id: ::std::option::Option<::std::string::String>,
3197 #[serde(rename = "Path")]
3199 pub path: ::std::string::String,
3200 #[serde(
3201 rename = "Size",
3202 default,
3203 skip_serializing_if = "::std::option::Option::is_none"
3204 )]
3205 pub size: ::std::option::Option<f64>,
3206 #[serde(
3208 rename = "Tier",
3209 default,
3210 skip_serializing_if = "::std::option::Option::is_none"
3211 )]
3212 pub tier: ::std::option::Option<::std::string::String>,
3213 }
3214
3215 impl ::std::convert::From<&OperationsListResponseListItem> for OperationsListResponseListItem {
3216 fn from(value: &OperationsListResponseListItem) -> Self {
3217 value.clone()
3218 }
3219 }
3220
3221 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3241 pub struct OperationsPubliclinkResponse {
3242 pub url: ::std::string::String,
3243 }
3244
3245 impl ::std::convert::From<&OperationsPubliclinkResponse> for OperationsPubliclinkResponse {
3246 fn from(value: &OperationsPubliclinkResponse) -> Self {
3247 value.clone()
3248 }
3249 }
3250
3251 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3278 pub struct OperationsSizeResponse {
3279 pub bytes: f64,
3280 pub count: i64,
3281 pub sizeless: i64,
3282 }
3283
3284 impl ::std::convert::From<&OperationsSizeResponse> for OperationsSizeResponse {
3285 fn from(value: &OperationsSizeResponse) -> Self {
3286 value.clone()
3287 }
3288 }
3289
3290 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3386 pub struct OperationsStatResponse {
3387 pub item: ::std::option::Option<OperationsStatResponseItem>,
3388 }
3389
3390 impl ::std::convert::From<&OperationsStatResponse> for OperationsStatResponse {
3391 fn from(value: &OperationsStatResponse) -> Self {
3392 value.clone()
3393 }
3394 }
3395
3396 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3479 pub struct OperationsStatResponseItem {
3480 #[serde(
3482 rename = "Encrypted",
3483 default,
3484 skip_serializing_if = "::std::option::Option::is_none"
3485 )]
3486 pub encrypted: ::std::option::Option<::std::string::String>,
3487 #[serde(
3489 rename = "EncryptedPath",
3490 default,
3491 skip_serializing_if = "::std::option::Option::is_none"
3492 )]
3493 pub encrypted_path: ::std::option::Option<::std::string::String>,
3494 #[serde(
3496 rename = "Hashes",
3497 default,
3498 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
3499 )]
3500 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
3501 #[serde(
3503 rename = "ID",
3504 default,
3505 skip_serializing_if = "::std::option::Option::is_none"
3506 )]
3507 pub id: ::std::option::Option<::std::string::String>,
3508 #[serde(
3510 rename = "IsBucket",
3511 default,
3512 skip_serializing_if = "::std::option::Option::is_none"
3513 )]
3514 pub is_bucket: ::std::option::Option<bool>,
3515 #[serde(rename = "IsDir")]
3517 pub is_dir: bool,
3518 #[serde(
3520 rename = "Metadata",
3521 default,
3522 skip_serializing_if = "::serde_json::Map::is_empty"
3523 )]
3524 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3525 #[serde(rename = "MimeType")]
3527 pub mime_type: ::std::string::String,
3528 #[serde(rename = "ModTime")]
3530 pub mod_time: ::std::string::String,
3531 #[serde(rename = "Name")]
3533 pub name: ::std::string::String,
3534 #[serde(
3536 rename = "OrigID",
3537 default,
3538 skip_serializing_if = "::std::option::Option::is_none"
3539 )]
3540 pub orig_id: ::std::option::Option<::std::string::String>,
3541 #[serde(rename = "Path")]
3543 pub path: ::std::string::String,
3544 #[serde(rename = "Size")]
3545 pub size: f64,
3546 #[serde(
3548 rename = "Tier",
3549 default,
3550 skip_serializing_if = "::std::option::Option::is_none"
3551 )]
3552 pub tier: ::std::option::Option<::std::string::String>,
3553 }
3554
3555 impl ::std::convert::From<&OperationsStatResponseItem> for OperationsStatResponseItem {
3556 fn from(value: &OperationsStatResponseItem) -> Self {
3557 value.clone()
3558 }
3559 }
3560
3561 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3583 pub struct OptionsBlocksResponse {
3584 pub options: ::std::vec::Vec<::std::string::String>,
3585 }
3586
3587 impl ::std::convert::From<&OptionsBlocksResponse> for OptionsBlocksResponse {
3588 fn from(value: &OptionsBlocksResponse) -> Self {
3589 value.clone()
3590 }
3591 }
3592
3593 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3684 pub struct OptionsGetResponse {
3685 pub dlna: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3686 pub filter: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3687 pub ftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3688 pub http: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3689 pub log: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3690 pub main: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3691 pub mount: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3692 pub nfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3693 pub proxy: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3694 pub rc: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3695 pub restic: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3696 pub s3: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3697 pub sftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3698 pub vfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3699 pub webdav: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3700 }
3701
3702 impl ::std::convert::From<&OptionsGetResponse> for OptionsGetResponse {
3703 fn from(value: &OptionsGetResponse) -> Self {
3704 value.clone()
3705 }
3706 }
3707
3708 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3843 pub struct OptionsInfoOption {
3844 #[serde(rename = "Advanced")]
3845 pub advanced: bool,
3846 #[serde(rename = "Default")]
3848 pub default: OptionsInfoOptionDefault,
3849 #[serde(rename = "DefaultStr")]
3850 pub default_str: ::std::string::String,
3851 #[serde(
3852 rename = "Examples",
3853 default,
3854 skip_serializing_if = "::std::vec::Vec::is_empty"
3855 )]
3856 pub examples: ::std::vec::Vec<OptionsInfoOptionExample>,
3857 #[serde(rename = "Exclusive")]
3858 pub exclusive: bool,
3859 #[serde(rename = "FieldName")]
3860 pub field_name: ::std::string::String,
3861 #[serde(
3862 rename = "Groups",
3863 default,
3864 skip_serializing_if = "::std::option::Option::is_none"
3865 )]
3866 pub groups: ::std::option::Option<::std::string::String>,
3867 #[serde(rename = "Help")]
3868 pub help: ::std::string::String,
3869 #[serde(rename = "Hide")]
3870 pub hide: i64,
3871 #[serde(rename = "IsPassword")]
3872 pub is_password: bool,
3873 #[serde(rename = "Name")]
3874 pub name: ::std::string::String,
3875 #[serde(rename = "NoPrefix")]
3876 pub no_prefix: bool,
3877 #[serde(rename = "Required")]
3878 pub required: bool,
3879 #[serde(rename = "Sensitive")]
3880 pub sensitive: bool,
3881 #[serde(
3882 rename = "ShortOpt",
3883 default,
3884 skip_serializing_if = "::std::option::Option::is_none"
3885 )]
3886 pub short_opt: ::std::option::Option<::std::string::String>,
3887 #[serde(rename = "Type")]
3888 pub type_: ::std::string::String,
3889 #[serde(rename = "Value")]
3890 pub value: ::std::option::Option<OptionsInfoOptionValue>,
3891 #[serde(rename = "ValueStr")]
3892 pub value_str: ::std::string::String,
3893 }
3894
3895 impl ::std::convert::From<&OptionsInfoOption> for OptionsInfoOption {
3896 fn from(value: &OptionsInfoOption) -> Self {
3897 value.clone()
3898 }
3899 }
3900
3901 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3945 #[serde(untagged, deny_unknown_fields)]
3946 pub enum OptionsInfoOptionDefault {
3947 Variant0(::std::vec::Vec<::std::string::String>),
3948 Variant1(bool),
3949 Variant2(f64),
3950 Variant3(::std::string::String),
3951 Variant4 {
3952 #[serde(rename = "Valid")]
3953 valid: bool,
3954 #[serde(rename = "Value")]
3955 value: bool,
3956 },
3957 }
3958
3959 impl ::std::convert::From<&Self> for OptionsInfoOptionDefault {
3960 fn from(value: &OptionsInfoOptionDefault) -> Self {
3961 value.clone()
3962 }
3963 }
3964
3965 impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for OptionsInfoOptionDefault {
3966 fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
3967 Self::Variant0(value)
3968 }
3969 }
3970
3971 impl ::std::convert::From<bool> for OptionsInfoOptionDefault {
3972 fn from(value: bool) -> Self {
3973 Self::Variant1(value)
3974 }
3975 }
3976
3977 impl ::std::convert::From<f64> for OptionsInfoOptionDefault {
3978 fn from(value: f64) -> Self {
3979 Self::Variant2(value)
3980 }
3981 }
3982
3983 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4007 pub struct OptionsInfoOptionExample {
4008 #[serde(rename = "Help")]
4009 pub help: ::std::string::String,
4010 #[serde(rename = "Value")]
4011 pub value: ::std::string::String,
4012 }
4013
4014 impl ::std::convert::From<&OptionsInfoOptionExample> for OptionsInfoOptionExample {
4015 fn from(value: &OptionsInfoOptionExample) -> Self {
4016 value.clone()
4017 }
4018 }
4019
4020 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4038 #[serde(untagged)]
4039 pub enum OptionsInfoOptionValue {
4040 Variant0(bool),
4041 Variant1(f64),
4042 }
4043
4044 impl ::std::convert::From<&Self> for OptionsInfoOptionValue {
4045 fn from(value: &OptionsInfoOptionValue) -> Self {
4046 value.clone()
4047 }
4048 }
4049
4050 impl ::std::str::FromStr for OptionsInfoOptionValue {
4051 type Err = self::error::ConversionError;
4052 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
4053 if let Ok(v) = value.parse() {
4054 Ok(Self::Variant0(v))
4055 } else if let Ok(v) = value.parse() {
4056 Ok(Self::Variant1(v))
4057 } else {
4058 Err("string conversion failed for all variants".into())
4059 }
4060 }
4061 }
4062
4063 impl ::std::convert::TryFrom<&str> for OptionsInfoOptionValue {
4064 type Error = self::error::ConversionError;
4065 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
4066 value.parse()
4067 }
4068 }
4069
4070 impl ::std::convert::TryFrom<&::std::string::String> for OptionsInfoOptionValue {
4071 type Error = self::error::ConversionError;
4072 fn try_from(
4073 value: &::std::string::String,
4074 ) -> ::std::result::Result<Self, self::error::ConversionError> {
4075 value.parse()
4076 }
4077 }
4078
4079 impl ::std::convert::TryFrom<::std::string::String> for OptionsInfoOptionValue {
4080 type Error = self::error::ConversionError;
4081 fn try_from(
4082 value: ::std::string::String,
4083 ) -> ::std::result::Result<Self, self::error::ConversionError> {
4084 value.parse()
4085 }
4086 }
4087
4088 impl ::std::fmt::Display for OptionsInfoOptionValue {
4089 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4090 match self {
4091 Self::Variant0(x) => x.fmt(f),
4092 Self::Variant1(x) => x.fmt(f),
4093 }
4094 }
4095 }
4096
4097 impl ::std::convert::From<bool> for OptionsInfoOptionValue {
4098 fn from(value: bool) -> Self {
4099 Self::Variant0(value)
4100 }
4101 }
4102
4103 impl ::std::convert::From<f64> for OptionsInfoOptionValue {
4104 fn from(value: f64) -> Self {
4105 Self::Variant1(value)
4106 }
4107 }
4108
4109 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4235 pub struct OptionsInfoResponse {
4236 pub dlna: ::std::vec::Vec<OptionsInfoOption>,
4237 pub filter: ::std::vec::Vec<OptionsInfoOption>,
4238 pub ftp: ::std::vec::Vec<OptionsInfoOption>,
4239 pub http: ::std::vec::Vec<OptionsInfoOption>,
4240 pub log: ::std::vec::Vec<OptionsInfoOption>,
4241 pub main: ::std::vec::Vec<OptionsInfoOption>,
4242 pub mount: ::std::vec::Vec<OptionsInfoOption>,
4243 pub nfs: ::std::vec::Vec<OptionsInfoOption>,
4244 pub proxy: ::std::vec::Vec<OptionsInfoOption>,
4245 pub rc: ::std::vec::Vec<OptionsInfoOption>,
4246 pub restic: ::std::vec::Vec<OptionsInfoOption>,
4247 pub s3: ::std::vec::Vec<OptionsInfoOption>,
4248 pub sftp: ::std::vec::Vec<OptionsInfoOption>,
4249 pub vfs: ::std::vec::Vec<OptionsInfoOption>,
4250 pub webdav: ::std::vec::Vec<OptionsInfoOption>,
4251 #[serde(flatten)]
4252 pub extra:
4253 ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<OptionsInfoOption>>,
4254 }
4255
4256 impl ::std::convert::From<&OptionsInfoResponse> for OptionsInfoResponse {
4257 fn from(value: &OptionsInfoResponse) -> Self {
4258 value.clone()
4259 }
4260 }
4261
4262 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4891 pub struct OptionsLocalResponse {
4892 pub config: OptionsLocalResponseConfig,
4893 pub filter: OptionsLocalResponseFilter,
4894 }
4895
4896 impl ::std::convert::From<&OptionsLocalResponse> for OptionsLocalResponse {
4897 fn from(value: &OptionsLocalResponse) -> Self {
4898 value.clone()
4899 }
4900 }
4901
4902 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5374 pub struct OptionsLocalResponseConfig {
5375 #[serde(rename = "AskPassword")]
5376 pub ask_password: bool,
5377 #[serde(rename = "AutoConfirm")]
5378 pub auto_confirm: bool,
5379 #[serde(rename = "BackupDir")]
5380 pub backup_dir: ::std::string::String,
5381 #[serde(rename = "BindAddr")]
5382 pub bind_addr: ::std::string::String,
5383 #[serde(rename = "BufferSize")]
5384 pub buffer_size: f64,
5385 #[serde(rename = "BwLimit")]
5386 pub bw_limit: ::std::string::String,
5387 #[serde(rename = "BwLimitFile")]
5388 pub bw_limit_file: ::std::string::String,
5389 #[serde(rename = "CaCert")]
5390 pub ca_cert: ::std::vec::Vec<::std::string::String>,
5391 #[serde(rename = "CheckFirst")]
5392 pub check_first: bool,
5393 #[serde(rename = "CheckSum")]
5394 pub check_sum: bool,
5395 #[serde(rename = "Checkers")]
5396 pub checkers: f64,
5397 #[serde(rename = "ClientCert")]
5398 pub client_cert: ::std::string::String,
5399 #[serde(rename = "ClientKey")]
5400 pub client_key: ::std::string::String,
5401 #[serde(rename = "CompareDest")]
5402 pub compare_dest: ::std::vec::Vec<::std::string::String>,
5403 #[serde(rename = "ConnectTimeout")]
5404 pub connect_timeout: f64,
5405 #[serde(rename = "Cookie")]
5406 pub cookie: bool,
5407 #[serde(rename = "CopyDest")]
5408 pub copy_dest: ::std::vec::Vec<::std::string::String>,
5409 #[serde(rename = "CutoffMode")]
5410 pub cutoff_mode: ::std::string::String,
5411 #[serde(rename = "DataRateUnit")]
5412 pub data_rate_unit: ::std::string::String,
5413 #[serde(rename = "DefaultTime")]
5414 pub default_time: ::std::string::String,
5415 #[serde(rename = "DeleteMode")]
5416 pub delete_mode: f64,
5417 #[serde(rename = "DisableFeatures")]
5418 pub disable_features: ::std::option::Option<::std::string::String>,
5419 #[serde(rename = "DisableHTTP2")]
5420 pub disable_http2: bool,
5421 #[serde(rename = "DisableHTTPKeepAlives")]
5422 pub disable_http_keep_alives: bool,
5423 #[serde(rename = "DownloadHeaders")]
5424 pub download_headers: ::std::option::Option<::std::string::String>,
5425 #[serde(rename = "DryRun")]
5426 pub dry_run: bool,
5427 #[serde(rename = "Dump")]
5428 pub dump: ::std::string::String,
5429 #[serde(rename = "ErrorOnNoTransfer")]
5430 pub error_on_no_transfer: bool,
5431 #[serde(rename = "ExpectContinueTimeout")]
5432 pub expect_continue_timeout: f64,
5433 #[serde(rename = "FixCase")]
5434 pub fix_case: bool,
5435 #[serde(rename = "FsCacheExpireDuration")]
5436 pub fs_cache_expire_duration: f64,
5437 #[serde(rename = "FsCacheExpireInterval")]
5438 pub fs_cache_expire_interval: f64,
5439 #[serde(rename = "Headers")]
5440 pub headers: ::std::option::Option<::std::string::String>,
5441 #[serde(rename = "HumanReadable")]
5442 pub human_readable: bool,
5443 #[serde(rename = "IgnoreCaseSync")]
5444 pub ignore_case_sync: bool,
5445 #[serde(rename = "IgnoreChecksum")]
5446 pub ignore_checksum: bool,
5447 #[serde(rename = "IgnoreErrors")]
5448 pub ignore_errors: bool,
5449 #[serde(rename = "IgnoreExisting")]
5450 pub ignore_existing: bool,
5451 #[serde(rename = "IgnoreSize")]
5452 pub ignore_size: bool,
5453 #[serde(rename = "IgnoreTimes")]
5454 pub ignore_times: bool,
5455 #[serde(rename = "Immutable")]
5456 pub immutable: bool,
5457 #[serde(rename = "Inplace")]
5458 pub inplace: bool,
5459 #[serde(rename = "InsecureSkipVerify")]
5460 pub insecure_skip_verify: bool,
5461 #[serde(rename = "Interactive")]
5462 pub interactive: bool,
5463 #[serde(rename = "KvLockTime")]
5464 pub kv_lock_time: f64,
5465 #[serde(rename = "Links")]
5466 pub links: bool,
5467 #[serde(rename = "LogLevel")]
5468 pub log_level: ::std::string::String,
5469 #[serde(rename = "LowLevelRetries")]
5470 pub low_level_retries: f64,
5471 #[serde(rename = "MaxBacklog")]
5472 pub max_backlog: f64,
5473 #[serde(rename = "MaxBufferMemory")]
5474 pub max_buffer_memory: f64,
5475 #[serde(rename = "MaxDelete")]
5476 pub max_delete: f64,
5477 #[serde(rename = "MaxDeleteSize")]
5478 pub max_delete_size: f64,
5479 #[serde(rename = "MaxDepth")]
5480 pub max_depth: f64,
5481 #[serde(rename = "MaxDuration")]
5482 pub max_duration: f64,
5483 #[serde(rename = "MaxStatsGroups")]
5484 pub max_stats_groups: f64,
5485 #[serde(rename = "MaxTransfer")]
5486 pub max_transfer: f64,
5487 #[serde(rename = "Metadata")]
5488 pub metadata: bool,
5489 #[serde(rename = "MetadataMapper")]
5490 pub metadata_mapper: ::std::option::Option<::std::string::String>,
5491 #[serde(rename = "MetadataSet")]
5492 pub metadata_set: ::std::option::Option<::std::string::String>,
5493 #[serde(rename = "ModifyWindow")]
5494 pub modify_window: f64,
5495 #[serde(rename = "MultiThreadChunkSize")]
5496 pub multi_thread_chunk_size: f64,
5497 #[serde(rename = "MultiThreadCutoff")]
5498 pub multi_thread_cutoff: f64,
5499 #[serde(rename = "MultiThreadSet")]
5500 pub multi_thread_set: bool,
5501 #[serde(rename = "MultiThreadStreams")]
5502 pub multi_thread_streams: f64,
5503 #[serde(rename = "MultiThreadWriteBufferSize")]
5504 pub multi_thread_write_buffer_size: f64,
5505 #[serde(rename = "NoCheckDest")]
5506 pub no_check_dest: bool,
5507 #[serde(rename = "NoConsole")]
5508 pub no_console: bool,
5509 #[serde(rename = "NoGzip")]
5510 pub no_gzip: bool,
5511 #[serde(rename = "NoTraverse")]
5512 pub no_traverse: bool,
5513 #[serde(rename = "NoUnicodeNormalization")]
5514 pub no_unicode_normalization: bool,
5515 #[serde(rename = "NoUpdateDirModTime")]
5516 pub no_update_dir_mod_time: bool,
5517 #[serde(rename = "NoUpdateModTime")]
5518 pub no_update_mod_time: bool,
5519 #[serde(rename = "OrderBy")]
5520 pub order_by: ::std::string::String,
5521 #[serde(rename = "PartialSuffix")]
5522 pub partial_suffix: ::std::string::String,
5523 #[serde(rename = "PasswordCommand")]
5524 pub password_command: ::std::option::Option<::std::string::String>,
5525 #[serde(rename = "Progress")]
5526 pub progress: bool,
5527 #[serde(rename = "ProgressTerminalTitle")]
5528 pub progress_terminal_title: bool,
5529 #[serde(rename = "RefreshTimes")]
5530 pub refresh_times: bool,
5531 #[serde(rename = "Retries")]
5532 pub retries: f64,
5533 #[serde(rename = "RetriesInterval")]
5534 pub retries_interval: f64,
5535 #[serde(rename = "ServerSideAcrossConfigs")]
5536 pub server_side_across_configs: bool,
5537 #[serde(rename = "SizeOnly")]
5538 pub size_only: bool,
5539 #[serde(rename = "StatsFileNameLength")]
5540 pub stats_file_name_length: f64,
5541 #[serde(rename = "StatsLogLevel")]
5542 pub stats_log_level: ::std::string::String,
5543 #[serde(rename = "StatsOneLine")]
5544 pub stats_one_line: bool,
5545 #[serde(rename = "StatsOneLineDate")]
5546 pub stats_one_line_date: bool,
5547 #[serde(rename = "StatsOneLineDateFormat")]
5548 pub stats_one_line_date_format: ::std::string::String,
5549 #[serde(rename = "StreamingUploadCutoff")]
5550 pub streaming_upload_cutoff: f64,
5551 #[serde(rename = "Suffix")]
5552 pub suffix: ::std::string::String,
5553 #[serde(rename = "SuffixKeepExtension")]
5554 pub suffix_keep_extension: bool,
5555 #[serde(rename = "TerminalColorMode")]
5556 pub terminal_color_mode: ::std::string::String,
5557 #[serde(rename = "Timeout")]
5558 pub timeout: f64,
5559 #[serde(rename = "TPSLimit")]
5560 pub tps_limit: f64,
5561 #[serde(rename = "TPSLimitBurst")]
5562 pub tps_limit_burst: f64,
5563 #[serde(rename = "TrackRenames")]
5564 pub track_renames: bool,
5565 #[serde(rename = "TrackRenamesStrategy")]
5566 pub track_renames_strategy: ::std::string::String,
5567 #[serde(rename = "TrafficClass")]
5568 pub traffic_class: f64,
5569 #[serde(rename = "Transfers")]
5570 pub transfers: f64,
5571 #[serde(rename = "UpdateOlder")]
5572 pub update_older: bool,
5573 #[serde(rename = "UploadHeaders")]
5574 pub upload_headers: ::std::option::Option<::std::string::String>,
5575 #[serde(rename = "UseJSONLog")]
5576 pub use_json_log: bool,
5577 #[serde(rename = "UseListR")]
5578 pub use_list_r: bool,
5579 #[serde(rename = "UseMmap")]
5580 pub use_mmap: bool,
5581 #[serde(rename = "UseServerModTime")]
5582 pub use_server_mod_time: bool,
5583 #[serde(rename = "UserAgent")]
5584 pub user_agent: ::std::string::String,
5585 }
5586
5587 impl ::std::convert::From<&OptionsLocalResponseConfig> for OptionsLocalResponseConfig {
5588 fn from(value: &OptionsLocalResponseConfig) -> Self {
5589 value.clone()
5590 }
5591 }
5592
5593 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5749 pub struct OptionsLocalResponseFilter {
5750 #[serde(rename = "DeleteExcluded")]
5751 pub delete_excluded: bool,
5752 #[serde(rename = "ExcludeFile")]
5753 pub exclude_file: ::std::vec::Vec<::std::string::String>,
5754 #[serde(rename = "ExcludeFrom")]
5755 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5756 #[serde(rename = "ExcludeRule")]
5757 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5758 #[serde(rename = "FilesFrom")]
5759 pub files_from: ::std::vec::Vec<::std::string::String>,
5760 #[serde(rename = "FilesFromRaw")]
5761 pub files_from_raw: ::std::vec::Vec<::std::string::String>,
5762 #[serde(rename = "FilterFrom")]
5763 pub filter_from: ::std::vec::Vec<::std::string::String>,
5764 #[serde(rename = "FilterRule")]
5765 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5766 #[serde(rename = "HashFilter")]
5767 pub hash_filter: ::std::string::String,
5768 #[serde(rename = "IgnoreCase")]
5769 pub ignore_case: bool,
5770 #[serde(rename = "IncludeFrom")]
5771 pub include_from: ::std::vec::Vec<::std::string::String>,
5772 #[serde(rename = "IncludeRule")]
5773 pub include_rule: ::std::vec::Vec<::std::string::String>,
5774 #[serde(rename = "MaxAge")]
5775 pub max_age: f64,
5776 #[serde(rename = "MaxSize")]
5777 pub max_size: f64,
5778 #[serde(rename = "MetaRules")]
5779 pub meta_rules: OptionsLocalResponseFilterMetaRules,
5780 #[serde(rename = "MinAge")]
5781 pub min_age: f64,
5782 #[serde(rename = "MinSize")]
5783 pub min_size: f64,
5784 }
5785
5786 impl ::std::convert::From<&OptionsLocalResponseFilter> for OptionsLocalResponseFilter {
5787 fn from(value: &OptionsLocalResponseFilter) -> Self {
5788 value.clone()
5789 }
5790 }
5791
5792 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5849 pub struct OptionsLocalResponseFilterMetaRules {
5850 #[serde(rename = "ExcludeFrom")]
5851 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5852 #[serde(rename = "ExcludeRule")]
5853 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5854 #[serde(rename = "FilterFrom")]
5855 pub filter_from: ::std::vec::Vec<::std::string::String>,
5856 #[serde(rename = "FilterRule")]
5857 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5858 #[serde(rename = "IncludeFrom")]
5859 pub include_from: ::std::vec::Vec<::std::string::String>,
5860 #[serde(rename = "IncludeRule")]
5861 pub include_rule: ::std::vec::Vec<::std::string::String>,
5862 }
5863
5864 impl ::std::convert::From<&OptionsLocalResponseFilterMetaRules>
5865 for OptionsLocalResponseFilterMetaRules
5866 {
5867 fn from(value: &OptionsLocalResponseFilterMetaRules) -> Self {
5868 value.clone()
5869 }
5870 }
5871
5872 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5904 #[serde(untagged)]
5905 pub enum OptionsSetDlnaValue {
5906 Variant0(::std::string::String),
5907 Variant1(f64),
5908 Variant2(i64),
5909 Variant3(bool),
5910 Variant4(::std::vec::Vec<::serde_json::Value>),
5911 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5912 }
5913
5914 impl ::std::convert::From<&Self> for OptionsSetDlnaValue {
5915 fn from(value: &OptionsSetDlnaValue) -> Self {
5916 value.clone()
5917 }
5918 }
5919
5920 impl ::std::convert::From<f64> for OptionsSetDlnaValue {
5921 fn from(value: f64) -> Self {
5922 Self::Variant1(value)
5923 }
5924 }
5925
5926 impl ::std::convert::From<i64> for OptionsSetDlnaValue {
5927 fn from(value: i64) -> Self {
5928 Self::Variant2(value)
5929 }
5930 }
5931
5932 impl ::std::convert::From<bool> for OptionsSetDlnaValue {
5933 fn from(value: bool) -> Self {
5934 Self::Variant3(value)
5935 }
5936 }
5937
5938 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetDlnaValue {
5939 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5940 Self::Variant4(value)
5941 }
5942 }
5943
5944 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5945 for OptionsSetDlnaValue
5946 {
5947 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5948 Self::Variant5(value)
5949 }
5950 }
5951
5952 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5984 #[serde(untagged)]
5985 pub enum OptionsSetFilterValue {
5986 Variant0(::std::string::String),
5987 Variant1(f64),
5988 Variant2(i64),
5989 Variant3(bool),
5990 Variant4(::std::vec::Vec<::serde_json::Value>),
5991 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5992 }
5993
5994 impl ::std::convert::From<&Self> for OptionsSetFilterValue {
5995 fn from(value: &OptionsSetFilterValue) -> Self {
5996 value.clone()
5997 }
5998 }
5999
6000 impl ::std::convert::From<f64> for OptionsSetFilterValue {
6001 fn from(value: f64) -> Self {
6002 Self::Variant1(value)
6003 }
6004 }
6005
6006 impl ::std::convert::From<i64> for OptionsSetFilterValue {
6007 fn from(value: i64) -> Self {
6008 Self::Variant2(value)
6009 }
6010 }
6011
6012 impl ::std::convert::From<bool> for OptionsSetFilterValue {
6013 fn from(value: bool) -> Self {
6014 Self::Variant3(value)
6015 }
6016 }
6017
6018 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFilterValue {
6019 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6020 Self::Variant4(value)
6021 }
6022 }
6023
6024 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6025 for OptionsSetFilterValue
6026 {
6027 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6028 Self::Variant5(value)
6029 }
6030 }
6031
6032 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6064 #[serde(untagged)]
6065 pub enum OptionsSetFtpValue {
6066 Variant0(::std::string::String),
6067 Variant1(f64),
6068 Variant2(i64),
6069 Variant3(bool),
6070 Variant4(::std::vec::Vec<::serde_json::Value>),
6071 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6072 }
6073
6074 impl ::std::convert::From<&Self> for OptionsSetFtpValue {
6075 fn from(value: &OptionsSetFtpValue) -> Self {
6076 value.clone()
6077 }
6078 }
6079
6080 impl ::std::convert::From<f64> for OptionsSetFtpValue {
6081 fn from(value: f64) -> Self {
6082 Self::Variant1(value)
6083 }
6084 }
6085
6086 impl ::std::convert::From<i64> for OptionsSetFtpValue {
6087 fn from(value: i64) -> Self {
6088 Self::Variant2(value)
6089 }
6090 }
6091
6092 impl ::std::convert::From<bool> for OptionsSetFtpValue {
6093 fn from(value: bool) -> Self {
6094 Self::Variant3(value)
6095 }
6096 }
6097
6098 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFtpValue {
6099 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6100 Self::Variant4(value)
6101 }
6102 }
6103
6104 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6105 for OptionsSetFtpValue
6106 {
6107 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6108 Self::Variant5(value)
6109 }
6110 }
6111
6112 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6144 #[serde(untagged)]
6145 pub enum OptionsSetHttpValue {
6146 Variant0(::std::string::String),
6147 Variant1(f64),
6148 Variant2(i64),
6149 Variant3(bool),
6150 Variant4(::std::vec::Vec<::serde_json::Value>),
6151 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6152 }
6153
6154 impl ::std::convert::From<&Self> for OptionsSetHttpValue {
6155 fn from(value: &OptionsSetHttpValue) -> Self {
6156 value.clone()
6157 }
6158 }
6159
6160 impl ::std::convert::From<f64> for OptionsSetHttpValue {
6161 fn from(value: f64) -> Self {
6162 Self::Variant1(value)
6163 }
6164 }
6165
6166 impl ::std::convert::From<i64> for OptionsSetHttpValue {
6167 fn from(value: i64) -> Self {
6168 Self::Variant2(value)
6169 }
6170 }
6171
6172 impl ::std::convert::From<bool> for OptionsSetHttpValue {
6173 fn from(value: bool) -> Self {
6174 Self::Variant3(value)
6175 }
6176 }
6177
6178 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetHttpValue {
6179 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6180 Self::Variant4(value)
6181 }
6182 }
6183
6184 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6185 for OptionsSetHttpValue
6186 {
6187 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6188 Self::Variant5(value)
6189 }
6190 }
6191
6192 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6224 #[serde(untagged)]
6225 pub enum OptionsSetLogValue {
6226 Variant0(::std::string::String),
6227 Variant1(f64),
6228 Variant2(i64),
6229 Variant3(bool),
6230 Variant4(::std::vec::Vec<::serde_json::Value>),
6231 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6232 }
6233
6234 impl ::std::convert::From<&Self> for OptionsSetLogValue {
6235 fn from(value: &OptionsSetLogValue) -> Self {
6236 value.clone()
6237 }
6238 }
6239
6240 impl ::std::convert::From<f64> for OptionsSetLogValue {
6241 fn from(value: f64) -> Self {
6242 Self::Variant1(value)
6243 }
6244 }
6245
6246 impl ::std::convert::From<i64> for OptionsSetLogValue {
6247 fn from(value: i64) -> Self {
6248 Self::Variant2(value)
6249 }
6250 }
6251
6252 impl ::std::convert::From<bool> for OptionsSetLogValue {
6253 fn from(value: bool) -> Self {
6254 Self::Variant3(value)
6255 }
6256 }
6257
6258 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetLogValue {
6259 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6260 Self::Variant4(value)
6261 }
6262 }
6263
6264 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6265 for OptionsSetLogValue
6266 {
6267 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6268 Self::Variant5(value)
6269 }
6270 }
6271
6272 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6304 #[serde(untagged)]
6305 pub enum OptionsSetMainValue {
6306 Variant0(::std::string::String),
6307 Variant1(f64),
6308 Variant2(i64),
6309 Variant3(bool),
6310 Variant4(::std::vec::Vec<::serde_json::Value>),
6311 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6312 }
6313
6314 impl ::std::convert::From<&Self> for OptionsSetMainValue {
6315 fn from(value: &OptionsSetMainValue) -> Self {
6316 value.clone()
6317 }
6318 }
6319
6320 impl ::std::convert::From<f64> for OptionsSetMainValue {
6321 fn from(value: f64) -> Self {
6322 Self::Variant1(value)
6323 }
6324 }
6325
6326 impl ::std::convert::From<i64> for OptionsSetMainValue {
6327 fn from(value: i64) -> Self {
6328 Self::Variant2(value)
6329 }
6330 }
6331
6332 impl ::std::convert::From<bool> for OptionsSetMainValue {
6333 fn from(value: bool) -> Self {
6334 Self::Variant3(value)
6335 }
6336 }
6337
6338 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMainValue {
6339 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6340 Self::Variant4(value)
6341 }
6342 }
6343
6344 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6345 for OptionsSetMainValue
6346 {
6347 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6348 Self::Variant5(value)
6349 }
6350 }
6351
6352 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6384 #[serde(untagged)]
6385 pub enum OptionsSetMountValue {
6386 Variant0(::std::string::String),
6387 Variant1(f64),
6388 Variant2(i64),
6389 Variant3(bool),
6390 Variant4(::std::vec::Vec<::serde_json::Value>),
6391 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6392 }
6393
6394 impl ::std::convert::From<&Self> for OptionsSetMountValue {
6395 fn from(value: &OptionsSetMountValue) -> Self {
6396 value.clone()
6397 }
6398 }
6399
6400 impl ::std::convert::From<f64> for OptionsSetMountValue {
6401 fn from(value: f64) -> Self {
6402 Self::Variant1(value)
6403 }
6404 }
6405
6406 impl ::std::convert::From<i64> for OptionsSetMountValue {
6407 fn from(value: i64) -> Self {
6408 Self::Variant2(value)
6409 }
6410 }
6411
6412 impl ::std::convert::From<bool> for OptionsSetMountValue {
6413 fn from(value: bool) -> Self {
6414 Self::Variant3(value)
6415 }
6416 }
6417
6418 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMountValue {
6419 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6420 Self::Variant4(value)
6421 }
6422 }
6423
6424 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6425 for OptionsSetMountValue
6426 {
6427 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6428 Self::Variant5(value)
6429 }
6430 }
6431
6432 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6464 #[serde(untagged)]
6465 pub enum OptionsSetNfsValue {
6466 Variant0(::std::string::String),
6467 Variant1(f64),
6468 Variant2(i64),
6469 Variant3(bool),
6470 Variant4(::std::vec::Vec<::serde_json::Value>),
6471 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6472 }
6473
6474 impl ::std::convert::From<&Self> for OptionsSetNfsValue {
6475 fn from(value: &OptionsSetNfsValue) -> Self {
6476 value.clone()
6477 }
6478 }
6479
6480 impl ::std::convert::From<f64> for OptionsSetNfsValue {
6481 fn from(value: f64) -> Self {
6482 Self::Variant1(value)
6483 }
6484 }
6485
6486 impl ::std::convert::From<i64> for OptionsSetNfsValue {
6487 fn from(value: i64) -> Self {
6488 Self::Variant2(value)
6489 }
6490 }
6491
6492 impl ::std::convert::From<bool> for OptionsSetNfsValue {
6493 fn from(value: bool) -> Self {
6494 Self::Variant3(value)
6495 }
6496 }
6497
6498 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetNfsValue {
6499 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6500 Self::Variant4(value)
6501 }
6502 }
6503
6504 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6505 for OptionsSetNfsValue
6506 {
6507 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6508 Self::Variant5(value)
6509 }
6510 }
6511
6512 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6544 #[serde(untagged)]
6545 pub enum OptionsSetProxyValue {
6546 Variant0(::std::string::String),
6547 Variant1(f64),
6548 Variant2(i64),
6549 Variant3(bool),
6550 Variant4(::std::vec::Vec<::serde_json::Value>),
6551 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6552 }
6553
6554 impl ::std::convert::From<&Self> for OptionsSetProxyValue {
6555 fn from(value: &OptionsSetProxyValue) -> Self {
6556 value.clone()
6557 }
6558 }
6559
6560 impl ::std::convert::From<f64> for OptionsSetProxyValue {
6561 fn from(value: f64) -> Self {
6562 Self::Variant1(value)
6563 }
6564 }
6565
6566 impl ::std::convert::From<i64> for OptionsSetProxyValue {
6567 fn from(value: i64) -> Self {
6568 Self::Variant2(value)
6569 }
6570 }
6571
6572 impl ::std::convert::From<bool> for OptionsSetProxyValue {
6573 fn from(value: bool) -> Self {
6574 Self::Variant3(value)
6575 }
6576 }
6577
6578 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetProxyValue {
6579 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6580 Self::Variant4(value)
6581 }
6582 }
6583
6584 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6585 for OptionsSetProxyValue
6586 {
6587 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6588 Self::Variant5(value)
6589 }
6590 }
6591
6592 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6624 #[serde(untagged)]
6625 pub enum OptionsSetRcValue {
6626 Variant0(::std::string::String),
6627 Variant1(f64),
6628 Variant2(i64),
6629 Variant3(bool),
6630 Variant4(::std::vec::Vec<::serde_json::Value>),
6631 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6632 }
6633
6634 impl ::std::convert::From<&Self> for OptionsSetRcValue {
6635 fn from(value: &OptionsSetRcValue) -> Self {
6636 value.clone()
6637 }
6638 }
6639
6640 impl ::std::convert::From<f64> for OptionsSetRcValue {
6641 fn from(value: f64) -> Self {
6642 Self::Variant1(value)
6643 }
6644 }
6645
6646 impl ::std::convert::From<i64> for OptionsSetRcValue {
6647 fn from(value: i64) -> Self {
6648 Self::Variant2(value)
6649 }
6650 }
6651
6652 impl ::std::convert::From<bool> for OptionsSetRcValue {
6653 fn from(value: bool) -> Self {
6654 Self::Variant3(value)
6655 }
6656 }
6657
6658 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetRcValue {
6659 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6660 Self::Variant4(value)
6661 }
6662 }
6663
6664 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6665 for OptionsSetRcValue
6666 {
6667 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6668 Self::Variant5(value)
6669 }
6670 }
6671
6672 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6704 #[serde(untagged)]
6705 pub enum OptionsSetResticValue {
6706 Variant0(::std::string::String),
6707 Variant1(f64),
6708 Variant2(i64),
6709 Variant3(bool),
6710 Variant4(::std::vec::Vec<::serde_json::Value>),
6711 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6712 }
6713
6714 impl ::std::convert::From<&Self> for OptionsSetResticValue {
6715 fn from(value: &OptionsSetResticValue) -> Self {
6716 value.clone()
6717 }
6718 }
6719
6720 impl ::std::convert::From<f64> for OptionsSetResticValue {
6721 fn from(value: f64) -> Self {
6722 Self::Variant1(value)
6723 }
6724 }
6725
6726 impl ::std::convert::From<i64> for OptionsSetResticValue {
6727 fn from(value: i64) -> Self {
6728 Self::Variant2(value)
6729 }
6730 }
6731
6732 impl ::std::convert::From<bool> for OptionsSetResticValue {
6733 fn from(value: bool) -> Self {
6734 Self::Variant3(value)
6735 }
6736 }
6737
6738 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetResticValue {
6739 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6740 Self::Variant4(value)
6741 }
6742 }
6743
6744 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6745 for OptionsSetResticValue
6746 {
6747 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6748 Self::Variant5(value)
6749 }
6750 }
6751
6752 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6784 #[serde(untagged)]
6785 pub enum OptionsSetS3Value {
6786 Variant0(::std::string::String),
6787 Variant1(f64),
6788 Variant2(i64),
6789 Variant3(bool),
6790 Variant4(::std::vec::Vec<::serde_json::Value>),
6791 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6792 }
6793
6794 impl ::std::convert::From<&Self> for OptionsSetS3Value {
6795 fn from(value: &OptionsSetS3Value) -> Self {
6796 value.clone()
6797 }
6798 }
6799
6800 impl ::std::convert::From<f64> for OptionsSetS3Value {
6801 fn from(value: f64) -> Self {
6802 Self::Variant1(value)
6803 }
6804 }
6805
6806 impl ::std::convert::From<i64> for OptionsSetS3Value {
6807 fn from(value: i64) -> Self {
6808 Self::Variant2(value)
6809 }
6810 }
6811
6812 impl ::std::convert::From<bool> for OptionsSetS3Value {
6813 fn from(value: bool) -> Self {
6814 Self::Variant3(value)
6815 }
6816 }
6817
6818 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetS3Value {
6819 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6820 Self::Variant4(value)
6821 }
6822 }
6823
6824 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6825 for OptionsSetS3Value
6826 {
6827 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6828 Self::Variant5(value)
6829 }
6830 }
6831
6832 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6864 #[serde(untagged)]
6865 pub enum OptionsSetSftpValue {
6866 Variant0(::std::string::String),
6867 Variant1(f64),
6868 Variant2(i64),
6869 Variant3(bool),
6870 Variant4(::std::vec::Vec<::serde_json::Value>),
6871 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6872 }
6873
6874 impl ::std::convert::From<&Self> for OptionsSetSftpValue {
6875 fn from(value: &OptionsSetSftpValue) -> Self {
6876 value.clone()
6877 }
6878 }
6879
6880 impl ::std::convert::From<f64> for OptionsSetSftpValue {
6881 fn from(value: f64) -> Self {
6882 Self::Variant1(value)
6883 }
6884 }
6885
6886 impl ::std::convert::From<i64> for OptionsSetSftpValue {
6887 fn from(value: i64) -> Self {
6888 Self::Variant2(value)
6889 }
6890 }
6891
6892 impl ::std::convert::From<bool> for OptionsSetSftpValue {
6893 fn from(value: bool) -> Self {
6894 Self::Variant3(value)
6895 }
6896 }
6897
6898 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetSftpValue {
6899 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6900 Self::Variant4(value)
6901 }
6902 }
6903
6904 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6905 for OptionsSetSftpValue
6906 {
6907 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6908 Self::Variant5(value)
6909 }
6910 }
6911
6912 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6944 #[serde(untagged)]
6945 pub enum OptionsSetVfsValue {
6946 Variant0(::std::string::String),
6947 Variant1(f64),
6948 Variant2(i64),
6949 Variant3(bool),
6950 Variant4(::std::vec::Vec<::serde_json::Value>),
6951 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6952 }
6953
6954 impl ::std::convert::From<&Self> for OptionsSetVfsValue {
6955 fn from(value: &OptionsSetVfsValue) -> Self {
6956 value.clone()
6957 }
6958 }
6959
6960 impl ::std::convert::From<f64> for OptionsSetVfsValue {
6961 fn from(value: f64) -> Self {
6962 Self::Variant1(value)
6963 }
6964 }
6965
6966 impl ::std::convert::From<i64> for OptionsSetVfsValue {
6967 fn from(value: i64) -> Self {
6968 Self::Variant2(value)
6969 }
6970 }
6971
6972 impl ::std::convert::From<bool> for OptionsSetVfsValue {
6973 fn from(value: bool) -> Self {
6974 Self::Variant3(value)
6975 }
6976 }
6977
6978 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetVfsValue {
6979 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6980 Self::Variant4(value)
6981 }
6982 }
6983
6984 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6985 for OptionsSetVfsValue
6986 {
6987 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6988 Self::Variant5(value)
6989 }
6990 }
6991
6992 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7024 #[serde(untagged)]
7025 pub enum OptionsSetWebdavValue {
7026 Variant0(::std::string::String),
7027 Variant1(f64),
7028 Variant2(i64),
7029 Variant3(bool),
7030 Variant4(::std::vec::Vec<::serde_json::Value>),
7031 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
7032 }
7033
7034 impl ::std::convert::From<&Self> for OptionsSetWebdavValue {
7035 fn from(value: &OptionsSetWebdavValue) -> Self {
7036 value.clone()
7037 }
7038 }
7039
7040 impl ::std::convert::From<f64> for OptionsSetWebdavValue {
7041 fn from(value: f64) -> Self {
7042 Self::Variant1(value)
7043 }
7044 }
7045
7046 impl ::std::convert::From<i64> for OptionsSetWebdavValue {
7047 fn from(value: i64) -> Self {
7048 Self::Variant2(value)
7049 }
7050 }
7051
7052 impl ::std::convert::From<bool> for OptionsSetWebdavValue {
7053 fn from(value: bool) -> Self {
7054 Self::Variant3(value)
7055 }
7056 }
7057
7058 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetWebdavValue {
7059 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
7060 Self::Variant4(value)
7061 }
7062 }
7063
7064 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
7065 for OptionsSetWebdavValue
7066 {
7067 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
7068 Self::Variant5(value)
7069 }
7070 }
7071
7072 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7105 pub struct PluginsctlGetPluginsForTypeResponse {
7106 #[serde(rename = "loadedPlugins")]
7108 pub loaded_plugins: ::std::collections::HashMap<
7109 ::std::string::String,
7110 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7111 >,
7112 #[serde(rename = "loadedTestPlugins")]
7114 pub loaded_test_plugins: ::std::collections::HashMap<
7115 ::std::string::String,
7116 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7117 >,
7118 }
7119
7120 impl ::std::convert::From<&PluginsctlGetPluginsForTypeResponse>
7121 for PluginsctlGetPluginsForTypeResponse
7122 {
7123 fn from(value: &PluginsctlGetPluginsForTypeResponse) -> Self {
7124 value.clone()
7125 }
7126 }
7127
7128 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7161 pub struct PluginsctlListPluginsResponse {
7162 #[serde(rename = "loadedPlugins")]
7164 pub loaded_plugins:
7165 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7166 #[serde(rename = "testPlugins")]
7168 pub test_plugins:
7169 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7170 }
7171
7172 impl ::std::convert::From<&PluginsctlListPluginsResponse> for PluginsctlListPluginsResponse {
7173 fn from(value: &PluginsctlListPluginsResponse) -> Self {
7174 value.clone()
7175 }
7176 }
7177
7178 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7203 pub struct PluginsctlListTestPluginsResponse {
7204 #[serde(rename = "loadedTestPlugins")]
7206 pub loaded_test_plugins: ::std::collections::HashMap<
7207 ::std::string::String,
7208 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7209 >,
7210 }
7211
7212 impl ::std::convert::From<&PluginsctlListTestPluginsResponse>
7213 for PluginsctlListTestPluginsResponse
7214 {
7215 fn from(value: &PluginsctlListTestPluginsResponse) -> Self {
7216 value.clone()
7217 }
7218 }
7219
7220 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7256 pub struct RcError {
7257 pub error: ::std::string::String,
7258 pub input:
7260 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7261 pub path: ::std::string::String,
7262 pub status: i64,
7263 }
7264
7265 impl ::std::convert::From<&RcError> for RcError {
7266 fn from(value: &RcError) -> Self {
7267 value.clone()
7268 }
7269 }
7270
7271 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7314 pub struct RcListResponse {
7315 pub commands: ::std::vec::Vec<RcListResponseCommandsItem>,
7316 }
7317
7318 impl ::std::convert::From<&RcListResponse> for RcListResponse {
7319 fn from(value: &RcListResponse) -> Self {
7320 value.clone()
7321 }
7322 }
7323
7324 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7356 pub struct RcListResponseCommandsItem {
7357 #[serde(
7358 rename = "AuthRequired",
7359 default,
7360 skip_serializing_if = "::std::option::Option::is_none"
7361 )]
7362 pub auth_required: ::std::option::Option<bool>,
7363 #[serde(
7364 rename = "Help",
7365 default,
7366 skip_serializing_if = "::std::option::Option::is_none"
7367 )]
7368 pub help: ::std::option::Option<::std::string::String>,
7369 #[serde(
7370 rename = "NeedsRequest",
7371 default,
7372 skip_serializing_if = "::std::option::Option::is_none"
7373 )]
7374 pub needs_request: ::std::option::Option<bool>,
7375 #[serde(
7376 rename = "NeedsResponse",
7377 default,
7378 skip_serializing_if = "::std::option::Option::is_none"
7379 )]
7380 pub needs_response: ::std::option::Option<bool>,
7381 #[serde(
7382 rename = "Path",
7383 default,
7384 skip_serializing_if = "::std::option::Option::is_none"
7385 )]
7386 pub path: ::std::option::Option<::std::string::String>,
7387 #[serde(
7388 rename = "Title",
7389 default,
7390 skip_serializing_if = "::std::option::Option::is_none"
7391 )]
7392 pub title: ::std::option::Option<::std::string::String>,
7393 }
7394
7395 impl ::std::convert::From<&RcListResponseCommandsItem> for RcListResponseCommandsItem {
7396 fn from(value: &RcListResponseCommandsItem) -> Self {
7397 value.clone()
7398 }
7399 }
7400
7401 impl ::std::default::Default for RcListResponseCommandsItem {
7402 fn default() -> Self {
7403 Self {
7404 auth_required: Default::default(),
7405 help: Default::default(),
7406 needs_request: Default::default(),
7407 needs_response: Default::default(),
7408 path: Default::default(),
7409 title: Default::default(),
7410 }
7411 }
7412 }
7413
7414 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7479 pub struct ServeListResponse {
7480 pub list: ::std::vec::Vec<ServeListResponseListItem>,
7481 }
7482
7483 impl ::std::convert::From<&ServeListResponse> for ServeListResponse {
7484 fn from(value: &ServeListResponse) -> Self {
7485 value.clone()
7486 }
7487 }
7488
7489 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7542 #[serde(deny_unknown_fields)]
7543 pub struct ServeListResponseListItem {
7544 pub addr: ::std::string::String,
7546 pub id: ::std::string::String,
7548 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7549 pub params: ::std::option::Option<ServeListResponseListItemParams>,
7550 }
7551
7552 impl ::std::convert::From<&ServeListResponseListItem> for ServeListResponseListItem {
7553 fn from(value: &ServeListResponseListItem) -> Self {
7554 value.clone()
7555 }
7556 }
7557
7558 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7592 pub struct ServeListResponseListItemParams {
7593 pub fs: ::std::string::String,
7594 pub id: ::serde_json::Value,
7595 #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")]
7596 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7597 #[serde(rename = "type")]
7598 pub type_: ::std::string::String,
7599 #[serde(
7600 rename = "vfsOpt",
7601 default,
7602 skip_serializing_if = "::serde_json::Map::is_empty"
7603 )]
7604 pub vfs_opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7605 }
7606
7607 impl ::std::convert::From<&ServeListResponseListItemParams> for ServeListResponseListItemParams {
7608 fn from(value: &ServeListResponseListItemParams) -> Self {
7609 value.clone()
7610 }
7611 }
7612
7613 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7638 pub struct ServeStartResponse {
7639 pub addr: ::std::string::String,
7641 pub id: ::std::string::String,
7643 }
7644
7645 impl ::std::convert::From<&ServeStartResponse> for ServeStartResponse {
7646 fn from(value: &ServeStartResponse) -> Self {
7647 value.clone()
7648 }
7649 }
7650
7651 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7668 pub struct SyncBisyncResponse {
7669 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7671 pub jobid: ::std::option::Option<i64>,
7672 }
7673
7674 impl ::std::convert::From<&SyncBisyncResponse> for SyncBisyncResponse {
7675 fn from(value: &SyncBisyncResponse) -> Self {
7676 value.clone()
7677 }
7678 }
7679
7680 impl ::std::default::Default for SyncBisyncResponse {
7681 fn default() -> Self {
7682 Self {
7683 jobid: Default::default(),
7684 }
7685 }
7686 }
7687
7688 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7705 pub struct SyncCopyResponse {
7706 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7708 pub jobid: ::std::option::Option<i64>,
7709 }
7710
7711 impl ::std::convert::From<&SyncCopyResponse> for SyncCopyResponse {
7712 fn from(value: &SyncCopyResponse) -> Self {
7713 value.clone()
7714 }
7715 }
7716
7717 impl ::std::default::Default for SyncCopyResponse {
7718 fn default() -> Self {
7719 Self {
7720 jobid: Default::default(),
7721 }
7722 }
7723 }
7724
7725 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7742 pub struct SyncMoveResponse {
7743 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7745 pub jobid: ::std::option::Option<i64>,
7746 }
7747
7748 impl ::std::convert::From<&SyncMoveResponse> for SyncMoveResponse {
7749 fn from(value: &SyncMoveResponse) -> Self {
7750 value.clone()
7751 }
7752 }
7753
7754 impl ::std::default::Default for SyncMoveResponse {
7755 fn default() -> Self {
7756 Self {
7757 jobid: Default::default(),
7758 }
7759 }
7760 }
7761
7762 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7779 pub struct SyncSyncResponse {
7780 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
7782 pub jobid: ::std::option::Option<i64>,
7783 }
7784
7785 impl ::std::convert::From<&SyncSyncResponse> for SyncSyncResponse {
7786 fn from(value: &SyncSyncResponse) -> Self {
7787 value.clone()
7788 }
7789 }
7790
7791 impl ::std::default::Default for SyncSyncResponse {
7792 fn default() -> Self {
7793 Self {
7794 jobid: Default::default(),
7795 }
7796 }
7797 }
7798
7799 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7822 pub struct VfsForgetResponse {
7823 pub forgotten: ::std::vec::Vec<::std::string::String>,
7825 }
7826
7827 impl ::std::convert::From<&VfsForgetResponse> for VfsForgetResponse {
7828 fn from(value: &VfsForgetResponse) -> Self {
7829 value.clone()
7830 }
7831 }
7832
7833 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7857 pub struct VfsListResponse {
7858 pub vfses: ::std::vec::Vec<::std::string::String>,
7860 }
7861
7862 impl ::std::convert::From<&VfsListResponse> for VfsListResponse {
7863 fn from(value: &VfsListResponse) -> Self {
7864 value.clone()
7865 }
7866 }
7867
7868 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7890 pub struct VfsQueueResponse {
7891 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7892 pub queued: ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7893 }
7894
7895 impl ::std::convert::From<&VfsQueueResponse> for VfsQueueResponse {
7896 fn from(value: &VfsQueueResponse) -> Self {
7897 value.clone()
7898 }
7899 }
7900
7901 impl ::std::default::Default for VfsQueueResponse {
7902 fn default() -> Self {
7903 Self {
7904 queued: Default::default(),
7905 }
7906 }
7907 }
7908
7909 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7932 pub struct VfsRefreshResponse {
7933 pub result: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
7935 }
7936
7937 impl ::std::convert::From<&VfsRefreshResponse> for VfsRefreshResponse {
7938 fn from(value: &VfsRefreshResponse) -> Self {
7939 value.clone()
7940 }
7941 }
7942
7943 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7990 pub struct VfsStatsResponse {
7991 #[serde(
7993 rename = "diskCache",
7994 default,
7995 skip_serializing_if = "::std::option::Option::is_none"
7996 )]
7997 pub disk_cache:
7998 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7999 pub fs: ::std::string::String,
8001 #[serde(rename = "inUse")]
8003 pub in_use: i64,
8004 #[serde(rename = "metadataCache")]
8006 pub metadata_cache: ::std::collections::HashMap<::std::string::String, i64>,
8007 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
8009 }
8010
8011 impl ::std::convert::From<&VfsStatsResponse> for VfsStatsResponse {
8012 fn from(value: &VfsStatsResponse) -> Self {
8013 value.clone()
8014 }
8015 }
8016}
8017
8018#[derive(Clone, Debug)]
8019pub struct Client {
8025 pub(crate) baseurl: String,
8026 pub(crate) client: reqwest::Client,
8027}
8028
8029impl Client {
8030 pub fn new(baseurl: &str) -> Self {
8036 #[cfg(not(target_arch = "wasm32"))]
8037 let client = {
8038 let dur = ::std::time::Duration::from_secs(15u64);
8039 reqwest::ClientBuilder::new()
8040 .connect_timeout(dur)
8041 .timeout(dur)
8042 };
8043 #[cfg(target_arch = "wasm32")]
8044 let client = reqwest::ClientBuilder::new();
8045 Self::new_with_client(baseurl, client.build().unwrap())
8046 }
8047
8048 pub fn new_with_client(baseurl: &str, client: reqwest::Client) -> Self {
8055 Self {
8056 baseurl: baseurl.to_string(),
8057 client,
8058 }
8059 }
8060}
8061
8062impl ClientInfo<()> for Client {
8063 fn api_version() -> &'static str {
8064 "1.73.0"
8065 }
8066
8067 fn baseurl(&self) -> &str {
8068 self.baseurl.as_str()
8069 }
8070
8071 fn client(&self) -> &reqwest::Client {
8072 &self.client
8073 }
8074
8075 fn inner(&self) -> &() {
8076 &()
8077 }
8078}
8079
8080impl ClientHooks<()> for &Client {}
8081#[allow(clippy::all)]
8082impl Client {
8083 pub async fn rc_noop<'a>(
8095 &'a self,
8096 async_: Option<bool>,
8097 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8098 ) -> Result<
8099 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8100 Error<types::RcError>,
8101 > {
8102 let url = format!("{}/rc/noop", self.baseurl,);
8103 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8104 header_map.append(
8105 ::reqwest::header::HeaderName::from_static("api-version"),
8106 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8107 );
8108 #[allow(unused_mut)]
8109 let mut request = self
8110 .client
8111 .post(url)
8112 .header(
8113 ::reqwest::header::ACCEPT,
8114 ::reqwest::header::HeaderValue::from_static("application/json"),
8115 )
8116 .query(&progenitor_client::QueryParam::new("_async", &async_))
8117 .query(&progenitor_client::QueryParam::new("params", ¶ms))
8118 .headers(header_map)
8119 .build()?;
8120 let info = OperationInfo {
8121 operation_id: "rc_noop",
8122 };
8123 self.pre(&mut request, &info).await?;
8124 let result = self.exec(request, &info).await;
8125 self.post(&result, &info).await?;
8126 let response = result?;
8127 match response.status().as_u16() {
8128 200u16 => ResponseValue::from_response(response).await,
8129 400u16..=499u16 => Err(Error::ErrorResponse(
8130 ResponseValue::from_response(response).await?,
8131 )),
8132 500u16..=599u16 => Err(Error::ErrorResponse(
8133 ResponseValue::from_response(response).await?,
8134 )),
8135 _ => Err(Error::UnexpectedResponse(response)),
8136 }
8137 }
8138
8139 pub async fn operations_cleanup<'a>(
8151 &'a self,
8152 async_: Option<bool>,
8153 group: Option<&'a str>,
8154 fs: &'a str,
8155 ) -> Result<
8156 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8157 Error<types::RcError>,
8158 > {
8159 let url = format!("{}/operations/cleanup", self.baseurl,);
8160 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8161 header_map.append(
8162 ::reqwest::header::HeaderName::from_static("api-version"),
8163 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8164 );
8165 #[allow(unused_mut)]
8166 let mut request = self
8167 .client
8168 .post(url)
8169 .header(
8170 ::reqwest::header::ACCEPT,
8171 ::reqwest::header::HeaderValue::from_static("application/json"),
8172 )
8173 .query(&progenitor_client::QueryParam::new("_async", &async_))
8174 .query(&progenitor_client::QueryParam::new("_group", &group))
8175 .query(&progenitor_client::QueryParam::new("fs", &fs))
8176 .headers(header_map)
8177 .build()?;
8178 let info = OperationInfo {
8179 operation_id: "operations_cleanup",
8180 };
8181 self.pre(&mut request, &info).await?;
8182 let result = self.exec(request, &info).await;
8183 self.post(&result, &info).await?;
8184 let response = result?;
8185 match response.status().as_u16() {
8186 200u16 => ResponseValue::from_response(response).await,
8187 400u16..=499u16 => Err(Error::ErrorResponse(
8188 ResponseValue::from_response(response).await?,
8189 )),
8190 500u16..=599u16 => Err(Error::ErrorResponse(
8191 ResponseValue::from_response(response).await?,
8192 )),
8193 _ => Err(Error::UnexpectedResponse(response)),
8194 }
8195 }
8196
8197 pub async fn operations_copyfile<'a>(
8217 &'a self,
8218 async_: Option<bool>,
8219 group: Option<&'a str>,
8220 dst_fs: &'a str,
8221 dst_remote: &'a str,
8222 src_fs: &'a str,
8223 src_remote: &'a str,
8224 ) -> Result<
8225 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8226 Error<types::RcError>,
8227 > {
8228 let url = format!("{}/operations/copyfile", self.baseurl,);
8229 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8230 header_map.append(
8231 ::reqwest::header::HeaderName::from_static("api-version"),
8232 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8233 );
8234 #[allow(unused_mut)]
8235 let mut request = self
8236 .client
8237 .post(url)
8238 .header(
8239 ::reqwest::header::ACCEPT,
8240 ::reqwest::header::HeaderValue::from_static("application/json"),
8241 )
8242 .query(&progenitor_client::QueryParam::new("_async", &async_))
8243 .query(&progenitor_client::QueryParam::new("_group", &group))
8244 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
8245 .query(&progenitor_client::QueryParam::new(
8246 "dstRemote",
8247 &dst_remote,
8248 ))
8249 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
8250 .query(&progenitor_client::QueryParam::new(
8251 "srcRemote",
8252 &src_remote,
8253 ))
8254 .headers(header_map)
8255 .build()?;
8256 let info = OperationInfo {
8257 operation_id: "operations_copyfile",
8258 };
8259 self.pre(&mut request, &info).await?;
8260 let result = self.exec(request, &info).await;
8261 self.post(&result, &info).await?;
8262 let response = result?;
8263 match response.status().as_u16() {
8264 200u16 => ResponseValue::from_response(response).await,
8265 400u16..=499u16 => Err(Error::ErrorResponse(
8266 ResponseValue::from_response(response).await?,
8267 )),
8268 500u16..=599u16 => Err(Error::ErrorResponse(
8269 ResponseValue::from_response(response).await?,
8270 )),
8271 _ => Err(Error::UnexpectedResponse(response)),
8272 }
8273 }
8274
8275 pub async fn operations_copyurl<'a>(
8293 &'a self,
8294 async_: Option<bool>,
8295 group: Option<&'a str>,
8296 auto_filename: Option<bool>,
8297 fs: &'a str,
8298 remote: &'a str,
8299 url: &'a str,
8300 ) -> Result<
8301 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8302 Error<types::RcError>,
8303 > {
8304 let _url = format!("{}/operations/copyurl", self.baseurl,);
8305 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8306 header_map.append(
8307 ::reqwest::header::HeaderName::from_static("api-version"),
8308 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8309 );
8310 #[allow(unused_mut)]
8311 let mut request = self
8312 .client
8313 .post(_url)
8314 .header(
8315 ::reqwest::header::ACCEPT,
8316 ::reqwest::header::HeaderValue::from_static("application/json"),
8317 )
8318 .query(&progenitor_client::QueryParam::new("_async", &async_))
8319 .query(&progenitor_client::QueryParam::new("_group", &group))
8320 .query(&progenitor_client::QueryParam::new(
8321 "autoFilename",
8322 &auto_filename,
8323 ))
8324 .query(&progenitor_client::QueryParam::new("fs", &fs))
8325 .query(&progenitor_client::QueryParam::new("remote", &remote))
8326 .query(&progenitor_client::QueryParam::new("url", &url))
8327 .headers(header_map)
8328 .build()?;
8329 let info = OperationInfo {
8330 operation_id: "operations_copyurl",
8331 };
8332 self.pre(&mut request, &info).await?;
8333 let result = self.exec(request, &info).await;
8334 self.post(&result, &info).await?;
8335 let response = result?;
8336 match response.status().as_u16() {
8337 200u16 => ResponseValue::from_response(response).await,
8338 400u16..=499u16 => Err(Error::ErrorResponse(
8339 ResponseValue::from_response(response).await?,
8340 )),
8341 500u16..=599u16 => Err(Error::ErrorResponse(
8342 ResponseValue::from_response(response).await?,
8343 )),
8344 _ => Err(Error::UnexpectedResponse(response)),
8345 }
8346 }
8347
8348 pub async fn operations_delete<'a>(
8363 &'a self,
8364 async_: Option<bool>,
8365 config: Option<&'a str>,
8366 filter: Option<&'a str>,
8367 group: Option<&'a str>,
8368 fs: &'a str,
8369 ) -> Result<
8370 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8371 Error<types::RcError>,
8372 > {
8373 let url = format!("{}/operations/delete", self.baseurl,);
8374 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8375 header_map.append(
8376 ::reqwest::header::HeaderName::from_static("api-version"),
8377 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8378 );
8379 #[allow(unused_mut)]
8380 let mut request = self
8381 .client
8382 .post(url)
8383 .header(
8384 ::reqwest::header::ACCEPT,
8385 ::reqwest::header::HeaderValue::from_static("application/json"),
8386 )
8387 .query(&progenitor_client::QueryParam::new("_async", &async_))
8388 .query(&progenitor_client::QueryParam::new("_config", &config))
8389 .query(&progenitor_client::QueryParam::new("_filter", &filter))
8390 .query(&progenitor_client::QueryParam::new("_group", &group))
8391 .query(&progenitor_client::QueryParam::new("fs", &fs))
8392 .headers(header_map)
8393 .build()?;
8394 let info = OperationInfo {
8395 operation_id: "operations_delete",
8396 };
8397 self.pre(&mut request, &info).await?;
8398 let result = self.exec(request, &info).await;
8399 self.post(&result, &info).await?;
8400 let response = result?;
8401 match response.status().as_u16() {
8402 200u16 => ResponseValue::from_response(response).await,
8403 400u16..=499u16 => Err(Error::ErrorResponse(
8404 ResponseValue::from_response(response).await?,
8405 )),
8406 500u16..=599u16 => Err(Error::ErrorResponse(
8407 ResponseValue::from_response(response).await?,
8408 )),
8409 _ => Err(Error::UnexpectedResponse(response)),
8410 }
8411 }
8412
8413 pub async fn operations_deletefile<'a>(
8426 &'a self,
8427 async_: Option<bool>,
8428 group: Option<&'a str>,
8429 fs: &'a str,
8430 remote: &'a str,
8431 ) -> Result<
8432 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8433 Error<types::RcError>,
8434 > {
8435 let url = format!("{}/operations/deletefile", self.baseurl,);
8436 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8437 header_map.append(
8438 ::reqwest::header::HeaderName::from_static("api-version"),
8439 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8440 );
8441 #[allow(unused_mut)]
8442 let mut request = self
8443 .client
8444 .post(url)
8445 .header(
8446 ::reqwest::header::ACCEPT,
8447 ::reqwest::header::HeaderValue::from_static("application/json"),
8448 )
8449 .query(&progenitor_client::QueryParam::new("_async", &async_))
8450 .query(&progenitor_client::QueryParam::new("_group", &group))
8451 .query(&progenitor_client::QueryParam::new("fs", &fs))
8452 .query(&progenitor_client::QueryParam::new("remote", &remote))
8453 .headers(header_map)
8454 .build()?;
8455 let info = OperationInfo {
8456 operation_id: "operations_deletefile",
8457 };
8458 self.pre(&mut request, &info).await?;
8459 let result = self.exec(request, &info).await;
8460 self.post(&result, &info).await?;
8461 let response = result?;
8462 match response.status().as_u16() {
8463 200u16 => ResponseValue::from_response(response).await,
8464 400u16..=499u16 => Err(Error::ErrorResponse(
8465 ResponseValue::from_response(response).await?,
8466 )),
8467 500u16..=599u16 => Err(Error::ErrorResponse(
8468 ResponseValue::from_response(response).await?,
8469 )),
8470 _ => Err(Error::UnexpectedResponse(response)),
8471 }
8472 }
8473
8474 pub async fn operations_fsinfo<'a>(
8487 &'a self,
8488 async_: Option<bool>,
8489 group: Option<&'a str>,
8490 fs: &'a str,
8491 ) -> Result<ResponseValue<types::OperationsFsinfoResponse>, Error<types::RcError>> {
8492 let url = format!("{}/operations/fsinfo", self.baseurl,);
8493 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8494 header_map.append(
8495 ::reqwest::header::HeaderName::from_static("api-version"),
8496 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8497 );
8498 #[allow(unused_mut)]
8499 let mut request = self
8500 .client
8501 .post(url)
8502 .header(
8503 ::reqwest::header::ACCEPT,
8504 ::reqwest::header::HeaderValue::from_static("application/json"),
8505 )
8506 .query(&progenitor_client::QueryParam::new("_async", &async_))
8507 .query(&progenitor_client::QueryParam::new("_group", &group))
8508 .query(&progenitor_client::QueryParam::new("fs", &fs))
8509 .headers(header_map)
8510 .build()?;
8511 let info = OperationInfo {
8512 operation_id: "operations_fsinfo",
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 operations_hashsum<'a>(
8549 &'a self,
8550 async_: Option<bool>,
8551 group: Option<&'a str>,
8552 base64: Option<bool>,
8553 download: Option<bool>,
8554 fs: &'a str,
8555 hash_type: &'a str,
8556 ) -> Result<ResponseValue<types::OperationsHashsumResponse>, Error<types::RcError>> {
8557 let url = format!("{}/operations/hashsum", self.baseurl,);
8558 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8559 header_map.append(
8560 ::reqwest::header::HeaderName::from_static("api-version"),
8561 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8562 );
8563 #[allow(unused_mut)]
8564 let mut request = self
8565 .client
8566 .post(url)
8567 .header(
8568 ::reqwest::header::ACCEPT,
8569 ::reqwest::header::HeaderValue::from_static("application/json"),
8570 )
8571 .query(&progenitor_client::QueryParam::new("_async", &async_))
8572 .query(&progenitor_client::QueryParam::new("_group", &group))
8573 .query(&progenitor_client::QueryParam::new("base64", &base64))
8574 .query(&progenitor_client::QueryParam::new("download", &download))
8575 .query(&progenitor_client::QueryParam::new("fs", &fs))
8576 .query(&progenitor_client::QueryParam::new("hashType", &hash_type))
8577 .headers(header_map)
8578 .build()?;
8579 let info = OperationInfo {
8580 operation_id: "operations_hashsum",
8581 };
8582 self.pre(&mut request, &info).await?;
8583 let result = self.exec(request, &info).await;
8584 self.post(&result, &info).await?;
8585 let response = result?;
8586 match response.status().as_u16() {
8587 200u16 => ResponseValue::from_response(response).await,
8588 400u16..=499u16 => Err(Error::ErrorResponse(
8589 ResponseValue::from_response(response).await?,
8590 )),
8591 500u16..=599u16 => Err(Error::ErrorResponse(
8592 ResponseValue::from_response(response).await?,
8593 )),
8594 _ => Err(Error::UnexpectedResponse(response)),
8595 }
8596 }
8597
8598 pub async fn operations_hashsumfile<'a>(
8617 &'a self,
8618 async_: Option<bool>,
8619 group: Option<&'a str>,
8620 base64: Option<bool>,
8621 download: Option<bool>,
8622 fs: &'a str,
8623 hash_type: &'a str,
8624 remote: &'a str,
8625 ) -> Result<ResponseValue<types::OperationsHashsumfileResponse>, Error<types::RcError>> {
8626 let url = format!("{}/operations/hashsumfile", self.baseurl,);
8627 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8628 header_map.append(
8629 ::reqwest::header::HeaderName::from_static("api-version"),
8630 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8631 );
8632 #[allow(unused_mut)]
8633 let mut request = self
8634 .client
8635 .post(url)
8636 .header(
8637 ::reqwest::header::ACCEPT,
8638 ::reqwest::header::HeaderValue::from_static("application/json"),
8639 )
8640 .query(&progenitor_client::QueryParam::new("_async", &async_))
8641 .query(&progenitor_client::QueryParam::new("_group", &group))
8642 .query(&progenitor_client::QueryParam::new("base64", &base64))
8643 .query(&progenitor_client::QueryParam::new("download", &download))
8644 .query(&progenitor_client::QueryParam::new("fs", &fs))
8645 .query(&progenitor_client::QueryParam::new("hashType", &hash_type))
8646 .query(&progenitor_client::QueryParam::new("remote", &remote))
8647 .headers(header_map)
8648 .build()?;
8649 let info = OperationInfo {
8650 operation_id: "operations_hashsumfile",
8651 };
8652 self.pre(&mut request, &info).await?;
8653 let result = self.exec(request, &info).await;
8654 self.post(&result, &info).await?;
8655 let response = result?;
8656 match response.status().as_u16() {
8657 200u16 => ResponseValue::from_response(response).await,
8658 400u16..=499u16 => Err(Error::ErrorResponse(
8659 ResponseValue::from_response(response).await?,
8660 )),
8661 500u16..=599u16 => Err(Error::ErrorResponse(
8662 ResponseValue::from_response(response).await?,
8663 )),
8664 _ => Err(Error::UnexpectedResponse(response)),
8665 }
8666 }
8667
8668 pub async fn operations_movefile<'a>(
8685 &'a self,
8686 async_: Option<bool>,
8687 group: Option<&'a str>,
8688 dst_fs: &'a str,
8689 dst_remote: &'a str,
8690 src_fs: &'a str,
8691 src_remote: &'a str,
8692 ) -> Result<
8693 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8694 Error<types::RcError>,
8695 > {
8696 let url = format!("{}/operations/movefile", self.baseurl,);
8697 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8698 header_map.append(
8699 ::reqwest::header::HeaderName::from_static("api-version"),
8700 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8701 );
8702 #[allow(unused_mut)]
8703 let mut request = self
8704 .client
8705 .post(url)
8706 .header(
8707 ::reqwest::header::ACCEPT,
8708 ::reqwest::header::HeaderValue::from_static("application/json"),
8709 )
8710 .query(&progenitor_client::QueryParam::new("_async", &async_))
8711 .query(&progenitor_client::QueryParam::new("_group", &group))
8712 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
8713 .query(&progenitor_client::QueryParam::new(
8714 "dstRemote",
8715 &dst_remote,
8716 ))
8717 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
8718 .query(&progenitor_client::QueryParam::new(
8719 "srcRemote",
8720 &src_remote,
8721 ))
8722 .headers(header_map)
8723 .build()?;
8724 let info = OperationInfo {
8725 operation_id: "operations_movefile",
8726 };
8727 self.pre(&mut request, &info).await?;
8728 let result = self.exec(request, &info).await;
8729 self.post(&result, &info).await?;
8730 let response = result?;
8731 match response.status().as_u16() {
8732 200u16 => ResponseValue::from_response(response).await,
8733 400u16..=499u16 => Err(Error::ErrorResponse(
8734 ResponseValue::from_response(response).await?,
8735 )),
8736 500u16..=599u16 => Err(Error::ErrorResponse(
8737 ResponseValue::from_response(response).await?,
8738 )),
8739 _ => Err(Error::UnexpectedResponse(response)),
8740 }
8741 }
8742
8743 pub async fn operations_publiclink<'a>(
8763 &'a self,
8764 async_: Option<bool>,
8765 group: Option<&'a str>,
8766 expire: Option<&'a str>,
8767 fs: &'a str,
8768 remote: &'a str,
8769 unlink: Option<bool>,
8770 ) -> Result<ResponseValue<types::OperationsPubliclinkResponse>, Error<types::RcError>> {
8771 let url = format!("{}/operations/publiclink", self.baseurl,);
8772 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8773 header_map.append(
8774 ::reqwest::header::HeaderName::from_static("api-version"),
8775 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8776 );
8777 #[allow(unused_mut)]
8778 let mut request = self
8779 .client
8780 .post(url)
8781 .header(
8782 ::reqwest::header::ACCEPT,
8783 ::reqwest::header::HeaderValue::from_static("application/json"),
8784 )
8785 .query(&progenitor_client::QueryParam::new("_async", &async_))
8786 .query(&progenitor_client::QueryParam::new("_group", &group))
8787 .query(&progenitor_client::QueryParam::new("expire", &expire))
8788 .query(&progenitor_client::QueryParam::new("fs", &fs))
8789 .query(&progenitor_client::QueryParam::new("remote", &remote))
8790 .query(&progenitor_client::QueryParam::new("unlink", &unlink))
8791 .headers(header_map)
8792 .build()?;
8793 let info = OperationInfo {
8794 operation_id: "operations_publiclink",
8795 };
8796 self.pre(&mut request, &info).await?;
8797 let result = self.exec(request, &info).await;
8798 self.post(&result, &info).await?;
8799 let response = result?;
8800 match response.status().as_u16() {
8801 200u16 => ResponseValue::from_response(response).await,
8802 400u16..=499u16 => Err(Error::ErrorResponse(
8803 ResponseValue::from_response(response).await?,
8804 )),
8805 500u16..=599u16 => Err(Error::ErrorResponse(
8806 ResponseValue::from_response(response).await?,
8807 )),
8808 _ => Err(Error::UnexpectedResponse(response)),
8809 }
8810 }
8811
8812 pub async fn operations_rmdirs<'a>(
8829 &'a self,
8830 async_: Option<bool>,
8831 group: Option<&'a str>,
8832 fs: &'a str,
8833 leave_root: Option<bool>,
8834 remote: &'a str,
8835 ) -> Result<
8836 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8837 Error<types::RcError>,
8838 > {
8839 let url = format!("{}/operations/rmdirs", self.baseurl,);
8840 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8841 header_map.append(
8842 ::reqwest::header::HeaderName::from_static("api-version"),
8843 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8844 );
8845 #[allow(unused_mut)]
8846 let mut request = self
8847 .client
8848 .post(url)
8849 .header(
8850 ::reqwest::header::ACCEPT,
8851 ::reqwest::header::HeaderValue::from_static("application/json"),
8852 )
8853 .query(&progenitor_client::QueryParam::new("_async", &async_))
8854 .query(&progenitor_client::QueryParam::new("_group", &group))
8855 .query(&progenitor_client::QueryParam::new("fs", &fs))
8856 .query(&progenitor_client::QueryParam::new(
8857 "leaveRoot",
8858 &leave_root,
8859 ))
8860 .query(&progenitor_client::QueryParam::new("remote", &remote))
8861 .headers(header_map)
8862 .build()?;
8863 let info = OperationInfo {
8864 operation_id: "operations_rmdirs",
8865 };
8866 self.pre(&mut request, &info).await?;
8867 let result = self.exec(request, &info).await;
8868 self.post(&result, &info).await?;
8869 let response = result?;
8870 match response.status().as_u16() {
8871 200u16 => ResponseValue::from_response(response).await,
8872 400u16..=499u16 => Err(Error::ErrorResponse(
8873 ResponseValue::from_response(response).await?,
8874 )),
8875 500u16..=599u16 => Err(Error::ErrorResponse(
8876 ResponseValue::from_response(response).await?,
8877 )),
8878 _ => Err(Error::UnexpectedResponse(response)),
8879 }
8880 }
8881
8882 pub async fn operations_settier<'a>(
8895 &'a self,
8896 async_: Option<bool>,
8897 group: Option<&'a str>,
8898 fs: &'a str,
8899 ) -> Result<
8900 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8901 Error<types::RcError>,
8902 > {
8903 let url = format!("{}/operations/settier", self.baseurl,);
8904 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8905 header_map.append(
8906 ::reqwest::header::HeaderName::from_static("api-version"),
8907 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8908 );
8909 #[allow(unused_mut)]
8910 let mut request = self
8911 .client
8912 .post(url)
8913 .header(
8914 ::reqwest::header::ACCEPT,
8915 ::reqwest::header::HeaderValue::from_static("application/json"),
8916 )
8917 .query(&progenitor_client::QueryParam::new("_async", &async_))
8918 .query(&progenitor_client::QueryParam::new("_group", &group))
8919 .query(&progenitor_client::QueryParam::new("fs", &fs))
8920 .headers(header_map)
8921 .build()?;
8922 let info = OperationInfo {
8923 operation_id: "operations_settier",
8924 };
8925 self.pre(&mut request, &info).await?;
8926 let result = self.exec(request, &info).await;
8927 self.post(&result, &info).await?;
8928 let response = result?;
8929 match response.status().as_u16() {
8930 200u16 => ResponseValue::from_response(response).await,
8931 400u16..=499u16 => Err(Error::ErrorResponse(
8932 ResponseValue::from_response(response).await?,
8933 )),
8934 500u16..=599u16 => Err(Error::ErrorResponse(
8935 ResponseValue::from_response(response).await?,
8936 )),
8937 _ => Err(Error::UnexpectedResponse(response)),
8938 }
8939 }
8940
8941 pub async fn operations_settierfile<'a>(
8956 &'a self,
8957 async_: Option<bool>,
8958 group: Option<&'a str>,
8959 fs: &'a str,
8960 remote: &'a str,
8961 ) -> Result<
8962 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8963 Error<types::RcError>,
8964 > {
8965 let url = format!("{}/operations/settierfile", self.baseurl,);
8966 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8967 header_map.append(
8968 ::reqwest::header::HeaderName::from_static("api-version"),
8969 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8970 );
8971 #[allow(unused_mut)]
8972 let mut request = self
8973 .client
8974 .post(url)
8975 .header(
8976 ::reqwest::header::ACCEPT,
8977 ::reqwest::header::HeaderValue::from_static("application/json"),
8978 )
8979 .query(&progenitor_client::QueryParam::new("_async", &async_))
8980 .query(&progenitor_client::QueryParam::new("_group", &group))
8981 .query(&progenitor_client::QueryParam::new("fs", &fs))
8982 .query(&progenitor_client::QueryParam::new("remote", &remote))
8983 .headers(header_map)
8984 .build()?;
8985 let info = OperationInfo {
8986 operation_id: "operations_settierfile",
8987 };
8988 self.pre(&mut request, &info).await?;
8989 let result = self.exec(request, &info).await;
8990 self.post(&result, &info).await?;
8991 let response = result?;
8992 match response.status().as_u16() {
8993 200u16 => ResponseValue::from_response(response).await,
8994 400u16..=499u16 => Err(Error::ErrorResponse(
8995 ResponseValue::from_response(response).await?,
8996 )),
8997 500u16..=599u16 => Err(Error::ErrorResponse(
8998 ResponseValue::from_response(response).await?,
8999 )),
9000 _ => Err(Error::UnexpectedResponse(response)),
9001 }
9002 }
9003
9004 pub async fn operations_size<'a>(
9017 &'a self,
9018 async_: Option<bool>,
9019 group: Option<&'a str>,
9020 fs: &'a str,
9021 ) -> Result<ResponseValue<types::OperationsSizeResponse>, Error<types::RcError>> {
9022 let url = format!("{}/operations/size", self.baseurl,);
9023 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9024 header_map.append(
9025 ::reqwest::header::HeaderName::from_static("api-version"),
9026 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9027 );
9028 #[allow(unused_mut)]
9029 let mut request = self
9030 .client
9031 .post(url)
9032 .header(
9033 ::reqwest::header::ACCEPT,
9034 ::reqwest::header::HeaderValue::from_static("application/json"),
9035 )
9036 .query(&progenitor_client::QueryParam::new("_async", &async_))
9037 .query(&progenitor_client::QueryParam::new("_group", &group))
9038 .query(&progenitor_client::QueryParam::new("fs", &fs))
9039 .headers(header_map)
9040 .build()?;
9041 let info = OperationInfo {
9042 operation_id: "operations_size",
9043 };
9044 self.pre(&mut request, &info).await?;
9045 let result = self.exec(request, &info).await;
9046 self.post(&result, &info).await?;
9047 let response = result?;
9048 match response.status().as_u16() {
9049 200u16 => ResponseValue::from_response(response).await,
9050 400u16..=499u16 => Err(Error::ErrorResponse(
9051 ResponseValue::from_response(response).await?,
9052 )),
9053 500u16..=599u16 => Err(Error::ErrorResponse(
9054 ResponseValue::from_response(response).await?,
9055 )),
9056 _ => Err(Error::UnexpectedResponse(response)),
9057 }
9058 }
9059
9060 pub async fn core_bwlimit<'a>(
9074 &'a self,
9075 async_: Option<bool>,
9076 group: Option<&'a str>,
9077 rate: Option<&'a str>,
9078 ) -> Result<ResponseValue<types::CoreBwlimitResponse>, Error<types::RcError>> {
9079 let url = format!("{}/core/bwlimit", self.baseurl,);
9080 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9081 header_map.append(
9082 ::reqwest::header::HeaderName::from_static("api-version"),
9083 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9084 );
9085 #[allow(unused_mut)]
9086 let mut request = self
9087 .client
9088 .post(url)
9089 .header(
9090 ::reqwest::header::ACCEPT,
9091 ::reqwest::header::HeaderValue::from_static("application/json"),
9092 )
9093 .query(&progenitor_client::QueryParam::new("_async", &async_))
9094 .query(&progenitor_client::QueryParam::new("_group", &group))
9095 .query(&progenitor_client::QueryParam::new("rate", &rate))
9096 .headers(header_map)
9097 .build()?;
9098 let info = OperationInfo {
9099 operation_id: "core_bwlimit",
9100 };
9101 self.pre(&mut request, &info).await?;
9102 let result = self.exec(request, &info).await;
9103 self.post(&result, &info).await?;
9104 let response = result?;
9105 match response.status().as_u16() {
9106 200u16 => ResponseValue::from_response(response).await,
9107 400u16..=499u16 => Err(Error::ErrorResponse(
9108 ResponseValue::from_response(response).await?,
9109 )),
9110 500u16..=599u16 => Err(Error::ErrorResponse(
9111 ResponseValue::from_response(response).await?,
9112 )),
9113 _ => Err(Error::UnexpectedResponse(response)),
9114 }
9115 }
9116
9117 pub async fn core_command<'a>(
9137 &'a self,
9138 async_: Option<bool>,
9139 group: Option<&'a str>,
9140 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
9141 command: &'a str,
9142 opt: Option<&'a str>,
9143 return_type: Option<&'a str>,
9144 ) -> Result<ResponseValue<types::CoreCommandResponse>, Error<types::RcError>> {
9145 let url = format!("{}/core/command", self.baseurl,);
9146 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9147 header_map.append(
9148 ::reqwest::header::HeaderName::from_static("api-version"),
9149 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9150 );
9151 #[allow(unused_mut)]
9152 let mut request = self
9153 .client
9154 .post(url)
9155 .header(
9156 ::reqwest::header::ACCEPT,
9157 ::reqwest::header::HeaderValue::from_static("application/json"),
9158 )
9159 .query(&progenitor_client::QueryParam::new("_async", &async_))
9160 .query(&progenitor_client::QueryParam::new("_group", &group))
9161 .query(&progenitor_client::QueryParam::new("arg", &arg))
9162 .query(&progenitor_client::QueryParam::new("command", &command))
9163 .query(&progenitor_client::QueryParam::new("opt", &opt))
9164 .query(&progenitor_client::QueryParam::new(
9165 "returnType",
9166 &return_type,
9167 ))
9168 .headers(header_map)
9169 .build()?;
9170 let info = OperationInfo {
9171 operation_id: "core_command",
9172 };
9173 self.pre(&mut request, &info).await?;
9174 let result = self.exec(request, &info).await;
9175 self.post(&result, &info).await?;
9176 let response = result?;
9177 match response.status().as_u16() {
9178 200u16 => ResponseValue::from_response(response).await,
9179 400u16..=499u16 => Err(Error::ErrorResponse(
9180 ResponseValue::from_response(response).await?,
9181 )),
9182 500u16..=599u16 => Err(Error::ErrorResponse(
9183 ResponseValue::from_response(response).await?,
9184 )),
9185 _ => Err(Error::UnexpectedResponse(response)),
9186 }
9187 }
9188
9189 pub async fn core_du<'a>(
9203 &'a self,
9204 async_: Option<bool>,
9205 group: Option<&'a str>,
9206 dir: Option<&'a str>,
9207 ) -> Result<ResponseValue<types::CoreDuResponse>, Error<types::RcError>> {
9208 let url = format!("{}/core/du", self.baseurl,);
9209 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9210 header_map.append(
9211 ::reqwest::header::HeaderName::from_static("api-version"),
9212 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9213 );
9214 #[allow(unused_mut)]
9215 let mut request = self
9216 .client
9217 .post(url)
9218 .header(
9219 ::reqwest::header::ACCEPT,
9220 ::reqwest::header::HeaderValue::from_static("application/json"),
9221 )
9222 .query(&progenitor_client::QueryParam::new("_async", &async_))
9223 .query(&progenitor_client::QueryParam::new("_group", &group))
9224 .query(&progenitor_client::QueryParam::new("dir", &dir))
9225 .headers(header_map)
9226 .build()?;
9227 let info = OperationInfo {
9228 operation_id: "core_du",
9229 };
9230 self.pre(&mut request, &info).await?;
9231 let result = self.exec(request, &info).await;
9232 self.post(&result, &info).await?;
9233 let response = result?;
9234 match response.status().as_u16() {
9235 200u16 => ResponseValue::from_response(response).await,
9236 400u16..=499u16 => Err(Error::ErrorResponse(
9237 ResponseValue::from_response(response).await?,
9238 )),
9239 500u16..=599u16 => Err(Error::ErrorResponse(
9240 ResponseValue::from_response(response).await?,
9241 )),
9242 _ => Err(Error::UnexpectedResponse(response)),
9243 }
9244 }
9245
9246 pub async fn core_gc<'a>(
9257 &'a self,
9258 async_: Option<bool>,
9259 group: Option<&'a str>,
9260 ) -> Result<
9261 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9262 Error<types::RcError>,
9263 > {
9264 let url = format!("{}/core/gc", self.baseurl,);
9265 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9266 header_map.append(
9267 ::reqwest::header::HeaderName::from_static("api-version"),
9268 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9269 );
9270 #[allow(unused_mut)]
9271 let mut request = self
9272 .client
9273 .post(url)
9274 .header(
9275 ::reqwest::header::ACCEPT,
9276 ::reqwest::header::HeaderValue::from_static("application/json"),
9277 )
9278 .query(&progenitor_client::QueryParam::new("_async", &async_))
9279 .query(&progenitor_client::QueryParam::new("_group", &group))
9280 .headers(header_map)
9281 .build()?;
9282 let info = OperationInfo {
9283 operation_id: "core_gc",
9284 };
9285 self.pre(&mut request, &info).await?;
9286 let result = self.exec(request, &info).await;
9287 self.post(&result, &info).await?;
9288 let response = result?;
9289 match response.status().as_u16() {
9290 200u16 => ResponseValue::from_response(response).await,
9291 400u16..=499u16 => Err(Error::ErrorResponse(
9292 ResponseValue::from_response(response).await?,
9293 )),
9294 500u16..=599u16 => Err(Error::ErrorResponse(
9295 ResponseValue::from_response(response).await?,
9296 )),
9297 _ => Err(Error::UnexpectedResponse(response)),
9298 }
9299 }
9300
9301 pub async fn core_group_list<'a>(
9312 &'a self,
9313 async_: Option<bool>,
9314 group: Option<&'a str>,
9315 ) -> Result<ResponseValue<types::CoreGroupListResponse>, Error<types::RcError>> {
9316 let url = format!("{}/core/group-list", self.baseurl,);
9317 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9318 header_map.append(
9319 ::reqwest::header::HeaderName::from_static("api-version"),
9320 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9321 );
9322 #[allow(unused_mut)]
9323 let mut request = self
9324 .client
9325 .post(url)
9326 .header(
9327 ::reqwest::header::ACCEPT,
9328 ::reqwest::header::HeaderValue::from_static("application/json"),
9329 )
9330 .query(&progenitor_client::QueryParam::new("_async", &async_))
9331 .query(&progenitor_client::QueryParam::new("_group", &group))
9332 .headers(header_map)
9333 .build()?;
9334 let info = OperationInfo {
9335 operation_id: "core_group_list",
9336 };
9337 self.pre(&mut request, &info).await?;
9338 let result = self.exec(request, &info).await;
9339 self.post(&result, &info).await?;
9340 let response = result?;
9341 match response.status().as_u16() {
9342 200u16 => ResponseValue::from_response(response).await,
9343 400u16..=499u16 => Err(Error::ErrorResponse(
9344 ResponseValue::from_response(response).await?,
9345 )),
9346 500u16..=599u16 => Err(Error::ErrorResponse(
9347 ResponseValue::from_response(response).await?,
9348 )),
9349 _ => Err(Error::UnexpectedResponse(response)),
9350 }
9351 }
9352
9353 pub async fn core_memstats<'a>(
9364 &'a self,
9365 async_: Option<bool>,
9366 group: Option<&'a str>,
9367 ) -> Result<
9368 ResponseValue<::std::collections::HashMap<::std::string::String, f64>>,
9369 Error<types::RcError>,
9370 > {
9371 let url = format!("{}/core/memstats", self.baseurl,);
9372 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9373 header_map.append(
9374 ::reqwest::header::HeaderName::from_static("api-version"),
9375 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9376 );
9377 #[allow(unused_mut)]
9378 let mut request = self
9379 .client
9380 .post(url)
9381 .header(
9382 ::reqwest::header::ACCEPT,
9383 ::reqwest::header::HeaderValue::from_static("application/json"),
9384 )
9385 .query(&progenitor_client::QueryParam::new("_async", &async_))
9386 .query(&progenitor_client::QueryParam::new("_group", &group))
9387 .headers(header_map)
9388 .build()?;
9389 let info = OperationInfo {
9390 operation_id: "core_memstats",
9391 };
9392 self.pre(&mut request, &info).await?;
9393 let result = self.exec(request, &info).await;
9394 self.post(&result, &info).await?;
9395 let response = result?;
9396 match response.status().as_u16() {
9397 200u16 => ResponseValue::from_response(response).await,
9398 400u16..=499u16 => Err(Error::ErrorResponse(
9399 ResponseValue::from_response(response).await?,
9400 )),
9401 500u16..=599u16 => Err(Error::ErrorResponse(
9402 ResponseValue::from_response(response).await?,
9403 )),
9404 _ => Err(Error::UnexpectedResponse(response)),
9405 }
9406 }
9407
9408 pub async fn core_obscure<'a>(
9420 &'a self,
9421 async_: Option<bool>,
9422 group: Option<&'a str>,
9423 clear: &'a str,
9424 ) -> Result<ResponseValue<types::CoreObscureResponse>, Error<types::RcError>> {
9425 let url = format!("{}/core/obscure", self.baseurl,);
9426 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9427 header_map.append(
9428 ::reqwest::header::HeaderName::from_static("api-version"),
9429 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9430 );
9431 #[allow(unused_mut)]
9432 let mut request = self
9433 .client
9434 .post(url)
9435 .header(
9436 ::reqwest::header::ACCEPT,
9437 ::reqwest::header::HeaderValue::from_static("application/json"),
9438 )
9439 .query(&progenitor_client::QueryParam::new("_async", &async_))
9440 .query(&progenitor_client::QueryParam::new("_group", &group))
9441 .query(&progenitor_client::QueryParam::new("clear", &clear))
9442 .headers(header_map)
9443 .build()?;
9444 let info = OperationInfo {
9445 operation_id: "core_obscure",
9446 };
9447 self.pre(&mut request, &info).await?;
9448 let result = self.exec(request, &info).await;
9449 self.post(&result, &info).await?;
9450 let response = result?;
9451 match response.status().as_u16() {
9452 200u16 => ResponseValue::from_response(response).await,
9453 400u16..=499u16 => Err(Error::ErrorResponse(
9454 ResponseValue::from_response(response).await?,
9455 )),
9456 500u16..=599u16 => Err(Error::ErrorResponse(
9457 ResponseValue::from_response(response).await?,
9458 )),
9459 _ => Err(Error::UnexpectedResponse(response)),
9460 }
9461 }
9462
9463 pub async fn core_pid<'a>(
9474 &'a self,
9475 async_: Option<bool>,
9476 group: Option<&'a str>,
9477 ) -> Result<ResponseValue<types::CorePidResponse>, Error<types::RcError>> {
9478 let url = format!("{}/core/pid", self.baseurl,);
9479 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9480 header_map.append(
9481 ::reqwest::header::HeaderName::from_static("api-version"),
9482 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9483 );
9484 #[allow(unused_mut)]
9485 let mut request = self
9486 .client
9487 .post(url)
9488 .header(
9489 ::reqwest::header::ACCEPT,
9490 ::reqwest::header::HeaderValue::from_static("application/json"),
9491 )
9492 .query(&progenitor_client::QueryParam::new("_async", &async_))
9493 .query(&progenitor_client::QueryParam::new("_group", &group))
9494 .headers(header_map)
9495 .build()?;
9496 let info = OperationInfo {
9497 operation_id: "core_pid",
9498 };
9499 self.pre(&mut request, &info).await?;
9500 let result = self.exec(request, &info).await;
9501 self.post(&result, &info).await?;
9502 let response = result?;
9503 match response.status().as_u16() {
9504 200u16 => ResponseValue::from_response(response).await,
9505 400u16..=499u16 => Err(Error::ErrorResponse(
9506 ResponseValue::from_response(response).await?,
9507 )),
9508 500u16..=599u16 => Err(Error::ErrorResponse(
9509 ResponseValue::from_response(response).await?,
9510 )),
9511 _ => Err(Error::UnexpectedResponse(response)),
9512 }
9513 }
9514
9515 pub async fn core_quit<'a>(
9528 &'a self,
9529 async_: Option<bool>,
9530 group: Option<&'a str>,
9531 exit_code: Option<i64>,
9532 ) -> Result<
9533 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9534 Error<types::RcError>,
9535 > {
9536 let url = format!("{}/core/quit", self.baseurl,);
9537 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9538 header_map.append(
9539 ::reqwest::header::HeaderName::from_static("api-version"),
9540 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9541 );
9542 #[allow(unused_mut)]
9543 let mut request = self
9544 .client
9545 .post(url)
9546 .header(
9547 ::reqwest::header::ACCEPT,
9548 ::reqwest::header::HeaderValue::from_static("application/json"),
9549 )
9550 .query(&progenitor_client::QueryParam::new("_async", &async_))
9551 .query(&progenitor_client::QueryParam::new("_group", &group))
9552 .query(&progenitor_client::QueryParam::new("exitCode", &exit_code))
9553 .headers(header_map)
9554 .build()?;
9555 let info = OperationInfo {
9556 operation_id: "core_quit",
9557 };
9558 self.pre(&mut request, &info).await?;
9559 let result = self.exec(request, &info).await;
9560 self.post(&result, &info).await?;
9561 let response = result?;
9562 match response.status().as_u16() {
9563 200u16 => ResponseValue::from_response(response).await,
9564 400u16..=499u16 => Err(Error::ErrorResponse(
9565 ResponseValue::from_response(response).await?,
9566 )),
9567 500u16..=599u16 => Err(Error::ErrorResponse(
9568 ResponseValue::from_response(response).await?,
9569 )),
9570 _ => Err(Error::UnexpectedResponse(response)),
9571 }
9572 }
9573
9574 pub async fn core_stats_delete<'a>(
9586 &'a self,
9587 async_: Option<bool>,
9588 _group: Option<&'a str>,
9589 group: &'a str
9590 ) -> Result<
9591 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9592 Error<types::RcError>,
9593 > {
9594 let url = format!("{}/core/stats-delete", self.baseurl,);
9595 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9596 header_map.append(
9597 ::reqwest::header::HeaderName::from_static("api-version"),
9598 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9599 );
9600 #[allow(unused_mut)]
9601 let mut request = self
9602 .client
9603 .post(url)
9604 .header(
9605 ::reqwest::header::ACCEPT,
9606 ::reqwest::header::HeaderValue::from_static("application/json"),
9607 )
9608 .query(&progenitor_client::QueryParam::new("_async", &async_))
9609 .query(&progenitor_client::QueryParam::new("_group", &group))
9610 .query(&progenitor_client::QueryParam::new("group", &group))
9611 .headers(header_map)
9612 .build()?;
9613 let info = OperationInfo {
9614 operation_id: "core_stats_delete",
9615 };
9616 self.pre(&mut request, &info).await?;
9617 let result = self.exec(request, &info).await;
9618 self.post(&result, &info).await?;
9619 let response = result?;
9620 match response.status().as_u16() {
9621 200u16 => ResponseValue::from_response(response).await,
9622 400u16..=499u16 => Err(Error::ErrorResponse(
9623 ResponseValue::from_response(response).await?,
9624 )),
9625 500u16..=599u16 => Err(Error::ErrorResponse(
9626 ResponseValue::from_response(response).await?,
9627 )),
9628 _ => Err(Error::UnexpectedResponse(response)),
9629 }
9630 }
9631
9632 pub async fn core_stats_reset<'a>(
9646 &'a self,
9647 async_: Option<bool>,
9648 _group: Option<&'a str>,
9649 group: Option<&'a str>
9650 ) -> Result<
9651 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9652 Error<types::RcError>,
9653 > {
9654 let url = format!("{}/core/stats-reset", self.baseurl,);
9655 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9656 header_map.append(
9657 ::reqwest::header::HeaderName::from_static("api-version"),
9658 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9659 );
9660 #[allow(unused_mut)]
9661 let mut request = self
9662 .client
9663 .post(url)
9664 .header(
9665 ::reqwest::header::ACCEPT,
9666 ::reqwest::header::HeaderValue::from_static("application/json"),
9667 )
9668 .query(&progenitor_client::QueryParam::new("_async", &async_))
9669 .query(&progenitor_client::QueryParam::new("_group", &group))
9670 .query(&progenitor_client::QueryParam::new("group", &group))
9671 .headers(header_map)
9672 .build()?;
9673 let info = OperationInfo {
9674 operation_id: "core_stats_reset",
9675 };
9676 self.pre(&mut request, &info).await?;
9677 let result = self.exec(request, &info).await;
9678 self.post(&result, &info).await?;
9679 let response = result?;
9680 match response.status().as_u16() {
9681 200u16 => ResponseValue::from_response(response).await,
9682 400u16..=499u16 => Err(Error::ErrorResponse(
9683 ResponseValue::from_response(response).await?,
9684 )),
9685 500u16..=599u16 => Err(Error::ErrorResponse(
9686 ResponseValue::from_response(response).await?,
9687 )),
9688 _ => Err(Error::UnexpectedResponse(response)),
9689 }
9690 }
9691
9692 pub async fn core_transferred<'a>(
9706 &'a self,
9707 async_: Option<bool>,
9708 _group: Option<&'a str>,
9709 group: Option<&'a str>
9710 ) -> Result<ResponseValue<types::CoreTransferredResponse>, Error<types::RcError>> {
9711 let url = format!("{}/core/transferred", self.baseurl,);
9712 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9713 header_map.append(
9714 ::reqwest::header::HeaderName::from_static("api-version"),
9715 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9716 );
9717 #[allow(unused_mut)]
9718 let mut request = self
9719 .client
9720 .post(url)
9721 .header(
9722 ::reqwest::header::ACCEPT,
9723 ::reqwest::header::HeaderValue::from_static("application/json"),
9724 )
9725 .query(&progenitor_client::QueryParam::new("_async", &async_))
9726 .query(&progenitor_client::QueryParam::new("_group", &group))
9727 .query(&progenitor_client::QueryParam::new("group", &group))
9728 .headers(header_map)
9729 .build()?;
9730 let info = OperationInfo {
9731 operation_id: "core_transferred",
9732 };
9733 self.pre(&mut request, &info).await?;
9734 let result = self.exec(request, &info).await;
9735 self.post(&result, &info).await?;
9736 let response = result?;
9737 match response.status().as_u16() {
9738 200u16 => ResponseValue::from_response(response).await,
9739 400u16..=499u16 => Err(Error::ErrorResponse(
9740 ResponseValue::from_response(response).await?,
9741 )),
9742 500u16..=599u16 => Err(Error::ErrorResponse(
9743 ResponseValue::from_response(response).await?,
9744 )),
9745 _ => Err(Error::UnexpectedResponse(response)),
9746 }
9747 }
9748
9749 pub async fn debug_set_block_profile_rate<'a>(
9758 &'a self,
9759 async_: Option<bool>,
9760 group: Option<&'a str>,
9761 rate: i64,
9762 ) -> Result<
9763 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9764 Error<types::RcError>,
9765 > {
9766 let url = format!("{}/debug/set-block-profile-rate", self.baseurl,);
9767 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9768 header_map.append(
9769 ::reqwest::header::HeaderName::from_static("api-version"),
9770 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9771 );
9772 #[allow(unused_mut)]
9773 let mut request = self
9774 .client
9775 .post(url)
9776 .header(
9777 ::reqwest::header::ACCEPT,
9778 ::reqwest::header::HeaderValue::from_static("application/json"),
9779 )
9780 .query(&progenitor_client::QueryParam::new("_async", &async_))
9781 .query(&progenitor_client::QueryParam::new("_group", &group))
9782 .query(&progenitor_client::QueryParam::new("rate", &rate))
9783 .headers(header_map)
9784 .build()?;
9785 let info = OperationInfo {
9786 operation_id: "debug_set_block_profile_rate",
9787 };
9788 self.pre(&mut request, &info).await?;
9789 let result = self.exec(request, &info).await;
9790 self.post(&result, &info).await?;
9791 let response = result?;
9792 match response.status().as_u16() {
9793 200u16 => ResponseValue::from_response(response).await,
9794 400u16..=499u16 => Err(Error::ErrorResponse(
9795 ResponseValue::from_response(response).await?,
9796 )),
9797 500u16..=599u16 => Err(Error::ErrorResponse(
9798 ResponseValue::from_response(response).await?,
9799 )),
9800 _ => Err(Error::UnexpectedResponse(response)),
9801 }
9802 }
9803
9804 pub async fn debug_set_gc_percent<'a>(
9813 &'a self,
9814 async_: Option<bool>,
9815 group: Option<&'a str>,
9816 gc_percent: i64,
9817 ) -> Result<ResponseValue<types::DebugSetGcPercentResponse>, Error<types::RcError>> {
9818 let url = format!("{}/debug/set-gc-percent", self.baseurl,);
9819 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9820 header_map.append(
9821 ::reqwest::header::HeaderName::from_static("api-version"),
9822 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9823 );
9824 #[allow(unused_mut)]
9825 let mut request = self
9826 .client
9827 .post(url)
9828 .header(
9829 ::reqwest::header::ACCEPT,
9830 ::reqwest::header::HeaderValue::from_static("application/json"),
9831 )
9832 .query(&progenitor_client::QueryParam::new("_async", &async_))
9833 .query(&progenitor_client::QueryParam::new("_group", &group))
9834 .query(&progenitor_client::QueryParam::new(
9835 "gc-percent",
9836 &gc_percent,
9837 ))
9838 .headers(header_map)
9839 .build()?;
9840 let info = OperationInfo {
9841 operation_id: "debug_set_gc_percent",
9842 };
9843 self.pre(&mut request, &info).await?;
9844 let result = self.exec(request, &info).await;
9845 self.post(&result, &info).await?;
9846 let response = result?;
9847 match response.status().as_u16() {
9848 200u16 => ResponseValue::from_response(response).await,
9849 400u16..=499u16 => Err(Error::ErrorResponse(
9850 ResponseValue::from_response(response).await?,
9851 )),
9852 500u16..=599u16 => Err(Error::ErrorResponse(
9853 ResponseValue::from_response(response).await?,
9854 )),
9855 _ => Err(Error::UnexpectedResponse(response)),
9856 }
9857 }
9858
9859 pub async fn debug_set_mutex_profile_fraction<'a>(
9868 &'a self,
9869 async_: Option<bool>,
9870 group: Option<&'a str>,
9871 rate: i64,
9872 ) -> Result<ResponseValue<types::DebugSetMutexProfileFractionResponse>, Error<types::RcError>>
9873 {
9874 let url = format!("{}/debug/set-mutex-profile-fraction", 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("rate", &rate))
9891 .headers(header_map)
9892 .build()?;
9893 let info = OperationInfo {
9894 operation_id: "debug_set_mutex_profile_fraction",
9895 };
9896 self.pre(&mut request, &info).await?;
9897 let result = self.exec(request, &info).await;
9898 self.post(&result, &info).await?;
9899 let response = result?;
9900 match response.status().as_u16() {
9901 200u16 => ResponseValue::from_response(response).await,
9902 400u16..=499u16 => Err(Error::ErrorResponse(
9903 ResponseValue::from_response(response).await?,
9904 )),
9905 500u16..=599u16 => Err(Error::ErrorResponse(
9906 ResponseValue::from_response(response).await?,
9907 )),
9908 _ => Err(Error::UnexpectedResponse(response)),
9909 }
9910 }
9911
9912 pub async fn debug_set_soft_memory_limit<'a>(
9920 &'a self,
9921 async_: Option<bool>,
9922 group: Option<&'a str>,
9923 mem_limit: i64,
9924 ) -> Result<ResponseValue<types::DebugSetSoftMemoryLimitResponse>, Error<types::RcError>> {
9925 let url = format!("{}/debug/set-soft-memory-limit", self.baseurl,);
9926 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9927 header_map.append(
9928 ::reqwest::header::HeaderName::from_static("api-version"),
9929 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9930 );
9931 #[allow(unused_mut)]
9932 let mut request = self
9933 .client
9934 .post(url)
9935 .header(
9936 ::reqwest::header::ACCEPT,
9937 ::reqwest::header::HeaderValue::from_static("application/json"),
9938 )
9939 .query(&progenitor_client::QueryParam::new("_async", &async_))
9940 .query(&progenitor_client::QueryParam::new("_group", &group))
9941 .query(&progenitor_client::QueryParam::new("mem-limit", &mem_limit))
9942 .headers(header_map)
9943 .build()?;
9944 let info = OperationInfo {
9945 operation_id: "debug_set_soft_memory_limit",
9946 };
9947 self.pre(&mut request, &info).await?;
9948 let result = self.exec(request, &info).await;
9949 self.post(&result, &info).await?;
9950 let response = result?;
9951 match response.status().as_u16() {
9952 200u16 => ResponseValue::from_response(response).await,
9953 400u16..=499u16 => Err(Error::ErrorResponse(
9954 ResponseValue::from_response(response).await?,
9955 )),
9956 500u16..=599u16 => Err(Error::ErrorResponse(
9957 ResponseValue::from_response(response).await?,
9958 )),
9959 _ => Err(Error::UnexpectedResponse(response)),
9960 }
9961 }
9962
9963 pub async fn fscache_clear<'a>(
9970 &'a self,
9971 async_: Option<bool>,
9972 group: Option<&'a str>,
9973 ) -> Result<
9974 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9975 Error<types::RcError>,
9976 > {
9977 let url = format!("{}/fscache/clear", self.baseurl,);
9978 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9979 header_map.append(
9980 ::reqwest::header::HeaderName::from_static("api-version"),
9981 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9982 );
9983 #[allow(unused_mut)]
9984 let mut request = self
9985 .client
9986 .post(url)
9987 .header(
9988 ::reqwest::header::ACCEPT,
9989 ::reqwest::header::HeaderValue::from_static("application/json"),
9990 )
9991 .query(&progenitor_client::QueryParam::new("_async", &async_))
9992 .query(&progenitor_client::QueryParam::new("_group", &group))
9993 .headers(header_map)
9994 .build()?;
9995 let info = OperationInfo {
9996 operation_id: "fscache_clear",
9997 };
9998 self.pre(&mut request, &info).await?;
9999 let result = self.exec(request, &info).await;
10000 self.post(&result, &info).await?;
10001 let response = result?;
10002 match response.status().as_u16() {
10003 200u16 => ResponseValue::from_response(response).await,
10004 400u16..=499u16 => Err(Error::ErrorResponse(
10005 ResponseValue::from_response(response).await?,
10006 )),
10007 500u16..=599u16 => Err(Error::ErrorResponse(
10008 ResponseValue::from_response(response).await?,
10009 )),
10010 _ => Err(Error::UnexpectedResponse(response)),
10011 }
10012 }
10013
10014 pub async fn fscache_entries<'a>(
10021 &'a self,
10022 async_: Option<bool>,
10023 group: Option<&'a str>,
10024 ) -> Result<ResponseValue<types::FscacheEntriesResponse>, Error<types::RcError>> {
10025 let url = format!("{}/fscache/entries", self.baseurl,);
10026 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10027 header_map.append(
10028 ::reqwest::header::HeaderName::from_static("api-version"),
10029 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10030 );
10031 #[allow(unused_mut)]
10032 let mut request = self
10033 .client
10034 .post(url)
10035 .header(
10036 ::reqwest::header::ACCEPT,
10037 ::reqwest::header::HeaderValue::from_static("application/json"),
10038 )
10039 .query(&progenitor_client::QueryParam::new("_async", &async_))
10040 .query(&progenitor_client::QueryParam::new("_group", &group))
10041 .headers(header_map)
10042 .build()?;
10043 let info = OperationInfo {
10044 operation_id: "fscache_entries",
10045 };
10046 self.pre(&mut request, &info).await?;
10047 let result = self.exec(request, &info).await;
10048 self.post(&result, &info).await?;
10049 let response = result?;
10050 match response.status().as_u16() {
10051 200u16 => ResponseValue::from_response(response).await,
10052 400u16..=499u16 => Err(Error::ErrorResponse(
10053 ResponseValue::from_response(response).await?,
10054 )),
10055 500u16..=599u16 => Err(Error::ErrorResponse(
10056 ResponseValue::from_response(response).await?,
10057 )),
10058 _ => Err(Error::UnexpectedResponse(response)),
10059 }
10060 }
10061
10062 pub async fn mount_listmounts<'a>(
10069 &'a self,
10070 async_: Option<bool>,
10071 group: Option<&'a str>,
10072 ) -> Result<ResponseValue<types::MountListmountsResponse>, Error<types::RcError>> {
10073 let url = format!("{}/mount/listmounts", self.baseurl,);
10074 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10075 header_map.append(
10076 ::reqwest::header::HeaderName::from_static("api-version"),
10077 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10078 );
10079 #[allow(unused_mut)]
10080 let mut request = self
10081 .client
10082 .post(url)
10083 .header(
10084 ::reqwest::header::ACCEPT,
10085 ::reqwest::header::HeaderValue::from_static("application/json"),
10086 )
10087 .query(&progenitor_client::QueryParam::new("_async", &async_))
10088 .query(&progenitor_client::QueryParam::new("_group", &group))
10089 .headers(header_map)
10090 .build()?;
10091 let info = OperationInfo {
10092 operation_id: "mount_listmounts",
10093 };
10094 self.pre(&mut request, &info).await?;
10095 let result = self.exec(request, &info).await;
10096 self.post(&result, &info).await?;
10097 let response = result?;
10098 match response.status().as_u16() {
10099 200u16 => ResponseValue::from_response(response).await,
10100 400u16..=499u16 => Err(Error::ErrorResponse(
10101 ResponseValue::from_response(response).await?,
10102 )),
10103 500u16..=599u16 => Err(Error::ErrorResponse(
10104 ResponseValue::from_response(response).await?,
10105 )),
10106 _ => Err(Error::UnexpectedResponse(response)),
10107 }
10108 }
10109
10110 pub async fn mount_mount<'a>(
10127 &'a self,
10128 async_: Option<bool>,
10129 config: Option<&'a str>,
10130 filter: Option<&'a str>,
10131 group: Option<&'a str>,
10132 fs: &'a str,
10133 mount_opt: Option<&'a str>,
10134 mount_point: &'a str,
10135 mount_type: Option<&'a str>,
10136 vfs_opt: Option<&'a str>,
10137 ) -> Result<
10138 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10139 Error<types::RcError>,
10140 > {
10141 let url = format!("{}/mount/mount", self.baseurl,);
10142 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10143 header_map.append(
10144 ::reqwest::header::HeaderName::from_static("api-version"),
10145 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10146 );
10147 #[allow(unused_mut)]
10148 let mut request = self
10149 .client
10150 .post(url)
10151 .header(
10152 ::reqwest::header::ACCEPT,
10153 ::reqwest::header::HeaderValue::from_static("application/json"),
10154 )
10155 .query(&progenitor_client::QueryParam::new("_async", &async_))
10156 .query(&progenitor_client::QueryParam::new("_config", &config))
10157 .query(&progenitor_client::QueryParam::new("_filter", &filter))
10158 .query(&progenitor_client::QueryParam::new("_group", &group))
10159 .query(&progenitor_client::QueryParam::new("fs", &fs))
10160 .query(&progenitor_client::QueryParam::new("mountOpt", &mount_opt))
10161 .query(&progenitor_client::QueryParam::new(
10162 "mountPoint",
10163 &mount_point,
10164 ))
10165 .query(&progenitor_client::QueryParam::new(
10166 "mountType",
10167 &mount_type,
10168 ))
10169 .query(&progenitor_client::QueryParam::new("vfsOpt", &vfs_opt))
10170 .headers(header_map)
10171 .build()?;
10172 let info = OperationInfo {
10173 operation_id: "mount_mount",
10174 };
10175 self.pre(&mut request, &info).await?;
10176 let result = self.exec(request, &info).await;
10177 self.post(&result, &info).await?;
10178 let response = result?;
10179 match response.status().as_u16() {
10180 200u16 => ResponseValue::from_response(response).await,
10181 400u16..=499u16 => Err(Error::ErrorResponse(
10182 ResponseValue::from_response(response).await?,
10183 )),
10184 500u16..=599u16 => Err(Error::ErrorResponse(
10185 ResponseValue::from_response(response).await?,
10186 )),
10187 _ => Err(Error::UnexpectedResponse(response)),
10188 }
10189 }
10190
10191 pub async fn mount_types<'a>(
10198 &'a self,
10199 async_: Option<bool>,
10200 group: Option<&'a str>,
10201 ) -> Result<ResponseValue<types::MountTypesResponse>, Error<types::RcError>> {
10202 let url = format!("{}/mount/types", self.baseurl,);
10203 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10204 header_map.append(
10205 ::reqwest::header::HeaderName::from_static("api-version"),
10206 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10207 );
10208 #[allow(unused_mut)]
10209 let mut request = self
10210 .client
10211 .post(url)
10212 .header(
10213 ::reqwest::header::ACCEPT,
10214 ::reqwest::header::HeaderValue::from_static("application/json"),
10215 )
10216 .query(&progenitor_client::QueryParam::new("_async", &async_))
10217 .query(&progenitor_client::QueryParam::new("_group", &group))
10218 .headers(header_map)
10219 .build()?;
10220 let info = OperationInfo {
10221 operation_id: "mount_types",
10222 };
10223 self.pre(&mut request, &info).await?;
10224 let result = self.exec(request, &info).await;
10225 self.post(&result, &info).await?;
10226 let response = result?;
10227 match response.status().as_u16() {
10228 200u16 => ResponseValue::from_response(response).await,
10229 400u16..=499u16 => Err(Error::ErrorResponse(
10230 ResponseValue::from_response(response).await?,
10231 )),
10232 500u16..=599u16 => Err(Error::ErrorResponse(
10233 ResponseValue::from_response(response).await?,
10234 )),
10235 _ => Err(Error::UnexpectedResponse(response)),
10236 }
10237 }
10238
10239 pub async fn mount_unmount<'a>(
10247 &'a self,
10248 async_: Option<bool>,
10249 group: Option<&'a str>,
10250 mount_point: &'a str,
10251 ) -> Result<
10252 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10253 Error<types::RcError>,
10254 > {
10255 let url = format!("{}/mount/unmount", self.baseurl,);
10256 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10257 header_map.append(
10258 ::reqwest::header::HeaderName::from_static("api-version"),
10259 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10260 );
10261 #[allow(unused_mut)]
10262 let mut request = self
10263 .client
10264 .post(url)
10265 .header(
10266 ::reqwest::header::ACCEPT,
10267 ::reqwest::header::HeaderValue::from_static("application/json"),
10268 )
10269 .query(&progenitor_client::QueryParam::new("_async", &async_))
10270 .query(&progenitor_client::QueryParam::new("_group", &group))
10271 .query(&progenitor_client::QueryParam::new(
10272 "mountPoint",
10273 &mount_point,
10274 ))
10275 .headers(header_map)
10276 .build()?;
10277 let info = OperationInfo {
10278 operation_id: "mount_unmount",
10279 };
10280 self.pre(&mut request, &info).await?;
10281 let result = self.exec(request, &info).await;
10282 self.post(&result, &info).await?;
10283 let response = result?;
10284 match response.status().as_u16() {
10285 200u16 => ResponseValue::from_response(response).await,
10286 400u16..=499u16 => Err(Error::ErrorResponse(
10287 ResponseValue::from_response(response).await?,
10288 )),
10289 500u16..=599u16 => Err(Error::ErrorResponse(
10290 ResponseValue::from_response(response).await?,
10291 )),
10292 _ => Err(Error::UnexpectedResponse(response)),
10293 }
10294 }
10295
10296 pub async fn mount_unmountall<'a>(
10303 &'a self,
10304 async_: Option<bool>,
10305 group: Option<&'a str>,
10306 ) -> Result<
10307 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10308 Error<types::RcError>,
10309 > {
10310 let url = format!("{}/mount/unmountall", self.baseurl,);
10311 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10312 header_map.append(
10313 ::reqwest::header::HeaderName::from_static("api-version"),
10314 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10315 );
10316 #[allow(unused_mut)]
10317 let mut request = self
10318 .client
10319 .post(url)
10320 .header(
10321 ::reqwest::header::ACCEPT,
10322 ::reqwest::header::HeaderValue::from_static("application/json"),
10323 )
10324 .query(&progenitor_client::QueryParam::new("_async", &async_))
10325 .query(&progenitor_client::QueryParam::new("_group", &group))
10326 .headers(header_map)
10327 .build()?;
10328 let info = OperationInfo {
10329 operation_id: "mount_unmountall",
10330 };
10331 self.pre(&mut request, &info).await?;
10332 let result = self.exec(request, &info).await;
10333 self.post(&result, &info).await?;
10334 let response = result?;
10335 match response.status().as_u16() {
10336 200u16 => ResponseValue::from_response(response).await,
10337 400u16..=499u16 => Err(Error::ErrorResponse(
10338 ResponseValue::from_response(response).await?,
10339 )),
10340 500u16..=599u16 => Err(Error::ErrorResponse(
10341 ResponseValue::from_response(response).await?,
10342 )),
10343 _ => Err(Error::UnexpectedResponse(response)),
10344 }
10345 }
10346
10347 pub async fn rc_noop_auth<'a>(
10359 &'a self,
10360 async_: Option<bool>,
10361 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10362 ) -> Result<
10363 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10364 Error<types::RcError>,
10365 > {
10366 let url = format!("{}/rc/noopauth", self.baseurl,);
10367 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10368 header_map.append(
10369 ::reqwest::header::HeaderName::from_static("api-version"),
10370 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10371 );
10372 #[allow(unused_mut)]
10373 let mut request = self
10374 .client
10375 .post(url)
10376 .header(
10377 ::reqwest::header::ACCEPT,
10378 ::reqwest::header::HeaderValue::from_static("application/json"),
10379 )
10380 .query(&progenitor_client::QueryParam::new("_async", &async_))
10381 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10382 .headers(header_map)
10383 .build()?;
10384 let info = OperationInfo {
10385 operation_id: "rc_noop_auth",
10386 };
10387 self.pre(&mut request, &info).await?;
10388 let result = self.exec(request, &info).await;
10389 self.post(&result, &info).await?;
10390 let response = result?;
10391 match response.status().as_u16() {
10392 200u16 => ResponseValue::from_response(response).await,
10393 400u16..=499u16 => Err(Error::ErrorResponse(
10394 ResponseValue::from_response(response).await?,
10395 )),
10396 500u16..=599u16 => Err(Error::ErrorResponse(
10397 ResponseValue::from_response(response).await?,
10398 )),
10399 _ => Err(Error::UnexpectedResponse(response)),
10400 }
10401 }
10402
10403 pub async fn rc_error<'a>(
10415 &'a self,
10416 async_: Option<bool>,
10417 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10418 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10419 let url = format!("{}/rc/error", self.baseurl,);
10420 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10421 header_map.append(
10422 ::reqwest::header::HeaderName::from_static("api-version"),
10423 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10424 );
10425 #[allow(unused_mut)]
10426 let mut request = self
10427 .client
10428 .post(url)
10429 .header(
10430 ::reqwest::header::ACCEPT,
10431 ::reqwest::header::HeaderValue::from_static("application/json"),
10432 )
10433 .query(&progenitor_client::QueryParam::new("_async", &async_))
10434 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10435 .headers(header_map)
10436 .build()?;
10437 let info = OperationInfo {
10438 operation_id: "rc_error",
10439 };
10440 self.pre(&mut request, &info).await?;
10441 let result = self.exec(request, &info).await;
10442 self.post(&result, &info).await?;
10443 let response = result?;
10444 match response.status().as_u16() {
10445 200u16 => Ok(ResponseValue::empty(response)),
10446 400u16..=499u16 => Err(Error::ErrorResponse(
10447 ResponseValue::from_response(response).await?,
10448 )),
10449 500u16..=599u16 => Err(Error::ErrorResponse(
10450 ResponseValue::from_response(response).await?,
10451 )),
10452 _ => Err(Error::UnexpectedResponse(response)),
10453 }
10454 }
10455
10456 pub async fn rc_list<'a>(
10468 &'a self,
10469 async_: Option<bool>,
10470 group: Option<&'a str>,
10471 ) -> Result<ResponseValue<types::RcListResponse>, Error<types::RcError>> {
10472 let url = format!("{}/rc/list", self.baseurl,);
10473 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10474 header_map.append(
10475 ::reqwest::header::HeaderName::from_static("api-version"),
10476 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10477 );
10478 #[allow(unused_mut)]
10479 let mut request = self
10480 .client
10481 .post(url)
10482 .header(
10483 ::reqwest::header::ACCEPT,
10484 ::reqwest::header::HeaderValue::from_static("application/json"),
10485 )
10486 .query(&progenitor_client::QueryParam::new("_async", &async_))
10487 .query(&progenitor_client::QueryParam::new("_group", &group))
10488 .headers(header_map)
10489 .build()?;
10490 let info = OperationInfo {
10491 operation_id: "rc_list",
10492 };
10493 self.pre(&mut request, &info).await?;
10494 let result = self.exec(request, &info).await;
10495 self.post(&result, &info).await?;
10496 let response = result?;
10497 match response.status().as_u16() {
10498 200u16 => ResponseValue::from_response(response).await,
10499 400u16..=499u16 => Err(Error::ErrorResponse(
10500 ResponseValue::from_response(response).await?,
10501 )),
10502 500u16..=599u16 => Err(Error::ErrorResponse(
10503 ResponseValue::from_response(response).await?,
10504 )),
10505 _ => Err(Error::UnexpectedResponse(response)),
10506 }
10507 }
10508
10509 pub async fn backend_command<'a>(
10525 &'a self,
10526 async_: Option<bool>,
10527 group: Option<&'a str>,
10528 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
10529 command: &'a str,
10530 fs: Option<&'a str>,
10531 opt: Option<&'a str>,
10532 ) -> Result<ResponseValue<types::BackendCommandResponse>, Error<types::RcError>> {
10533 let url = format!("{}/backend/command", self.baseurl,);
10534 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10535 header_map.append(
10536 ::reqwest::header::HeaderName::from_static("api-version"),
10537 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10538 );
10539 #[allow(unused_mut)]
10540 let mut request = self
10541 .client
10542 .post(url)
10543 .header(
10544 ::reqwest::header::ACCEPT,
10545 ::reqwest::header::HeaderValue::from_static("application/json"),
10546 )
10547 .query(&progenitor_client::QueryParam::new("_async", &async_))
10548 .query(&progenitor_client::QueryParam::new("_group", &group))
10549 .query(&progenitor_client::QueryParam::new("arg", &arg))
10550 .query(&progenitor_client::QueryParam::new("command", &command))
10551 .query(&progenitor_client::QueryParam::new("fs", &fs))
10552 .query(&progenitor_client::QueryParam::new("opt", &opt))
10553 .headers(header_map)
10554 .build()?;
10555 let info = OperationInfo {
10556 operation_id: "backend_command",
10557 };
10558 self.pre(&mut request, &info).await?;
10559 let result = self.exec(request, &info).await;
10560 self.post(&result, &info).await?;
10561 let response = result?;
10562 match response.status().as_u16() {
10563 200u16 => ResponseValue::from_response(response).await,
10564 400u16..=499u16 => Err(Error::ErrorResponse(
10565 ResponseValue::from_response(response).await?,
10566 )),
10567 500u16..=599u16 => Err(Error::ErrorResponse(
10568 ResponseValue::from_response(response).await?,
10569 )),
10570 _ => Err(Error::UnexpectedResponse(response)),
10571 }
10572 }
10573
10574 pub async fn cache_expire<'a>(
10590 &'a self,
10591 async_: Option<bool>,
10592 group: Option<&'a str>,
10593 remote: &'a str,
10594 with_data: Option<bool>,
10595 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10596 let url = format!("{}/cache/expire", self.baseurl,);
10597 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10598 header_map.append(
10599 ::reqwest::header::HeaderName::from_static("api-version"),
10600 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10601 );
10602 #[allow(unused_mut)]
10603 let mut request = self
10604 .client
10605 .post(url)
10606 .header(
10607 ::reqwest::header::ACCEPT,
10608 ::reqwest::header::HeaderValue::from_static("application/json"),
10609 )
10610 .query(&progenitor_client::QueryParam::new("_async", &async_))
10611 .query(&progenitor_client::QueryParam::new("_group", &group))
10612 .query(&progenitor_client::QueryParam::new("remote", &remote))
10613 .query(&progenitor_client::QueryParam::new("withData", &with_data))
10614 .headers(header_map)
10615 .build()?;
10616 let info = OperationInfo {
10617 operation_id: "cache_expire",
10618 };
10619 self.pre(&mut request, &info).await?;
10620 let result = self.exec(request, &info).await;
10621 self.post(&result, &info).await?;
10622 let response = result?;
10623 match response.status().as_u16() {
10624 200u16 => Ok(ResponseValue::empty(response)),
10625 400u16..=499u16 => Err(Error::ErrorResponse(
10626 ResponseValue::from_response(response).await?,
10627 )),
10628 500u16..=599u16 => Err(Error::ErrorResponse(
10629 ResponseValue::from_response(response).await?,
10630 )),
10631 _ => Err(Error::UnexpectedResponse(response)),
10632 }
10633 }
10634
10635 pub async fn cache_fetch<'a>(
10649 &'a self,
10650 async_: Option<bool>,
10651 group: Option<&'a str>,
10652 chunks: Option<&'a str>,
10653 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10654 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10655 let url = format!("{}/cache/fetch", self.baseurl,);
10656 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10657 header_map.append(
10658 ::reqwest::header::HeaderName::from_static("api-version"),
10659 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10660 );
10661 #[allow(unused_mut)]
10662 let mut request = self
10663 .client
10664 .post(url)
10665 .header(
10666 ::reqwest::header::ACCEPT,
10667 ::reqwest::header::HeaderValue::from_static("application/json"),
10668 )
10669 .query(&progenitor_client::QueryParam::new("_async", &async_))
10670 .query(&progenitor_client::QueryParam::new("_group", &group))
10671 .query(&progenitor_client::QueryParam::new("chunks", &chunks))
10672 .query(&progenitor_client::QueryParam::new("params", ¶ms))
10673 .headers(header_map)
10674 .build()?;
10675 let info = OperationInfo {
10676 operation_id: "cache_fetch",
10677 };
10678 self.pre(&mut request, &info).await?;
10679 let result = self.exec(request, &info).await;
10680 self.post(&result, &info).await?;
10681 let response = result?;
10682 match response.status().as_u16() {
10683 200u16 => Ok(ResponseValue::empty(response)),
10684 400u16..=499u16 => Err(Error::ErrorResponse(
10685 ResponseValue::from_response(response).await?,
10686 )),
10687 500u16..=599u16 => Err(Error::ErrorResponse(
10688 ResponseValue::from_response(response).await?,
10689 )),
10690 _ => Err(Error::UnexpectedResponse(response)),
10691 }
10692 }
10693
10694 pub async fn cache_stats<'a>(
10705 &'a self,
10706 async_: Option<bool>,
10707 group: Option<&'a str>,
10708 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10709 let url = format!("{}/cache/stats", self.baseurl,);
10710 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10711 header_map.append(
10712 ::reqwest::header::HeaderName::from_static("api-version"),
10713 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10714 );
10715 #[allow(unused_mut)]
10716 let mut request = self
10717 .client
10718 .post(url)
10719 .header(
10720 ::reqwest::header::ACCEPT,
10721 ::reqwest::header::HeaderValue::from_static("application/json"),
10722 )
10723 .query(&progenitor_client::QueryParam::new("_async", &async_))
10724 .query(&progenitor_client::QueryParam::new("_group", &group))
10725 .headers(header_map)
10726 .build()?;
10727 let info = OperationInfo {
10728 operation_id: "cache_stats",
10729 };
10730 self.pre(&mut request, &info).await?;
10731 let result = self.exec(request, &info).await;
10732 self.post(&result, &info).await?;
10733 let response = result?;
10734 match response.status().as_u16() {
10735 200u16 => Ok(ResponseValue::empty(response)),
10736 400u16..=499u16 => Err(Error::ErrorResponse(
10737 ResponseValue::from_response(response).await?,
10738 )),
10739 500u16..=599u16 => Err(Error::ErrorResponse(
10740 ResponseValue::from_response(response).await?,
10741 )),
10742 _ => Err(Error::UnexpectedResponse(response)),
10743 }
10744 }
10745
10746 pub async fn config_create<'a>(
10763 &'a self,
10764 async_: Option<bool>,
10765 group: Option<&'a str>,
10766 name: &'a str,
10767 opt: Option<&'a str>,
10768 parameters: &'a str,
10769 type_: &'a str,
10770 ) -> Result<
10771 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10772 Error<types::RcError>,
10773 > {
10774 let url = format!("{}/config/create", self.baseurl,);
10775 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10776 header_map.append(
10777 ::reqwest::header::HeaderName::from_static("api-version"),
10778 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10779 );
10780 #[allow(unused_mut)]
10781 let mut request = self
10782 .client
10783 .post(url)
10784 .header(
10785 ::reqwest::header::ACCEPT,
10786 ::reqwest::header::HeaderValue::from_static("application/json"),
10787 )
10788 .query(&progenitor_client::QueryParam::new("_async", &async_))
10789 .query(&progenitor_client::QueryParam::new("_group", &group))
10790 .query(&progenitor_client::QueryParam::new("name", &name))
10791 .query(&progenitor_client::QueryParam::new("opt", &opt))
10792 .query(&progenitor_client::QueryParam::new(
10793 "parameters",
10794 ¶meters,
10795 ))
10796 .query(&progenitor_client::QueryParam::new("type", &type_))
10797 .headers(header_map)
10798 .build()?;
10799 let info = OperationInfo {
10800 operation_id: "config_create",
10801 };
10802 self.pre(&mut request, &info).await?;
10803 let result = self.exec(request, &info).await;
10804 self.post(&result, &info).await?;
10805 let response = result?;
10806 match response.status().as_u16() {
10807 200u16 => ResponseValue::from_response(response).await,
10808 400u16..=499u16 => Err(Error::ErrorResponse(
10809 ResponseValue::from_response(response).await?,
10810 )),
10811 500u16..=599u16 => Err(Error::ErrorResponse(
10812 ResponseValue::from_response(response).await?,
10813 )),
10814 _ => Err(Error::UnexpectedResponse(response)),
10815 }
10816 }
10817
10818 pub async fn config_delete<'a>(
10830 &'a self,
10831 async_: Option<bool>,
10832 group: Option<&'a str>,
10833 name: &'a str,
10834 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10835 let url = format!("{}/config/delete", self.baseurl,);
10836 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10837 header_map.append(
10838 ::reqwest::header::HeaderName::from_static("api-version"),
10839 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10840 );
10841 #[allow(unused_mut)]
10842 let mut request = self
10843 .client
10844 .post(url)
10845 .header(
10846 ::reqwest::header::ACCEPT,
10847 ::reqwest::header::HeaderValue::from_static("application/json"),
10848 )
10849 .query(&progenitor_client::QueryParam::new("_async", &async_))
10850 .query(&progenitor_client::QueryParam::new("_group", &group))
10851 .query(&progenitor_client::QueryParam::new("name", &name))
10852 .headers(header_map)
10853 .build()?;
10854 let info = OperationInfo {
10855 operation_id: "config_delete",
10856 };
10857 self.pre(&mut request, &info).await?;
10858 let result = self.exec(request, &info).await;
10859 self.post(&result, &info).await?;
10860 let response = result?;
10861 match response.status().as_u16() {
10862 200u16 => Ok(ResponseValue::empty(response)),
10863 400u16..=499u16 => Err(Error::ErrorResponse(
10864 ResponseValue::from_response(response).await?,
10865 )),
10866 500u16..=599u16 => Err(Error::ErrorResponse(
10867 ResponseValue::from_response(response).await?,
10868 )),
10869 _ => Err(Error::UnexpectedResponse(response)),
10870 }
10871 }
10872
10873 pub async fn config_dump<'a>(
10885 &'a self,
10886 async_: Option<bool>,
10887 group: Option<&'a str>,
10888 ) -> Result<
10889 ResponseValue<
10890 ::std::collections::HashMap<
10891 ::std::string::String,
10892 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
10893 >,
10894 >,
10895 Error<types::RcError>,
10896 > {
10897 let url = format!("{}/config/dump", self.baseurl,);
10898 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10899 header_map.append(
10900 ::reqwest::header::HeaderName::from_static("api-version"),
10901 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10902 );
10903 #[allow(unused_mut)]
10904 let mut request = self
10905 .client
10906 .post(url)
10907 .header(
10908 ::reqwest::header::ACCEPT,
10909 ::reqwest::header::HeaderValue::from_static("application/json"),
10910 )
10911 .query(&progenitor_client::QueryParam::new("_async", &async_))
10912 .query(&progenitor_client::QueryParam::new("_group", &group))
10913 .headers(header_map)
10914 .build()?;
10915 let info = OperationInfo {
10916 operation_id: "config_dump",
10917 };
10918 self.pre(&mut request, &info).await?;
10919 let result = self.exec(request, &info).await;
10920 self.post(&result, &info).await?;
10921 let response = result?;
10922 match response.status().as_u16() {
10923 200u16 => ResponseValue::from_response(response).await,
10924 400u16..=499u16 => Err(Error::ErrorResponse(
10925 ResponseValue::from_response(response).await?,
10926 )),
10927 500u16..=599u16 => Err(Error::ErrorResponse(
10928 ResponseValue::from_response(response).await?,
10929 )),
10930 _ => Err(Error::UnexpectedResponse(response)),
10931 }
10932 }
10933
10934 pub async fn config_get<'a>(
10946 &'a self,
10947 async_: Option<bool>,
10948 group: Option<&'a str>,
10949 name: &'a str,
10950 ) -> Result<ResponseValue<types::ConfigGetResponse>, Error<types::RcError>> {
10951 let url = format!("{}/config/get", self.baseurl,);
10952 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10953 header_map.append(
10954 ::reqwest::header::HeaderName::from_static("api-version"),
10955 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10956 );
10957 #[allow(unused_mut)]
10958 let mut request = self
10959 .client
10960 .post(url)
10961 .header(
10962 ::reqwest::header::ACCEPT,
10963 ::reqwest::header::HeaderValue::from_static("application/json"),
10964 )
10965 .query(&progenitor_client::QueryParam::new("_async", &async_))
10966 .query(&progenitor_client::QueryParam::new("_group", &group))
10967 .query(&progenitor_client::QueryParam::new("name", &name))
10968 .headers(header_map)
10969 .build()?;
10970 let info = OperationInfo {
10971 operation_id: "config_get",
10972 };
10973 self.pre(&mut request, &info).await?;
10974 let result = self.exec(request, &info).await;
10975 self.post(&result, &info).await?;
10976 let response = result?;
10977 match response.status().as_u16() {
10978 200u16 => ResponseValue::from_response(response).await,
10979 400u16..=499u16 => Err(Error::ErrorResponse(
10980 ResponseValue::from_response(response).await?,
10981 )),
10982 500u16..=599u16 => Err(Error::ErrorResponse(
10983 ResponseValue::from_response(response).await?,
10984 )),
10985 _ => Err(Error::UnexpectedResponse(response)),
10986 }
10987 }
10988
10989 pub async fn config_listremotes<'a>(
11000 &'a self,
11001 async_: Option<bool>,
11002 group: Option<&'a str>,
11003 ) -> Result<ResponseValue<types::ConfigListremotesResponse>, Error<types::RcError>> {
11004 let url = format!("{}/config/listremotes", self.baseurl,);
11005 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11006 header_map.append(
11007 ::reqwest::header::HeaderName::from_static("api-version"),
11008 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11009 );
11010 #[allow(unused_mut)]
11011 let mut request = self
11012 .client
11013 .post(url)
11014 .header(
11015 ::reqwest::header::ACCEPT,
11016 ::reqwest::header::HeaderValue::from_static("application/json"),
11017 )
11018 .query(&progenitor_client::QueryParam::new("_async", &async_))
11019 .query(&progenitor_client::QueryParam::new("_group", &group))
11020 .headers(header_map)
11021 .build()?;
11022 let info = OperationInfo {
11023 operation_id: "config_listremotes",
11024 };
11025 self.pre(&mut request, &info).await?;
11026 let result = self.exec(request, &info).await;
11027 self.post(&result, &info).await?;
11028 let response = result?;
11029 match response.status().as_u16() {
11030 200u16 => ResponseValue::from_response(response).await,
11031 400u16..=499u16 => Err(Error::ErrorResponse(
11032 ResponseValue::from_response(response).await?,
11033 )),
11034 500u16..=599u16 => Err(Error::ErrorResponse(
11035 ResponseValue::from_response(response).await?,
11036 )),
11037 _ => Err(Error::UnexpectedResponse(response)),
11038 }
11039 }
11040
11041 pub async fn config_password<'a>(
11055 &'a self,
11056 async_: Option<bool>,
11057 group: Option<&'a str>,
11058 name: &'a str,
11059 parameters: &'a str,
11060 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
11061 let url = format!("{}/config/password", self.baseurl,);
11062 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11063 header_map.append(
11064 ::reqwest::header::HeaderName::from_static("api-version"),
11065 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11066 );
11067 #[allow(unused_mut)]
11068 let mut request = self
11069 .client
11070 .post(url)
11071 .header(
11072 ::reqwest::header::ACCEPT,
11073 ::reqwest::header::HeaderValue::from_static("application/json"),
11074 )
11075 .query(&progenitor_client::QueryParam::new("_async", &async_))
11076 .query(&progenitor_client::QueryParam::new("_group", &group))
11077 .query(&progenitor_client::QueryParam::new("name", &name))
11078 .query(&progenitor_client::QueryParam::new(
11079 "parameters",
11080 ¶meters,
11081 ))
11082 .headers(header_map)
11083 .build()?;
11084 let info = OperationInfo {
11085 operation_id: "config_password",
11086 };
11087 self.pre(&mut request, &info).await?;
11088 let result = self.exec(request, &info).await;
11089 self.post(&result, &info).await?;
11090 let response = result?;
11091 match response.status().as_u16() {
11092 200u16 => Ok(ResponseValue::empty(response)),
11093 400u16..=499u16 => Err(Error::ErrorResponse(
11094 ResponseValue::from_response(response).await?,
11095 )),
11096 500u16..=599u16 => Err(Error::ErrorResponse(
11097 ResponseValue::from_response(response).await?,
11098 )),
11099 _ => Err(Error::UnexpectedResponse(response)),
11100 }
11101 }
11102
11103 pub async fn config_paths<'a>(
11115 &'a self,
11116 async_: Option<bool>,
11117 group: Option<&'a str>,
11118 ) -> Result<ResponseValue<types::ConfigPathsResponse>, Error<types::RcError>> {
11119 let url = format!("{}/config/paths", self.baseurl,);
11120 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11121 header_map.append(
11122 ::reqwest::header::HeaderName::from_static("api-version"),
11123 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11124 );
11125 #[allow(unused_mut)]
11126 let mut request = self
11127 .client
11128 .post(url)
11129 .header(
11130 ::reqwest::header::ACCEPT,
11131 ::reqwest::header::HeaderValue::from_static("application/json"),
11132 )
11133 .query(&progenitor_client::QueryParam::new("_async", &async_))
11134 .query(&progenitor_client::QueryParam::new("_group", &group))
11135 .headers(header_map)
11136 .build()?;
11137 let info = OperationInfo {
11138 operation_id: "config_paths",
11139 };
11140 self.pre(&mut request, &info).await?;
11141 let result = self.exec(request, &info).await;
11142 self.post(&result, &info).await?;
11143 let response = result?;
11144 match response.status().as_u16() {
11145 200u16 => ResponseValue::from_response(response).await,
11146 400u16..=499u16 => Err(Error::ErrorResponse(
11147 ResponseValue::from_response(response).await?,
11148 )),
11149 500u16..=599u16 => Err(Error::ErrorResponse(
11150 ResponseValue::from_response(response).await?,
11151 )),
11152 _ => Err(Error::UnexpectedResponse(response)),
11153 }
11154 }
11155
11156 pub async fn config_providers<'a>(
11167 &'a self,
11168 async_: Option<bool>,
11169 group: Option<&'a str>,
11170 ) -> Result<ResponseValue<types::ConfigProvidersResponse>, Error<types::RcError>> {
11171 let url = format!("{}/config/providers", self.baseurl,);
11172 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11173 header_map.append(
11174 ::reqwest::header::HeaderName::from_static("api-version"),
11175 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11176 );
11177 #[allow(unused_mut)]
11178 let mut request = self
11179 .client
11180 .post(url)
11181 .header(
11182 ::reqwest::header::ACCEPT,
11183 ::reqwest::header::HeaderValue::from_static("application/json"),
11184 )
11185 .query(&progenitor_client::QueryParam::new("_async", &async_))
11186 .query(&progenitor_client::QueryParam::new("_group", &group))
11187 .headers(header_map)
11188 .build()?;
11189 let info = OperationInfo {
11190 operation_id: "config_providers",
11191 };
11192 self.pre(&mut request, &info).await?;
11193 let result = self.exec(request, &info).await;
11194 self.post(&result, &info).await?;
11195 let response = result?;
11196 match response.status().as_u16() {
11197 200u16 => ResponseValue::from_response(response).await,
11198 400u16..=499u16 => Err(Error::ErrorResponse(
11199 ResponseValue::from_response(response).await?,
11200 )),
11201 500u16..=599u16 => Err(Error::ErrorResponse(
11202 ResponseValue::from_response(response).await?,
11203 )),
11204 _ => Err(Error::UnexpectedResponse(response)),
11205 }
11206 }
11207
11208 pub async fn config_setpath<'a>(
11221 &'a self,
11222 async_: Option<bool>,
11223 group: Option<&'a str>,
11224 path: &'a str,
11225 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
11226 let url = format!("{}/config/setpath", self.baseurl,);
11227 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11228 header_map.append(
11229 ::reqwest::header::HeaderName::from_static("api-version"),
11230 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11231 );
11232 #[allow(unused_mut)]
11233 let mut request = self
11234 .client
11235 .post(url)
11236 .header(
11237 ::reqwest::header::ACCEPT,
11238 ::reqwest::header::HeaderValue::from_static("application/json"),
11239 )
11240 .query(&progenitor_client::QueryParam::new("_async", &async_))
11241 .query(&progenitor_client::QueryParam::new("_group", &group))
11242 .query(&progenitor_client::QueryParam::new("path", &path))
11243 .headers(header_map)
11244 .build()?;
11245 let info = OperationInfo {
11246 operation_id: "config_setpath",
11247 };
11248 self.pre(&mut request, &info).await?;
11249 let result = self.exec(request, &info).await;
11250 self.post(&result, &info).await?;
11251 let response = result?;
11252 match response.status().as_u16() {
11253 200u16 => Ok(ResponseValue::empty(response)),
11254 400u16..=499u16 => Err(Error::ErrorResponse(
11255 ResponseValue::from_response(response).await?,
11256 )),
11257 500u16..=599u16 => Err(Error::ErrorResponse(
11258 ResponseValue::from_response(response).await?,
11259 )),
11260 _ => Err(Error::UnexpectedResponse(response)),
11261 }
11262 }
11263
11264 pub async fn config_unlock<'a>(
11276 &'a self,
11277 async_: Option<bool>,
11278 group: Option<&'a str>,
11279 config_password: &'a str,
11280 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
11281 let url = format!("{}/config/unlock", self.baseurl,);
11282 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11283 header_map.append(
11284 ::reqwest::header::HeaderName::from_static("api-version"),
11285 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11286 );
11287 #[allow(unused_mut)]
11288 let mut request = self
11289 .client
11290 .post(url)
11291 .header(
11292 ::reqwest::header::ACCEPT,
11293 ::reqwest::header::HeaderValue::from_static("application/json"),
11294 )
11295 .query(&progenitor_client::QueryParam::new("_async", &async_))
11296 .query(&progenitor_client::QueryParam::new("_group", &group))
11297 .query(&progenitor_client::QueryParam::new(
11298 "configPassword",
11299 &config_password,
11300 ))
11301 .headers(header_map)
11302 .build()?;
11303 let info = OperationInfo {
11304 operation_id: "config_unlock",
11305 };
11306 self.pre(&mut request, &info).await?;
11307 let result = self.exec(request, &info).await;
11308 self.post(&result, &info).await?;
11309 let response = result?;
11310 match response.status().as_u16() {
11311 200u16 => Ok(ResponseValue::empty(response)),
11312 400u16..=499u16 => Err(Error::ErrorResponse(
11313 ResponseValue::from_response(response).await?,
11314 )),
11315 500u16..=599u16 => Err(Error::ErrorResponse(
11316 ResponseValue::from_response(response).await?,
11317 )),
11318 _ => Err(Error::UnexpectedResponse(response)),
11319 }
11320 }
11321
11322 pub async fn config_update<'a>(
11338 &'a self,
11339 async_: Option<bool>,
11340 group: Option<&'a str>,
11341 name: &'a str,
11342 opt: Option<&'a str>,
11343 parameters: &'a str,
11344 ) -> Result<
11345 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11346 Error<types::RcError>,
11347 > {
11348 let url = format!("{}/config/update", self.baseurl,);
11349 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11350 header_map.append(
11351 ::reqwest::header::HeaderName::from_static("api-version"),
11352 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11353 );
11354 #[allow(unused_mut)]
11355 let mut request = self
11356 .client
11357 .post(url)
11358 .header(
11359 ::reqwest::header::ACCEPT,
11360 ::reqwest::header::HeaderValue::from_static("application/json"),
11361 )
11362 .query(&progenitor_client::QueryParam::new("_async", &async_))
11363 .query(&progenitor_client::QueryParam::new("_group", &group))
11364 .query(&progenitor_client::QueryParam::new("name", &name))
11365 .query(&progenitor_client::QueryParam::new("opt", &opt))
11366 .query(&progenitor_client::QueryParam::new(
11367 "parameters",
11368 ¶meters,
11369 ))
11370 .headers(header_map)
11371 .build()?;
11372 let info = OperationInfo {
11373 operation_id: "config_update",
11374 };
11375 self.pre(&mut request, &info).await?;
11376 let result = self.exec(request, &info).await;
11377 self.post(&result, &info).await?;
11378 let response = result?;
11379 match response.status().as_u16() {
11380 200u16 => ResponseValue::from_response(response).await,
11381 400u16..=499u16 => Err(Error::ErrorResponse(
11382 ResponseValue::from_response(response).await?,
11383 )),
11384 500u16..=599u16 => Err(Error::ErrorResponse(
11385 ResponseValue::from_response(response).await?,
11386 )),
11387 _ => Err(Error::UnexpectedResponse(response)),
11388 }
11389 }
11390
11391 pub async fn core_version<'a>(
11403 &'a self,
11404 async_: Option<bool>,
11405 group: Option<&'a str>,
11406 ) -> Result<ResponseValue<types::CoreVersionResponse>, Error<types::RcError>> {
11407 let url = format!("{}/core/version", self.baseurl,);
11408 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11409 header_map.append(
11410 ::reqwest::header::HeaderName::from_static("api-version"),
11411 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11412 );
11413 #[allow(unused_mut)]
11414 let mut request = self
11415 .client
11416 .post(url)
11417 .header(
11418 ::reqwest::header::ACCEPT,
11419 ::reqwest::header::HeaderValue::from_static("application/json"),
11420 )
11421 .query(&progenitor_client::QueryParam::new("_async", &async_))
11422 .query(&progenitor_client::QueryParam::new("_group", &group))
11423 .headers(header_map)
11424 .build()?;
11425 let info = OperationInfo {
11426 operation_id: "core_version",
11427 };
11428 self.pre(&mut request, &info).await?;
11429 let result = self.exec(request, &info).await;
11430 self.post(&result, &info).await?;
11431 let response = result?;
11432 match response.status().as_u16() {
11433 200u16 => ResponseValue::from_response(response).await,
11434 400u16..=499u16 => Err(Error::ErrorResponse(
11435 ResponseValue::from_response(response).await?,
11436 )),
11437 500u16..=599u16 => Err(Error::ErrorResponse(
11438 ResponseValue::from_response(response).await?,
11439 )),
11440 _ => Err(Error::UnexpectedResponse(response)),
11441 }
11442 }
11443
11444 pub async fn core_stats<'a>(
11460 &'a self,
11461 async_: Option<bool>,
11462 _group: Option<&'a str>,
11463 group: Option<&'a str>,
11464 short: Option<bool>
11465 ) -> Result<ResponseValue<types::CoreStatsResponse>, Error<types::RcError>> {
11466 let url = format!("{}/core/stats", self.baseurl,);
11467 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11468 header_map.append(
11469 ::reqwest::header::HeaderName::from_static("api-version"),
11470 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11471 );
11472 #[allow(unused_mut)]
11473 let mut request = self
11474 .client
11475 .post(url)
11476 .header(
11477 ::reqwest::header::ACCEPT,
11478 ::reqwest::header::HeaderValue::from_static("application/json"),
11479 )
11480 .query(&progenitor_client::QueryParam::new("_async", &async_))
11481 .query(&progenitor_client::QueryParam::new("_group", &group))
11482 .query(&progenitor_client::QueryParam::new("group", &group))
11483 .query(&progenitor_client::QueryParam::new("short", &short))
11484 .headers(header_map)
11485 .build()?;
11486 let info = OperationInfo {
11487 operation_id: "core_stats",
11488 };
11489 self.pre(&mut request, &info).await?;
11490 let result = self.exec(request, &info).await;
11491 self.post(&result, &info).await?;
11492 let response = result?;
11493 match response.status().as_u16() {
11494 200u16 => ResponseValue::from_response(response).await,
11495 400u16..=499u16 => Err(Error::ErrorResponse(
11496 ResponseValue::from_response(response).await?,
11497 )),
11498 500u16..=599u16 => Err(Error::ErrorResponse(
11499 ResponseValue::from_response(response).await?,
11500 )),
11501 _ => Err(Error::UnexpectedResponse(response)),
11502 }
11503 }
11504
11505 pub async fn job_batch<'a>(
11520 &'a self,
11521 async_: Option<bool>,
11522 concurrency: Option<i64>,
11523 inputs: Option<&'a ::std::vec::Vec<types::JobBatchInputsItem>>,
11524 body: &'a types::JobBatchRequest,
11525 ) -> Result<ResponseValue<types::JobBatchResponse>, Error<types::RcError>> {
11526 let url = format!("{}/job/batch", self.baseurl,);
11527 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11528 header_map.append(
11529 ::reqwest::header::HeaderName::from_static("api-version"),
11530 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11531 );
11532 #[allow(unused_mut)]
11533 let mut request = self
11534 .client
11535 .post(url)
11536 .header(
11537 ::reqwest::header::ACCEPT,
11538 ::reqwest::header::HeaderValue::from_static("application/json"),
11539 )
11540 .json(&body)
11541 .query(&progenitor_client::QueryParam::new("_async", &async_))
11542 .query(&progenitor_client::QueryParam::new(
11543 "concurrency",
11544 &concurrency,
11545 ))
11546 .query(&progenitor_client::QueryParam::new("inputs", &inputs))
11547 .headers(header_map)
11548 .build()?;
11549 let info = OperationInfo {
11550 operation_id: "job_batch",
11551 };
11552 self.pre(&mut request, &info).await?;
11553 let result = self.exec(request, &info).await;
11554 self.post(&result, &info).await?;
11555 let response = result?;
11556 match response.status().as_u16() {
11557 200u16 => ResponseValue::from_response(response).await,
11558 400u16..=499u16 => Err(Error::ErrorResponse(
11559 ResponseValue::from_response(response).await?,
11560 )),
11561 500u16..=599u16 => Err(Error::ErrorResponse(
11562 ResponseValue::from_response(response).await?,
11563 )),
11564 _ => Err(Error::UnexpectedResponse(response)),
11565 }
11566 }
11567
11568 pub async fn job_list<'a>(
11578 &'a self,
11579 async_: Option<bool>,
11580 ) -> Result<ResponseValue<types::JobListResponse>, Error<types::RcError>> {
11581 let url = format!("{}/job/list", self.baseurl,);
11582 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11583 header_map.append(
11584 ::reqwest::header::HeaderName::from_static("api-version"),
11585 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11586 );
11587 #[allow(unused_mut)]
11588 let mut request = self
11589 .client
11590 .post(url)
11591 .header(
11592 ::reqwest::header::ACCEPT,
11593 ::reqwest::header::HeaderValue::from_static("application/json"),
11594 )
11595 .query(&progenitor_client::QueryParam::new("_async", &async_))
11596 .headers(header_map)
11597 .build()?;
11598 let info = OperationInfo {
11599 operation_id: "job_list",
11600 };
11601 self.pre(&mut request, &info).await?;
11602 let result = self.exec(request, &info).await;
11603 self.post(&result, &info).await?;
11604 let response = result?;
11605 match response.status().as_u16() {
11606 200u16 => ResponseValue::from_response(response).await,
11607 400u16..=499u16 => Err(Error::ErrorResponse(
11608 ResponseValue::from_response(response).await?,
11609 )),
11610 500u16..=599u16 => Err(Error::ErrorResponse(
11611 ResponseValue::from_response(response).await?,
11612 )),
11613 _ => Err(Error::UnexpectedResponse(response)),
11614 }
11615 }
11616
11617 pub async fn job_status<'a>(
11629 &'a self,
11630 async_: Option<bool>,
11631 jobid: f64,
11632 ) -> Result<ResponseValue<types::JobStatusResponse>, Error<types::RcError>> {
11633 let url = format!("{}/job/status", self.baseurl,);
11634 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11635 header_map.append(
11636 ::reqwest::header::HeaderName::from_static("api-version"),
11637 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11638 );
11639 #[allow(unused_mut)]
11640 let mut request = self
11641 .client
11642 .post(url)
11643 .header(
11644 ::reqwest::header::ACCEPT,
11645 ::reqwest::header::HeaderValue::from_static("application/json"),
11646 )
11647 .query(&progenitor_client::QueryParam::new("_async", &async_))
11648 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
11649 .headers(header_map)
11650 .build()?;
11651 let info = OperationInfo {
11652 operation_id: "job_status",
11653 };
11654 self.pre(&mut request, &info).await?;
11655 let result = self.exec(request, &info).await;
11656 self.post(&result, &info).await?;
11657 let response = result?;
11658 match response.status().as_u16() {
11659 200u16 => ResponseValue::from_response(response).await,
11660 400u16..=499u16 => Err(Error::ErrorResponse(
11661 ResponseValue::from_response(response).await?,
11662 )),
11663 500u16..=599u16 => Err(Error::ErrorResponse(
11664 ResponseValue::from_response(response).await?,
11665 )),
11666 _ => Err(Error::UnexpectedResponse(response)),
11667 }
11668 }
11669
11670 pub async fn job_stop<'a>(
11681 &'a self,
11682 async_: Option<bool>,
11683 jobid: f64,
11684 ) -> Result<
11685 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11686 Error<types::RcError>,
11687 > {
11688 let url = format!("{}/job/stop", self.baseurl,);
11689 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11690 header_map.append(
11691 ::reqwest::header::HeaderName::from_static("api-version"),
11692 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11693 );
11694 #[allow(unused_mut)]
11695 let mut request = self
11696 .client
11697 .post(url)
11698 .header(
11699 ::reqwest::header::ACCEPT,
11700 ::reqwest::header::HeaderValue::from_static("application/json"),
11701 )
11702 .query(&progenitor_client::QueryParam::new("_async", &async_))
11703 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
11704 .headers(header_map)
11705 .build()?;
11706 let info = OperationInfo {
11707 operation_id: "job_stop",
11708 };
11709 self.pre(&mut request, &info).await?;
11710 let result = self.exec(request, &info).await;
11711 self.post(&result, &info).await?;
11712 let response = result?;
11713 match response.status().as_u16() {
11714 200u16 => ResponseValue::from_response(response).await,
11715 400u16..=499u16 => Err(Error::ErrorResponse(
11716 ResponseValue::from_response(response).await?,
11717 )),
11718 500u16..=599u16 => Err(Error::ErrorResponse(
11719 ResponseValue::from_response(response).await?,
11720 )),
11721 _ => Err(Error::UnexpectedResponse(response)),
11722 }
11723 }
11724
11725 pub async fn job_stopgroup<'a>(
11736 &'a self,
11737 async_: Option<bool>,
11738 group: &'a str,
11739 ) -> Result<
11740 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11741 Error<types::RcError>,
11742 > {
11743 let url = format!("{}/job/stopgroup", self.baseurl,);
11744 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11745 header_map.append(
11746 ::reqwest::header::HeaderName::from_static("api-version"),
11747 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11748 );
11749 #[allow(unused_mut)]
11750 let mut request = self
11751 .client
11752 .post(url)
11753 .header(
11754 ::reqwest::header::ACCEPT,
11755 ::reqwest::header::HeaderValue::from_static("application/json"),
11756 )
11757 .query(&progenitor_client::QueryParam::new("_async", &async_))
11758 .query(&progenitor_client::QueryParam::new("group", &group))
11759 .headers(header_map)
11760 .build()?;
11761 let info = OperationInfo {
11762 operation_id: "job_stopgroup",
11763 };
11764 self.pre(&mut request, &info).await?;
11765 let result = self.exec(request, &info).await;
11766 self.post(&result, &info).await?;
11767 let response = result?;
11768 match response.status().as_u16() {
11769 200u16 => ResponseValue::from_response(response).await,
11770 400u16..=499u16 => Err(Error::ErrorResponse(
11771 ResponseValue::from_response(response).await?,
11772 )),
11773 500u16..=599u16 => Err(Error::ErrorResponse(
11774 ResponseValue::from_response(response).await?,
11775 )),
11776 _ => Err(Error::UnexpectedResponse(response)),
11777 }
11778 }
11779
11780 pub async fn operations_list<'a>(
11811 &'a self,
11812 async_: Option<bool>,
11813 group: Option<&'a str>,
11814 dirs_only: Option<bool>,
11815 files_only: Option<bool>,
11816 fs: &'a str,
11817 hash_types: Option<&'a ::std::vec::Vec<::std::string::String>>,
11818 metadata: Option<bool>,
11819 no_mime_type: Option<bool>,
11820 no_mod_time: Option<bool>,
11821 opt: Option<&'a str>,
11822 recurse: Option<bool>,
11823 remote: &'a str,
11824 show_encrypted: Option<bool>,
11825 show_hash: Option<bool>,
11826 show_orig_i_ds: Option<bool>,
11827 ) -> Result<ResponseValue<types::OperationsListResponse>, Error<types::RcError>> {
11828 let url = format!("{}/operations/list", self.baseurl,);
11829 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11830 header_map.append(
11831 ::reqwest::header::HeaderName::from_static("api-version"),
11832 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11833 );
11834 #[allow(unused_mut)]
11835 let mut request = self
11836 .client
11837 .post(url)
11838 .header(
11839 ::reqwest::header::ACCEPT,
11840 ::reqwest::header::HeaderValue::from_static("application/json"),
11841 )
11842 .query(&progenitor_client::QueryParam::new("_async", &async_))
11843 .query(&progenitor_client::QueryParam::new("_group", &group))
11844 .query(&progenitor_client::QueryParam::new("dirsOnly", &dirs_only))
11845 .query(&progenitor_client::QueryParam::new(
11846 "filesOnly",
11847 &files_only,
11848 ))
11849 .query(&progenitor_client::QueryParam::new("fs", &fs))
11850 .query(&progenitor_client::QueryParam::new(
11851 "hashTypes",
11852 &hash_types,
11853 ))
11854 .query(&progenitor_client::QueryParam::new("metadata", &metadata))
11855 .query(&progenitor_client::QueryParam::new(
11856 "noMimeType",
11857 &no_mime_type,
11858 ))
11859 .query(&progenitor_client::QueryParam::new(
11860 "noModTime",
11861 &no_mod_time,
11862 ))
11863 .query(&progenitor_client::QueryParam::new("opt", &opt))
11864 .query(&progenitor_client::QueryParam::new("recurse", &recurse))
11865 .query(&progenitor_client::QueryParam::new("remote", &remote))
11866 .query(&progenitor_client::QueryParam::new(
11867 "showEncrypted",
11868 &show_encrypted,
11869 ))
11870 .query(&progenitor_client::QueryParam::new("showHash", &show_hash))
11871 .query(&progenitor_client::QueryParam::new(
11872 "showOrigIDs",
11873 &show_orig_i_ds,
11874 ))
11875 .headers(header_map)
11876 .build()?;
11877 let info = OperationInfo {
11878 operation_id: "operations_list",
11879 };
11880 self.pre(&mut request, &info).await?;
11881 let result = self.exec(request, &info).await;
11882 self.post(&result, &info).await?;
11883 let response = result?;
11884 match response.status().as_u16() {
11885 200u16 => ResponseValue::from_response(response).await,
11886 400u16..=499u16 => Err(Error::ErrorResponse(
11887 ResponseValue::from_response(response).await?,
11888 )),
11889 500u16..=599u16 => Err(Error::ErrorResponse(
11890 ResponseValue::from_response(response).await?,
11891 )),
11892 _ => Err(Error::UnexpectedResponse(response)),
11893 }
11894 }
11895
11896 pub async fn operations_stat<'a>(
11912 &'a self,
11913 async_: Option<bool>,
11914 group: Option<&'a str>,
11915 fs: &'a str,
11916 opt: Option<&'a str>,
11917 remote: &'a str,
11918 ) -> Result<ResponseValue<types::OperationsStatResponse>, Error<types::RcError>> {
11919 let url = format!("{}/operations/stat", self.baseurl,);
11920 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11921 header_map.append(
11922 ::reqwest::header::HeaderName::from_static("api-version"),
11923 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11924 );
11925 #[allow(unused_mut)]
11926 let mut request = self
11927 .client
11928 .post(url)
11929 .header(
11930 ::reqwest::header::ACCEPT,
11931 ::reqwest::header::HeaderValue::from_static("application/json"),
11932 )
11933 .query(&progenitor_client::QueryParam::new("_async", &async_))
11934 .query(&progenitor_client::QueryParam::new("_group", &group))
11935 .query(&progenitor_client::QueryParam::new("fs", &fs))
11936 .query(&progenitor_client::QueryParam::new("opt", &opt))
11937 .query(&progenitor_client::QueryParam::new("remote", &remote))
11938 .headers(header_map)
11939 .build()?;
11940 let info = OperationInfo {
11941 operation_id: "operations_stat",
11942 };
11943 self.pre(&mut request, &info).await?;
11944 let result = self.exec(request, &info).await;
11945 self.post(&result, &info).await?;
11946 let response = result?;
11947 match response.status().as_u16() {
11948 200u16 => ResponseValue::from_response(response).await,
11949 400u16..=499u16 => Err(Error::ErrorResponse(
11950 ResponseValue::from_response(response).await?,
11951 )),
11952 500u16..=599u16 => Err(Error::ErrorResponse(
11953 ResponseValue::from_response(response).await?,
11954 )),
11955 _ => Err(Error::UnexpectedResponse(response)),
11956 }
11957 }
11958
11959 pub async fn operations_about<'a>(
11972 &'a self,
11973 async_: Option<bool>,
11974 group: Option<&'a str>,
11975 fs: &'a str,
11976 ) -> Result<ResponseValue<types::OperationsAboutResponse>, Error<types::RcError>> {
11977 let url = format!("{}/operations/about", self.baseurl,);
11978 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11979 header_map.append(
11980 ::reqwest::header::HeaderName::from_static("api-version"),
11981 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11982 );
11983 #[allow(unused_mut)]
11984 let mut request = self
11985 .client
11986 .post(url)
11987 .header(
11988 ::reqwest::header::ACCEPT,
11989 ::reqwest::header::HeaderValue::from_static("application/json"),
11990 )
11991 .query(&progenitor_client::QueryParam::new("_async", &async_))
11992 .query(&progenitor_client::QueryParam::new("_group", &group))
11993 .query(&progenitor_client::QueryParam::new("fs", &fs))
11994 .headers(header_map)
11995 .build()?;
11996 let info = OperationInfo {
11997 operation_id: "operations_about",
11998 };
11999 self.pre(&mut request, &info).await?;
12000 let result = self.exec(request, &info).await;
12001 self.post(&result, &info).await?;
12002 let response = result?;
12003 match response.status().as_u16() {
12004 200u16 => ResponseValue::from_response(response).await,
12005 400u16..=499u16 => Err(Error::ErrorResponse(
12006 ResponseValue::from_response(response).await?,
12007 )),
12008 500u16..=599u16 => Err(Error::ErrorResponse(
12009 ResponseValue::from_response(response).await?,
12010 )),
12011 _ => Err(Error::UnexpectedResponse(response)),
12012 }
12013 }
12014
12015 pub async fn operations_uploadfile<'a, B: Into<reqwest::Body>>(
12030 &'a self,
12031 async_: Option<bool>,
12032 group: Option<&'a str>,
12033 fs: &'a str,
12034 remote: &'a str,
12035 body: B,
12036 ) -> Result<
12037 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12038 Error<types::RcError>,
12039 > {
12040 let url = format!("{}/operations/uploadfile", self.baseurl,);
12041 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12042 header_map.append(
12043 ::reqwest::header::HeaderName::from_static("api-version"),
12044 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12045 );
12046 #[allow(unused_mut)]
12047 let mut request = self
12048 .client
12049 .post(url)
12050 .header(
12051 ::reqwest::header::ACCEPT,
12052 ::reqwest::header::HeaderValue::from_static("application/json"),
12053 )
12054 .header(
12055 ::reqwest::header::CONTENT_TYPE,
12056 ::reqwest::header::HeaderValue::from_static("application/octet-stream"),
12057 )
12058 .body(body)
12059 .query(&progenitor_client::QueryParam::new("_async", &async_))
12060 .query(&progenitor_client::QueryParam::new("_group", &group))
12061 .query(&progenitor_client::QueryParam::new("fs", &fs))
12062 .query(&progenitor_client::QueryParam::new("remote", &remote))
12063 .headers(header_map)
12064 .build()?;
12065 let info = OperationInfo {
12066 operation_id: "operations_uploadfile",
12067 };
12068 self.pre(&mut request, &info).await?;
12069 let result = self.exec(request, &info).await;
12070 self.post(&result, &info).await?;
12071 let response = result?;
12072 match response.status().as_u16() {
12073 200u16 => ResponseValue::from_response(response).await,
12074 400u16..=499u16 => Err(Error::ErrorResponse(
12075 ResponseValue::from_response(response).await?,
12076 )),
12077 500u16..=599u16 => Err(Error::ErrorResponse(
12078 ResponseValue::from_response(response).await?,
12079 )),
12080 _ => Err(Error::UnexpectedResponse(response)),
12081 }
12082 }
12083
12084 pub async fn operations_purge<'a>(
12099 &'a self,
12100 async_: Option<bool>,
12101 config: Option<&'a str>,
12102 filter: Option<&'a str>,
12103 group: Option<&'a str>,
12104 fs: &'a str,
12105 remote: &'a str,
12106 ) -> Result<
12107 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12108 Error<types::RcError>,
12109 > {
12110 let url = format!("{}/operations/purge", self.baseurl,);
12111 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12112 header_map.append(
12113 ::reqwest::header::HeaderName::from_static("api-version"),
12114 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12115 );
12116 #[allow(unused_mut)]
12117 let mut request = self
12118 .client
12119 .post(url)
12120 .header(
12121 ::reqwest::header::ACCEPT,
12122 ::reqwest::header::HeaderValue::from_static("application/json"),
12123 )
12124 .query(&progenitor_client::QueryParam::new("_async", &async_))
12125 .query(&progenitor_client::QueryParam::new("_config", &config))
12126 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12127 .query(&progenitor_client::QueryParam::new("_group", &group))
12128 .query(&progenitor_client::QueryParam::new("fs", &fs))
12129 .query(&progenitor_client::QueryParam::new("remote", &remote))
12130 .headers(header_map)
12131 .build()?;
12132 let info = OperationInfo {
12133 operation_id: "operations_purge",
12134 };
12135 self.pre(&mut request, &info).await?;
12136 let result = self.exec(request, &info).await;
12137 self.post(&result, &info).await?;
12138 let response = result?;
12139 match response.status().as_u16() {
12140 200u16 => ResponseValue::from_response(response).await,
12141 400u16..=499u16 => Err(Error::ErrorResponse(
12142 ResponseValue::from_response(response).await?,
12143 )),
12144 500u16..=599u16 => Err(Error::ErrorResponse(
12145 ResponseValue::from_response(response).await?,
12146 )),
12147 _ => Err(Error::UnexpectedResponse(response)),
12148 }
12149 }
12150
12151 pub async fn operations_mkdir<'a>(
12164 &'a self,
12165 async_: Option<bool>,
12166 group: Option<&'a str>,
12167 fs: &'a str,
12168 remote: &'a str,
12169 ) -> Result<
12170 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12171 Error<types::RcError>,
12172 > {
12173 let url = format!("{}/operations/mkdir", self.baseurl,);
12174 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12175 header_map.append(
12176 ::reqwest::header::HeaderName::from_static("api-version"),
12177 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12178 );
12179 #[allow(unused_mut)]
12180 let mut request = self
12181 .client
12182 .post(url)
12183 .header(
12184 ::reqwest::header::ACCEPT,
12185 ::reqwest::header::HeaderValue::from_static("application/json"),
12186 )
12187 .query(&progenitor_client::QueryParam::new("_async", &async_))
12188 .query(&progenitor_client::QueryParam::new("_group", &group))
12189 .query(&progenitor_client::QueryParam::new("fs", &fs))
12190 .query(&progenitor_client::QueryParam::new("remote", &remote))
12191 .headers(header_map)
12192 .build()?;
12193 let info = OperationInfo {
12194 operation_id: "operations_mkdir",
12195 };
12196 self.pre(&mut request, &info).await?;
12197 let result = self.exec(request, &info).await;
12198 self.post(&result, &info).await?;
12199 let response = result?;
12200 match response.status().as_u16() {
12201 200u16 => ResponseValue::from_response(response).await,
12202 400u16..=499u16 => Err(Error::ErrorResponse(
12203 ResponseValue::from_response(response).await?,
12204 )),
12205 500u16..=599u16 => Err(Error::ErrorResponse(
12206 ResponseValue::from_response(response).await?,
12207 )),
12208 _ => Err(Error::UnexpectedResponse(response)),
12209 }
12210 }
12211
12212 pub async fn operations_rmdir<'a>(
12225 &'a self,
12226 async_: Option<bool>,
12227 group: Option<&'a str>,
12228 fs: &'a str,
12229 remote: &'a str,
12230 ) -> Result<
12231 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12232 Error<types::RcError>,
12233 > {
12234 let url = format!("{}/operations/rmdir", self.baseurl,);
12235 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12236 header_map.append(
12237 ::reqwest::header::HeaderName::from_static("api-version"),
12238 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12239 );
12240 #[allow(unused_mut)]
12241 let mut request = self
12242 .client
12243 .post(url)
12244 .header(
12245 ::reqwest::header::ACCEPT,
12246 ::reqwest::header::HeaderValue::from_static("application/json"),
12247 )
12248 .query(&progenitor_client::QueryParam::new("_async", &async_))
12249 .query(&progenitor_client::QueryParam::new("_group", &group))
12250 .query(&progenitor_client::QueryParam::new("fs", &fs))
12251 .query(&progenitor_client::QueryParam::new("remote", &remote))
12252 .headers(header_map)
12253 .build()?;
12254 let info = OperationInfo {
12255 operation_id: "operations_rmdir",
12256 };
12257 self.pre(&mut request, &info).await?;
12258 let result = self.exec(request, &info).await;
12259 self.post(&result, &info).await?;
12260 let response = result?;
12261 match response.status().as_u16() {
12262 200u16 => ResponseValue::from_response(response).await,
12263 400u16..=499u16 => Err(Error::ErrorResponse(
12264 ResponseValue::from_response(response).await?,
12265 )),
12266 500u16..=599u16 => Err(Error::ErrorResponse(
12267 ResponseValue::from_response(response).await?,
12268 )),
12269 _ => Err(Error::UnexpectedResponse(response)),
12270 }
12271 }
12272
12273 pub async fn operations_check<'a>(
12306 &'a self,
12307 async_: Option<bool>,
12308 group: Option<&'a str>,
12309 check_file_fs: Option<&'a str>,
12310 check_file_hash: Option<&'a str>,
12311 check_file_remote: Option<&'a str>,
12312 combined: Option<bool>,
12313 differ: Option<bool>,
12314 download: Option<bool>,
12315 dst_fs: &'a str,
12316 error: Option<bool>,
12317 match_: Option<bool>,
12318 missing_on_dst: Option<bool>,
12319 missing_on_src: Option<bool>,
12320 one_way: Option<bool>,
12321 src_fs: &'a str,
12322 ) -> Result<ResponseValue<types::OperationsCheckResponse>, Error<types::RcError>> {
12323 let url = format!("{}/operations/check", self.baseurl,);
12324 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12325 header_map.append(
12326 ::reqwest::header::HeaderName::from_static("api-version"),
12327 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12328 );
12329 #[allow(unused_mut)]
12330 let mut request = self
12331 .client
12332 .post(url)
12333 .header(
12334 ::reqwest::header::ACCEPT,
12335 ::reqwest::header::HeaderValue::from_static("application/json"),
12336 )
12337 .query(&progenitor_client::QueryParam::new("_async", &async_))
12338 .query(&progenitor_client::QueryParam::new("_group", &group))
12339 .query(&progenitor_client::QueryParam::new(
12340 "checkFileFs",
12341 &check_file_fs,
12342 ))
12343 .query(&progenitor_client::QueryParam::new(
12344 "checkFileHash",
12345 &check_file_hash,
12346 ))
12347 .query(&progenitor_client::QueryParam::new(
12348 "checkFileRemote",
12349 &check_file_remote,
12350 ))
12351 .query(&progenitor_client::QueryParam::new("combined", &combined))
12352 .query(&progenitor_client::QueryParam::new("differ", &differ))
12353 .query(&progenitor_client::QueryParam::new("download", &download))
12354 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12355 .query(&progenitor_client::QueryParam::new("error", &error))
12356 .query(&progenitor_client::QueryParam::new("match", &match_))
12357 .query(&progenitor_client::QueryParam::new(
12358 "missingOnDst",
12359 &missing_on_dst,
12360 ))
12361 .query(&progenitor_client::QueryParam::new(
12362 "missingOnSrc",
12363 &missing_on_src,
12364 ))
12365 .query(&progenitor_client::QueryParam::new("oneWay", &one_way))
12366 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12367 .headers(header_map)
12368 .build()?;
12369 let info = OperationInfo {
12370 operation_id: "operations_check",
12371 };
12372 self.pre(&mut request, &info).await?;
12373 let result = self.exec(request, &info).await;
12374 self.post(&result, &info).await?;
12375 let response = result?;
12376 match response.status().as_u16() {
12377 200u16 => ResponseValue::from_response(response).await,
12378 400u16..=499u16 => Err(Error::ErrorResponse(
12379 ResponseValue::from_response(response).await?,
12380 )),
12381 500u16..=599u16 => Err(Error::ErrorResponse(
12382 ResponseValue::from_response(response).await?,
12383 )),
12384 _ => Err(Error::UnexpectedResponse(response)),
12385 }
12386 }
12387
12388 pub async fn sync_sync<'a>(
12406 &'a self,
12407 async_: Option<bool>,
12408 config: Option<&'a str>,
12409 filter: Option<&'a str>,
12410 group: Option<&'a str>,
12411 create_empty_src_dirs: Option<bool>,
12412 dst_fs: &'a str,
12413 src_fs: &'a str,
12414 ) -> Result<ResponseValue<types::SyncSyncResponse>, Error<types::RcError>> {
12415 let url = format!("{}/sync/sync", self.baseurl,);
12416 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12417 header_map.append(
12418 ::reqwest::header::HeaderName::from_static("api-version"),
12419 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12420 );
12421 #[allow(unused_mut)]
12422 let mut request = self
12423 .client
12424 .post(url)
12425 .header(
12426 ::reqwest::header::ACCEPT,
12427 ::reqwest::header::HeaderValue::from_static("application/json"),
12428 )
12429 .query(&progenitor_client::QueryParam::new("_async", &async_))
12430 .query(&progenitor_client::QueryParam::new("_config", &config))
12431 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12432 .query(&progenitor_client::QueryParam::new("_group", &group))
12433 .query(&progenitor_client::QueryParam::new(
12434 "createEmptySrcDirs",
12435 &create_empty_src_dirs,
12436 ))
12437 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12438 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12439 .headers(header_map)
12440 .build()?;
12441 let info = OperationInfo {
12442 operation_id: "sync_sync",
12443 };
12444 self.pre(&mut request, &info).await?;
12445 let result = self.exec(request, &info).await;
12446 self.post(&result, &info).await?;
12447 let response = result?;
12448 match response.status().as_u16() {
12449 200u16 => ResponseValue::from_response(response).await,
12450 400u16..=499u16 => Err(Error::ErrorResponse(
12451 ResponseValue::from_response(response).await?,
12452 )),
12453 500u16..=599u16 => Err(Error::ErrorResponse(
12454 ResponseValue::from_response(response).await?,
12455 )),
12456 _ => Err(Error::UnexpectedResponse(response)),
12457 }
12458 }
12459
12460 pub async fn sync_copy<'a>(
12478 &'a self,
12479 async_: Option<bool>,
12480 config: Option<&'a str>,
12481 filter: Option<&'a str>,
12482 group: Option<&'a str>,
12483 create_empty_src_dirs: Option<bool>,
12484 dst_fs: &'a str,
12485 src_fs: &'a str,
12486 ) -> Result<ResponseValue<types::SyncCopyResponse>, Error<types::RcError>> {
12487 let url = format!("{}/sync/copy", self.baseurl,);
12488 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12489 header_map.append(
12490 ::reqwest::header::HeaderName::from_static("api-version"),
12491 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12492 );
12493 #[allow(unused_mut)]
12494 let mut request = self
12495 .client
12496 .post(url)
12497 .header(
12498 ::reqwest::header::ACCEPT,
12499 ::reqwest::header::HeaderValue::from_static("application/json"),
12500 )
12501 .query(&progenitor_client::QueryParam::new("_async", &async_))
12502 .query(&progenitor_client::QueryParam::new("_config", &config))
12503 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12504 .query(&progenitor_client::QueryParam::new("_group", &group))
12505 .query(&progenitor_client::QueryParam::new(
12506 "createEmptySrcDirs",
12507 &create_empty_src_dirs,
12508 ))
12509 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12510 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12511 .headers(header_map)
12512 .build()?;
12513 let info = OperationInfo {
12514 operation_id: "sync_copy",
12515 };
12516 self.pre(&mut request, &info).await?;
12517 let result = self.exec(request, &info).await;
12518 self.post(&result, &info).await?;
12519 let response = result?;
12520 match response.status().as_u16() {
12521 200u16 => ResponseValue::from_response(response).await,
12522 400u16..=499u16 => Err(Error::ErrorResponse(
12523 ResponseValue::from_response(response).await?,
12524 )),
12525 500u16..=599u16 => Err(Error::ErrorResponse(
12526 ResponseValue::from_response(response).await?,
12527 )),
12528 _ => Err(Error::UnexpectedResponse(response)),
12529 }
12530 }
12531
12532 pub async fn sync_move<'a>(
12552 &'a self,
12553 async_: Option<bool>,
12554 config: Option<&'a str>,
12555 filter: Option<&'a str>,
12556 group: Option<&'a str>,
12557 create_empty_src_dirs: Option<bool>,
12558 delete_empty_src_dirs: Option<bool>,
12559 dst_fs: &'a str,
12560 src_fs: &'a str,
12561 ) -> Result<ResponseValue<types::SyncMoveResponse>, Error<types::RcError>> {
12562 let url = format!("{}/sync/move", self.baseurl,);
12563 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12564 header_map.append(
12565 ::reqwest::header::HeaderName::from_static("api-version"),
12566 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12567 );
12568 #[allow(unused_mut)]
12569 let mut request = self
12570 .client
12571 .post(url)
12572 .header(
12573 ::reqwest::header::ACCEPT,
12574 ::reqwest::header::HeaderValue::from_static("application/json"),
12575 )
12576 .query(&progenitor_client::QueryParam::new("_async", &async_))
12577 .query(&progenitor_client::QueryParam::new("_config", &config))
12578 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12579 .query(&progenitor_client::QueryParam::new("_group", &group))
12580 .query(&progenitor_client::QueryParam::new(
12581 "createEmptySrcDirs",
12582 &create_empty_src_dirs,
12583 ))
12584 .query(&progenitor_client::QueryParam::new(
12585 "deleteEmptySrcDirs",
12586 &delete_empty_src_dirs,
12587 ))
12588 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
12589 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
12590 .headers(header_map)
12591 .build()?;
12592 let info = OperationInfo {
12593 operation_id: "sync_move",
12594 };
12595 self.pre(&mut request, &info).await?;
12596 let result = self.exec(request, &info).await;
12597 self.post(&result, &info).await?;
12598 let response = result?;
12599 match response.status().as_u16() {
12600 200u16 => ResponseValue::from_response(response).await,
12601 400u16..=499u16 => Err(Error::ErrorResponse(
12602 ResponseValue::from_response(response).await?,
12603 )),
12604 500u16..=599u16 => Err(Error::ErrorResponse(
12605 ResponseValue::from_response(response).await?,
12606 )),
12607 _ => Err(Error::UnexpectedResponse(response)),
12608 }
12609 }
12610
12611 pub async fn sync_bisync<'a>(
12654 &'a self,
12655 async_: Option<bool>,
12656 config: Option<&'a str>,
12657 filter: Option<&'a str>,
12658 group: Option<&'a str>,
12659 backupdir1: Option<&'a str>,
12660 backupdir2: Option<&'a str>,
12661 check_access: Option<bool>,
12662 check_filename: Option<&'a str>,
12663 check_sync: Option<bool>,
12664 create_empty_src_dirs: Option<bool>,
12665 dry_run: Option<bool>,
12666 filters_file: Option<&'a str>,
12667 force: Option<bool>,
12668 ignore_listing_checksum: Option<bool>,
12669 max_delete: Option<f64>,
12670 no_cleanup: Option<bool>,
12671 path1: &'a str,
12672 path2: &'a str,
12673 remove_empty_dirs: Option<bool>,
12674 resilient: Option<bool>,
12675 resync: Option<bool>,
12676 workdir: Option<&'a str>,
12677 ) -> Result<ResponseValue<types::SyncBisyncResponse>, Error<types::RcError>> {
12678 let url = format!("{}/sync/bisync", self.baseurl,);
12679 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12680 header_map.append(
12681 ::reqwest::header::HeaderName::from_static("api-version"),
12682 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12683 );
12684 #[allow(unused_mut)]
12685 let mut request = self
12686 .client
12687 .post(url)
12688 .header(
12689 ::reqwest::header::ACCEPT,
12690 ::reqwest::header::HeaderValue::from_static("application/json"),
12691 )
12692 .query(&progenitor_client::QueryParam::new("_async", &async_))
12693 .query(&progenitor_client::QueryParam::new("_config", &config))
12694 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12695 .query(&progenitor_client::QueryParam::new("_group", &group))
12696 .query(&progenitor_client::QueryParam::new(
12697 "backupdir1",
12698 &backupdir1,
12699 ))
12700 .query(&progenitor_client::QueryParam::new(
12701 "backupdir2",
12702 &backupdir2,
12703 ))
12704 .query(&progenitor_client::QueryParam::new(
12705 "checkAccess",
12706 &check_access,
12707 ))
12708 .query(&progenitor_client::QueryParam::new(
12709 "checkFilename",
12710 &check_filename,
12711 ))
12712 .query(&progenitor_client::QueryParam::new(
12713 "checkSync",
12714 &check_sync,
12715 ))
12716 .query(&progenitor_client::QueryParam::new(
12717 "createEmptySrcDirs",
12718 &create_empty_src_dirs,
12719 ))
12720 .query(&progenitor_client::QueryParam::new("dryRun", &dry_run))
12721 .query(&progenitor_client::QueryParam::new(
12722 "filtersFile",
12723 &filters_file,
12724 ))
12725 .query(&progenitor_client::QueryParam::new("force", &force))
12726 .query(&progenitor_client::QueryParam::new(
12727 "ignoreListingChecksum",
12728 &ignore_listing_checksum,
12729 ))
12730 .query(&progenitor_client::QueryParam::new(
12731 "maxDelete",
12732 &max_delete,
12733 ))
12734 .query(&progenitor_client::QueryParam::new(
12735 "noCleanup",
12736 &no_cleanup,
12737 ))
12738 .query(&progenitor_client::QueryParam::new("path1", &path1))
12739 .query(&progenitor_client::QueryParam::new("path2", &path2))
12740 .query(&progenitor_client::QueryParam::new(
12741 "removeEmptyDirs",
12742 &remove_empty_dirs,
12743 ))
12744 .query(&progenitor_client::QueryParam::new("resilient", &resilient))
12745 .query(&progenitor_client::QueryParam::new("resync", &resync))
12746 .query(&progenitor_client::QueryParam::new("workdir", &workdir))
12747 .headers(header_map)
12748 .build()?;
12749 let info = OperationInfo {
12750 operation_id: "sync_bisync",
12751 };
12752 self.pre(&mut request, &info).await?;
12753 let result = self.exec(request, &info).await;
12754 self.post(&result, &info).await?;
12755 let response = result?;
12756 match response.status().as_u16() {
12757 200u16 => ResponseValue::from_response(response).await,
12758 400u16..=499u16 => Err(Error::ErrorResponse(
12759 ResponseValue::from_response(response).await?,
12760 )),
12761 500u16..=599u16 => Err(Error::ErrorResponse(
12762 ResponseValue::from_response(response).await?,
12763 )),
12764 _ => Err(Error::UnexpectedResponse(response)),
12765 }
12766 }
12767
12768 pub async fn options_blocks<'a>(
12779 &'a self,
12780 async_: Option<bool>,
12781 group: Option<&'a str>,
12782 ) -> Result<ResponseValue<types::OptionsBlocksResponse>, Error<types::RcError>> {
12783 let url = format!("{}/options/blocks", self.baseurl,);
12784 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12785 header_map.append(
12786 ::reqwest::header::HeaderName::from_static("api-version"),
12787 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12788 );
12789 #[allow(unused_mut)]
12790 let mut request = self
12791 .client
12792 .post(url)
12793 .header(
12794 ::reqwest::header::ACCEPT,
12795 ::reqwest::header::HeaderValue::from_static("application/json"),
12796 )
12797 .query(&progenitor_client::QueryParam::new("_async", &async_))
12798 .query(&progenitor_client::QueryParam::new("_group", &group))
12799 .headers(header_map)
12800 .build()?;
12801 let info = OperationInfo {
12802 operation_id: "options_blocks",
12803 };
12804 self.pre(&mut request, &info).await?;
12805 let result = self.exec(request, &info).await;
12806 self.post(&result, &info).await?;
12807 let response = result?;
12808 match response.status().as_u16() {
12809 200u16 => ResponseValue::from_response(response).await,
12810 400u16..=499u16 => Err(Error::ErrorResponse(
12811 ResponseValue::from_response(response).await?,
12812 )),
12813 500u16..=599u16 => Err(Error::ErrorResponse(
12814 ResponseValue::from_response(response).await?,
12815 )),
12816 _ => Err(Error::UnexpectedResponse(response)),
12817 }
12818 }
12819
12820 pub async fn options_get<'a>(
12833 &'a self,
12834 async_: Option<bool>,
12835 group: Option<&'a str>,
12836 blocks: Option<&'a str>,
12837 ) -> Result<ResponseValue<types::OptionsGetResponse>, Error<types::RcError>> {
12838 let url = format!("{}/options/get", 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("blocks", &blocks))
12855 .headers(header_map)
12856 .build()?;
12857 let info = OperationInfo {
12858 operation_id: "options_get",
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 options_info<'a>(
12890 &'a self,
12891 async_: Option<bool>,
12892 group: Option<&'a str>,
12893 blocks: Option<&'a str>,
12894 ) -> Result<ResponseValue<types::OptionsInfoResponse>, Error<types::RcError>> {
12895 let url = format!("{}/options/info", self.baseurl,);
12896 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12897 header_map.append(
12898 ::reqwest::header::HeaderName::from_static("api-version"),
12899 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12900 );
12901 #[allow(unused_mut)]
12902 let mut request = self
12903 .client
12904 .post(url)
12905 .header(
12906 ::reqwest::header::ACCEPT,
12907 ::reqwest::header::HeaderValue::from_static("application/json"),
12908 )
12909 .query(&progenitor_client::QueryParam::new("_async", &async_))
12910 .query(&progenitor_client::QueryParam::new("_group", &group))
12911 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12912 .headers(header_map)
12913 .build()?;
12914 let info = OperationInfo {
12915 operation_id: "options_info",
12916 };
12917 self.pre(&mut request, &info).await?;
12918 let result = self.exec(request, &info).await;
12919 self.post(&result, &info).await?;
12920 let response = result?;
12921 match response.status().as_u16() {
12922 200u16 => ResponseValue::from_response(response).await,
12923 400u16..=499u16 => Err(Error::ErrorResponse(
12924 ResponseValue::from_response(response).await?,
12925 )),
12926 500u16..=599u16 => Err(Error::ErrorResponse(
12927 ResponseValue::from_response(response).await?,
12928 )),
12929 _ => Err(Error::UnexpectedResponse(response)),
12930 }
12931 }
12932
12933 pub async fn options_set<'a>(
12964 &'a self,
12965 async_: Option<bool>,
12966 group: Option<&'a str>,
12967 dlna: Option<
12968 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetDlnaValue>,
12969 >,
12970 filter: Option<
12971 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFilterValue>,
12972 >,
12973 ftp: Option<
12974 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFtpValue>,
12975 >,
12976 http: Option<
12977 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetHttpValue>,
12978 >,
12979 log: Option<
12980 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetLogValue>,
12981 >,
12982 main: Option<
12983 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMainValue>,
12984 >,
12985 mount: Option<
12986 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMountValue>,
12987 >,
12988 nfs: Option<
12989 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetNfsValue>,
12990 >,
12991 proxy: Option<
12992 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetProxyValue>,
12993 >,
12994 rc: Option<
12995 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetRcValue>,
12996 >,
12997 restic: Option<
12998 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetResticValue>,
12999 >,
13000 s3: Option<
13001 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetS3Value>,
13002 >,
13003 sftp: Option<
13004 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetSftpValue>,
13005 >,
13006 vfs: Option<
13007 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetVfsValue>,
13008 >,
13009 webdav: Option<
13010 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetWebdavValue>,
13011 >,
13012 ) -> Result<
13013 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13014 Error<types::RcError>,
13015 > {
13016 let url = format!("{}/options/set", self.baseurl,);
13017 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13018 header_map.append(
13019 ::reqwest::header::HeaderName::from_static("api-version"),
13020 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13021 );
13022 #[allow(unused_mut)]
13023 let mut request = self
13024 .client
13025 .post(url)
13026 .header(
13027 ::reqwest::header::ACCEPT,
13028 ::reqwest::header::HeaderValue::from_static("application/json"),
13029 )
13030 .query(&progenitor_client::QueryParam::new("_async", &async_))
13031 .query(&progenitor_client::QueryParam::new("_group", &group))
13032 .query(&progenitor_client::QueryParam::new("dlna", &dlna))
13033 .query(&progenitor_client::QueryParam::new("filter", &filter))
13034 .query(&progenitor_client::QueryParam::new("ftp", &ftp))
13035 .query(&progenitor_client::QueryParam::new("http", &http))
13036 .query(&progenitor_client::QueryParam::new("log", &log))
13037 .query(&progenitor_client::QueryParam::new("main", &main))
13038 .query(&progenitor_client::QueryParam::new("mount", &mount))
13039 .query(&progenitor_client::QueryParam::new("nfs", &nfs))
13040 .query(&progenitor_client::QueryParam::new("proxy", &proxy))
13041 .query(&progenitor_client::QueryParam::new("rc", &rc))
13042 .query(&progenitor_client::QueryParam::new("restic", &restic))
13043 .query(&progenitor_client::QueryParam::new("s3", &s3))
13044 .query(&progenitor_client::QueryParam::new("sftp", &sftp))
13045 .query(&progenitor_client::QueryParam::new("vfs", &vfs))
13046 .query(&progenitor_client::QueryParam::new("webdav", &webdav))
13047 .headers(header_map)
13048 .build()?;
13049 let info = OperationInfo {
13050 operation_id: "options_set",
13051 };
13052 self.pre(&mut request, &info).await?;
13053 let result = self.exec(request, &info).await;
13054 self.post(&result, &info).await?;
13055 let response = result?;
13056 match response.status().as_u16() {
13057 200u16 => ResponseValue::from_response(response).await,
13058 400u16..=499u16 => Err(Error::ErrorResponse(
13059 ResponseValue::from_response(response).await?,
13060 )),
13061 500u16..=599u16 => Err(Error::ErrorResponse(
13062 ResponseValue::from_response(response).await?,
13063 )),
13064 _ => Err(Error::UnexpectedResponse(response)),
13065 }
13066 }
13067
13068 pub async fn options_local<'a>(
13080 &'a self,
13081 async_: Option<bool>,
13082 group: Option<&'a str>,
13083 ) -> Result<ResponseValue<types::OptionsLocalResponse>, Error<types::RcError>> {
13084 let url = format!("{}/options/local", self.baseurl,);
13085 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13086 header_map.append(
13087 ::reqwest::header::HeaderName::from_static("api-version"),
13088 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13089 );
13090 #[allow(unused_mut)]
13091 let mut request = self
13092 .client
13093 .post(url)
13094 .header(
13095 ::reqwest::header::ACCEPT,
13096 ::reqwest::header::HeaderValue::from_static("application/json"),
13097 )
13098 .query(&progenitor_client::QueryParam::new("_async", &async_))
13099 .query(&progenitor_client::QueryParam::new("_group", &group))
13100 .headers(header_map)
13101 .build()?;
13102 let info = OperationInfo {
13103 operation_id: "options_local",
13104 };
13105 self.pre(&mut request, &info).await?;
13106 let result = self.exec(request, &info).await;
13107 self.post(&result, &info).await?;
13108 let response = result?;
13109 match response.status().as_u16() {
13110 200u16 => ResponseValue::from_response(response).await,
13111 400u16..=499u16 => Err(Error::ErrorResponse(
13112 ResponseValue::from_response(response).await?,
13113 )),
13114 500u16..=599u16 => Err(Error::ErrorResponse(
13115 ResponseValue::from_response(response).await?,
13116 )),
13117 _ => Err(Error::UnexpectedResponse(response)),
13118 }
13119 }
13120
13121 pub async fn serve_list<'a>(
13132 &'a self,
13133 async_: Option<bool>,
13134 group: Option<&'a str>,
13135 ) -> Result<ResponseValue<types::ServeListResponse>, Error<types::RcError>> {
13136 let url = format!("{}/serve/list", self.baseurl,);
13137 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13138 header_map.append(
13139 ::reqwest::header::HeaderName::from_static("api-version"),
13140 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13141 );
13142 #[allow(unused_mut)]
13143 let mut request = self
13144 .client
13145 .post(url)
13146 .header(
13147 ::reqwest::header::ACCEPT,
13148 ::reqwest::header::HeaderValue::from_static("application/json"),
13149 )
13150 .query(&progenitor_client::QueryParam::new("_async", &async_))
13151 .query(&progenitor_client::QueryParam::new("_group", &group))
13152 .headers(header_map)
13153 .build()?;
13154 let info = OperationInfo {
13155 operation_id: "serve_list",
13156 };
13157 self.pre(&mut request, &info).await?;
13158 let result = self.exec(request, &info).await;
13159 self.post(&result, &info).await?;
13160 let response = result?;
13161 match response.status().as_u16() {
13162 200u16 => ResponseValue::from_response(response).await,
13163 400u16..=499u16 => Err(Error::ErrorResponse(
13164 ResponseValue::from_response(response).await?,
13165 )),
13166 500u16..=599u16 => Err(Error::ErrorResponse(
13167 ResponseValue::from_response(response).await?,
13168 )),
13169 _ => Err(Error::UnexpectedResponse(response)),
13170 }
13171 }
13172
13173 pub async fn serve_start<'a>(
13193 &'a self,
13194 async_: Option<bool>,
13195 config: Option<&'a str>,
13196 filter: Option<&'a str>,
13197 group: Option<&'a str>,
13198 addr: &'a str,
13199 fs: &'a str,
13200 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13201 type_: &'a str,
13202 ) -> Result<ResponseValue<types::ServeStartResponse>, Error<types::RcError>> {
13203 let url = format!("{}/serve/start", self.baseurl,);
13204 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13205 header_map.append(
13206 ::reqwest::header::HeaderName::from_static("api-version"),
13207 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13208 );
13209 #[allow(unused_mut)]
13210 let mut request = self
13211 .client
13212 .post(url)
13213 .header(
13214 ::reqwest::header::ACCEPT,
13215 ::reqwest::header::HeaderValue::from_static("application/json"),
13216 )
13217 .query(&progenitor_client::QueryParam::new("_async", &async_))
13218 .query(&progenitor_client::QueryParam::new("_config", &config))
13219 .query(&progenitor_client::QueryParam::new("_filter", &filter))
13220 .query(&progenitor_client::QueryParam::new("_group", &group))
13221 .query(&progenitor_client::QueryParam::new("addr", &addr))
13222 .query(&progenitor_client::QueryParam::new("fs", &fs))
13223 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13224 .query(&progenitor_client::QueryParam::new("type", &type_))
13225 .headers(header_map)
13226 .build()?;
13227 let info = OperationInfo {
13228 operation_id: "serve_start",
13229 };
13230 self.pre(&mut request, &info).await?;
13231 let result = self.exec(request, &info).await;
13232 self.post(&result, &info).await?;
13233 let response = result?;
13234 match response.status().as_u16() {
13235 200u16 => ResponseValue::from_response(response).await,
13236 400u16..=499u16 => Err(Error::ErrorResponse(
13237 ResponseValue::from_response(response).await?,
13238 )),
13239 500u16..=599u16 => Err(Error::ErrorResponse(
13240 ResponseValue::from_response(response).await?,
13241 )),
13242 _ => Err(Error::UnexpectedResponse(response)),
13243 }
13244 }
13245
13246 pub async fn serve_stop<'a>(
13259 &'a self,
13260 async_: Option<bool>,
13261 group: Option<&'a str>,
13262 id: &'a str,
13263 ) -> Result<
13264 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13265 Error<types::RcError>,
13266 > {
13267 let url = format!("{}/serve/stop", self.baseurl,);
13268 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13269 header_map.append(
13270 ::reqwest::header::HeaderName::from_static("api-version"),
13271 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13272 );
13273 #[allow(unused_mut)]
13274 let mut request = self
13275 .client
13276 .post(url)
13277 .header(
13278 ::reqwest::header::ACCEPT,
13279 ::reqwest::header::HeaderValue::from_static("application/json"),
13280 )
13281 .query(&progenitor_client::QueryParam::new("_async", &async_))
13282 .query(&progenitor_client::QueryParam::new("_group", &group))
13283 .query(&progenitor_client::QueryParam::new("id", &id))
13284 .headers(header_map)
13285 .build()?;
13286 let info = OperationInfo {
13287 operation_id: "serve_stop",
13288 };
13289 self.pre(&mut request, &info).await?;
13290 let result = self.exec(request, &info).await;
13291 self.post(&result, &info).await?;
13292 let response = result?;
13293 match response.status().as_u16() {
13294 200u16 => ResponseValue::from_response(response).await,
13295 400u16..=499u16 => Err(Error::ErrorResponse(
13296 ResponseValue::from_response(response).await?,
13297 )),
13298 500u16..=599u16 => Err(Error::ErrorResponse(
13299 ResponseValue::from_response(response).await?,
13300 )),
13301 _ => Err(Error::UnexpectedResponse(response)),
13302 }
13303 }
13304
13305 pub async fn serve_stopall<'a>(
13316 &'a self,
13317 async_: Option<bool>,
13318 group: Option<&'a str>,
13319 ) -> Result<
13320 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13321 Error<types::RcError>,
13322 > {
13323 let url = format!("{}/serve/stopall", self.baseurl,);
13324 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13325 header_map.append(
13326 ::reqwest::header::HeaderName::from_static("api-version"),
13327 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13328 );
13329 #[allow(unused_mut)]
13330 let mut request = self
13331 .client
13332 .post(url)
13333 .header(
13334 ::reqwest::header::ACCEPT,
13335 ::reqwest::header::HeaderValue::from_static("application/json"),
13336 )
13337 .query(&progenitor_client::QueryParam::new("_async", &async_))
13338 .query(&progenitor_client::QueryParam::new("_group", &group))
13339 .headers(header_map)
13340 .build()?;
13341 let info = OperationInfo {
13342 operation_id: "serve_stopall",
13343 };
13344 self.pre(&mut request, &info).await?;
13345 let result = self.exec(request, &info).await;
13346 self.post(&result, &info).await?;
13347 let response = result?;
13348 match response.status().as_u16() {
13349 200u16 => ResponseValue::from_response(response).await,
13350 400u16..=499u16 => Err(Error::ErrorResponse(
13351 ResponseValue::from_response(response).await?,
13352 )),
13353 500u16..=599u16 => Err(Error::ErrorResponse(
13354 ResponseValue::from_response(response).await?,
13355 )),
13356 _ => Err(Error::UnexpectedResponse(response)),
13357 }
13358 }
13359
13360 pub async fn serve_types<'a>(
13371 &'a self,
13372 async_: Option<bool>,
13373 group: Option<&'a str>,
13374 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13375 let url = format!("{}/serve/types", self.baseurl,);
13376 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13377 header_map.append(
13378 ::reqwest::header::HeaderName::from_static("api-version"),
13379 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13380 );
13381 #[allow(unused_mut)]
13382 let mut request = self
13383 .client
13384 .post(url)
13385 .header(
13386 ::reqwest::header::ACCEPT,
13387 ::reqwest::header::HeaderValue::from_static("application/json"),
13388 )
13389 .query(&progenitor_client::QueryParam::new("_async", &async_))
13390 .query(&progenitor_client::QueryParam::new("_group", &group))
13391 .headers(header_map)
13392 .build()?;
13393 let info = OperationInfo {
13394 operation_id: "serve_types",
13395 };
13396 self.pre(&mut request, &info).await?;
13397 let result = self.exec(request, &info).await;
13398 self.post(&result, &info).await?;
13399 let response = result?;
13400 match response.status().as_u16() {
13401 200u16 => Ok(ResponseValue::empty(response)),
13402 400u16..=499u16 => Err(Error::ErrorResponse(
13403 ResponseValue::from_response(response).await?,
13404 )),
13405 500u16..=599u16 => Err(Error::ErrorResponse(
13406 ResponseValue::from_response(response).await?,
13407 )),
13408 _ => Err(Error::UnexpectedResponse(response)),
13409 }
13410 }
13411
13412 pub async fn vfs_forget<'a>(
13426 &'a self,
13427 async_: Option<bool>,
13428 group: Option<&'a str>,
13429 fs: Option<&'a str>,
13430 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13431 ) -> Result<ResponseValue<types::VfsForgetResponse>, Error<types::RcError>> {
13432 let url = format!("{}/vfs/forget", 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("fs", &fs))
13449 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13450 .headers(header_map)
13451 .build()?;
13452 let info = OperationInfo {
13453 operation_id: "vfs_forget",
13454 };
13455 self.pre(&mut request, &info).await?;
13456 let result = self.exec(request, &info).await;
13457 self.post(&result, &info).await?;
13458 let response = result?;
13459 match response.status().as_u16() {
13460 200u16 => ResponseValue::from_response(response).await,
13461 400u16..=499u16 => Err(Error::ErrorResponse(
13462 ResponseValue::from_response(response).await?,
13463 )),
13464 500u16..=599u16 => Err(Error::ErrorResponse(
13465 ResponseValue::from_response(response).await?,
13466 )),
13467 _ => Err(Error::UnexpectedResponse(response)),
13468 }
13469 }
13470
13471 pub async fn vfs_list<'a>(
13483 &'a self,
13484 async_: Option<bool>,
13485 group: Option<&'a str>,
13486 fs: Option<&'a str>,
13487 ) -> Result<ResponseValue<types::VfsListResponse>, Error<types::RcError>> {
13488 let url = format!("{}/vfs/list", self.baseurl,);
13489 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13490 header_map.append(
13491 ::reqwest::header::HeaderName::from_static("api-version"),
13492 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13493 );
13494 #[allow(unused_mut)]
13495 let mut request = self
13496 .client
13497 .post(url)
13498 .header(
13499 ::reqwest::header::ACCEPT,
13500 ::reqwest::header::HeaderValue::from_static("application/json"),
13501 )
13502 .query(&progenitor_client::QueryParam::new("_async", &async_))
13503 .query(&progenitor_client::QueryParam::new("_group", &group))
13504 .query(&progenitor_client::QueryParam::new("fs", &fs))
13505 .headers(header_map)
13506 .build()?;
13507 let info = OperationInfo {
13508 operation_id: "vfs_list",
13509 };
13510 self.pre(&mut request, &info).await?;
13511 let result = self.exec(request, &info).await;
13512 self.post(&result, &info).await?;
13513 let response = result?;
13514 match response.status().as_u16() {
13515 200u16 => ResponseValue::from_response(response).await,
13516 400u16..=499u16 => Err(Error::ErrorResponse(
13517 ResponseValue::from_response(response).await?,
13518 )),
13519 500u16..=599u16 => Err(Error::ErrorResponse(
13520 ResponseValue::from_response(response).await?,
13521 )),
13522 _ => Err(Error::UnexpectedResponse(response)),
13523 }
13524 }
13525
13526 pub async fn vfs_poll_interval<'a>(
13544 &'a self,
13545 async_: Option<bool>,
13546 group: Option<&'a str>,
13547 fs: Option<&'a str>,
13548 interval: Option<&'a str>,
13549 timeout: Option<&'a str>,
13550 ) -> Result<
13551 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13552 Error<types::RcError>,
13553 > {
13554 let url = format!("{}/vfs/poll-interval", self.baseurl,);
13555 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13556 header_map.append(
13557 ::reqwest::header::HeaderName::from_static("api-version"),
13558 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13559 );
13560 #[allow(unused_mut)]
13561 let mut request = self
13562 .client
13563 .post(url)
13564 .header(
13565 ::reqwest::header::ACCEPT,
13566 ::reqwest::header::HeaderValue::from_static("application/json"),
13567 )
13568 .query(&progenitor_client::QueryParam::new("_async", &async_))
13569 .query(&progenitor_client::QueryParam::new("_group", &group))
13570 .query(&progenitor_client::QueryParam::new("fs", &fs))
13571 .query(&progenitor_client::QueryParam::new("interval", &interval))
13572 .query(&progenitor_client::QueryParam::new("timeout", &timeout))
13573 .headers(header_map)
13574 .build()?;
13575 let info = OperationInfo {
13576 operation_id: "vfs_poll_interval",
13577 };
13578 self.pre(&mut request, &info).await?;
13579 let result = self.exec(request, &info).await;
13580 self.post(&result, &info).await?;
13581 let response = result?;
13582 match response.status().as_u16() {
13583 200u16 => ResponseValue::from_response(response).await,
13584 400u16..=499u16 => Err(Error::ErrorResponse(
13585 ResponseValue::from_response(response).await?,
13586 )),
13587 500u16..=599u16 => Err(Error::ErrorResponse(
13588 ResponseValue::from_response(response).await?,
13589 )),
13590 _ => Err(Error::UnexpectedResponse(response)),
13591 }
13592 }
13593
13594 pub async fn vfs_queue<'a>(
13606 &'a self,
13607 async_: Option<bool>,
13608 group: Option<&'a str>,
13609 fs: Option<&'a str>,
13610 ) -> Result<ResponseValue<types::VfsQueueResponse>, Error<types::RcError>> {
13611 let url = format!("{}/vfs/queue", self.baseurl,);
13612 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13613 header_map.append(
13614 ::reqwest::header::HeaderName::from_static("api-version"),
13615 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13616 );
13617 #[allow(unused_mut)]
13618 let mut request = self
13619 .client
13620 .post(url)
13621 .header(
13622 ::reqwest::header::ACCEPT,
13623 ::reqwest::header::HeaderValue::from_static("application/json"),
13624 )
13625 .query(&progenitor_client::QueryParam::new("_async", &async_))
13626 .query(&progenitor_client::QueryParam::new("_group", &group))
13627 .query(&progenitor_client::QueryParam::new("fs", &fs))
13628 .headers(header_map)
13629 .build()?;
13630 let info = OperationInfo {
13631 operation_id: "vfs_queue",
13632 };
13633 self.pre(&mut request, &info).await?;
13634 let result = self.exec(request, &info).await;
13635 self.post(&result, &info).await?;
13636 let response = result?;
13637 match response.status().as_u16() {
13638 200u16 => ResponseValue::from_response(response).await,
13639 400u16..=499u16 => Err(Error::ErrorResponse(
13640 ResponseValue::from_response(response).await?,
13641 )),
13642 500u16..=599u16 => Err(Error::ErrorResponse(
13643 ResponseValue::from_response(response).await?,
13644 )),
13645 _ => Err(Error::UnexpectedResponse(response)),
13646 }
13647 }
13648
13649 pub async fn vfs_queue_set_expiry<'a>(
13667 &'a self,
13668 async_: Option<bool>,
13669 group: Option<&'a str>,
13670 expiry: f64,
13671 fs: Option<&'a str>,
13672 id: i64,
13673 relative: Option<bool>,
13674 ) -> Result<
13675 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13676 Error<types::RcError>,
13677 > {
13678 let url = format!("{}/vfs/queue-set-expiry", self.baseurl,);
13679 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13680 header_map.append(
13681 ::reqwest::header::HeaderName::from_static("api-version"),
13682 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13683 );
13684 #[allow(unused_mut)]
13685 let mut request = self
13686 .client
13687 .post(url)
13688 .header(
13689 ::reqwest::header::ACCEPT,
13690 ::reqwest::header::HeaderValue::from_static("application/json"),
13691 )
13692 .query(&progenitor_client::QueryParam::new("_async", &async_))
13693 .query(&progenitor_client::QueryParam::new("_group", &group))
13694 .query(&progenitor_client::QueryParam::new("expiry", &expiry))
13695 .query(&progenitor_client::QueryParam::new("fs", &fs))
13696 .query(&progenitor_client::QueryParam::new("id", &id))
13697 .query(&progenitor_client::QueryParam::new("relative", &relative))
13698 .headers(header_map)
13699 .build()?;
13700 let info = OperationInfo {
13701 operation_id: "vfs_queue_set_expiry",
13702 };
13703 self.pre(&mut request, &info).await?;
13704 let result = self.exec(request, &info).await;
13705 self.post(&result, &info).await?;
13706 let response = result?;
13707 match response.status().as_u16() {
13708 200u16 => ResponseValue::from_response(response).await,
13709 400u16..=499u16 => Err(Error::ErrorResponse(
13710 ResponseValue::from_response(response).await?,
13711 )),
13712 500u16..=599u16 => Err(Error::ErrorResponse(
13713 ResponseValue::from_response(response).await?,
13714 )),
13715 _ => Err(Error::UnexpectedResponse(response)),
13716 }
13717 }
13718
13719 pub async fn vfs_refresh<'a>(
13735 &'a self,
13736 async_: Option<bool>,
13737 group: Option<&'a str>,
13738 fs: Option<&'a str>,
13739 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13740 recursive: Option<bool>,
13741 ) -> Result<ResponseValue<types::VfsRefreshResponse>, Error<types::RcError>> {
13742 let url = format!("{}/vfs/refresh", self.baseurl,);
13743 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13744 header_map.append(
13745 ::reqwest::header::HeaderName::from_static("api-version"),
13746 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13747 );
13748 #[allow(unused_mut)]
13749 let mut request = self
13750 .client
13751 .post(url)
13752 .header(
13753 ::reqwest::header::ACCEPT,
13754 ::reqwest::header::HeaderValue::from_static("application/json"),
13755 )
13756 .query(&progenitor_client::QueryParam::new("_async", &async_))
13757 .query(&progenitor_client::QueryParam::new("_group", &group))
13758 .query(&progenitor_client::QueryParam::new("fs", &fs))
13759 .query(&progenitor_client::QueryParam::new("params", ¶ms))
13760 .query(&progenitor_client::QueryParam::new("recursive", &recursive))
13761 .headers(header_map)
13762 .build()?;
13763 let info = OperationInfo {
13764 operation_id: "vfs_refresh",
13765 };
13766 self.pre(&mut request, &info).await?;
13767 let result = self.exec(request, &info).await;
13768 self.post(&result, &info).await?;
13769 let response = result?;
13770 match response.status().as_u16() {
13771 200u16 => ResponseValue::from_response(response).await,
13772 400u16..=499u16 => Err(Error::ErrorResponse(
13773 ResponseValue::from_response(response).await?,
13774 )),
13775 500u16..=599u16 => Err(Error::ErrorResponse(
13776 ResponseValue::from_response(response).await?,
13777 )),
13778 _ => Err(Error::UnexpectedResponse(response)),
13779 }
13780 }
13781
13782 pub async fn vfs_stats<'a>(
13795 &'a self,
13796 async_: Option<bool>,
13797 group: Option<&'a str>,
13798 fs: Option<&'a str>,
13799 ) -> Result<ResponseValue<types::VfsStatsResponse>, Error<types::RcError>> {
13800 let url = format!("{}/vfs/stats", self.baseurl,);
13801 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13802 header_map.append(
13803 ::reqwest::header::HeaderName::from_static("api-version"),
13804 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13805 );
13806 #[allow(unused_mut)]
13807 let mut request = self
13808 .client
13809 .post(url)
13810 .header(
13811 ::reqwest::header::ACCEPT,
13812 ::reqwest::header::HeaderValue::from_static("application/json"),
13813 )
13814 .query(&progenitor_client::QueryParam::new("_async", &async_))
13815 .query(&progenitor_client::QueryParam::new("_group", &group))
13816 .query(&progenitor_client::QueryParam::new("fs", &fs))
13817 .headers(header_map)
13818 .build()?;
13819 let info = OperationInfo {
13820 operation_id: "vfs_stats",
13821 };
13822 self.pre(&mut request, &info).await?;
13823 let result = self.exec(request, &info).await;
13824 self.post(&result, &info).await?;
13825 let response = result?;
13826 match response.status().as_u16() {
13827 200u16 => ResponseValue::from_response(response).await,
13828 400u16..=499u16 => Err(Error::ErrorResponse(
13829 ResponseValue::from_response(response).await?,
13830 )),
13831 500u16..=599u16 => Err(Error::ErrorResponse(
13832 ResponseValue::from_response(response).await?,
13833 )),
13834 _ => Err(Error::UnexpectedResponse(response)),
13835 }
13836 }
13837
13838 pub async fn pluginsctl_add_plugin<'a>(
13851 &'a self,
13852 async_: Option<bool>,
13853 group: Option<&'a str>,
13854 url: &'a str,
13855 ) -> Result<
13856 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13857 Error<types::RcError>,
13858 > {
13859 let _url = format!("{}/pluginsctl/addPlugin", self.baseurl,);
13860 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13861 header_map.append(
13862 ::reqwest::header::HeaderName::from_static("api-version"),
13863 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13864 );
13865 #[allow(unused_mut)]
13866 let mut request = self
13867 .client
13868 .post(_url)
13869 .header(
13870 ::reqwest::header::ACCEPT,
13871 ::reqwest::header::HeaderValue::from_static("application/json"),
13872 )
13873 .query(&progenitor_client::QueryParam::new("_async", &async_))
13874 .query(&progenitor_client::QueryParam::new("_group", &group))
13875 .query(&progenitor_client::QueryParam::new("url", &url))
13876 .headers(header_map)
13877 .build()?;
13878 let info = OperationInfo {
13879 operation_id: "pluginsctl_add_plugin",
13880 };
13881 self.pre(&mut request, &info).await?;
13882 let result = self.exec(request, &info).await;
13883 self.post(&result, &info).await?;
13884 let response = result?;
13885 match response.status().as_u16() {
13886 200u16 => ResponseValue::from_response(response).await,
13887 400u16..=499u16 => Err(Error::ErrorResponse(
13888 ResponseValue::from_response(response).await?,
13889 )),
13890 500u16..=599u16 => Err(Error::ErrorResponse(
13891 ResponseValue::from_response(response).await?,
13892 )),
13893 _ => Err(Error::UnexpectedResponse(response)),
13894 }
13895 }
13896
13897 pub async fn pluginsctl_get_plugins_for_type<'a>(
13911 &'a self,
13912 async_: Option<bool>,
13913 group: Option<&'a str>,
13914 plugin_type: Option<&'a str>,
13915 type_: Option<&'a str>,
13916 ) -> Result<ResponseValue<types::PluginsctlGetPluginsForTypeResponse>, Error<types::RcError>>
13917 {
13918 let url = format!("{}/pluginsctl/getPluginsForType", self.baseurl,);
13919 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13920 header_map.append(
13921 ::reqwest::header::HeaderName::from_static("api-version"),
13922 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13923 );
13924 #[allow(unused_mut)]
13925 let mut request = self
13926 .client
13927 .post(url)
13928 .header(
13929 ::reqwest::header::ACCEPT,
13930 ::reqwest::header::HeaderValue::from_static("application/json"),
13931 )
13932 .query(&progenitor_client::QueryParam::new("_async", &async_))
13933 .query(&progenitor_client::QueryParam::new("_group", &group))
13934 .query(&progenitor_client::QueryParam::new(
13935 "pluginType",
13936 &plugin_type,
13937 ))
13938 .query(&progenitor_client::QueryParam::new("type", &type_))
13939 .headers(header_map)
13940 .build()?;
13941 let info = OperationInfo {
13942 operation_id: "pluginsctl_get_plugins_for_type",
13943 };
13944 self.pre(&mut request, &info).await?;
13945 let result = self.exec(request, &info).await;
13946 self.post(&result, &info).await?;
13947 let response = result?;
13948 match response.status().as_u16() {
13949 200u16 => ResponseValue::from_response(response).await,
13950 400u16..=499u16 => Err(Error::ErrorResponse(
13951 ResponseValue::from_response(response).await?,
13952 )),
13953 500u16..=599u16 => Err(Error::ErrorResponse(
13954 ResponseValue::from_response(response).await?,
13955 )),
13956 _ => Err(Error::UnexpectedResponse(response)),
13957 }
13958 }
13959
13960 pub async fn pluginsctl_list_plugins<'a>(
13971 &'a self,
13972 async_: Option<bool>,
13973 group: Option<&'a str>,
13974 ) -> Result<ResponseValue<types::PluginsctlListPluginsResponse>, Error<types::RcError>> {
13975 let url = format!("{}/pluginsctl/listPlugins", self.baseurl,);
13976 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13977 header_map.append(
13978 ::reqwest::header::HeaderName::from_static("api-version"),
13979 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13980 );
13981 #[allow(unused_mut)]
13982 let mut request = self
13983 .client
13984 .post(url)
13985 .header(
13986 ::reqwest::header::ACCEPT,
13987 ::reqwest::header::HeaderValue::from_static("application/json"),
13988 )
13989 .query(&progenitor_client::QueryParam::new("_async", &async_))
13990 .query(&progenitor_client::QueryParam::new("_group", &group))
13991 .headers(header_map)
13992 .build()?;
13993 let info = OperationInfo {
13994 operation_id: "pluginsctl_list_plugins",
13995 };
13996 self.pre(&mut request, &info).await?;
13997 let result = self.exec(request, &info).await;
13998 self.post(&result, &info).await?;
13999 let response = result?;
14000 match response.status().as_u16() {
14001 200u16 => ResponseValue::from_response(response).await,
14002 400u16..=499u16 => Err(Error::ErrorResponse(
14003 ResponseValue::from_response(response).await?,
14004 )),
14005 500u16..=599u16 => Err(Error::ErrorResponse(
14006 ResponseValue::from_response(response).await?,
14007 )),
14008 _ => Err(Error::UnexpectedResponse(response)),
14009 }
14010 }
14011
14012 pub async fn pluginsctl_list_test_plugins<'a>(
14023 &'a self,
14024 async_: Option<bool>,
14025 group: Option<&'a str>,
14026 ) -> Result<ResponseValue<types::PluginsctlListTestPluginsResponse>, Error<types::RcError>>
14027 {
14028 let url = format!("{}/pluginsctl/listTestPlugins", self.baseurl,);
14029 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
14030 header_map.append(
14031 ::reqwest::header::HeaderName::from_static("api-version"),
14032 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
14033 );
14034 #[allow(unused_mut)]
14035 let mut request = self
14036 .client
14037 .post(url)
14038 .header(
14039 ::reqwest::header::ACCEPT,
14040 ::reqwest::header::HeaderValue::from_static("application/json"),
14041 )
14042 .query(&progenitor_client::QueryParam::new("_async", &async_))
14043 .query(&progenitor_client::QueryParam::new("_group", &group))
14044 .headers(header_map)
14045 .build()?;
14046 let info = OperationInfo {
14047 operation_id: "pluginsctl_list_test_plugins",
14048 };
14049 self.pre(&mut request, &info).await?;
14050 let result = self.exec(request, &info).await;
14051 self.post(&result, &info).await?;
14052 let response = result?;
14053 match response.status().as_u16() {
14054 200u16 => ResponseValue::from_response(response).await,
14055 400u16..=499u16 => Err(Error::ErrorResponse(
14056 ResponseValue::from_response(response).await?,
14057 )),
14058 500u16..=599u16 => Err(Error::ErrorResponse(
14059 ResponseValue::from_response(response).await?,
14060 )),
14061 _ => Err(Error::UnexpectedResponse(response)),
14062 }
14063 }
14064
14065 pub async fn pluginsctl_remove_plugin<'a>(
14077 &'a self,
14078 async_: Option<bool>,
14079 group: Option<&'a str>,
14080 name: &'a str,
14081 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
14082 let url = format!("{}/pluginsctl/removePlugin", self.baseurl,);
14083 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
14084 header_map.append(
14085 ::reqwest::header::HeaderName::from_static("api-version"),
14086 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
14087 );
14088 #[allow(unused_mut)]
14089 let mut request = self
14090 .client
14091 .post(url)
14092 .header(
14093 ::reqwest::header::ACCEPT,
14094 ::reqwest::header::HeaderValue::from_static("application/json"),
14095 )
14096 .query(&progenitor_client::QueryParam::new("_async", &async_))
14097 .query(&progenitor_client::QueryParam::new("_group", &group))
14098 .query(&progenitor_client::QueryParam::new("name", &name))
14099 .headers(header_map)
14100 .build()?;
14101 let info = OperationInfo {
14102 operation_id: "pluginsctl_remove_plugin",
14103 };
14104 self.pre(&mut request, &info).await?;
14105 let result = self.exec(request, &info).await;
14106 self.post(&result, &info).await?;
14107 let response = result?;
14108 match response.status().as_u16() {
14109 200u16 => Ok(ResponseValue::empty(response)),
14110 400u16..=499u16 => Err(Error::ErrorResponse(
14111 ResponseValue::from_response(response).await?,
14112 )),
14113 500u16..=599u16 => Err(Error::ErrorResponse(
14114 ResponseValue::from_response(response).await?,
14115 )),
14116 _ => Err(Error::UnexpectedResponse(response)),
14117 }
14118 }
14119
14120 pub async fn pluginsctl_remove_test_plugin<'a>(
14132 &'a self,
14133 async_: Option<bool>,
14134 group: Option<&'a str>,
14135 name: &'a str,
14136 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
14137 let url = format!("{}/pluginsctl/removeTestPlugin", self.baseurl,);
14138 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
14139 header_map.append(
14140 ::reqwest::header::HeaderName::from_static("api-version"),
14141 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
14142 );
14143 #[allow(unused_mut)]
14144 let mut request = self
14145 .client
14146 .post(url)
14147 .header(
14148 ::reqwest::header::ACCEPT,
14149 ::reqwest::header::HeaderValue::from_static("application/json"),
14150 )
14151 .query(&progenitor_client::QueryParam::new("_async", &async_))
14152 .query(&progenitor_client::QueryParam::new("_group", &group))
14153 .query(&progenitor_client::QueryParam::new("name", &name))
14154 .headers(header_map)
14155 .build()?;
14156 let info = OperationInfo {
14157 operation_id: "pluginsctl_remove_test_plugin",
14158 };
14159 self.pre(&mut request, &info).await?;
14160 let result = self.exec(request, &info).await;
14161 self.post(&result, &info).await?;
14162 let response = result?;
14163 match response.status().as_u16() {
14164 200u16 => Ok(ResponseValue::empty(response)),
14165 400u16..=499u16 => Err(Error::ErrorResponse(
14166 ResponseValue::from_response(response).await?,
14167 )),
14168 500u16..=599u16 => Err(Error::ErrorResponse(
14169 ResponseValue::from_response(response).await?,
14170 )),
14171 _ => Err(Error::UnexpectedResponse(response)),
14172 }
14173 }
14174}
14175
14176pub mod prelude {
14178 #[allow(unused_imports)]
14179 pub use super::Client;
14180}