1#[allow(unused_imports)]
2use progenitor_client::{encode_path, ClientHooks, OperationInfo, RequestBuilderExt};
3#[allow(unused_imports)]
4pub use progenitor_client::{ByteStream, ClientInfo, Error, ResponseValue};
5#[allow(clippy::all)]
7pub mod types {
8 pub mod error {
10 pub struct ConversionError(::std::borrow::Cow<'static, str>);
12 impl ::std::error::Error for ConversionError {}
13 impl ::std::fmt::Display for ConversionError {
14 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
15 ::std::fmt::Display::fmt(&self.0, f)
16 }
17 }
18
19 impl ::std::fmt::Debug for ConversionError {
20 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
21 ::std::fmt::Debug::fmt(&self.0, f)
22 }
23 }
24
25 impl From<&'static str> for ConversionError {
26 fn from(value: &'static str) -> Self {
27 Self(value.into())
28 }
29 }
30
31 impl From<String> for ConversionError {
32 fn from(value: String) -> Self {
33 Self(value.into())
34 }
35 }
36 }
37
38 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
55 pub struct BackendCommandResponse {
56 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
58 pub result: ::std::option::Option<::serde_json::Value>,
59 }
60
61 impl ::std::convert::From<&BackendCommandResponse> for BackendCommandResponse {
62 fn from(value: &BackendCommandResponse) -> Self {
63 value.clone()
64 }
65 }
66
67 impl ::std::default::Default for BackendCommandResponse {
68 fn default() -> Self {
69 Self {
70 result: Default::default(),
71 }
72 }
73 }
74
75 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
98 pub struct ConfigGetResponse {
99 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
100 pub provider: ::std::option::Option<::std::string::String>,
101 #[serde(rename = "type")]
102 pub type_: ::std::string::String,
103 }
104
105 impl ::std::convert::From<&ConfigGetResponse> for ConfigGetResponse {
106 fn from(value: &ConfigGetResponse) -> Self {
107 value.clone()
108 }
109 }
110
111 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
133 pub struct ConfigListremotesResponse {
134 pub remotes: ::std::vec::Vec<::std::string::String>,
135 }
136
137 impl ::std::convert::From<&ConfigListremotesResponse> for ConfigListremotesResponse {
138 fn from(value: &ConfigListremotesResponse) -> Self {
139 value.clone()
140 }
141 }
142
143 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
170 pub struct ConfigPathsResponse {
171 pub cache: ::std::string::String,
172 pub config: ::std::string::String,
173 pub temp: ::std::string::String,
174 }
175
176 impl ::std::convert::From<&ConfigPathsResponse> for ConfigPathsResponse {
177 fn from(value: &ConfigPathsResponse) -> Self {
178 value.clone()
179 }
180 }
181
182 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
241 pub struct ConfigProvider {
242 #[serde(
243 rename = "Aliases",
244 default,
245 skip_serializing_if = "::std::option::Option::is_none"
246 )]
247 pub aliases: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
248 #[serde(
249 rename = "CommandHelp",
250 default,
251 skip_serializing_if = "::std::option::Option::is_none"
252 )]
253 pub command_help: ::std::option::Option<::std::vec::Vec<ConfigProviderCommandHelp>>,
254 #[serde(rename = "Description")]
255 pub description: ::std::string::String,
256 #[serde(
257 rename = "Hide",
258 default,
259 skip_serializing_if = "::std::option::Option::is_none"
260 )]
261 pub hide: ::std::option::Option<bool>,
262 #[serde(
263 rename = "MetadataInfo",
264 default,
265 skip_serializing_if = "::std::option::Option::is_none"
266 )]
267 pub metadata_info: ::std::option::Option<ConfigProviderMetadataInfo>,
268 #[serde(rename = "Name")]
269 pub name: ::std::string::String,
270 #[serde(rename = "Options")]
271 pub options: ::std::vec::Vec<ConfigProviderOption>,
272 #[serde(rename = "Prefix")]
273 pub prefix: ::std::string::String,
274 }
275
276 impl ::std::convert::From<&ConfigProvider> for ConfigProvider {
277 fn from(value: &ConfigProvider) -> Self {
278 value.clone()
279 }
280 }
281
282 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
312 pub struct ConfigProviderCommandHelp {
313 #[serde(
314 rename = "Long",
315 default,
316 skip_serializing_if = "::std::option::Option::is_none"
317 )]
318 pub long: ::std::option::Option<::std::string::String>,
319 #[serde(
320 rename = "Name",
321 default,
322 skip_serializing_if = "::std::option::Option::is_none"
323 )]
324 pub name: ::std::option::Option<::std::string::String>,
325 #[serde(
326 rename = "Opts",
327 default,
328 skip_serializing_if = "::std::option::Option::is_none"
329 )]
330 pub opts:
331 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
332 #[serde(
333 rename = "Short",
334 default,
335 skip_serializing_if = "::std::option::Option::is_none"
336 )]
337 pub short: ::std::option::Option<::std::string::String>,
338 }
339
340 impl ::std::convert::From<&ConfigProviderCommandHelp> for ConfigProviderCommandHelp {
341 fn from(value: &ConfigProviderCommandHelp) -> Self {
342 value.clone()
343 }
344 }
345
346 impl ::std::default::Default for ConfigProviderCommandHelp {
347 fn default() -> Self {
348 Self {
349 long: Default::default(),
350 name: Default::default(),
351 opts: Default::default(),
352 short: Default::default(),
353 }
354 }
355 }
356
357 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
383 pub struct ConfigProviderMetadataInfo {
384 #[serde(
385 rename = "Help",
386 default,
387 skip_serializing_if = "::std::option::Option::is_none"
388 )]
389 pub help: ::std::option::Option<::std::string::String>,
390 #[serde(
391 rename = "System",
392 default,
393 skip_serializing_if = "::std::option::Option::is_none"
394 )]
395 pub system: ::std::option::Option<
396 ::std::collections::HashMap<::std::string::String, ConfigProviderMetadataSystemEntry>,
397 >,
398 }
399
400 impl ::std::convert::From<&ConfigProviderMetadataInfo> for ConfigProviderMetadataInfo {
401 fn from(value: &ConfigProviderMetadataInfo) -> Self {
402 value.clone()
403 }
404 }
405
406 impl ::std::default::Default for ConfigProviderMetadataInfo {
407 fn default() -> Self {
408 Self {
409 help: Default::default(),
410 system: Default::default(),
411 }
412 }
413 }
414
415 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
441 pub struct ConfigProviderMetadataSystemEntry {
442 #[serde(
443 rename = "Example",
444 default,
445 skip_serializing_if = "::std::option::Option::is_none"
446 )]
447 pub example: ::std::option::Option<::std::string::String>,
448 #[serde(
449 rename = "Help",
450 default,
451 skip_serializing_if = "::std::option::Option::is_none"
452 )]
453 pub help: ::std::option::Option<::std::string::String>,
454 #[serde(
455 rename = "ReadOnly",
456 default,
457 skip_serializing_if = "::std::option::Option::is_none"
458 )]
459 pub read_only: ::std::option::Option<bool>,
460 #[serde(
461 rename = "Type",
462 default,
463 skip_serializing_if = "::std::option::Option::is_none"
464 )]
465 pub type_: ::std::option::Option<::std::string::String>,
466 }
467
468 impl ::std::convert::From<&ConfigProviderMetadataSystemEntry>
469 for ConfigProviderMetadataSystemEntry
470 {
471 fn from(value: &ConfigProviderMetadataSystemEntry) -> Self {
472 value.clone()
473 }
474 }
475
476 impl ::std::default::Default for ConfigProviderMetadataSystemEntry {
477 fn default() -> Self {
478 Self {
479 example: Default::default(),
480 help: Default::default(),
481 read_only: Default::default(),
482 type_: Default::default(),
483 }
484 }
485 }
486
487 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
575 pub struct ConfigProviderOption {
576 #[serde(rename = "Advanced")]
577 pub advanced: bool,
578 #[serde(rename = "Default")]
579 pub default: ConfigProviderOptionAny,
580 #[serde(rename = "DefaultStr")]
581 pub default_str: ::std::string::String,
582 #[serde(
583 rename = "Examples",
584 default,
585 skip_serializing_if = "::std::vec::Vec::is_empty"
586 )]
587 pub examples: ::std::vec::Vec<ConfigProviderOptionExample>,
588 #[serde(rename = "Exclusive")]
589 pub exclusive: bool,
590 #[serde(rename = "FieldName")]
591 pub field_name: ::std::string::String,
592 #[serde(rename = "Help")]
593 pub help: ::std::string::String,
594 #[serde(rename = "Hide")]
595 pub hide: f64,
596 #[serde(rename = "IsPassword")]
597 pub is_password: bool,
598 #[serde(rename = "Name")]
599 pub name: ::std::string::String,
600 #[serde(rename = "NoPrefix")]
601 pub no_prefix: bool,
602 #[serde(
603 rename = "Provider",
604 default,
605 skip_serializing_if = "::std::option::Option::is_none"
606 )]
607 pub provider: ::std::option::Option<::std::string::String>,
608 #[serde(rename = "Required")]
609 pub required: bool,
610 #[serde(rename = "Sensitive")]
611 pub sensitive: bool,
612 #[serde(
613 rename = "ShortOpt",
614 default,
615 skip_serializing_if = "::std::option::Option::is_none"
616 )]
617 pub short_opt: ::std::option::Option<::std::string::String>,
618 #[serde(rename = "Type")]
619 pub type_: ConfigProviderOptionType,
620 #[serde(rename = "Value")]
621 pub value: ConfigProviderOptionAny,
622 #[serde(rename = "ValueStr")]
623 pub value_str: ::std::string::String,
624 }
625
626 impl ::std::convert::From<&ConfigProviderOption> for ConfigProviderOption {
627 fn from(value: &ConfigProviderOption) -> Self {
628 value.clone()
629 }
630 }
631
632 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
648 #[serde(transparent)]
649 pub struct ConfigProviderOptionAny(
650 pub ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
651 );
652 impl ::std::ops::Deref for ConfigProviderOptionAny {
653 type Target =
654 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>;
655 fn deref(
656 &self,
657 ) -> &::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>
658 {
659 &self.0
660 }
661 }
662
663 impl ::std::convert::From<ConfigProviderOptionAny>
664 for ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>
665 {
666 fn from(value: ConfigProviderOptionAny) -> Self {
667 value.0
668 }
669 }
670
671 impl ::std::convert::From<&ConfigProviderOptionAny> for ConfigProviderOptionAny {
672 fn from(value: &ConfigProviderOptionAny) -> Self {
673 value.clone()
674 }
675 }
676
677 impl
678 ::std::convert::From<
679 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
680 > for ConfigProviderOptionAny
681 {
682 fn from(
683 value: ::std::option::Option<
684 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
685 >,
686 ) -> Self {
687 Self(value)
688 }
689 }
690
691 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
718 pub struct ConfigProviderOptionExample {
719 #[serde(rename = "Help")]
720 pub help: ::std::string::String,
721 #[serde(
722 rename = "Provider",
723 default,
724 skip_serializing_if = "::std::option::Option::is_none"
725 )]
726 pub provider: ::std::option::Option<::std::string::String>,
727 #[serde(rename = "Value")]
728 pub value: ::std::string::String,
729 }
730
731 impl ::std::convert::From<&ConfigProviderOptionExample> for ConfigProviderOptionExample {
732 fn from(value: &ConfigProviderOptionExample) -> Self {
733 value.clone()
734 }
735 }
736
737 #[derive(
763 :: serde :: Deserialize,
764 :: serde :: Serialize,
765 Clone,
766 Copy,
767 Debug,
768 Eq,
769 Hash,
770 Ord,
771 PartialEq,
772 PartialOrd,
773 )]
774 pub enum ConfigProviderOptionType {
775 Bits,
776 #[serde(rename = "bool")]
777 Bool,
778 CommaSepList,
779 Duration,
780 Encoding,
781 #[serde(rename = "int")]
782 Int,
783 #[serde(rename = "mtime|atime|btime|ctime")]
784 MtimeAtimeBtimeCtime,
785 SizeSuffix,
786 SpaceSepList,
787 #[serde(rename = "string")]
788 String,
789 #[serde(rename = "stringArray")]
790 StringArray,
791 Time,
792 Tristate,
793 }
794
795 impl ::std::convert::From<&Self> for ConfigProviderOptionType {
796 fn from(value: &ConfigProviderOptionType) -> Self {
797 value.clone()
798 }
799 }
800
801 impl ::std::fmt::Display for ConfigProviderOptionType {
802 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
803 match *self {
804 Self::Bits => f.write_str("Bits"),
805 Self::Bool => f.write_str("bool"),
806 Self::CommaSepList => f.write_str("CommaSepList"),
807 Self::Duration => f.write_str("Duration"),
808 Self::Encoding => f.write_str("Encoding"),
809 Self::Int => f.write_str("int"),
810 Self::MtimeAtimeBtimeCtime => f.write_str("mtime|atime|btime|ctime"),
811 Self::SizeSuffix => f.write_str("SizeSuffix"),
812 Self::SpaceSepList => f.write_str("SpaceSepList"),
813 Self::String => f.write_str("string"),
814 Self::StringArray => f.write_str("stringArray"),
815 Self::Time => f.write_str("Time"),
816 Self::Tristate => f.write_str("Tristate"),
817 }
818 }
819 }
820
821 impl ::std::str::FromStr for ConfigProviderOptionType {
822 type Err = self::error::ConversionError;
823 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
824 match value {
825 "Bits" => Ok(Self::Bits),
826 "bool" => Ok(Self::Bool),
827 "CommaSepList" => Ok(Self::CommaSepList),
828 "Duration" => Ok(Self::Duration),
829 "Encoding" => Ok(Self::Encoding),
830 "int" => Ok(Self::Int),
831 "mtime|atime|btime|ctime" => Ok(Self::MtimeAtimeBtimeCtime),
832 "SizeSuffix" => Ok(Self::SizeSuffix),
833 "SpaceSepList" => Ok(Self::SpaceSepList),
834 "string" => Ok(Self::String),
835 "stringArray" => Ok(Self::StringArray),
836 "Time" => Ok(Self::Time),
837 "Tristate" => Ok(Self::Tristate),
838 _ => Err("invalid value".into()),
839 }
840 }
841 }
842
843 impl ::std::convert::TryFrom<&str> for ConfigProviderOptionType {
844 type Error = self::error::ConversionError;
845 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
846 value.parse()
847 }
848 }
849
850 impl ::std::convert::TryFrom<&::std::string::String> for ConfigProviderOptionType {
851 type Error = self::error::ConversionError;
852 fn try_from(
853 value: &::std::string::String,
854 ) -> ::std::result::Result<Self, self::error::ConversionError> {
855 value.parse()
856 }
857 }
858
859 impl ::std::convert::TryFrom<::std::string::String> for ConfigProviderOptionType {
860 type Error = self::error::ConversionError;
861 fn try_from(
862 value: ::std::string::String,
863 ) -> ::std::result::Result<Self, self::error::ConversionError> {
864 value.parse()
865 }
866 }
867
868 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
891 pub struct ConfigProvidersResponse {
892 pub providers: ::std::vec::Vec<ConfigProvider>,
893 }
894
895 impl ::std::convert::From<&ConfigProvidersResponse> for ConfigProvidersResponse {
896 fn from(value: &ConfigProvidersResponse) -> Self {
897 value.clone()
898 }
899 }
900
901 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
932 pub struct CoreBwlimitResponse {
933 #[serde(rename = "bytesPerSecond")]
934 pub bytes_per_second: i64,
935 #[serde(rename = "bytesPerSecondRx")]
936 pub bytes_per_second_rx: i64,
937 #[serde(rename = "bytesPerSecondTx")]
938 pub bytes_per_second_tx: i64,
939 pub rate: ::std::string::String,
940 }
941
942 impl ::std::convert::From<&CoreBwlimitResponse> for CoreBwlimitResponse {
943 fn from(value: &CoreBwlimitResponse) -> Self {
944 value.clone()
945 }
946 }
947
948 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
979 pub struct CoreCommandResponse {
980 pub error: bool,
981 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
982 pub result: ::std::option::Option<::std::string::String>,
983 #[serde(
984 rename = "returnType",
985 default,
986 skip_serializing_if = "::std::option::Option::is_none"
987 )]
988 pub return_type: ::std::option::Option<::std::string::String>,
989 }
990
991 impl ::std::convert::From<&CoreCommandResponse> for CoreCommandResponse {
992 fn from(value: &CoreCommandResponse) -> Self {
993 value.clone()
994 }
995 }
996
997 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1036 pub struct CoreDuResponse {
1037 pub dir: ::std::string::String,
1038 pub info: CoreDuResponseInfo,
1039 }
1040
1041 impl ::std::convert::From<&CoreDuResponse> for CoreDuResponse {
1042 fn from(value: &CoreDuResponse) -> Self {
1043 value.clone()
1044 }
1045 }
1046
1047 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1074 pub struct CoreDuResponseInfo {
1075 #[serde(rename = "Available")]
1076 pub available: i64,
1077 #[serde(rename = "Free")]
1078 pub free: i64,
1079 #[serde(rename = "Total")]
1080 pub total: i64,
1081 }
1082
1083 impl ::std::convert::From<&CoreDuResponseInfo> for CoreDuResponseInfo {
1084 fn from(value: &CoreDuResponseInfo) -> Self {
1085 value.clone()
1086 }
1087 }
1088
1089 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1111 pub struct CoreGroupListResponse {
1112 pub groups: ::std::vec::Vec<::std::string::String>,
1113 }
1114
1115 impl ::std::convert::From<&CoreGroupListResponse> for CoreGroupListResponse {
1116 fn from(value: &CoreGroupListResponse) -> Self {
1117 value.clone()
1118 }
1119 }
1120
1121 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1140 pub struct CoreObscureResponse {
1141 pub obscured: ::std::string::String,
1142 }
1143
1144 impl ::std::convert::From<&CoreObscureResponse> for CoreObscureResponse {
1145 fn from(value: &CoreObscureResponse) -> Self {
1146 value.clone()
1147 }
1148 }
1149
1150 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1169 pub struct CorePidResponse {
1170 pub pid: i64,
1171 }
1172
1173 impl ::std::convert::From<&CorePidResponse> for CorePidResponse {
1174 fn from(value: &CorePidResponse) -> Self {
1175 value.clone()
1176 }
1177 }
1178
1179 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1208 pub struct CoreStatsChecking {
1209 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1211 pub group: ::std::option::Option<::std::string::String>,
1212 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1214 pub name: ::std::option::Option<::std::string::String>,
1215 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1216 pub size: ::std::option::Option<f64>,
1217 }
1218
1219 impl ::std::convert::From<&CoreStatsChecking> for CoreStatsChecking {
1220 fn from(value: &CoreStatsChecking) -> Self {
1221 value.clone()
1222 }
1223 }
1224
1225 impl ::std::default::Default for CoreStatsChecking {
1226 fn default() -> Self {
1227 Self {
1228 group: Default::default(),
1229 name: Default::default(),
1230 size: Default::default(),
1231 }
1232 }
1233 }
1234
1235 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1352 pub struct CoreStatsResponse {
1353 pub bytes: f64,
1354 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1356 pub checking: ::std::vec::Vec<CoreStatsChecking>,
1357 pub checks: f64,
1358 #[serde(rename = "deletedDirs")]
1359 pub deleted_dirs: f64,
1360 pub deletes: f64,
1361 #[serde(rename = "elapsedTime")]
1362 pub elapsed_time: f64,
1363 pub errors: f64,
1364 pub eta: ::std::option::Option<f64>,
1365 #[serde(rename = "fatalError")]
1366 pub fatal_error: bool,
1367 #[serde(
1368 rename = "lastError",
1369 default,
1370 skip_serializing_if = "::std::option::Option::is_none"
1371 )]
1372 pub last_error: ::std::option::Option<::std::string::String>,
1373 pub renames: f64,
1374 #[serde(rename = "retryError")]
1375 pub retry_error: bool,
1376 #[serde(rename = "serverSideCopies")]
1377 pub server_side_copies: f64,
1378 #[serde(rename = "serverSideCopyBytes")]
1379 pub server_side_copy_bytes: f64,
1380 #[serde(rename = "serverSideMoveBytes")]
1381 pub server_side_move_bytes: f64,
1382 #[serde(rename = "serverSideMoves")]
1383 pub server_side_moves: f64,
1384 pub speed: f64,
1385 #[serde(rename = "totalBytes")]
1386 pub total_bytes: f64,
1387 #[serde(rename = "totalChecks")]
1388 pub total_checks: f64,
1389 #[serde(rename = "totalTransfers")]
1390 pub total_transfers: f64,
1391 #[serde(rename = "transferTime")]
1392 pub transfer_time: f64,
1393 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1395 pub transferring: ::std::vec::Vec<CoreStatsTransfer>,
1396 pub transfers: f64,
1397 }
1398
1399 impl ::std::convert::From<&CoreStatsResponse> for CoreStatsResponse {
1400 fn from(value: &CoreStatsResponse) -> Self {
1401 value.clone()
1402 }
1403 }
1404
1405 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1451 pub struct CoreStatsTransfer {
1452 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1453 pub bytes: ::std::option::Option<f64>,
1454 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1456 pub eta: ::std::option::Option<f64>,
1457 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1459 pub group: ::std::option::Option<::std::string::String>,
1460 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1462 pub name: ::std::option::Option<::std::string::String>,
1463 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1464 pub percentage: ::std::option::Option<f64>,
1465 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1466 pub size: ::std::option::Option<f64>,
1467 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1468 pub speed: ::std::option::Option<f64>,
1469 }
1470
1471 impl ::std::convert::From<&CoreStatsTransfer> for CoreStatsTransfer {
1472 fn from(value: &CoreStatsTransfer) -> Self {
1473 value.clone()
1474 }
1475 }
1476
1477 impl ::std::default::Default for CoreStatsTransfer {
1478 fn default() -> Self {
1479 Self {
1480 bytes: Default::default(),
1481 eta: Default::default(),
1482 group: Default::default(),
1483 name: Default::default(),
1484 percentage: Default::default(),
1485 size: Default::default(),
1486 speed: Default::default(),
1487 }
1488 }
1489 }
1490
1491 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1567 pub struct CoreTransferredResponse {
1568 pub transferred: ::std::vec::Vec<CoreTransferredResponseTransferredItem>,
1569 }
1570
1571 impl ::std::convert::From<&CoreTransferredResponse> for CoreTransferredResponse {
1572 fn from(value: &CoreTransferredResponse) -> Self {
1573 value.clone()
1574 }
1575 }
1576
1577 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1640 pub struct CoreTransferredResponseTransferredItem {
1641 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1642 pub bytes: ::std::option::Option<i64>,
1643 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1644 pub checked: ::std::option::Option<bool>,
1645 #[serde(
1647 rename = "dstFs",
1648 default,
1649 skip_serializing_if = "::std::option::Option::is_none"
1650 )]
1651 pub dst_fs: ::std::option::Option<::std::string::String>,
1652 #[serde(
1654 rename = "dstRemote",
1655 default,
1656 skip_serializing_if = "::std::option::Option::is_none"
1657 )]
1658 pub dst_remote: ::std::option::Option<::std::string::String>,
1659 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1660 pub error: ::std::option::Option<::std::string::String>,
1661 pub group: ::std::string::String,
1663 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1664 pub jobid: ::std::option::Option<i64>,
1665 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1666 pub name: ::std::option::Option<::std::string::String>,
1667 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1668 pub size: ::std::option::Option<i64>,
1669 #[serde(
1671 rename = "srcFs",
1672 default,
1673 skip_serializing_if = "::std::option::Option::is_none"
1674 )]
1675 pub src_fs: ::std::option::Option<::std::string::String>,
1676 #[serde(
1678 rename = "srcRemote",
1679 default,
1680 skip_serializing_if = "::std::option::Option::is_none"
1681 )]
1682 pub src_remote: ::std::option::Option<::std::string::String>,
1683 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1684 pub timestamp: ::std::option::Option<i64>,
1685 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
1686 pub what: ::std::option::Option<::std::string::String>,
1687 }
1688
1689 impl ::std::convert::From<&CoreTransferredResponseTransferredItem>
1690 for CoreTransferredResponseTransferredItem
1691 {
1692 fn from(value: &CoreTransferredResponseTransferredItem) -> Self {
1693 value.clone()
1694 }
1695 }
1696
1697 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1761 pub struct CoreVersionResponse {
1762 pub arch: ::std::string::String,
1764 pub decomposed: ::std::vec::Vec<f64>,
1766 #[serde(rename = "goTags")]
1768 pub go_tags: ::std::string::String,
1769 #[serde(rename = "goVersion")]
1771 pub go_version: ::std::string::String,
1772 #[serde(rename = "isBeta")]
1774 pub is_beta: bool,
1775 #[serde(rename = "isGit")]
1777 pub is_git: bool,
1778 pub linking: ::std::string::String,
1780 pub os: ::std::string::String,
1782 pub version: ::std::string::String,
1784 }
1785
1786 impl ::std::convert::From<&CoreVersionResponse> for CoreVersionResponse {
1787 fn from(value: &CoreVersionResponse) -> Self {
1788 value.clone()
1789 }
1790 }
1791
1792 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1811 pub struct DebugSetGcPercentResponse {
1812 #[serde(rename = "existing-gc-percent")]
1813 pub existing_gc_percent: i64,
1814 }
1815
1816 impl ::std::convert::From<&DebugSetGcPercentResponse> for DebugSetGcPercentResponse {
1817 fn from(value: &DebugSetGcPercentResponse) -> Self {
1818 value.clone()
1819 }
1820 }
1821
1822 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1841 pub struct DebugSetMutexProfileFractionResponse {
1842 #[serde(rename = "previousRate")]
1843 pub previous_rate: i64,
1844 }
1845
1846 impl ::std::convert::From<&DebugSetMutexProfileFractionResponse>
1847 for DebugSetMutexProfileFractionResponse
1848 {
1849 fn from(value: &DebugSetMutexProfileFractionResponse) -> Self {
1850 value.clone()
1851 }
1852 }
1853
1854 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1873 pub struct DebugSetSoftMemoryLimitResponse {
1874 #[serde(rename = "existing-mem-limit")]
1875 pub existing_mem_limit: i64,
1876 }
1877
1878 impl ::std::convert::From<&DebugSetSoftMemoryLimitResponse> for DebugSetSoftMemoryLimitResponse {
1879 fn from(value: &DebugSetSoftMemoryLimitResponse) -> Self {
1880 value.clone()
1881 }
1882 }
1883
1884 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1903 pub struct FscacheEntriesResponse {
1904 pub entries: i64,
1905 }
1906
1907 impl ::std::convert::From<&FscacheEntriesResponse> for FscacheEntriesResponse {
1908 fn from(value: &FscacheEntriesResponse) -> Self {
1909 value.clone()
1910 }
1911 }
1912
1913 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
1942 pub struct JobListResponse {
1943 #[serde(rename = "executeId")]
1945 pub execute_id: ::std::string::String,
1946 pub jobids: ::std::vec::Vec<f64>,
1948 }
1949
1950 impl ::std::convert::From<&JobListResponse> for JobListResponse {
1951 fn from(value: &JobListResponse) -> Self {
1952 value.clone()
1953 }
1954 }
1955
1956 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2013 pub struct JobStatusResponse {
2014 pub duration: f64,
2015 #[serde(rename = "endTime")]
2017 pub end_time: ::std::string::String,
2018 pub error: ::std::string::String,
2020 pub finished: bool,
2022 pub id: f64,
2023 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2025 pub output: ::std::option::Option<::serde_json::Value>,
2026 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2028 pub progress: ::std::option::Option<::serde_json::Value>,
2029 #[serde(rename = "startTime")]
2031 pub start_time: ::std::string::String,
2032 pub success: bool,
2034 }
2035
2036 impl ::std::convert::From<&JobStatusResponse> for JobStatusResponse {
2037 fn from(value: &JobStatusResponse) -> Self {
2038 value.clone()
2039 }
2040 }
2041
2042 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2082 pub struct MountListmountsResponse {
2083 #[serde(rename = "mountPoints")]
2084 pub mount_points: ::std::vec::Vec<MountListmountsResponseMountPointsItem>,
2085 }
2086
2087 impl ::std::convert::From<&MountListmountsResponse> for MountListmountsResponse {
2088 fn from(value: &MountListmountsResponse) -> Self {
2089 value.clone()
2090 }
2091 }
2092
2093 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2122 #[serde(deny_unknown_fields)]
2123 pub struct MountListmountsResponseMountPointsItem {
2124 #[serde(rename = "Fs")]
2125 pub fs: ::std::string::String,
2126 #[serde(rename = "MountPoint")]
2127 pub mount_point: ::std::string::String,
2128 #[serde(rename = "MountedOn")]
2129 pub mounted_on: ::chrono::DateTime<::chrono::offset::Utc>,
2130 }
2131
2132 impl ::std::convert::From<&MountListmountsResponseMountPointsItem>
2133 for MountListmountsResponseMountPointsItem
2134 {
2135 fn from(value: &MountListmountsResponseMountPointsItem) -> Self {
2136 value.clone()
2137 }
2138 }
2139
2140 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2162 pub struct MountTypesResponse {
2163 #[serde(rename = "mountTypes")]
2164 pub mount_types: ::std::vec::Vec<::std::string::String>,
2165 }
2166
2167 impl ::std::convert::From<&MountTypesResponse> for MountTypesResponse {
2168 fn from(value: &MountTypesResponse) -> Self {
2169 value.clone()
2170 }
2171 }
2172
2173 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2209 pub struct OperationsAboutResponse {
2210 pub free: f64,
2211 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2212 pub objects: ::std::option::Option<f64>,
2213 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2214 pub other: ::std::option::Option<f64>,
2215 pub total: f64,
2216 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
2217 pub trashed: ::std::option::Option<f64>,
2218 pub used: f64,
2219 }
2220
2221 impl ::std::convert::From<&OperationsAboutResponse> for OperationsAboutResponse {
2222 fn from(value: &OperationsAboutResponse) -> Self {
2223 value.clone()
2224 }
2225 }
2226
2227 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2304 pub struct OperationsCheckResponse {
2305 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2307 pub combined: ::std::vec::Vec<::std::string::String>,
2308 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2310 pub differ: ::std::vec::Vec<::std::string::String>,
2311 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2313 pub error: ::std::vec::Vec<::std::string::String>,
2314 #[serde(
2316 rename = "hashType",
2317 default,
2318 skip_serializing_if = "::std::option::Option::is_none"
2319 )]
2320 pub hash_type: ::std::option::Option<::std::string::String>,
2321 #[serde(
2323 rename = "match",
2324 default,
2325 skip_serializing_if = "::std::vec::Vec::is_empty"
2326 )]
2327 pub match_: ::std::vec::Vec<::std::string::String>,
2328 #[serde(
2330 rename = "missingOnDst",
2331 default,
2332 skip_serializing_if = "::std::vec::Vec::is_empty"
2333 )]
2334 pub missing_on_dst: ::std::vec::Vec<::std::string::String>,
2335 #[serde(
2337 rename = "missingOnSrc",
2338 default,
2339 skip_serializing_if = "::std::vec::Vec::is_empty"
2340 )]
2341 pub missing_on_src: ::std::vec::Vec<::std::string::String>,
2342 pub status: ::std::string::String,
2344 pub success: bool,
2346 }
2347
2348 impl ::std::convert::From<&OperationsCheckResponse> for OperationsCheckResponse {
2349 fn from(value: &OperationsCheckResponse) -> Self {
2350 value.clone()
2351 }
2352 }
2353
2354 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2406 pub struct OperationsFsinfoResponse {
2407 #[serde(rename = "Features")]
2408 pub features: ::std::collections::HashMap<::std::string::String, bool>,
2409 #[serde(rename = "Hashes")]
2410 pub hashes: ::std::vec::Vec<::std::string::String>,
2411 #[serde(
2412 rename = "MetadataInfo",
2413 default,
2414 skip_serializing_if = "::std::option::Option::is_none"
2415 )]
2416 pub metadata_info:
2417 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
2418 #[serde(rename = "Name")]
2419 pub name: ::std::string::String,
2420 #[serde(rename = "Precision")]
2421 pub precision: f64,
2422 #[serde(rename = "Root")]
2423 pub root: ::std::string::String,
2424 #[serde(rename = "String")]
2425 pub string: ::std::string::String,
2426 }
2427
2428 impl ::std::convert::From<&OperationsFsinfoResponse> for OperationsFsinfoResponse {
2429 fn from(value: &OperationsFsinfoResponse) -> Self {
2430 value.clone()
2431 }
2432 }
2433
2434 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2460 pub struct OperationsHashsumResponse {
2461 #[serde(rename = "hashType")]
2462 pub hash_type: ::std::string::String,
2463 pub hashsum: ::std::vec::Vec<::std::string::String>,
2464 }
2465
2466 impl ::std::convert::From<&OperationsHashsumResponse> for OperationsHashsumResponse {
2467 fn from(value: &OperationsHashsumResponse) -> Self {
2468 value.clone()
2469 }
2470 }
2471
2472 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2567 pub struct OperationsListResponse {
2568 pub list: ::std::vec::Vec<OperationsListResponseListItem>,
2571 }
2572
2573 impl ::std::convert::From<&OperationsListResponse> for OperationsListResponse {
2574 fn from(value: &OperationsListResponse) -> Self {
2575 value.clone()
2576 }
2577 }
2578
2579 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2659 pub struct OperationsListResponseListItem {
2660 #[serde(
2662 rename = "Encrypted",
2663 default,
2664 skip_serializing_if = "::std::option::Option::is_none"
2665 )]
2666 pub encrypted: ::std::option::Option<::std::string::String>,
2667 #[serde(
2669 rename = "EncryptedPath",
2670 default,
2671 skip_serializing_if = "::std::option::Option::is_none"
2672 )]
2673 pub encrypted_path: ::std::option::Option<::std::string::String>,
2674 #[serde(
2676 rename = "Hashes",
2677 default,
2678 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
2679 )]
2680 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
2681 #[serde(
2683 rename = "ID",
2684 default,
2685 skip_serializing_if = "::std::option::Option::is_none"
2686 )]
2687 pub id: ::std::option::Option<::std::string::String>,
2688 #[serde(
2690 rename = "IsBucket",
2691 default,
2692 skip_serializing_if = "::std::option::Option::is_none"
2693 )]
2694 pub is_bucket: ::std::option::Option<bool>,
2695 #[serde(rename = "IsDir")]
2697 pub is_dir: bool,
2698 #[serde(
2700 rename = "Metadata",
2701 default,
2702 skip_serializing_if = "::serde_json::Map::is_empty"
2703 )]
2704 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
2705 #[serde(
2707 rename = "MimeType",
2708 default,
2709 skip_serializing_if = "::std::option::Option::is_none"
2710 )]
2711 pub mime_type: ::std::option::Option<::std::string::String>,
2712 #[serde(
2714 rename = "ModTime",
2715 default,
2716 skip_serializing_if = "::std::option::Option::is_none"
2717 )]
2718 pub mod_time: ::std::option::Option<::std::string::String>,
2719 #[serde(rename = "Name")]
2721 pub name: ::std::string::String,
2722 #[serde(
2724 rename = "OrigID",
2725 default,
2726 skip_serializing_if = "::std::option::Option::is_none"
2727 )]
2728 pub orig_id: ::std::option::Option<::std::string::String>,
2729 #[serde(rename = "Path")]
2731 pub path: ::std::string::String,
2732 #[serde(
2733 rename = "Size",
2734 default,
2735 skip_serializing_if = "::std::option::Option::is_none"
2736 )]
2737 pub size: ::std::option::Option<f64>,
2738 #[serde(
2740 rename = "Tier",
2741 default,
2742 skip_serializing_if = "::std::option::Option::is_none"
2743 )]
2744 pub tier: ::std::option::Option<::std::string::String>,
2745 }
2746
2747 impl ::std::convert::From<&OperationsListResponseListItem> for OperationsListResponseListItem {
2748 fn from(value: &OperationsListResponseListItem) -> Self {
2749 value.clone()
2750 }
2751 }
2752
2753 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2773 pub struct OperationsPubliclinkResponse {
2774 pub url: ::std::string::String,
2775 }
2776
2777 impl ::std::convert::From<&OperationsPubliclinkResponse> for OperationsPubliclinkResponse {
2778 fn from(value: &OperationsPubliclinkResponse) -> Self {
2779 value.clone()
2780 }
2781 }
2782
2783 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2810 pub struct OperationsSizeResponse {
2811 pub bytes: f64,
2812 pub count: i64,
2813 pub sizeless: i64,
2814 }
2815
2816 impl ::std::convert::From<&OperationsSizeResponse> for OperationsSizeResponse {
2817 fn from(value: &OperationsSizeResponse) -> Self {
2818 value.clone()
2819 }
2820 }
2821
2822 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
2905 pub struct OperationsStatResponse {
2906 #[serde(
2908 rename = "Encrypted",
2909 default,
2910 skip_serializing_if = "::std::option::Option::is_none"
2911 )]
2912 pub encrypted: ::std::option::Option<::std::string::String>,
2913 #[serde(
2915 rename = "EncryptedPath",
2916 default,
2917 skip_serializing_if = "::std::option::Option::is_none"
2918 )]
2919 pub encrypted_path: ::std::option::Option<::std::string::String>,
2920 #[serde(
2922 rename = "Hashes",
2923 default,
2924 skip_serializing_if = ":: std :: collections :: HashMap::is_empty"
2925 )]
2926 pub hashes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
2927 #[serde(
2929 rename = "ID",
2930 default,
2931 skip_serializing_if = "::std::option::Option::is_none"
2932 )]
2933 pub id: ::std::option::Option<::std::string::String>,
2934 #[serde(
2936 rename = "IsBucket",
2937 default,
2938 skip_serializing_if = "::std::option::Option::is_none"
2939 )]
2940 pub is_bucket: ::std::option::Option<bool>,
2941 #[serde(rename = "IsDir")]
2943 pub is_dir: bool,
2944 #[serde(
2946 rename = "Metadata",
2947 default,
2948 skip_serializing_if = "::serde_json::Map::is_empty"
2949 )]
2950 pub metadata: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
2951 #[serde(rename = "MimeType")]
2953 pub mime_type: ::std::string::String,
2954 #[serde(rename = "ModTime")]
2956 pub mod_time: ::std::string::String,
2957 #[serde(rename = "Name")]
2959 pub name: ::std::string::String,
2960 #[serde(
2962 rename = "OrigID",
2963 default,
2964 skip_serializing_if = "::std::option::Option::is_none"
2965 )]
2966 pub orig_id: ::std::option::Option<::std::string::String>,
2967 #[serde(rename = "Path")]
2969 pub path: ::std::string::String,
2970 #[serde(rename = "Size")]
2971 pub size: f64,
2972 #[serde(
2974 rename = "Tier",
2975 default,
2976 skip_serializing_if = "::std::option::Option::is_none"
2977 )]
2978 pub tier: ::std::option::Option<::std::string::String>,
2979 }
2980
2981 impl ::std::convert::From<&OperationsStatResponse> for OperationsStatResponse {
2982 fn from(value: &OperationsStatResponse) -> Self {
2983 value.clone()
2984 }
2985 }
2986
2987 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3009 pub struct OptionsBlocksResponse {
3010 pub options: ::std::vec::Vec<::std::string::String>,
3011 }
3012
3013 impl ::std::convert::From<&OptionsBlocksResponse> for OptionsBlocksResponse {
3014 fn from(value: &OptionsBlocksResponse) -> Self {
3015 value.clone()
3016 }
3017 }
3018
3019 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3110 pub struct OptionsGetResponse {
3111 pub dlna: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3112 pub filter: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3113 pub ftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3114 pub http: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3115 pub log: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3116 pub main: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3117 pub mount: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3118 pub nfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3119 pub proxy: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3120 pub rc: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3121 pub restic: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3122 pub s3: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3123 pub sftp: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3124 pub vfs: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3125 pub webdav: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
3126 }
3127
3128 impl ::std::convert::From<&OptionsGetResponse> for OptionsGetResponse {
3129 fn from(value: &OptionsGetResponse) -> Self {
3130 value.clone()
3131 }
3132 }
3133
3134 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3269 pub struct OptionsInfoOption {
3270 #[serde(rename = "Advanced")]
3271 pub advanced: bool,
3272 #[serde(rename = "Default")]
3274 pub default: OptionsInfoOptionDefault,
3275 #[serde(rename = "DefaultStr")]
3276 pub default_str: ::std::string::String,
3277 #[serde(
3278 rename = "Examples",
3279 default,
3280 skip_serializing_if = "::std::vec::Vec::is_empty"
3281 )]
3282 pub examples: ::std::vec::Vec<OptionsInfoOptionExample>,
3283 #[serde(rename = "Exclusive")]
3284 pub exclusive: bool,
3285 #[serde(rename = "FieldName")]
3286 pub field_name: ::std::string::String,
3287 #[serde(
3288 rename = "Groups",
3289 default,
3290 skip_serializing_if = "::std::option::Option::is_none"
3291 )]
3292 pub groups: ::std::option::Option<::std::string::String>,
3293 #[serde(rename = "Help")]
3294 pub help: ::std::string::String,
3295 #[serde(rename = "Hide")]
3296 pub hide: i64,
3297 #[serde(rename = "IsPassword")]
3298 pub is_password: bool,
3299 #[serde(rename = "Name")]
3300 pub name: ::std::string::String,
3301 #[serde(rename = "NoPrefix")]
3302 pub no_prefix: bool,
3303 #[serde(rename = "Required")]
3304 pub required: bool,
3305 #[serde(rename = "Sensitive")]
3306 pub sensitive: bool,
3307 #[serde(
3308 rename = "ShortOpt",
3309 default,
3310 skip_serializing_if = "::std::option::Option::is_none"
3311 )]
3312 pub short_opt: ::std::option::Option<::std::string::String>,
3313 #[serde(rename = "Type")]
3314 pub type_: ::std::string::String,
3315 #[serde(rename = "Value")]
3316 pub value: ::std::option::Option<OptionsInfoOptionValue>,
3317 #[serde(rename = "ValueStr")]
3318 pub value_str: ::std::string::String,
3319 }
3320
3321 impl ::std::convert::From<&OptionsInfoOption> for OptionsInfoOption {
3322 fn from(value: &OptionsInfoOption) -> Self {
3323 value.clone()
3324 }
3325 }
3326
3327 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3371 #[serde(untagged, deny_unknown_fields)]
3372 pub enum OptionsInfoOptionDefault {
3373 Variant0(::std::vec::Vec<::std::string::String>),
3374 Variant1(bool),
3375 Variant2(f64),
3376 Variant3(::std::string::String),
3377 Variant4 {
3378 #[serde(rename = "Valid")]
3379 valid: bool,
3380 #[serde(rename = "Value")]
3381 value: bool,
3382 },
3383 }
3384
3385 impl ::std::convert::From<&Self> for OptionsInfoOptionDefault {
3386 fn from(value: &OptionsInfoOptionDefault) -> Self {
3387 value.clone()
3388 }
3389 }
3390
3391 impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for OptionsInfoOptionDefault {
3392 fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
3393 Self::Variant0(value)
3394 }
3395 }
3396
3397 impl ::std::convert::From<bool> for OptionsInfoOptionDefault {
3398 fn from(value: bool) -> Self {
3399 Self::Variant1(value)
3400 }
3401 }
3402
3403 impl ::std::convert::From<f64> for OptionsInfoOptionDefault {
3404 fn from(value: f64) -> Self {
3405 Self::Variant2(value)
3406 }
3407 }
3408
3409 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3433 pub struct OptionsInfoOptionExample {
3434 #[serde(rename = "Help")]
3435 pub help: ::std::string::String,
3436 #[serde(rename = "Value")]
3437 pub value: ::std::string::String,
3438 }
3439
3440 impl ::std::convert::From<&OptionsInfoOptionExample> for OptionsInfoOptionExample {
3441 fn from(value: &OptionsInfoOptionExample) -> Self {
3442 value.clone()
3443 }
3444 }
3445
3446 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3464 #[serde(untagged)]
3465 pub enum OptionsInfoOptionValue {
3466 Variant0(bool),
3467 Variant1(f64),
3468 }
3469
3470 impl ::std::convert::From<&Self> for OptionsInfoOptionValue {
3471 fn from(value: &OptionsInfoOptionValue) -> Self {
3472 value.clone()
3473 }
3474 }
3475
3476 impl ::std::str::FromStr for OptionsInfoOptionValue {
3477 type Err = self::error::ConversionError;
3478 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3479 if let Ok(v) = value.parse() {
3480 Ok(Self::Variant0(v))
3481 } else if let Ok(v) = value.parse() {
3482 Ok(Self::Variant1(v))
3483 } else {
3484 Err("string conversion failed for all variants".into())
3485 }
3486 }
3487 }
3488
3489 impl ::std::convert::TryFrom<&str> for OptionsInfoOptionValue {
3490 type Error = self::error::ConversionError;
3491 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3492 value.parse()
3493 }
3494 }
3495
3496 impl ::std::convert::TryFrom<&::std::string::String> for OptionsInfoOptionValue {
3497 type Error = self::error::ConversionError;
3498 fn try_from(
3499 value: &::std::string::String,
3500 ) -> ::std::result::Result<Self, self::error::ConversionError> {
3501 value.parse()
3502 }
3503 }
3504
3505 impl ::std::convert::TryFrom<::std::string::String> for OptionsInfoOptionValue {
3506 type Error = self::error::ConversionError;
3507 fn try_from(
3508 value: ::std::string::String,
3509 ) -> ::std::result::Result<Self, self::error::ConversionError> {
3510 value.parse()
3511 }
3512 }
3513
3514 impl ::std::fmt::Display for OptionsInfoOptionValue {
3515 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3516 match self {
3517 Self::Variant0(x) => x.fmt(f),
3518 Self::Variant1(x) => x.fmt(f),
3519 }
3520 }
3521 }
3522
3523 impl ::std::convert::From<bool> for OptionsInfoOptionValue {
3524 fn from(value: bool) -> Self {
3525 Self::Variant0(value)
3526 }
3527 }
3528
3529 impl ::std::convert::From<f64> for OptionsInfoOptionValue {
3530 fn from(value: f64) -> Self {
3531 Self::Variant1(value)
3532 }
3533 }
3534
3535 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
3661 pub struct OptionsInfoResponse {
3662 pub dlna: ::std::vec::Vec<OptionsInfoOption>,
3663 pub filter: ::std::vec::Vec<OptionsInfoOption>,
3664 pub ftp: ::std::vec::Vec<OptionsInfoOption>,
3665 pub http: ::std::vec::Vec<OptionsInfoOption>,
3666 pub log: ::std::vec::Vec<OptionsInfoOption>,
3667 pub main: ::std::vec::Vec<OptionsInfoOption>,
3668 pub mount: ::std::vec::Vec<OptionsInfoOption>,
3669 pub nfs: ::std::vec::Vec<OptionsInfoOption>,
3670 pub proxy: ::std::vec::Vec<OptionsInfoOption>,
3671 pub rc: ::std::vec::Vec<OptionsInfoOption>,
3672 pub restic: ::std::vec::Vec<OptionsInfoOption>,
3673 pub s3: ::std::vec::Vec<OptionsInfoOption>,
3674 pub sftp: ::std::vec::Vec<OptionsInfoOption>,
3675 pub vfs: ::std::vec::Vec<OptionsInfoOption>,
3676 pub webdav: ::std::vec::Vec<OptionsInfoOption>,
3677 #[serde(flatten)]
3678 pub extra:
3679 ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<OptionsInfoOption>>,
3680 }
3681
3682 impl ::std::convert::From<&OptionsInfoResponse> for OptionsInfoResponse {
3683 fn from(value: &OptionsInfoResponse) -> Self {
3684 value.clone()
3685 }
3686 }
3687
3688 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4317 pub struct OptionsLocalResponse {
4318 pub config: OptionsLocalResponseConfig,
4319 pub filter: OptionsLocalResponseFilter,
4320 }
4321
4322 impl ::std::convert::From<&OptionsLocalResponse> for OptionsLocalResponse {
4323 fn from(value: &OptionsLocalResponse) -> Self {
4324 value.clone()
4325 }
4326 }
4327
4328 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
4800 pub struct OptionsLocalResponseConfig {
4801 #[serde(rename = "AskPassword")]
4802 pub ask_password: bool,
4803 #[serde(rename = "AutoConfirm")]
4804 pub auto_confirm: bool,
4805 #[serde(rename = "BackupDir")]
4806 pub backup_dir: ::std::string::String,
4807 #[serde(rename = "BindAddr")]
4808 pub bind_addr: ::std::string::String,
4809 #[serde(rename = "BufferSize")]
4810 pub buffer_size: f64,
4811 #[serde(rename = "BwLimit")]
4812 pub bw_limit: ::std::string::String,
4813 #[serde(rename = "BwLimitFile")]
4814 pub bw_limit_file: ::std::string::String,
4815 #[serde(rename = "CaCert")]
4816 pub ca_cert: ::std::vec::Vec<::std::string::String>,
4817 #[serde(rename = "CheckFirst")]
4818 pub check_first: bool,
4819 #[serde(rename = "CheckSum")]
4820 pub check_sum: bool,
4821 #[serde(rename = "Checkers")]
4822 pub checkers: f64,
4823 #[serde(rename = "ClientCert")]
4824 pub client_cert: ::std::string::String,
4825 #[serde(rename = "ClientKey")]
4826 pub client_key: ::std::string::String,
4827 #[serde(rename = "CompareDest")]
4828 pub compare_dest: ::std::vec::Vec<::std::string::String>,
4829 #[serde(rename = "ConnectTimeout")]
4830 pub connect_timeout: f64,
4831 #[serde(rename = "Cookie")]
4832 pub cookie: bool,
4833 #[serde(rename = "CopyDest")]
4834 pub copy_dest: ::std::vec::Vec<::std::string::String>,
4835 #[serde(rename = "CutoffMode")]
4836 pub cutoff_mode: ::std::string::String,
4837 #[serde(rename = "DataRateUnit")]
4838 pub data_rate_unit: ::std::string::String,
4839 #[serde(rename = "DefaultTime")]
4840 pub default_time: ::std::string::String,
4841 #[serde(rename = "DeleteMode")]
4842 pub delete_mode: f64,
4843 #[serde(rename = "DisableFeatures")]
4844 pub disable_features: ::std::option::Option<::std::string::String>,
4845 #[serde(rename = "DisableHTTP2")]
4846 pub disable_http2: bool,
4847 #[serde(rename = "DisableHTTPKeepAlives")]
4848 pub disable_http_keep_alives: bool,
4849 #[serde(rename = "DownloadHeaders")]
4850 pub download_headers: ::std::option::Option<::std::string::String>,
4851 #[serde(rename = "DryRun")]
4852 pub dry_run: bool,
4853 #[serde(rename = "Dump")]
4854 pub dump: ::std::string::String,
4855 #[serde(rename = "ErrorOnNoTransfer")]
4856 pub error_on_no_transfer: bool,
4857 #[serde(rename = "ExpectContinueTimeout")]
4858 pub expect_continue_timeout: f64,
4859 #[serde(rename = "FixCase")]
4860 pub fix_case: bool,
4861 #[serde(rename = "FsCacheExpireDuration")]
4862 pub fs_cache_expire_duration: f64,
4863 #[serde(rename = "FsCacheExpireInterval")]
4864 pub fs_cache_expire_interval: f64,
4865 #[serde(rename = "Headers")]
4866 pub headers: ::std::option::Option<::std::string::String>,
4867 #[serde(rename = "HumanReadable")]
4868 pub human_readable: bool,
4869 #[serde(rename = "IgnoreCaseSync")]
4870 pub ignore_case_sync: bool,
4871 #[serde(rename = "IgnoreChecksum")]
4872 pub ignore_checksum: bool,
4873 #[serde(rename = "IgnoreErrors")]
4874 pub ignore_errors: bool,
4875 #[serde(rename = "IgnoreExisting")]
4876 pub ignore_existing: bool,
4877 #[serde(rename = "IgnoreSize")]
4878 pub ignore_size: bool,
4879 #[serde(rename = "IgnoreTimes")]
4880 pub ignore_times: bool,
4881 #[serde(rename = "Immutable")]
4882 pub immutable: bool,
4883 #[serde(rename = "Inplace")]
4884 pub inplace: bool,
4885 #[serde(rename = "InsecureSkipVerify")]
4886 pub insecure_skip_verify: bool,
4887 #[serde(rename = "Interactive")]
4888 pub interactive: bool,
4889 #[serde(rename = "KvLockTime")]
4890 pub kv_lock_time: f64,
4891 #[serde(rename = "Links")]
4892 pub links: bool,
4893 #[serde(rename = "LogLevel")]
4894 pub log_level: ::std::string::String,
4895 #[serde(rename = "LowLevelRetries")]
4896 pub low_level_retries: f64,
4897 #[serde(rename = "MaxBacklog")]
4898 pub max_backlog: f64,
4899 #[serde(rename = "MaxBufferMemory")]
4900 pub max_buffer_memory: f64,
4901 #[serde(rename = "MaxDelete")]
4902 pub max_delete: f64,
4903 #[serde(rename = "MaxDeleteSize")]
4904 pub max_delete_size: f64,
4905 #[serde(rename = "MaxDepth")]
4906 pub max_depth: f64,
4907 #[serde(rename = "MaxDuration")]
4908 pub max_duration: f64,
4909 #[serde(rename = "MaxStatsGroups")]
4910 pub max_stats_groups: f64,
4911 #[serde(rename = "MaxTransfer")]
4912 pub max_transfer: f64,
4913 #[serde(rename = "Metadata")]
4914 pub metadata: bool,
4915 #[serde(rename = "MetadataMapper")]
4916 pub metadata_mapper: ::std::option::Option<::std::string::String>,
4917 #[serde(rename = "MetadataSet")]
4918 pub metadata_set: ::std::option::Option<::std::string::String>,
4919 #[serde(rename = "ModifyWindow")]
4920 pub modify_window: f64,
4921 #[serde(rename = "MultiThreadChunkSize")]
4922 pub multi_thread_chunk_size: f64,
4923 #[serde(rename = "MultiThreadCutoff")]
4924 pub multi_thread_cutoff: f64,
4925 #[serde(rename = "MultiThreadSet")]
4926 pub multi_thread_set: bool,
4927 #[serde(rename = "MultiThreadStreams")]
4928 pub multi_thread_streams: f64,
4929 #[serde(rename = "MultiThreadWriteBufferSize")]
4930 pub multi_thread_write_buffer_size: f64,
4931 #[serde(rename = "NoCheckDest")]
4932 pub no_check_dest: bool,
4933 #[serde(rename = "NoConsole")]
4934 pub no_console: bool,
4935 #[serde(rename = "NoGzip")]
4936 pub no_gzip: bool,
4937 #[serde(rename = "NoTraverse")]
4938 pub no_traverse: bool,
4939 #[serde(rename = "NoUnicodeNormalization")]
4940 pub no_unicode_normalization: bool,
4941 #[serde(rename = "NoUpdateDirModTime")]
4942 pub no_update_dir_mod_time: bool,
4943 #[serde(rename = "NoUpdateModTime")]
4944 pub no_update_mod_time: bool,
4945 #[serde(rename = "OrderBy")]
4946 pub order_by: ::std::string::String,
4947 #[serde(rename = "PartialSuffix")]
4948 pub partial_suffix: ::std::string::String,
4949 #[serde(rename = "PasswordCommand")]
4950 pub password_command: ::std::option::Option<::std::string::String>,
4951 #[serde(rename = "Progress")]
4952 pub progress: bool,
4953 #[serde(rename = "ProgressTerminalTitle")]
4954 pub progress_terminal_title: bool,
4955 #[serde(rename = "RefreshTimes")]
4956 pub refresh_times: bool,
4957 #[serde(rename = "Retries")]
4958 pub retries: f64,
4959 #[serde(rename = "RetriesInterval")]
4960 pub retries_interval: f64,
4961 #[serde(rename = "ServerSideAcrossConfigs")]
4962 pub server_side_across_configs: bool,
4963 #[serde(rename = "SizeOnly")]
4964 pub size_only: bool,
4965 #[serde(rename = "StatsFileNameLength")]
4966 pub stats_file_name_length: f64,
4967 #[serde(rename = "StatsLogLevel")]
4968 pub stats_log_level: ::std::string::String,
4969 #[serde(rename = "StatsOneLine")]
4970 pub stats_one_line: bool,
4971 #[serde(rename = "StatsOneLineDate")]
4972 pub stats_one_line_date: bool,
4973 #[serde(rename = "StatsOneLineDateFormat")]
4974 pub stats_one_line_date_format: ::std::string::String,
4975 #[serde(rename = "StreamingUploadCutoff")]
4976 pub streaming_upload_cutoff: f64,
4977 #[serde(rename = "Suffix")]
4978 pub suffix: ::std::string::String,
4979 #[serde(rename = "SuffixKeepExtension")]
4980 pub suffix_keep_extension: bool,
4981 #[serde(rename = "TerminalColorMode")]
4982 pub terminal_color_mode: ::std::string::String,
4983 #[serde(rename = "Timeout")]
4984 pub timeout: f64,
4985 #[serde(rename = "TPSLimit")]
4986 pub tps_limit: f64,
4987 #[serde(rename = "TPSLimitBurst")]
4988 pub tps_limit_burst: f64,
4989 #[serde(rename = "TrackRenames")]
4990 pub track_renames: bool,
4991 #[serde(rename = "TrackRenamesStrategy")]
4992 pub track_renames_strategy: ::std::string::String,
4993 #[serde(rename = "TrafficClass")]
4994 pub traffic_class: f64,
4995 #[serde(rename = "Transfers")]
4996 pub transfers: f64,
4997 #[serde(rename = "UpdateOlder")]
4998 pub update_older: bool,
4999 #[serde(rename = "UploadHeaders")]
5000 pub upload_headers: ::std::option::Option<::std::string::String>,
5001 #[serde(rename = "UseJSONLog")]
5002 pub use_json_log: bool,
5003 #[serde(rename = "UseListR")]
5004 pub use_list_r: bool,
5005 #[serde(rename = "UseMmap")]
5006 pub use_mmap: bool,
5007 #[serde(rename = "UseServerModTime")]
5008 pub use_server_mod_time: bool,
5009 #[serde(rename = "UserAgent")]
5010 pub user_agent: ::std::string::String,
5011 }
5012
5013 impl ::std::convert::From<&OptionsLocalResponseConfig> for OptionsLocalResponseConfig {
5014 fn from(value: &OptionsLocalResponseConfig) -> Self {
5015 value.clone()
5016 }
5017 }
5018
5019 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5175 pub struct OptionsLocalResponseFilter {
5176 #[serde(rename = "DeleteExcluded")]
5177 pub delete_excluded: bool,
5178 #[serde(rename = "ExcludeFile")]
5179 pub exclude_file: ::std::vec::Vec<::std::string::String>,
5180 #[serde(rename = "ExcludeFrom")]
5181 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5182 #[serde(rename = "ExcludeRule")]
5183 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5184 #[serde(rename = "FilesFrom")]
5185 pub files_from: ::std::vec::Vec<::std::string::String>,
5186 #[serde(rename = "FilesFromRaw")]
5187 pub files_from_raw: ::std::vec::Vec<::std::string::String>,
5188 #[serde(rename = "FilterFrom")]
5189 pub filter_from: ::std::vec::Vec<::std::string::String>,
5190 #[serde(rename = "FilterRule")]
5191 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5192 #[serde(rename = "HashFilter")]
5193 pub hash_filter: ::std::string::String,
5194 #[serde(rename = "IgnoreCase")]
5195 pub ignore_case: bool,
5196 #[serde(rename = "IncludeFrom")]
5197 pub include_from: ::std::vec::Vec<::std::string::String>,
5198 #[serde(rename = "IncludeRule")]
5199 pub include_rule: ::std::vec::Vec<::std::string::String>,
5200 #[serde(rename = "MaxAge")]
5201 pub max_age: f64,
5202 #[serde(rename = "MaxSize")]
5203 pub max_size: f64,
5204 #[serde(rename = "MetaRules")]
5205 pub meta_rules: OptionsLocalResponseFilterMetaRules,
5206 #[serde(rename = "MinAge")]
5207 pub min_age: f64,
5208 #[serde(rename = "MinSize")]
5209 pub min_size: f64,
5210 }
5211
5212 impl ::std::convert::From<&OptionsLocalResponseFilter> for OptionsLocalResponseFilter {
5213 fn from(value: &OptionsLocalResponseFilter) -> Self {
5214 value.clone()
5215 }
5216 }
5217
5218 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5275 pub struct OptionsLocalResponseFilterMetaRules {
5276 #[serde(rename = "ExcludeFrom")]
5277 pub exclude_from: ::std::vec::Vec<::std::string::String>,
5278 #[serde(rename = "ExcludeRule")]
5279 pub exclude_rule: ::std::vec::Vec<::std::string::String>,
5280 #[serde(rename = "FilterFrom")]
5281 pub filter_from: ::std::vec::Vec<::std::string::String>,
5282 #[serde(rename = "FilterRule")]
5283 pub filter_rule: ::std::vec::Vec<::std::string::String>,
5284 #[serde(rename = "IncludeFrom")]
5285 pub include_from: ::std::vec::Vec<::std::string::String>,
5286 #[serde(rename = "IncludeRule")]
5287 pub include_rule: ::std::vec::Vec<::std::string::String>,
5288 }
5289
5290 impl ::std::convert::From<&OptionsLocalResponseFilterMetaRules>
5291 for OptionsLocalResponseFilterMetaRules
5292 {
5293 fn from(value: &OptionsLocalResponseFilterMetaRules) -> Self {
5294 value.clone()
5295 }
5296 }
5297
5298 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5330 #[serde(untagged)]
5331 pub enum OptionsSetDlnaValue {
5332 Variant0(::std::string::String),
5333 Variant1(f64),
5334 Variant2(i64),
5335 Variant3(bool),
5336 Variant4(::std::vec::Vec<::serde_json::Value>),
5337 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5338 }
5339
5340 impl ::std::convert::From<&Self> for OptionsSetDlnaValue {
5341 fn from(value: &OptionsSetDlnaValue) -> Self {
5342 value.clone()
5343 }
5344 }
5345
5346 impl ::std::convert::From<f64> for OptionsSetDlnaValue {
5347 fn from(value: f64) -> Self {
5348 Self::Variant1(value)
5349 }
5350 }
5351
5352 impl ::std::convert::From<i64> for OptionsSetDlnaValue {
5353 fn from(value: i64) -> Self {
5354 Self::Variant2(value)
5355 }
5356 }
5357
5358 impl ::std::convert::From<bool> for OptionsSetDlnaValue {
5359 fn from(value: bool) -> Self {
5360 Self::Variant3(value)
5361 }
5362 }
5363
5364 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetDlnaValue {
5365 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5366 Self::Variant4(value)
5367 }
5368 }
5369
5370 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5371 for OptionsSetDlnaValue
5372 {
5373 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5374 Self::Variant5(value)
5375 }
5376 }
5377
5378 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5410 #[serde(untagged)]
5411 pub enum OptionsSetFilterValue {
5412 Variant0(::std::string::String),
5413 Variant1(f64),
5414 Variant2(i64),
5415 Variant3(bool),
5416 Variant4(::std::vec::Vec<::serde_json::Value>),
5417 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5418 }
5419
5420 impl ::std::convert::From<&Self> for OptionsSetFilterValue {
5421 fn from(value: &OptionsSetFilterValue) -> Self {
5422 value.clone()
5423 }
5424 }
5425
5426 impl ::std::convert::From<f64> for OptionsSetFilterValue {
5427 fn from(value: f64) -> Self {
5428 Self::Variant1(value)
5429 }
5430 }
5431
5432 impl ::std::convert::From<i64> for OptionsSetFilterValue {
5433 fn from(value: i64) -> Self {
5434 Self::Variant2(value)
5435 }
5436 }
5437
5438 impl ::std::convert::From<bool> for OptionsSetFilterValue {
5439 fn from(value: bool) -> Self {
5440 Self::Variant3(value)
5441 }
5442 }
5443
5444 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFilterValue {
5445 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5446 Self::Variant4(value)
5447 }
5448 }
5449
5450 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5451 for OptionsSetFilterValue
5452 {
5453 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5454 Self::Variant5(value)
5455 }
5456 }
5457
5458 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5490 #[serde(untagged)]
5491 pub enum OptionsSetFtpValue {
5492 Variant0(::std::string::String),
5493 Variant1(f64),
5494 Variant2(i64),
5495 Variant3(bool),
5496 Variant4(::std::vec::Vec<::serde_json::Value>),
5497 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5498 }
5499
5500 impl ::std::convert::From<&Self> for OptionsSetFtpValue {
5501 fn from(value: &OptionsSetFtpValue) -> Self {
5502 value.clone()
5503 }
5504 }
5505
5506 impl ::std::convert::From<f64> for OptionsSetFtpValue {
5507 fn from(value: f64) -> Self {
5508 Self::Variant1(value)
5509 }
5510 }
5511
5512 impl ::std::convert::From<i64> for OptionsSetFtpValue {
5513 fn from(value: i64) -> Self {
5514 Self::Variant2(value)
5515 }
5516 }
5517
5518 impl ::std::convert::From<bool> for OptionsSetFtpValue {
5519 fn from(value: bool) -> Self {
5520 Self::Variant3(value)
5521 }
5522 }
5523
5524 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetFtpValue {
5525 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5526 Self::Variant4(value)
5527 }
5528 }
5529
5530 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5531 for OptionsSetFtpValue
5532 {
5533 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5534 Self::Variant5(value)
5535 }
5536 }
5537
5538 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5570 #[serde(untagged)]
5571 pub enum OptionsSetHttpValue {
5572 Variant0(::std::string::String),
5573 Variant1(f64),
5574 Variant2(i64),
5575 Variant3(bool),
5576 Variant4(::std::vec::Vec<::serde_json::Value>),
5577 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5578 }
5579
5580 impl ::std::convert::From<&Self> for OptionsSetHttpValue {
5581 fn from(value: &OptionsSetHttpValue) -> Self {
5582 value.clone()
5583 }
5584 }
5585
5586 impl ::std::convert::From<f64> for OptionsSetHttpValue {
5587 fn from(value: f64) -> Self {
5588 Self::Variant1(value)
5589 }
5590 }
5591
5592 impl ::std::convert::From<i64> for OptionsSetHttpValue {
5593 fn from(value: i64) -> Self {
5594 Self::Variant2(value)
5595 }
5596 }
5597
5598 impl ::std::convert::From<bool> for OptionsSetHttpValue {
5599 fn from(value: bool) -> Self {
5600 Self::Variant3(value)
5601 }
5602 }
5603
5604 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetHttpValue {
5605 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5606 Self::Variant4(value)
5607 }
5608 }
5609
5610 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5611 for OptionsSetHttpValue
5612 {
5613 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5614 Self::Variant5(value)
5615 }
5616 }
5617
5618 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5650 #[serde(untagged)]
5651 pub enum OptionsSetLogValue {
5652 Variant0(::std::string::String),
5653 Variant1(f64),
5654 Variant2(i64),
5655 Variant3(bool),
5656 Variant4(::std::vec::Vec<::serde_json::Value>),
5657 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5658 }
5659
5660 impl ::std::convert::From<&Self> for OptionsSetLogValue {
5661 fn from(value: &OptionsSetLogValue) -> Self {
5662 value.clone()
5663 }
5664 }
5665
5666 impl ::std::convert::From<f64> for OptionsSetLogValue {
5667 fn from(value: f64) -> Self {
5668 Self::Variant1(value)
5669 }
5670 }
5671
5672 impl ::std::convert::From<i64> for OptionsSetLogValue {
5673 fn from(value: i64) -> Self {
5674 Self::Variant2(value)
5675 }
5676 }
5677
5678 impl ::std::convert::From<bool> for OptionsSetLogValue {
5679 fn from(value: bool) -> Self {
5680 Self::Variant3(value)
5681 }
5682 }
5683
5684 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetLogValue {
5685 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5686 Self::Variant4(value)
5687 }
5688 }
5689
5690 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5691 for OptionsSetLogValue
5692 {
5693 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5694 Self::Variant5(value)
5695 }
5696 }
5697
5698 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5730 #[serde(untagged)]
5731 pub enum OptionsSetMainValue {
5732 Variant0(::std::string::String),
5733 Variant1(f64),
5734 Variant2(i64),
5735 Variant3(bool),
5736 Variant4(::std::vec::Vec<::serde_json::Value>),
5737 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5738 }
5739
5740 impl ::std::convert::From<&Self> for OptionsSetMainValue {
5741 fn from(value: &OptionsSetMainValue) -> Self {
5742 value.clone()
5743 }
5744 }
5745
5746 impl ::std::convert::From<f64> for OptionsSetMainValue {
5747 fn from(value: f64) -> Self {
5748 Self::Variant1(value)
5749 }
5750 }
5751
5752 impl ::std::convert::From<i64> for OptionsSetMainValue {
5753 fn from(value: i64) -> Self {
5754 Self::Variant2(value)
5755 }
5756 }
5757
5758 impl ::std::convert::From<bool> for OptionsSetMainValue {
5759 fn from(value: bool) -> Self {
5760 Self::Variant3(value)
5761 }
5762 }
5763
5764 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMainValue {
5765 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5766 Self::Variant4(value)
5767 }
5768 }
5769
5770 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5771 for OptionsSetMainValue
5772 {
5773 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5774 Self::Variant5(value)
5775 }
5776 }
5777
5778 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5810 #[serde(untagged)]
5811 pub enum OptionsSetMountValue {
5812 Variant0(::std::string::String),
5813 Variant1(f64),
5814 Variant2(i64),
5815 Variant3(bool),
5816 Variant4(::std::vec::Vec<::serde_json::Value>),
5817 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5818 }
5819
5820 impl ::std::convert::From<&Self> for OptionsSetMountValue {
5821 fn from(value: &OptionsSetMountValue) -> Self {
5822 value.clone()
5823 }
5824 }
5825
5826 impl ::std::convert::From<f64> for OptionsSetMountValue {
5827 fn from(value: f64) -> Self {
5828 Self::Variant1(value)
5829 }
5830 }
5831
5832 impl ::std::convert::From<i64> for OptionsSetMountValue {
5833 fn from(value: i64) -> Self {
5834 Self::Variant2(value)
5835 }
5836 }
5837
5838 impl ::std::convert::From<bool> for OptionsSetMountValue {
5839 fn from(value: bool) -> Self {
5840 Self::Variant3(value)
5841 }
5842 }
5843
5844 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetMountValue {
5845 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5846 Self::Variant4(value)
5847 }
5848 }
5849
5850 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5851 for OptionsSetMountValue
5852 {
5853 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5854 Self::Variant5(value)
5855 }
5856 }
5857
5858 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5890 #[serde(untagged)]
5891 pub enum OptionsSetNfsValue {
5892 Variant0(::std::string::String),
5893 Variant1(f64),
5894 Variant2(i64),
5895 Variant3(bool),
5896 Variant4(::std::vec::Vec<::serde_json::Value>),
5897 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5898 }
5899
5900 impl ::std::convert::From<&Self> for OptionsSetNfsValue {
5901 fn from(value: &OptionsSetNfsValue) -> Self {
5902 value.clone()
5903 }
5904 }
5905
5906 impl ::std::convert::From<f64> for OptionsSetNfsValue {
5907 fn from(value: f64) -> Self {
5908 Self::Variant1(value)
5909 }
5910 }
5911
5912 impl ::std::convert::From<i64> for OptionsSetNfsValue {
5913 fn from(value: i64) -> Self {
5914 Self::Variant2(value)
5915 }
5916 }
5917
5918 impl ::std::convert::From<bool> for OptionsSetNfsValue {
5919 fn from(value: bool) -> Self {
5920 Self::Variant3(value)
5921 }
5922 }
5923
5924 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetNfsValue {
5925 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
5926 Self::Variant4(value)
5927 }
5928 }
5929
5930 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
5931 for OptionsSetNfsValue
5932 {
5933 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
5934 Self::Variant5(value)
5935 }
5936 }
5937
5938 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
5970 #[serde(untagged)]
5971 pub enum OptionsSetProxyValue {
5972 Variant0(::std::string::String),
5973 Variant1(f64),
5974 Variant2(i64),
5975 Variant3(bool),
5976 Variant4(::std::vec::Vec<::serde_json::Value>),
5977 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
5978 }
5979
5980 impl ::std::convert::From<&Self> for OptionsSetProxyValue {
5981 fn from(value: &OptionsSetProxyValue) -> Self {
5982 value.clone()
5983 }
5984 }
5985
5986 impl ::std::convert::From<f64> for OptionsSetProxyValue {
5987 fn from(value: f64) -> Self {
5988 Self::Variant1(value)
5989 }
5990 }
5991
5992 impl ::std::convert::From<i64> for OptionsSetProxyValue {
5993 fn from(value: i64) -> Self {
5994 Self::Variant2(value)
5995 }
5996 }
5997
5998 impl ::std::convert::From<bool> for OptionsSetProxyValue {
5999 fn from(value: bool) -> Self {
6000 Self::Variant3(value)
6001 }
6002 }
6003
6004 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetProxyValue {
6005 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6006 Self::Variant4(value)
6007 }
6008 }
6009
6010 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6011 for OptionsSetProxyValue
6012 {
6013 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6014 Self::Variant5(value)
6015 }
6016 }
6017
6018 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6050 #[serde(untagged)]
6051 pub enum OptionsSetRcValue {
6052 Variant0(::std::string::String),
6053 Variant1(f64),
6054 Variant2(i64),
6055 Variant3(bool),
6056 Variant4(::std::vec::Vec<::serde_json::Value>),
6057 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6058 }
6059
6060 impl ::std::convert::From<&Self> for OptionsSetRcValue {
6061 fn from(value: &OptionsSetRcValue) -> Self {
6062 value.clone()
6063 }
6064 }
6065
6066 impl ::std::convert::From<f64> for OptionsSetRcValue {
6067 fn from(value: f64) -> Self {
6068 Self::Variant1(value)
6069 }
6070 }
6071
6072 impl ::std::convert::From<i64> for OptionsSetRcValue {
6073 fn from(value: i64) -> Self {
6074 Self::Variant2(value)
6075 }
6076 }
6077
6078 impl ::std::convert::From<bool> for OptionsSetRcValue {
6079 fn from(value: bool) -> Self {
6080 Self::Variant3(value)
6081 }
6082 }
6083
6084 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetRcValue {
6085 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6086 Self::Variant4(value)
6087 }
6088 }
6089
6090 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6091 for OptionsSetRcValue
6092 {
6093 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6094 Self::Variant5(value)
6095 }
6096 }
6097
6098 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6130 #[serde(untagged)]
6131 pub enum OptionsSetResticValue {
6132 Variant0(::std::string::String),
6133 Variant1(f64),
6134 Variant2(i64),
6135 Variant3(bool),
6136 Variant4(::std::vec::Vec<::serde_json::Value>),
6137 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6138 }
6139
6140 impl ::std::convert::From<&Self> for OptionsSetResticValue {
6141 fn from(value: &OptionsSetResticValue) -> Self {
6142 value.clone()
6143 }
6144 }
6145
6146 impl ::std::convert::From<f64> for OptionsSetResticValue {
6147 fn from(value: f64) -> Self {
6148 Self::Variant1(value)
6149 }
6150 }
6151
6152 impl ::std::convert::From<i64> for OptionsSetResticValue {
6153 fn from(value: i64) -> Self {
6154 Self::Variant2(value)
6155 }
6156 }
6157
6158 impl ::std::convert::From<bool> for OptionsSetResticValue {
6159 fn from(value: bool) -> Self {
6160 Self::Variant3(value)
6161 }
6162 }
6163
6164 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetResticValue {
6165 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6166 Self::Variant4(value)
6167 }
6168 }
6169
6170 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6171 for OptionsSetResticValue
6172 {
6173 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6174 Self::Variant5(value)
6175 }
6176 }
6177
6178 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6210 #[serde(untagged)]
6211 pub enum OptionsSetS3Value {
6212 Variant0(::std::string::String),
6213 Variant1(f64),
6214 Variant2(i64),
6215 Variant3(bool),
6216 Variant4(::std::vec::Vec<::serde_json::Value>),
6217 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6218 }
6219
6220 impl ::std::convert::From<&Self> for OptionsSetS3Value {
6221 fn from(value: &OptionsSetS3Value) -> Self {
6222 value.clone()
6223 }
6224 }
6225
6226 impl ::std::convert::From<f64> for OptionsSetS3Value {
6227 fn from(value: f64) -> Self {
6228 Self::Variant1(value)
6229 }
6230 }
6231
6232 impl ::std::convert::From<i64> for OptionsSetS3Value {
6233 fn from(value: i64) -> Self {
6234 Self::Variant2(value)
6235 }
6236 }
6237
6238 impl ::std::convert::From<bool> for OptionsSetS3Value {
6239 fn from(value: bool) -> Self {
6240 Self::Variant3(value)
6241 }
6242 }
6243
6244 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetS3Value {
6245 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6246 Self::Variant4(value)
6247 }
6248 }
6249
6250 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6251 for OptionsSetS3Value
6252 {
6253 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6254 Self::Variant5(value)
6255 }
6256 }
6257
6258 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6290 #[serde(untagged)]
6291 pub enum OptionsSetSftpValue {
6292 Variant0(::std::string::String),
6293 Variant1(f64),
6294 Variant2(i64),
6295 Variant3(bool),
6296 Variant4(::std::vec::Vec<::serde_json::Value>),
6297 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6298 }
6299
6300 impl ::std::convert::From<&Self> for OptionsSetSftpValue {
6301 fn from(value: &OptionsSetSftpValue) -> Self {
6302 value.clone()
6303 }
6304 }
6305
6306 impl ::std::convert::From<f64> for OptionsSetSftpValue {
6307 fn from(value: f64) -> Self {
6308 Self::Variant1(value)
6309 }
6310 }
6311
6312 impl ::std::convert::From<i64> for OptionsSetSftpValue {
6313 fn from(value: i64) -> Self {
6314 Self::Variant2(value)
6315 }
6316 }
6317
6318 impl ::std::convert::From<bool> for OptionsSetSftpValue {
6319 fn from(value: bool) -> Self {
6320 Self::Variant3(value)
6321 }
6322 }
6323
6324 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetSftpValue {
6325 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6326 Self::Variant4(value)
6327 }
6328 }
6329
6330 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6331 for OptionsSetSftpValue
6332 {
6333 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6334 Self::Variant5(value)
6335 }
6336 }
6337
6338 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6370 #[serde(untagged)]
6371 pub enum OptionsSetVfsValue {
6372 Variant0(::std::string::String),
6373 Variant1(f64),
6374 Variant2(i64),
6375 Variant3(bool),
6376 Variant4(::std::vec::Vec<::serde_json::Value>),
6377 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6378 }
6379
6380 impl ::std::convert::From<&Self> for OptionsSetVfsValue {
6381 fn from(value: &OptionsSetVfsValue) -> Self {
6382 value.clone()
6383 }
6384 }
6385
6386 impl ::std::convert::From<f64> for OptionsSetVfsValue {
6387 fn from(value: f64) -> Self {
6388 Self::Variant1(value)
6389 }
6390 }
6391
6392 impl ::std::convert::From<i64> for OptionsSetVfsValue {
6393 fn from(value: i64) -> Self {
6394 Self::Variant2(value)
6395 }
6396 }
6397
6398 impl ::std::convert::From<bool> for OptionsSetVfsValue {
6399 fn from(value: bool) -> Self {
6400 Self::Variant3(value)
6401 }
6402 }
6403
6404 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetVfsValue {
6405 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6406 Self::Variant4(value)
6407 }
6408 }
6409
6410 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6411 for OptionsSetVfsValue
6412 {
6413 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6414 Self::Variant5(value)
6415 }
6416 }
6417
6418 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6450 #[serde(untagged)]
6451 pub enum OptionsSetWebdavValue {
6452 Variant0(::std::string::String),
6453 Variant1(f64),
6454 Variant2(i64),
6455 Variant3(bool),
6456 Variant4(::std::vec::Vec<::serde_json::Value>),
6457 Variant5(::serde_json::Map<::std::string::String, ::serde_json::Value>),
6458 }
6459
6460 impl ::std::convert::From<&Self> for OptionsSetWebdavValue {
6461 fn from(value: &OptionsSetWebdavValue) -> Self {
6462 value.clone()
6463 }
6464 }
6465
6466 impl ::std::convert::From<f64> for OptionsSetWebdavValue {
6467 fn from(value: f64) -> Self {
6468 Self::Variant1(value)
6469 }
6470 }
6471
6472 impl ::std::convert::From<i64> for OptionsSetWebdavValue {
6473 fn from(value: i64) -> Self {
6474 Self::Variant2(value)
6475 }
6476 }
6477
6478 impl ::std::convert::From<bool> for OptionsSetWebdavValue {
6479 fn from(value: bool) -> Self {
6480 Self::Variant3(value)
6481 }
6482 }
6483
6484 impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for OptionsSetWebdavValue {
6485 fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self {
6486 Self::Variant4(value)
6487 }
6488 }
6489
6490 impl ::std::convert::From<::serde_json::Map<::std::string::String, ::serde_json::Value>>
6491 for OptionsSetWebdavValue
6492 {
6493 fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self {
6494 Self::Variant5(value)
6495 }
6496 }
6497
6498 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6531 pub struct PluginsctlGetPluginsForTypeResponse {
6532 #[serde(rename = "loadedPlugins")]
6534 pub loaded_plugins: ::std::collections::HashMap<
6535 ::std::string::String,
6536 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
6537 >,
6538 #[serde(rename = "loadedTestPlugins")]
6540 pub loaded_test_plugins: ::std::collections::HashMap<
6541 ::std::string::String,
6542 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
6543 >,
6544 }
6545
6546 impl ::std::convert::From<&PluginsctlGetPluginsForTypeResponse>
6547 for PluginsctlGetPluginsForTypeResponse
6548 {
6549 fn from(value: &PluginsctlGetPluginsForTypeResponse) -> Self {
6550 value.clone()
6551 }
6552 }
6553
6554 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6587 pub struct PluginsctlListPluginsResponse {
6588 #[serde(rename = "loadedPlugins")]
6590 pub loaded_plugins:
6591 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
6592 #[serde(rename = "testPlugins")]
6594 pub test_plugins:
6595 ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
6596 }
6597
6598 impl ::std::convert::From<&PluginsctlListPluginsResponse> for PluginsctlListPluginsResponse {
6599 fn from(value: &PluginsctlListPluginsResponse) -> Self {
6600 value.clone()
6601 }
6602 }
6603
6604 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6629 pub struct PluginsctlListTestPluginsResponse {
6630 #[serde(rename = "loadedTestPlugins")]
6632 pub loaded_test_plugins: ::std::collections::HashMap<
6633 ::std::string::String,
6634 ::serde_json::Map<::std::string::String, ::serde_json::Value>,
6635 >,
6636 }
6637
6638 impl ::std::convert::From<&PluginsctlListTestPluginsResponse>
6639 for PluginsctlListTestPluginsResponse
6640 {
6641 fn from(value: &PluginsctlListTestPluginsResponse) -> Self {
6642 value.clone()
6643 }
6644 }
6645
6646 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6682 pub struct RcError {
6683 pub error: ::std::string::String,
6684 pub input:
6686 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
6687 pub path: ::std::string::String,
6688 pub status: i64,
6689 }
6690
6691 impl ::std::convert::From<&RcError> for RcError {
6692 fn from(value: &RcError) -> Self {
6693 value.clone()
6694 }
6695 }
6696
6697 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6740 pub struct RcListResponse {
6741 pub commands: ::std::vec::Vec<RcListResponseCommandsItem>,
6742 }
6743
6744 impl ::std::convert::From<&RcListResponse> for RcListResponse {
6745 fn from(value: &RcListResponse) -> Self {
6746 value.clone()
6747 }
6748 }
6749
6750 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6782 pub struct RcListResponseCommandsItem {
6783 #[serde(
6784 rename = "AuthRequired",
6785 default,
6786 skip_serializing_if = "::std::option::Option::is_none"
6787 )]
6788 pub auth_required: ::std::option::Option<bool>,
6789 #[serde(
6790 rename = "Help",
6791 default,
6792 skip_serializing_if = "::std::option::Option::is_none"
6793 )]
6794 pub help: ::std::option::Option<::std::string::String>,
6795 #[serde(
6796 rename = "NeedsRequest",
6797 default,
6798 skip_serializing_if = "::std::option::Option::is_none"
6799 )]
6800 pub needs_request: ::std::option::Option<bool>,
6801 #[serde(
6802 rename = "NeedsResponse",
6803 default,
6804 skip_serializing_if = "::std::option::Option::is_none"
6805 )]
6806 pub needs_response: ::std::option::Option<bool>,
6807 #[serde(
6808 rename = "Path",
6809 default,
6810 skip_serializing_if = "::std::option::Option::is_none"
6811 )]
6812 pub path: ::std::option::Option<::std::string::String>,
6813 #[serde(
6814 rename = "Title",
6815 default,
6816 skip_serializing_if = "::std::option::Option::is_none"
6817 )]
6818 pub title: ::std::option::Option<::std::string::String>,
6819 }
6820
6821 impl ::std::convert::From<&RcListResponseCommandsItem> for RcListResponseCommandsItem {
6822 fn from(value: &RcListResponseCommandsItem) -> Self {
6823 value.clone()
6824 }
6825 }
6826
6827 impl ::std::default::Default for RcListResponseCommandsItem {
6828 fn default() -> Self {
6829 Self {
6830 auth_required: Default::default(),
6831 help: Default::default(),
6832 needs_request: Default::default(),
6833 needs_response: Default::default(),
6834 path: Default::default(),
6835 title: Default::default(),
6836 }
6837 }
6838 }
6839
6840 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6905 pub struct ServeListResponse {
6906 pub list: ::std::vec::Vec<ServeListResponseListItem>,
6907 }
6908
6909 impl ::std::convert::From<&ServeListResponse> for ServeListResponse {
6910 fn from(value: &ServeListResponse) -> Self {
6911 value.clone()
6912 }
6913 }
6914
6915 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
6968 #[serde(deny_unknown_fields)]
6969 pub struct ServeListResponseListItem {
6970 pub addr: ::std::string::String,
6972 pub id: ::std::string::String,
6974 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
6975 pub params: ::std::option::Option<ServeListResponseListItemParams>,
6976 }
6977
6978 impl ::std::convert::From<&ServeListResponseListItem> for ServeListResponseListItem {
6979 fn from(value: &ServeListResponseListItem) -> Self {
6980 value.clone()
6981 }
6982 }
6983
6984 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7018 pub struct ServeListResponseListItemParams {
7019 pub fs: ::std::string::String,
7020 pub id: ::serde_json::Value,
7021 #[serde(default, skip_serializing_if = "::serde_json::Map::is_empty")]
7022 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7023 #[serde(rename = "type")]
7024 pub type_: ::std::string::String,
7025 #[serde(
7026 rename = "vfsOpt",
7027 default,
7028 skip_serializing_if = "::serde_json::Map::is_empty"
7029 )]
7030 pub vfs_opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7031 }
7032
7033 impl ::std::convert::From<&ServeListResponseListItemParams> for ServeListResponseListItemParams {
7034 fn from(value: &ServeListResponseListItemParams) -> Self {
7035 value.clone()
7036 }
7037 }
7038
7039 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7064 pub struct ServeStartResponse {
7065 pub addr: ::std::string::String,
7067 pub id: ::std::string::String,
7069 }
7070
7071 impl ::std::convert::From<&ServeStartResponse> for ServeStartResponse {
7072 fn from(value: &ServeStartResponse) -> Self {
7073 value.clone()
7074 }
7075 }
7076
7077 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7100 pub struct VfsForgetResponse {
7101 pub forgotten: ::std::vec::Vec<::std::string::String>,
7103 }
7104
7105 impl ::std::convert::From<&VfsForgetResponse> for VfsForgetResponse {
7106 fn from(value: &VfsForgetResponse) -> Self {
7107 value.clone()
7108 }
7109 }
7110
7111 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7135 pub struct VfsListResponse {
7136 pub vfses: ::std::vec::Vec<::std::string::String>,
7138 }
7139
7140 impl ::std::convert::From<&VfsListResponse> for VfsListResponse {
7141 fn from(value: &VfsListResponse) -> Self {
7142 value.clone()
7143 }
7144 }
7145
7146 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7168 pub struct VfsQueueResponse {
7169 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7170 pub queued: ::std::vec::Vec<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7171 }
7172
7173 impl ::std::convert::From<&VfsQueueResponse> for VfsQueueResponse {
7174 fn from(value: &VfsQueueResponse) -> Self {
7175 value.clone()
7176 }
7177 }
7178
7179 impl ::std::default::Default for VfsQueueResponse {
7180 fn default() -> Self {
7181 Self {
7182 queued: Default::default(),
7183 }
7184 }
7185 }
7186
7187 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7210 pub struct VfsRefreshResponse {
7211 pub result: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
7213 }
7214
7215 impl ::std::convert::From<&VfsRefreshResponse> for VfsRefreshResponse {
7216 fn from(value: &VfsRefreshResponse) -> Self {
7217 value.clone()
7218 }
7219 }
7220
7221 #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
7268 pub struct VfsStatsResponse {
7269 #[serde(
7271 rename = "diskCache",
7272 default,
7273 skip_serializing_if = "::std::option::Option::is_none"
7274 )]
7275 pub disk_cache:
7276 ::std::option::Option<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7277 pub fs: ::std::string::String,
7279 #[serde(rename = "inUse")]
7281 pub in_use: i64,
7282 #[serde(rename = "metadataCache")]
7284 pub metadata_cache: ::std::collections::HashMap<::std::string::String, i64>,
7285 pub opt: ::serde_json::Map<::std::string::String, ::serde_json::Value>,
7287 }
7288
7289 impl ::std::convert::From<&VfsStatsResponse> for VfsStatsResponse {
7290 fn from(value: &VfsStatsResponse) -> Self {
7291 value.clone()
7292 }
7293 }
7294}
7295
7296#[derive(Clone, Debug)]
7297pub struct Client {
7303 pub(crate) baseurl: String,
7304 pub(crate) client: reqwest::Client,
7305}
7306
7307impl Client {
7308 pub fn new(baseurl: &str) -> Self {
7314 #[cfg(not(target_arch = "wasm32"))]
7315 let client = {
7316 let dur = ::std::time::Duration::from_secs(15u64);
7317 reqwest::ClientBuilder::new()
7318 .connect_timeout(dur)
7319 .timeout(dur)
7320 };
7321 #[cfg(target_arch = "wasm32")]
7322 let client = reqwest::ClientBuilder::new();
7323 Self::new_with_client(baseurl, client.build().unwrap())
7324 }
7325
7326 pub fn new_with_client(baseurl: &str, client: reqwest::Client) -> Self {
7333 Self {
7334 baseurl: baseurl.to_string(),
7335 client,
7336 }
7337 }
7338}
7339
7340impl ClientInfo<()> for Client {
7341 fn api_version() -> &'static str {
7342 "0.1.3"
7343 }
7344
7345 fn baseurl(&self) -> &str {
7346 self.baseurl.as_str()
7347 }
7348
7349 fn client(&self) -> &reqwest::Client {
7350 &self.client
7351 }
7352
7353 fn inner(&self) -> &() {
7354 &()
7355 }
7356}
7357
7358impl ClientHooks<()> for &Client {}
7359#[allow(clippy::all)]
7360impl Client {
7361 pub async fn rc_noop<'a>(
7373 &'a self,
7374 async_: Option<bool>,
7375 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7376 ) -> Result<
7377 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7378 Error<types::RcError>,
7379 > {
7380 let url = format!("{}/rc/noop", self.baseurl,);
7381 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7382 header_map.append(
7383 ::reqwest::header::HeaderName::from_static("api-version"),
7384 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7385 );
7386 #[allow(unused_mut)]
7387 let mut request = self
7388 .client
7389 .post(url)
7390 .header(
7391 ::reqwest::header::ACCEPT,
7392 ::reqwest::header::HeaderValue::from_static("application/json"),
7393 )
7394 .query(&progenitor_client::QueryParam::new("_async", &async_))
7395 .query(&progenitor_client::QueryParam::new("params", ¶ms))
7396 .headers(header_map)
7397 .build()?;
7398 let info = OperationInfo {
7399 operation_id: "rc_noop",
7400 };
7401 self.pre(&mut request, &info).await?;
7402 let result = self.exec(request, &info).await;
7403 self.post(&result, &info).await?;
7404 let response = result?;
7405 match response.status().as_u16() {
7406 200u16 => ResponseValue::from_response(response).await,
7407 400u16..=499u16 => Err(Error::ErrorResponse(
7408 ResponseValue::from_response(response).await?,
7409 )),
7410 500u16..=599u16 => Err(Error::ErrorResponse(
7411 ResponseValue::from_response(response).await?,
7412 )),
7413 _ => Err(Error::UnexpectedResponse(response)),
7414 }
7415 }
7416
7417 pub async fn operations_cleanup<'a>(
7429 &'a self,
7430 async_: Option<bool>,
7431 group: Option<&'a str>,
7432 fs: &'a str,
7433 ) -> Result<
7434 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7435 Error<types::RcError>,
7436 > {
7437 let url = format!("{}/operations/cleanup", self.baseurl,);
7438 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7439 header_map.append(
7440 ::reqwest::header::HeaderName::from_static("api-version"),
7441 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7442 );
7443 #[allow(unused_mut)]
7444 let mut request = self
7445 .client
7446 .post(url)
7447 .header(
7448 ::reqwest::header::ACCEPT,
7449 ::reqwest::header::HeaderValue::from_static("application/json"),
7450 )
7451 .query(&progenitor_client::QueryParam::new("_async", &async_))
7452 .query(&progenitor_client::QueryParam::new("_group", &group))
7453 .query(&progenitor_client::QueryParam::new("fs", &fs))
7454 .headers(header_map)
7455 .build()?;
7456 let info = OperationInfo {
7457 operation_id: "operations_cleanup",
7458 };
7459 self.pre(&mut request, &info).await?;
7460 let result = self.exec(request, &info).await;
7461 self.post(&result, &info).await?;
7462 let response = result?;
7463 match response.status().as_u16() {
7464 200u16 => ResponseValue::from_response(response).await,
7465 400u16..=499u16 => Err(Error::ErrorResponse(
7466 ResponseValue::from_response(response).await?,
7467 )),
7468 500u16..=599u16 => Err(Error::ErrorResponse(
7469 ResponseValue::from_response(response).await?,
7470 )),
7471 _ => Err(Error::UnexpectedResponse(response)),
7472 }
7473 }
7474
7475 pub async fn operations_copyfile<'a>(
7495 &'a self,
7496 async_: Option<bool>,
7497 group: Option<&'a str>,
7498 dst_fs: &'a str,
7499 dst_remote: &'a str,
7500 src_fs: &'a str,
7501 src_remote: &'a str,
7502 ) -> Result<
7503 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7504 Error<types::RcError>,
7505 > {
7506 let url = format!("{}/operations/copyfile", self.baseurl,);
7507 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7508 header_map.append(
7509 ::reqwest::header::HeaderName::from_static("api-version"),
7510 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7511 );
7512 #[allow(unused_mut)]
7513 let mut request = self
7514 .client
7515 .post(url)
7516 .header(
7517 ::reqwest::header::ACCEPT,
7518 ::reqwest::header::HeaderValue::from_static("application/json"),
7519 )
7520 .query(&progenitor_client::QueryParam::new("_async", &async_))
7521 .query(&progenitor_client::QueryParam::new("_group", &group))
7522 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
7523 .query(&progenitor_client::QueryParam::new(
7524 "dstRemote",
7525 &dst_remote,
7526 ))
7527 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
7528 .query(&progenitor_client::QueryParam::new(
7529 "srcRemote",
7530 &src_remote,
7531 ))
7532 .headers(header_map)
7533 .build()?;
7534 let info = OperationInfo {
7535 operation_id: "operations_copyfile",
7536 };
7537 self.pre(&mut request, &info).await?;
7538 let result = self.exec(request, &info).await;
7539 self.post(&result, &info).await?;
7540 let response = result?;
7541 match response.status().as_u16() {
7542 200u16 => ResponseValue::from_response(response).await,
7543 400u16..=499u16 => Err(Error::ErrorResponse(
7544 ResponseValue::from_response(response).await?,
7545 )),
7546 500u16..=599u16 => Err(Error::ErrorResponse(
7547 ResponseValue::from_response(response).await?,
7548 )),
7549 _ => Err(Error::UnexpectedResponse(response)),
7550 }
7551 }
7552
7553 pub async fn operations_copyurl<'a>(
7571 &'a self,
7572 async_: Option<bool>,
7573 group: Option<&'a str>,
7574 auto_filename: Option<bool>,
7575 fs: &'a str,
7576 remote: &'a str,
7577 url: &'a str,
7578 ) -> Result<
7579 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7580 Error<types::RcError>,
7581 > {
7582 let _url = format!("{}/operations/copyurl", self.baseurl,);
7583 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7584 header_map.append(
7585 ::reqwest::header::HeaderName::from_static("api-version"),
7586 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7587 );
7588 #[allow(unused_mut)]
7589 let mut request = self
7590 .client
7591 .post(_url)
7592 .header(
7593 ::reqwest::header::ACCEPT,
7594 ::reqwest::header::HeaderValue::from_static("application/json"),
7595 )
7596 .query(&progenitor_client::QueryParam::new("_async", &async_))
7597 .query(&progenitor_client::QueryParam::new("_group", &group))
7598 .query(&progenitor_client::QueryParam::new(
7599 "autoFilename",
7600 &auto_filename,
7601 ))
7602 .query(&progenitor_client::QueryParam::new("fs", &fs))
7603 .query(&progenitor_client::QueryParam::new("remote", &remote))
7604 .query(&progenitor_client::QueryParam::new("url", &url))
7605 .headers(header_map)
7606 .build()?;
7607 let info = OperationInfo {
7608 operation_id: "operations_copyurl",
7609 };
7610 self.pre(&mut request, &info).await?;
7611 let result = self.exec(request, &info).await;
7612 self.post(&result, &info).await?;
7613 let response = result?;
7614 match response.status().as_u16() {
7615 200u16 => ResponseValue::from_response(response).await,
7616 400u16..=499u16 => Err(Error::ErrorResponse(
7617 ResponseValue::from_response(response).await?,
7618 )),
7619 500u16..=599u16 => Err(Error::ErrorResponse(
7620 ResponseValue::from_response(response).await?,
7621 )),
7622 _ => Err(Error::UnexpectedResponse(response)),
7623 }
7624 }
7625
7626 pub async fn operations_delete<'a>(
7641 &'a self,
7642 async_: Option<bool>,
7643 config: Option<&'a str>,
7644 filter: Option<&'a str>,
7645 group: Option<&'a str>,
7646 fs: &'a str,
7647 ) -> Result<
7648 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7649 Error<types::RcError>,
7650 > {
7651 let url = format!("{}/operations/delete", self.baseurl,);
7652 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7653 header_map.append(
7654 ::reqwest::header::HeaderName::from_static("api-version"),
7655 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7656 );
7657 #[allow(unused_mut)]
7658 let mut request = self
7659 .client
7660 .post(url)
7661 .header(
7662 ::reqwest::header::ACCEPT,
7663 ::reqwest::header::HeaderValue::from_static("application/json"),
7664 )
7665 .query(&progenitor_client::QueryParam::new("_async", &async_))
7666 .query(&progenitor_client::QueryParam::new("_config", &config))
7667 .query(&progenitor_client::QueryParam::new("_filter", &filter))
7668 .query(&progenitor_client::QueryParam::new("_group", &group))
7669 .query(&progenitor_client::QueryParam::new("fs", &fs))
7670 .headers(header_map)
7671 .build()?;
7672 let info = OperationInfo {
7673 operation_id: "operations_delete",
7674 };
7675 self.pre(&mut request, &info).await?;
7676 let result = self.exec(request, &info).await;
7677 self.post(&result, &info).await?;
7678 let response = result?;
7679 match response.status().as_u16() {
7680 200u16 => ResponseValue::from_response(response).await,
7681 400u16..=499u16 => Err(Error::ErrorResponse(
7682 ResponseValue::from_response(response).await?,
7683 )),
7684 500u16..=599u16 => Err(Error::ErrorResponse(
7685 ResponseValue::from_response(response).await?,
7686 )),
7687 _ => Err(Error::UnexpectedResponse(response)),
7688 }
7689 }
7690
7691 pub async fn operations_deletefile<'a>(
7704 &'a self,
7705 async_: Option<bool>,
7706 group: Option<&'a str>,
7707 fs: &'a str,
7708 remote: &'a str,
7709 ) -> Result<
7710 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7711 Error<types::RcError>,
7712 > {
7713 let url = format!("{}/operations/deletefile", self.baseurl,);
7714 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7715 header_map.append(
7716 ::reqwest::header::HeaderName::from_static("api-version"),
7717 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7718 );
7719 #[allow(unused_mut)]
7720 let mut request = self
7721 .client
7722 .post(url)
7723 .header(
7724 ::reqwest::header::ACCEPT,
7725 ::reqwest::header::HeaderValue::from_static("application/json"),
7726 )
7727 .query(&progenitor_client::QueryParam::new("_async", &async_))
7728 .query(&progenitor_client::QueryParam::new("_group", &group))
7729 .query(&progenitor_client::QueryParam::new("fs", &fs))
7730 .query(&progenitor_client::QueryParam::new("remote", &remote))
7731 .headers(header_map)
7732 .build()?;
7733 let info = OperationInfo {
7734 operation_id: "operations_deletefile",
7735 };
7736 self.pre(&mut request, &info).await?;
7737 let result = self.exec(request, &info).await;
7738 self.post(&result, &info).await?;
7739 let response = result?;
7740 match response.status().as_u16() {
7741 200u16 => ResponseValue::from_response(response).await,
7742 400u16..=499u16 => Err(Error::ErrorResponse(
7743 ResponseValue::from_response(response).await?,
7744 )),
7745 500u16..=599u16 => Err(Error::ErrorResponse(
7746 ResponseValue::from_response(response).await?,
7747 )),
7748 _ => Err(Error::UnexpectedResponse(response)),
7749 }
7750 }
7751
7752 pub async fn operations_fsinfo<'a>(
7765 &'a self,
7766 async_: Option<bool>,
7767 group: Option<&'a str>,
7768 fs: &'a str,
7769 ) -> Result<ResponseValue<types::OperationsFsinfoResponse>, Error<types::RcError>> {
7770 let url = format!("{}/operations/fsinfo", self.baseurl,);
7771 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7772 header_map.append(
7773 ::reqwest::header::HeaderName::from_static("api-version"),
7774 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7775 );
7776 #[allow(unused_mut)]
7777 let mut request = self
7778 .client
7779 .post(url)
7780 .header(
7781 ::reqwest::header::ACCEPT,
7782 ::reqwest::header::HeaderValue::from_static("application/json"),
7783 )
7784 .query(&progenitor_client::QueryParam::new("_async", &async_))
7785 .query(&progenitor_client::QueryParam::new("_group", &group))
7786 .query(&progenitor_client::QueryParam::new("fs", &fs))
7787 .headers(header_map)
7788 .build()?;
7789 let info = OperationInfo {
7790 operation_id: "operations_fsinfo",
7791 };
7792 self.pre(&mut request, &info).await?;
7793 let result = self.exec(request, &info).await;
7794 self.post(&result, &info).await?;
7795 let response = result?;
7796 match response.status().as_u16() {
7797 200u16 => ResponseValue::from_response(response).await,
7798 400u16..=499u16 => Err(Error::ErrorResponse(
7799 ResponseValue::from_response(response).await?,
7800 )),
7801 500u16..=599u16 => Err(Error::ErrorResponse(
7802 ResponseValue::from_response(response).await?,
7803 )),
7804 _ => Err(Error::UnexpectedResponse(response)),
7805 }
7806 }
7807
7808 pub async fn operations_hashsum<'a>(
7827 &'a self,
7828 async_: Option<bool>,
7829 group: Option<&'a str>,
7830 base64: Option<bool>,
7831 download: Option<bool>,
7832 fs: &'a str,
7833 hash_type: &'a str,
7834 ) -> Result<ResponseValue<types::OperationsHashsumResponse>, Error<types::RcError>> {
7835 let url = format!("{}/operations/hashsum", self.baseurl,);
7836 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7837 header_map.append(
7838 ::reqwest::header::HeaderName::from_static("api-version"),
7839 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7840 );
7841 #[allow(unused_mut)]
7842 let mut request = self
7843 .client
7844 .post(url)
7845 .header(
7846 ::reqwest::header::ACCEPT,
7847 ::reqwest::header::HeaderValue::from_static("application/json"),
7848 )
7849 .query(&progenitor_client::QueryParam::new("_async", &async_))
7850 .query(&progenitor_client::QueryParam::new("_group", &group))
7851 .query(&progenitor_client::QueryParam::new("base64", &base64))
7852 .query(&progenitor_client::QueryParam::new("download", &download))
7853 .query(&progenitor_client::QueryParam::new("fs", &fs))
7854 .query(&progenitor_client::QueryParam::new("hashType", &hash_type))
7855 .headers(header_map)
7856 .build()?;
7857 let info = OperationInfo {
7858 operation_id: "operations_hashsum",
7859 };
7860 self.pre(&mut request, &info).await?;
7861 let result = self.exec(request, &info).await;
7862 self.post(&result, &info).await?;
7863 let response = result?;
7864 match response.status().as_u16() {
7865 200u16 => ResponseValue::from_response(response).await,
7866 400u16..=499u16 => Err(Error::ErrorResponse(
7867 ResponseValue::from_response(response).await?,
7868 )),
7869 500u16..=599u16 => Err(Error::ErrorResponse(
7870 ResponseValue::from_response(response).await?,
7871 )),
7872 _ => Err(Error::UnexpectedResponse(response)),
7873 }
7874 }
7875
7876 pub async fn operations_movefile<'a>(
7893 &'a self,
7894 async_: Option<bool>,
7895 group: Option<&'a str>,
7896 dst_fs: &'a str,
7897 dst_remote: &'a str,
7898 src_fs: &'a str,
7899 src_remote: &'a str,
7900 ) -> Result<
7901 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
7902 Error<types::RcError>,
7903 > {
7904 let url = format!("{}/operations/movefile", self.baseurl,);
7905 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7906 header_map.append(
7907 ::reqwest::header::HeaderName::from_static("api-version"),
7908 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7909 );
7910 #[allow(unused_mut)]
7911 let mut request = self
7912 .client
7913 .post(url)
7914 .header(
7915 ::reqwest::header::ACCEPT,
7916 ::reqwest::header::HeaderValue::from_static("application/json"),
7917 )
7918 .query(&progenitor_client::QueryParam::new("_async", &async_))
7919 .query(&progenitor_client::QueryParam::new("_group", &group))
7920 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
7921 .query(&progenitor_client::QueryParam::new(
7922 "dstRemote",
7923 &dst_remote,
7924 ))
7925 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
7926 .query(&progenitor_client::QueryParam::new(
7927 "srcRemote",
7928 &src_remote,
7929 ))
7930 .headers(header_map)
7931 .build()?;
7932 let info = OperationInfo {
7933 operation_id: "operations_movefile",
7934 };
7935 self.pre(&mut request, &info).await?;
7936 let result = self.exec(request, &info).await;
7937 self.post(&result, &info).await?;
7938 let response = result?;
7939 match response.status().as_u16() {
7940 200u16 => ResponseValue::from_response(response).await,
7941 400u16..=499u16 => Err(Error::ErrorResponse(
7942 ResponseValue::from_response(response).await?,
7943 )),
7944 500u16..=599u16 => Err(Error::ErrorResponse(
7945 ResponseValue::from_response(response).await?,
7946 )),
7947 _ => Err(Error::UnexpectedResponse(response)),
7948 }
7949 }
7950
7951 pub async fn operations_publiclink<'a>(
7971 &'a self,
7972 async_: Option<bool>,
7973 group: Option<&'a str>,
7974 expire: Option<&'a str>,
7975 fs: &'a str,
7976 remote: &'a str,
7977 unlink: Option<bool>,
7978 ) -> Result<ResponseValue<types::OperationsPubliclinkResponse>, Error<types::RcError>> {
7979 let url = format!("{}/operations/publiclink", self.baseurl,);
7980 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
7981 header_map.append(
7982 ::reqwest::header::HeaderName::from_static("api-version"),
7983 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
7984 );
7985 #[allow(unused_mut)]
7986 let mut request = self
7987 .client
7988 .post(url)
7989 .header(
7990 ::reqwest::header::ACCEPT,
7991 ::reqwest::header::HeaderValue::from_static("application/json"),
7992 )
7993 .query(&progenitor_client::QueryParam::new("_async", &async_))
7994 .query(&progenitor_client::QueryParam::new("_group", &group))
7995 .query(&progenitor_client::QueryParam::new("expire", &expire))
7996 .query(&progenitor_client::QueryParam::new("fs", &fs))
7997 .query(&progenitor_client::QueryParam::new("remote", &remote))
7998 .query(&progenitor_client::QueryParam::new("unlink", &unlink))
7999 .headers(header_map)
8000 .build()?;
8001 let info = OperationInfo {
8002 operation_id: "operations_publiclink",
8003 };
8004 self.pre(&mut request, &info).await?;
8005 let result = self.exec(request, &info).await;
8006 self.post(&result, &info).await?;
8007 let response = result?;
8008 match response.status().as_u16() {
8009 200u16 => ResponseValue::from_response(response).await,
8010 400u16..=499u16 => Err(Error::ErrorResponse(
8011 ResponseValue::from_response(response).await?,
8012 )),
8013 500u16..=599u16 => Err(Error::ErrorResponse(
8014 ResponseValue::from_response(response).await?,
8015 )),
8016 _ => Err(Error::UnexpectedResponse(response)),
8017 }
8018 }
8019
8020 pub async fn operations_rmdirs<'a>(
8037 &'a self,
8038 async_: Option<bool>,
8039 group: Option<&'a str>,
8040 fs: &'a str,
8041 leave_root: Option<bool>,
8042 remote: &'a str,
8043 ) -> Result<
8044 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8045 Error<types::RcError>,
8046 > {
8047 let url = format!("{}/operations/rmdirs", self.baseurl,);
8048 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8049 header_map.append(
8050 ::reqwest::header::HeaderName::from_static("api-version"),
8051 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8052 );
8053 #[allow(unused_mut)]
8054 let mut request = self
8055 .client
8056 .post(url)
8057 .header(
8058 ::reqwest::header::ACCEPT,
8059 ::reqwest::header::HeaderValue::from_static("application/json"),
8060 )
8061 .query(&progenitor_client::QueryParam::new("_async", &async_))
8062 .query(&progenitor_client::QueryParam::new("_group", &group))
8063 .query(&progenitor_client::QueryParam::new("fs", &fs))
8064 .query(&progenitor_client::QueryParam::new(
8065 "leaveRoot",
8066 &leave_root,
8067 ))
8068 .query(&progenitor_client::QueryParam::new("remote", &remote))
8069 .headers(header_map)
8070 .build()?;
8071 let info = OperationInfo {
8072 operation_id: "operations_rmdirs",
8073 };
8074 self.pre(&mut request, &info).await?;
8075 let result = self.exec(request, &info).await;
8076 self.post(&result, &info).await?;
8077 let response = result?;
8078 match response.status().as_u16() {
8079 200u16 => ResponseValue::from_response(response).await,
8080 400u16..=499u16 => Err(Error::ErrorResponse(
8081 ResponseValue::from_response(response).await?,
8082 )),
8083 500u16..=599u16 => Err(Error::ErrorResponse(
8084 ResponseValue::from_response(response).await?,
8085 )),
8086 _ => Err(Error::UnexpectedResponse(response)),
8087 }
8088 }
8089
8090 pub async fn operations_settier<'a>(
8103 &'a self,
8104 async_: Option<bool>,
8105 group: Option<&'a str>,
8106 fs: &'a str,
8107 ) -> Result<
8108 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8109 Error<types::RcError>,
8110 > {
8111 let url = format!("{}/operations/settier", self.baseurl,);
8112 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8113 header_map.append(
8114 ::reqwest::header::HeaderName::from_static("api-version"),
8115 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8116 );
8117 #[allow(unused_mut)]
8118 let mut request = self
8119 .client
8120 .post(url)
8121 .header(
8122 ::reqwest::header::ACCEPT,
8123 ::reqwest::header::HeaderValue::from_static("application/json"),
8124 )
8125 .query(&progenitor_client::QueryParam::new("_async", &async_))
8126 .query(&progenitor_client::QueryParam::new("_group", &group))
8127 .query(&progenitor_client::QueryParam::new("fs", &fs))
8128 .headers(header_map)
8129 .build()?;
8130 let info = OperationInfo {
8131 operation_id: "operations_settier",
8132 };
8133 self.pre(&mut request, &info).await?;
8134 let result = self.exec(request, &info).await;
8135 self.post(&result, &info).await?;
8136 let response = result?;
8137 match response.status().as_u16() {
8138 200u16 => ResponseValue::from_response(response).await,
8139 400u16..=499u16 => Err(Error::ErrorResponse(
8140 ResponseValue::from_response(response).await?,
8141 )),
8142 500u16..=599u16 => Err(Error::ErrorResponse(
8143 ResponseValue::from_response(response).await?,
8144 )),
8145 _ => Err(Error::UnexpectedResponse(response)),
8146 }
8147 }
8148
8149 pub async fn operations_settierfile<'a>(
8164 &'a self,
8165 async_: Option<bool>,
8166 group: Option<&'a str>,
8167 fs: &'a str,
8168 remote: &'a str,
8169 ) -> Result<
8170 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8171 Error<types::RcError>,
8172 > {
8173 let url = format!("{}/operations/settierfile", self.baseurl,);
8174 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8175 header_map.append(
8176 ::reqwest::header::HeaderName::from_static("api-version"),
8177 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8178 );
8179 #[allow(unused_mut)]
8180 let mut request = self
8181 .client
8182 .post(url)
8183 .header(
8184 ::reqwest::header::ACCEPT,
8185 ::reqwest::header::HeaderValue::from_static("application/json"),
8186 )
8187 .query(&progenitor_client::QueryParam::new("_async", &async_))
8188 .query(&progenitor_client::QueryParam::new("_group", &group))
8189 .query(&progenitor_client::QueryParam::new("fs", &fs))
8190 .query(&progenitor_client::QueryParam::new("remote", &remote))
8191 .headers(header_map)
8192 .build()?;
8193 let info = OperationInfo {
8194 operation_id: "operations_settierfile",
8195 };
8196 self.pre(&mut request, &info).await?;
8197 let result = self.exec(request, &info).await;
8198 self.post(&result, &info).await?;
8199 let response = result?;
8200 match response.status().as_u16() {
8201 200u16 => ResponseValue::from_response(response).await,
8202 400u16..=499u16 => Err(Error::ErrorResponse(
8203 ResponseValue::from_response(response).await?,
8204 )),
8205 500u16..=599u16 => Err(Error::ErrorResponse(
8206 ResponseValue::from_response(response).await?,
8207 )),
8208 _ => Err(Error::UnexpectedResponse(response)),
8209 }
8210 }
8211
8212 pub async fn operations_size<'a>(
8225 &'a self,
8226 async_: Option<bool>,
8227 group: Option<&'a str>,
8228 fs: &'a str,
8229 ) -> Result<ResponseValue<types::OperationsSizeResponse>, Error<types::RcError>> {
8230 let url = format!("{}/operations/size", self.baseurl,);
8231 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8232 header_map.append(
8233 ::reqwest::header::HeaderName::from_static("api-version"),
8234 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8235 );
8236 #[allow(unused_mut)]
8237 let mut request = self
8238 .client
8239 .post(url)
8240 .header(
8241 ::reqwest::header::ACCEPT,
8242 ::reqwest::header::HeaderValue::from_static("application/json"),
8243 )
8244 .query(&progenitor_client::QueryParam::new("_async", &async_))
8245 .query(&progenitor_client::QueryParam::new("_group", &group))
8246 .query(&progenitor_client::QueryParam::new("fs", &fs))
8247 .headers(header_map)
8248 .build()?;
8249 let info = OperationInfo {
8250 operation_id: "operations_size",
8251 };
8252 self.pre(&mut request, &info).await?;
8253 let result = self.exec(request, &info).await;
8254 self.post(&result, &info).await?;
8255 let response = result?;
8256 match response.status().as_u16() {
8257 200u16 => ResponseValue::from_response(response).await,
8258 400u16..=499u16 => Err(Error::ErrorResponse(
8259 ResponseValue::from_response(response).await?,
8260 )),
8261 500u16..=599u16 => Err(Error::ErrorResponse(
8262 ResponseValue::from_response(response).await?,
8263 )),
8264 _ => Err(Error::UnexpectedResponse(response)),
8265 }
8266 }
8267
8268 pub async fn core_bwlimit<'a>(
8282 &'a self,
8283 async_: Option<bool>,
8284 group: Option<&'a str>,
8285 rate: Option<&'a str>,
8286 ) -> Result<ResponseValue<types::CoreBwlimitResponse>, Error<types::RcError>> {
8287 let url = format!("{}/core/bwlimit", self.baseurl,);
8288 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8289 header_map.append(
8290 ::reqwest::header::HeaderName::from_static("api-version"),
8291 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8292 );
8293 #[allow(unused_mut)]
8294 let mut request = self
8295 .client
8296 .post(url)
8297 .header(
8298 ::reqwest::header::ACCEPT,
8299 ::reqwest::header::HeaderValue::from_static("application/json"),
8300 )
8301 .query(&progenitor_client::QueryParam::new("_async", &async_))
8302 .query(&progenitor_client::QueryParam::new("_group", &group))
8303 .query(&progenitor_client::QueryParam::new("rate", &rate))
8304 .headers(header_map)
8305 .build()?;
8306 let info = OperationInfo {
8307 operation_id: "core_bwlimit",
8308 };
8309 self.pre(&mut request, &info).await?;
8310 let result = self.exec(request, &info).await;
8311 self.post(&result, &info).await?;
8312 let response = result?;
8313 match response.status().as_u16() {
8314 200u16 => ResponseValue::from_response(response).await,
8315 400u16..=499u16 => Err(Error::ErrorResponse(
8316 ResponseValue::from_response(response).await?,
8317 )),
8318 500u16..=599u16 => Err(Error::ErrorResponse(
8319 ResponseValue::from_response(response).await?,
8320 )),
8321 _ => Err(Error::UnexpectedResponse(response)),
8322 }
8323 }
8324
8325 pub async fn core_command<'a>(
8345 &'a self,
8346 async_: Option<bool>,
8347 group: Option<&'a str>,
8348 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
8349 command: &'a str,
8350 opt: Option<&'a str>,
8351 return_type: Option<&'a str>,
8352 ) -> Result<ResponseValue<types::CoreCommandResponse>, Error<types::RcError>> {
8353 let url = format!("{}/core/command", self.baseurl,);
8354 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8355 header_map.append(
8356 ::reqwest::header::HeaderName::from_static("api-version"),
8357 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8358 );
8359 #[allow(unused_mut)]
8360 let mut request = self
8361 .client
8362 .post(url)
8363 .header(
8364 ::reqwest::header::ACCEPT,
8365 ::reqwest::header::HeaderValue::from_static("application/json"),
8366 )
8367 .query(&progenitor_client::QueryParam::new("_async", &async_))
8368 .query(&progenitor_client::QueryParam::new("_group", &group))
8369 .query(&progenitor_client::QueryParam::new("arg", &arg))
8370 .query(&progenitor_client::QueryParam::new("command", &command))
8371 .query(&progenitor_client::QueryParam::new("opt", &opt))
8372 .query(&progenitor_client::QueryParam::new(
8373 "returnType",
8374 &return_type,
8375 ))
8376 .headers(header_map)
8377 .build()?;
8378 let info = OperationInfo {
8379 operation_id: "core_command",
8380 };
8381 self.pre(&mut request, &info).await?;
8382 let result = self.exec(request, &info).await;
8383 self.post(&result, &info).await?;
8384 let response = result?;
8385 match response.status().as_u16() {
8386 200u16 => ResponseValue::from_response(response).await,
8387 400u16..=499u16 => Err(Error::ErrorResponse(
8388 ResponseValue::from_response(response).await?,
8389 )),
8390 500u16..=599u16 => Err(Error::ErrorResponse(
8391 ResponseValue::from_response(response).await?,
8392 )),
8393 _ => Err(Error::UnexpectedResponse(response)),
8394 }
8395 }
8396
8397 pub async fn core_du<'a>(
8411 &'a self,
8412 async_: Option<bool>,
8413 group: Option<&'a str>,
8414 dir: Option<&'a str>,
8415 ) -> Result<ResponseValue<types::CoreDuResponse>, Error<types::RcError>> {
8416 let url = format!("{}/core/du", self.baseurl,);
8417 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8418 header_map.append(
8419 ::reqwest::header::HeaderName::from_static("api-version"),
8420 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8421 );
8422 #[allow(unused_mut)]
8423 let mut request = self
8424 .client
8425 .post(url)
8426 .header(
8427 ::reqwest::header::ACCEPT,
8428 ::reqwest::header::HeaderValue::from_static("application/json"),
8429 )
8430 .query(&progenitor_client::QueryParam::new("_async", &async_))
8431 .query(&progenitor_client::QueryParam::new("_group", &group))
8432 .query(&progenitor_client::QueryParam::new("dir", &dir))
8433 .headers(header_map)
8434 .build()?;
8435 let info = OperationInfo {
8436 operation_id: "core_du",
8437 };
8438 self.pre(&mut request, &info).await?;
8439 let result = self.exec(request, &info).await;
8440 self.post(&result, &info).await?;
8441 let response = result?;
8442 match response.status().as_u16() {
8443 200u16 => ResponseValue::from_response(response).await,
8444 400u16..=499u16 => Err(Error::ErrorResponse(
8445 ResponseValue::from_response(response).await?,
8446 )),
8447 500u16..=599u16 => Err(Error::ErrorResponse(
8448 ResponseValue::from_response(response).await?,
8449 )),
8450 _ => Err(Error::UnexpectedResponse(response)),
8451 }
8452 }
8453
8454 pub async fn core_gc<'a>(
8465 &'a self,
8466 async_: Option<bool>,
8467 group: Option<&'a str>,
8468 ) -> Result<
8469 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8470 Error<types::RcError>,
8471 > {
8472 let url = format!("{}/core/gc", self.baseurl,);
8473 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8474 header_map.append(
8475 ::reqwest::header::HeaderName::from_static("api-version"),
8476 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8477 );
8478 #[allow(unused_mut)]
8479 let mut request = self
8480 .client
8481 .post(url)
8482 .header(
8483 ::reqwest::header::ACCEPT,
8484 ::reqwest::header::HeaderValue::from_static("application/json"),
8485 )
8486 .query(&progenitor_client::QueryParam::new("_async", &async_))
8487 .query(&progenitor_client::QueryParam::new("_group", &group))
8488 .headers(header_map)
8489 .build()?;
8490 let info = OperationInfo {
8491 operation_id: "core_gc",
8492 };
8493 self.pre(&mut request, &info).await?;
8494 let result = self.exec(request, &info).await;
8495 self.post(&result, &info).await?;
8496 let response = result?;
8497 match response.status().as_u16() {
8498 200u16 => ResponseValue::from_response(response).await,
8499 400u16..=499u16 => Err(Error::ErrorResponse(
8500 ResponseValue::from_response(response).await?,
8501 )),
8502 500u16..=599u16 => Err(Error::ErrorResponse(
8503 ResponseValue::from_response(response).await?,
8504 )),
8505 _ => Err(Error::UnexpectedResponse(response)),
8506 }
8507 }
8508
8509 pub async fn core_group_list<'a>(
8520 &'a self,
8521 async_: Option<bool>,
8522 group: Option<&'a str>,
8523 ) -> Result<ResponseValue<types::CoreGroupListResponse>, Error<types::RcError>> {
8524 let url = format!("{}/core/group-list", self.baseurl,);
8525 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8526 header_map.append(
8527 ::reqwest::header::HeaderName::from_static("api-version"),
8528 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8529 );
8530 #[allow(unused_mut)]
8531 let mut request = self
8532 .client
8533 .post(url)
8534 .header(
8535 ::reqwest::header::ACCEPT,
8536 ::reqwest::header::HeaderValue::from_static("application/json"),
8537 )
8538 .query(&progenitor_client::QueryParam::new("_async", &async_))
8539 .query(&progenitor_client::QueryParam::new("_group", &group))
8540 .headers(header_map)
8541 .build()?;
8542 let info = OperationInfo {
8543 operation_id: "core_group_list",
8544 };
8545 self.pre(&mut request, &info).await?;
8546 let result = self.exec(request, &info).await;
8547 self.post(&result, &info).await?;
8548 let response = result?;
8549 match response.status().as_u16() {
8550 200u16 => ResponseValue::from_response(response).await,
8551 400u16..=499u16 => Err(Error::ErrorResponse(
8552 ResponseValue::from_response(response).await?,
8553 )),
8554 500u16..=599u16 => Err(Error::ErrorResponse(
8555 ResponseValue::from_response(response).await?,
8556 )),
8557 _ => Err(Error::UnexpectedResponse(response)),
8558 }
8559 }
8560
8561 pub async fn core_memstats<'a>(
8572 &'a self,
8573 async_: Option<bool>,
8574 group: Option<&'a str>,
8575 ) -> Result<
8576 ResponseValue<::std::collections::HashMap<::std::string::String, f64>>,
8577 Error<types::RcError>,
8578 > {
8579 let url = format!("{}/core/memstats", self.baseurl,);
8580 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8581 header_map.append(
8582 ::reqwest::header::HeaderName::from_static("api-version"),
8583 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8584 );
8585 #[allow(unused_mut)]
8586 let mut request = self
8587 .client
8588 .post(url)
8589 .header(
8590 ::reqwest::header::ACCEPT,
8591 ::reqwest::header::HeaderValue::from_static("application/json"),
8592 )
8593 .query(&progenitor_client::QueryParam::new("_async", &async_))
8594 .query(&progenitor_client::QueryParam::new("_group", &group))
8595 .headers(header_map)
8596 .build()?;
8597 let info = OperationInfo {
8598 operation_id: "core_memstats",
8599 };
8600 self.pre(&mut request, &info).await?;
8601 let result = self.exec(request, &info).await;
8602 self.post(&result, &info).await?;
8603 let response = result?;
8604 match response.status().as_u16() {
8605 200u16 => ResponseValue::from_response(response).await,
8606 400u16..=499u16 => Err(Error::ErrorResponse(
8607 ResponseValue::from_response(response).await?,
8608 )),
8609 500u16..=599u16 => Err(Error::ErrorResponse(
8610 ResponseValue::from_response(response).await?,
8611 )),
8612 _ => Err(Error::UnexpectedResponse(response)),
8613 }
8614 }
8615
8616 pub async fn core_obscure<'a>(
8628 &'a self,
8629 async_: Option<bool>,
8630 group: Option<&'a str>,
8631 clear: &'a str,
8632 ) -> Result<ResponseValue<types::CoreObscureResponse>, Error<types::RcError>> {
8633 let url = format!("{}/core/obscure", self.baseurl,);
8634 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8635 header_map.append(
8636 ::reqwest::header::HeaderName::from_static("api-version"),
8637 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8638 );
8639 #[allow(unused_mut)]
8640 let mut request = self
8641 .client
8642 .post(url)
8643 .header(
8644 ::reqwest::header::ACCEPT,
8645 ::reqwest::header::HeaderValue::from_static("application/json"),
8646 )
8647 .query(&progenitor_client::QueryParam::new("_async", &async_))
8648 .query(&progenitor_client::QueryParam::new("_group", &group))
8649 .query(&progenitor_client::QueryParam::new("clear", &clear))
8650 .headers(header_map)
8651 .build()?;
8652 let info = OperationInfo {
8653 operation_id: "core_obscure",
8654 };
8655 self.pre(&mut request, &info).await?;
8656 let result = self.exec(request, &info).await;
8657 self.post(&result, &info).await?;
8658 let response = result?;
8659 match response.status().as_u16() {
8660 200u16 => ResponseValue::from_response(response).await,
8661 400u16..=499u16 => Err(Error::ErrorResponse(
8662 ResponseValue::from_response(response).await?,
8663 )),
8664 500u16..=599u16 => Err(Error::ErrorResponse(
8665 ResponseValue::from_response(response).await?,
8666 )),
8667 _ => Err(Error::UnexpectedResponse(response)),
8668 }
8669 }
8670
8671 pub async fn core_pid<'a>(
8682 &'a self,
8683 async_: Option<bool>,
8684 group: Option<&'a str>,
8685 ) -> Result<ResponseValue<types::CorePidResponse>, Error<types::RcError>> {
8686 let url = format!("{}/core/pid", self.baseurl,);
8687 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8688 header_map.append(
8689 ::reqwest::header::HeaderName::from_static("api-version"),
8690 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8691 );
8692 #[allow(unused_mut)]
8693 let mut request = self
8694 .client
8695 .post(url)
8696 .header(
8697 ::reqwest::header::ACCEPT,
8698 ::reqwest::header::HeaderValue::from_static("application/json"),
8699 )
8700 .query(&progenitor_client::QueryParam::new("_async", &async_))
8701 .query(&progenitor_client::QueryParam::new("_group", &group))
8702 .headers(header_map)
8703 .build()?;
8704 let info = OperationInfo {
8705 operation_id: "core_pid",
8706 };
8707 self.pre(&mut request, &info).await?;
8708 let result = self.exec(request, &info).await;
8709 self.post(&result, &info).await?;
8710 let response = result?;
8711 match response.status().as_u16() {
8712 200u16 => ResponseValue::from_response(response).await,
8713 400u16..=499u16 => Err(Error::ErrorResponse(
8714 ResponseValue::from_response(response).await?,
8715 )),
8716 500u16..=599u16 => Err(Error::ErrorResponse(
8717 ResponseValue::from_response(response).await?,
8718 )),
8719 _ => Err(Error::UnexpectedResponse(response)),
8720 }
8721 }
8722
8723 pub async fn core_quit<'a>(
8736 &'a self,
8737 async_: Option<bool>,
8738 group: Option<&'a str>,
8739 exit_code: Option<i64>,
8740 ) -> Result<
8741 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8742 Error<types::RcError>,
8743 > {
8744 let url = format!("{}/core/quit", self.baseurl,);
8745 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8746 header_map.append(
8747 ::reqwest::header::HeaderName::from_static("api-version"),
8748 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8749 );
8750 #[allow(unused_mut)]
8751 let mut request = self
8752 .client
8753 .post(url)
8754 .header(
8755 ::reqwest::header::ACCEPT,
8756 ::reqwest::header::HeaderValue::from_static("application/json"),
8757 )
8758 .query(&progenitor_client::QueryParam::new("_async", &async_))
8759 .query(&progenitor_client::QueryParam::new("_group", &group))
8760 .query(&progenitor_client::QueryParam::new("exitCode", &exit_code))
8761 .headers(header_map)
8762 .build()?;
8763 let info = OperationInfo {
8764 operation_id: "core_quit",
8765 };
8766 self.pre(&mut request, &info).await?;
8767 let result = self.exec(request, &info).await;
8768 self.post(&result, &info).await?;
8769 let response = result?;
8770 match response.status().as_u16() {
8771 200u16 => ResponseValue::from_response(response).await,
8772 400u16..=499u16 => Err(Error::ErrorResponse(
8773 ResponseValue::from_response(response).await?,
8774 )),
8775 500u16..=599u16 => Err(Error::ErrorResponse(
8776 ResponseValue::from_response(response).await?,
8777 )),
8778 _ => Err(Error::UnexpectedResponse(response)),
8779 }
8780 }
8781
8782 pub async fn core_stats_delete<'a>(
8794 &'a self,
8795 async_: Option<bool>,
8796 _group: Option<&'a str>,
8797 group: &'a str
8798 ) -> Result<
8799 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8800 Error<types::RcError>,
8801 > {
8802 let url = format!("{}/core/stats-delete", self.baseurl,);
8803 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8804 header_map.append(
8805 ::reqwest::header::HeaderName::from_static("api-version"),
8806 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8807 );
8808 #[allow(unused_mut)]
8809 let mut request = self
8810 .client
8811 .post(url)
8812 .header(
8813 ::reqwest::header::ACCEPT,
8814 ::reqwest::header::HeaderValue::from_static("application/json"),
8815 )
8816 .query(&progenitor_client::QueryParam::new("_async", &async_))
8817 .query(&progenitor_client::QueryParam::new("_group", &group))
8818 .query(&progenitor_client::QueryParam::new("group", &group))
8819 .headers(header_map)
8820 .build()?;
8821 let info = OperationInfo {
8822 operation_id: "core_stats_delete",
8823 };
8824 self.pre(&mut request, &info).await?;
8825 let result = self.exec(request, &info).await;
8826 self.post(&result, &info).await?;
8827 let response = result?;
8828 match response.status().as_u16() {
8829 200u16 => ResponseValue::from_response(response).await,
8830 400u16..=499u16 => Err(Error::ErrorResponse(
8831 ResponseValue::from_response(response).await?,
8832 )),
8833 500u16..=599u16 => Err(Error::ErrorResponse(
8834 ResponseValue::from_response(response).await?,
8835 )),
8836 _ => Err(Error::UnexpectedResponse(response)),
8837 }
8838 }
8839
8840 pub async fn core_stats_reset<'a>(
8854 &'a self,
8855 async_: Option<bool>,
8856 _group: Option<&'a str>,
8857 group: Option<&'a str>
8858 ) -> Result<
8859 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8860 Error<types::RcError>,
8861 > {
8862 let url = format!("{}/core/stats-reset", self.baseurl,);
8863 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8864 header_map.append(
8865 ::reqwest::header::HeaderName::from_static("api-version"),
8866 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8867 );
8868 #[allow(unused_mut)]
8869 let mut request = self
8870 .client
8871 .post(url)
8872 .header(
8873 ::reqwest::header::ACCEPT,
8874 ::reqwest::header::HeaderValue::from_static("application/json"),
8875 )
8876 .query(&progenitor_client::QueryParam::new("_async", &async_))
8877 .query(&progenitor_client::QueryParam::new("_group", &group))
8878 .query(&progenitor_client::QueryParam::new("group", &group))
8879 .headers(header_map)
8880 .build()?;
8881 let info = OperationInfo {
8882 operation_id: "core_stats_reset",
8883 };
8884 self.pre(&mut request, &info).await?;
8885 let result = self.exec(request, &info).await;
8886 self.post(&result, &info).await?;
8887 let response = result?;
8888 match response.status().as_u16() {
8889 200u16 => ResponseValue::from_response(response).await,
8890 400u16..=499u16 => Err(Error::ErrorResponse(
8891 ResponseValue::from_response(response).await?,
8892 )),
8893 500u16..=599u16 => Err(Error::ErrorResponse(
8894 ResponseValue::from_response(response).await?,
8895 )),
8896 _ => Err(Error::UnexpectedResponse(response)),
8897 }
8898 }
8899
8900 pub async fn core_transferred<'a>(
8914 &'a self,
8915 async_: Option<bool>,
8916 _group: Option<&'a str>,
8917 group: Option<&'a str>
8918 ) -> Result<ResponseValue<types::CoreTransferredResponse>, Error<types::RcError>> {
8919 let url = format!("{}/core/transferred", self.baseurl,);
8920 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8921 header_map.append(
8922 ::reqwest::header::HeaderName::from_static("api-version"),
8923 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8924 );
8925 #[allow(unused_mut)]
8926 let mut request = self
8927 .client
8928 .post(url)
8929 .header(
8930 ::reqwest::header::ACCEPT,
8931 ::reqwest::header::HeaderValue::from_static("application/json"),
8932 )
8933 .query(&progenitor_client::QueryParam::new("_async", &async_))
8934 .query(&progenitor_client::QueryParam::new("_group", &group))
8935 .query(&progenitor_client::QueryParam::new("group", &group))
8936 .headers(header_map)
8937 .build()?;
8938 let info = OperationInfo {
8939 operation_id: "core_transferred",
8940 };
8941 self.pre(&mut request, &info).await?;
8942 let result = self.exec(request, &info).await;
8943 self.post(&result, &info).await?;
8944 let response = result?;
8945 match response.status().as_u16() {
8946 200u16 => ResponseValue::from_response(response).await,
8947 400u16..=499u16 => Err(Error::ErrorResponse(
8948 ResponseValue::from_response(response).await?,
8949 )),
8950 500u16..=599u16 => Err(Error::ErrorResponse(
8951 ResponseValue::from_response(response).await?,
8952 )),
8953 _ => Err(Error::UnexpectedResponse(response)),
8954 }
8955 }
8956
8957 pub async fn debug_set_block_profile_rate<'a>(
8966 &'a self,
8967 async_: Option<bool>,
8968 group: Option<&'a str>,
8969 rate: i64,
8970 ) -> Result<
8971 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
8972 Error<types::RcError>,
8973 > {
8974 let url = format!("{}/debug/set-block-profile-rate", self.baseurl,);
8975 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
8976 header_map.append(
8977 ::reqwest::header::HeaderName::from_static("api-version"),
8978 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
8979 );
8980 #[allow(unused_mut)]
8981 let mut request = self
8982 .client
8983 .post(url)
8984 .header(
8985 ::reqwest::header::ACCEPT,
8986 ::reqwest::header::HeaderValue::from_static("application/json"),
8987 )
8988 .query(&progenitor_client::QueryParam::new("_async", &async_))
8989 .query(&progenitor_client::QueryParam::new("_group", &group))
8990 .query(&progenitor_client::QueryParam::new("rate", &rate))
8991 .headers(header_map)
8992 .build()?;
8993 let info = OperationInfo {
8994 operation_id: "debug_set_block_profile_rate",
8995 };
8996 self.pre(&mut request, &info).await?;
8997 let result = self.exec(request, &info).await;
8998 self.post(&result, &info).await?;
8999 let response = result?;
9000 match response.status().as_u16() {
9001 200u16 => ResponseValue::from_response(response).await,
9002 400u16..=499u16 => Err(Error::ErrorResponse(
9003 ResponseValue::from_response(response).await?,
9004 )),
9005 500u16..=599u16 => Err(Error::ErrorResponse(
9006 ResponseValue::from_response(response).await?,
9007 )),
9008 _ => Err(Error::UnexpectedResponse(response)),
9009 }
9010 }
9011
9012 pub async fn debug_set_gc_percent<'a>(
9021 &'a self,
9022 async_: Option<bool>,
9023 group: Option<&'a str>,
9024 gc_percent: i64,
9025 ) -> Result<ResponseValue<types::DebugSetGcPercentResponse>, Error<types::RcError>> {
9026 let url = format!("{}/debug/set-gc-percent", self.baseurl,);
9027 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9028 header_map.append(
9029 ::reqwest::header::HeaderName::from_static("api-version"),
9030 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9031 );
9032 #[allow(unused_mut)]
9033 let mut request = self
9034 .client
9035 .post(url)
9036 .header(
9037 ::reqwest::header::ACCEPT,
9038 ::reqwest::header::HeaderValue::from_static("application/json"),
9039 )
9040 .query(&progenitor_client::QueryParam::new("_async", &async_))
9041 .query(&progenitor_client::QueryParam::new("_group", &group))
9042 .query(&progenitor_client::QueryParam::new(
9043 "gc-percent",
9044 &gc_percent,
9045 ))
9046 .headers(header_map)
9047 .build()?;
9048 let info = OperationInfo {
9049 operation_id: "debug_set_gc_percent",
9050 };
9051 self.pre(&mut request, &info).await?;
9052 let result = self.exec(request, &info).await;
9053 self.post(&result, &info).await?;
9054 let response = result?;
9055 match response.status().as_u16() {
9056 200u16 => ResponseValue::from_response(response).await,
9057 400u16..=499u16 => Err(Error::ErrorResponse(
9058 ResponseValue::from_response(response).await?,
9059 )),
9060 500u16..=599u16 => Err(Error::ErrorResponse(
9061 ResponseValue::from_response(response).await?,
9062 )),
9063 _ => Err(Error::UnexpectedResponse(response)),
9064 }
9065 }
9066
9067 pub async fn debug_set_mutex_profile_fraction<'a>(
9076 &'a self,
9077 async_: Option<bool>,
9078 group: Option<&'a str>,
9079 rate: i64,
9080 ) -> Result<ResponseValue<types::DebugSetMutexProfileFractionResponse>, Error<types::RcError>>
9081 {
9082 let url = format!("{}/debug/set-mutex-profile-fraction", self.baseurl,);
9083 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9084 header_map.append(
9085 ::reqwest::header::HeaderName::from_static("api-version"),
9086 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9087 );
9088 #[allow(unused_mut)]
9089 let mut request = self
9090 .client
9091 .post(url)
9092 .header(
9093 ::reqwest::header::ACCEPT,
9094 ::reqwest::header::HeaderValue::from_static("application/json"),
9095 )
9096 .query(&progenitor_client::QueryParam::new("_async", &async_))
9097 .query(&progenitor_client::QueryParam::new("_group", &group))
9098 .query(&progenitor_client::QueryParam::new("rate", &rate))
9099 .headers(header_map)
9100 .build()?;
9101 let info = OperationInfo {
9102 operation_id: "debug_set_mutex_profile_fraction",
9103 };
9104 self.pre(&mut request, &info).await?;
9105 let result = self.exec(request, &info).await;
9106 self.post(&result, &info).await?;
9107 let response = result?;
9108 match response.status().as_u16() {
9109 200u16 => ResponseValue::from_response(response).await,
9110 400u16..=499u16 => Err(Error::ErrorResponse(
9111 ResponseValue::from_response(response).await?,
9112 )),
9113 500u16..=599u16 => Err(Error::ErrorResponse(
9114 ResponseValue::from_response(response).await?,
9115 )),
9116 _ => Err(Error::UnexpectedResponse(response)),
9117 }
9118 }
9119
9120 pub async fn debug_set_soft_memory_limit<'a>(
9128 &'a self,
9129 async_: Option<bool>,
9130 group: Option<&'a str>,
9131 mem_limit: i64,
9132 ) -> Result<ResponseValue<types::DebugSetSoftMemoryLimitResponse>, Error<types::RcError>> {
9133 let url = format!("{}/debug/set-soft-memory-limit", self.baseurl,);
9134 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9135 header_map.append(
9136 ::reqwest::header::HeaderName::from_static("api-version"),
9137 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9138 );
9139 #[allow(unused_mut)]
9140 let mut request = self
9141 .client
9142 .post(url)
9143 .header(
9144 ::reqwest::header::ACCEPT,
9145 ::reqwest::header::HeaderValue::from_static("application/json"),
9146 )
9147 .query(&progenitor_client::QueryParam::new("_async", &async_))
9148 .query(&progenitor_client::QueryParam::new("_group", &group))
9149 .query(&progenitor_client::QueryParam::new("mem-limit", &mem_limit))
9150 .headers(header_map)
9151 .build()?;
9152 let info = OperationInfo {
9153 operation_id: "debug_set_soft_memory_limit",
9154 };
9155 self.pre(&mut request, &info).await?;
9156 let result = self.exec(request, &info).await;
9157 self.post(&result, &info).await?;
9158 let response = result?;
9159 match response.status().as_u16() {
9160 200u16 => ResponseValue::from_response(response).await,
9161 400u16..=499u16 => Err(Error::ErrorResponse(
9162 ResponseValue::from_response(response).await?,
9163 )),
9164 500u16..=599u16 => Err(Error::ErrorResponse(
9165 ResponseValue::from_response(response).await?,
9166 )),
9167 _ => Err(Error::UnexpectedResponse(response)),
9168 }
9169 }
9170
9171 pub async fn fscache_clear<'a>(
9178 &'a self,
9179 async_: Option<bool>,
9180 group: Option<&'a str>,
9181 ) -> Result<
9182 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9183 Error<types::RcError>,
9184 > {
9185 let url = format!("{}/fscache/clear", self.baseurl,);
9186 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9187 header_map.append(
9188 ::reqwest::header::HeaderName::from_static("api-version"),
9189 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9190 );
9191 #[allow(unused_mut)]
9192 let mut request = self
9193 .client
9194 .post(url)
9195 .header(
9196 ::reqwest::header::ACCEPT,
9197 ::reqwest::header::HeaderValue::from_static("application/json"),
9198 )
9199 .query(&progenitor_client::QueryParam::new("_async", &async_))
9200 .query(&progenitor_client::QueryParam::new("_group", &group))
9201 .headers(header_map)
9202 .build()?;
9203 let info = OperationInfo {
9204 operation_id: "fscache_clear",
9205 };
9206 self.pre(&mut request, &info).await?;
9207 let result = self.exec(request, &info).await;
9208 self.post(&result, &info).await?;
9209 let response = result?;
9210 match response.status().as_u16() {
9211 200u16 => ResponseValue::from_response(response).await,
9212 400u16..=499u16 => Err(Error::ErrorResponse(
9213 ResponseValue::from_response(response).await?,
9214 )),
9215 500u16..=599u16 => Err(Error::ErrorResponse(
9216 ResponseValue::from_response(response).await?,
9217 )),
9218 _ => Err(Error::UnexpectedResponse(response)),
9219 }
9220 }
9221
9222 pub async fn fscache_entries<'a>(
9229 &'a self,
9230 async_: Option<bool>,
9231 group: Option<&'a str>,
9232 ) -> Result<ResponseValue<types::FscacheEntriesResponse>, Error<types::RcError>> {
9233 let url = format!("{}/fscache/entries", self.baseurl,);
9234 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9235 header_map.append(
9236 ::reqwest::header::HeaderName::from_static("api-version"),
9237 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9238 );
9239 #[allow(unused_mut)]
9240 let mut request = self
9241 .client
9242 .post(url)
9243 .header(
9244 ::reqwest::header::ACCEPT,
9245 ::reqwest::header::HeaderValue::from_static("application/json"),
9246 )
9247 .query(&progenitor_client::QueryParam::new("_async", &async_))
9248 .query(&progenitor_client::QueryParam::new("_group", &group))
9249 .headers(header_map)
9250 .build()?;
9251 let info = OperationInfo {
9252 operation_id: "fscache_entries",
9253 };
9254 self.pre(&mut request, &info).await?;
9255 let result = self.exec(request, &info).await;
9256 self.post(&result, &info).await?;
9257 let response = result?;
9258 match response.status().as_u16() {
9259 200u16 => ResponseValue::from_response(response).await,
9260 400u16..=499u16 => Err(Error::ErrorResponse(
9261 ResponseValue::from_response(response).await?,
9262 )),
9263 500u16..=599u16 => Err(Error::ErrorResponse(
9264 ResponseValue::from_response(response).await?,
9265 )),
9266 _ => Err(Error::UnexpectedResponse(response)),
9267 }
9268 }
9269
9270 pub async fn mount_listmounts<'a>(
9277 &'a self,
9278 async_: Option<bool>,
9279 group: Option<&'a str>,
9280 ) -> Result<ResponseValue<types::MountListmountsResponse>, Error<types::RcError>> {
9281 let url = format!("{}/mount/listmounts", self.baseurl,);
9282 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9283 header_map.append(
9284 ::reqwest::header::HeaderName::from_static("api-version"),
9285 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9286 );
9287 #[allow(unused_mut)]
9288 let mut request = self
9289 .client
9290 .post(url)
9291 .header(
9292 ::reqwest::header::ACCEPT,
9293 ::reqwest::header::HeaderValue::from_static("application/json"),
9294 )
9295 .query(&progenitor_client::QueryParam::new("_async", &async_))
9296 .query(&progenitor_client::QueryParam::new("_group", &group))
9297 .headers(header_map)
9298 .build()?;
9299 let info = OperationInfo {
9300 operation_id: "mount_listmounts",
9301 };
9302 self.pre(&mut request, &info).await?;
9303 let result = self.exec(request, &info).await;
9304 self.post(&result, &info).await?;
9305 let response = result?;
9306 match response.status().as_u16() {
9307 200u16 => ResponseValue::from_response(response).await,
9308 400u16..=499u16 => Err(Error::ErrorResponse(
9309 ResponseValue::from_response(response).await?,
9310 )),
9311 500u16..=599u16 => Err(Error::ErrorResponse(
9312 ResponseValue::from_response(response).await?,
9313 )),
9314 _ => Err(Error::UnexpectedResponse(response)),
9315 }
9316 }
9317
9318 pub async fn mount_mount<'a>(
9335 &'a self,
9336 async_: Option<bool>,
9337 config: Option<&'a str>,
9338 filter: Option<&'a str>,
9339 group: Option<&'a str>,
9340 fs: &'a str,
9341 mount_opt: Option<&'a str>,
9342 mount_point: &'a str,
9343 mount_type: Option<&'a str>,
9344 vfs_opt: Option<&'a str>,
9345 ) -> Result<
9346 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9347 Error<types::RcError>,
9348 > {
9349 let url = format!("{}/mount/mount", self.baseurl,);
9350 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9351 header_map.append(
9352 ::reqwest::header::HeaderName::from_static("api-version"),
9353 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9354 );
9355 #[allow(unused_mut)]
9356 let mut request = self
9357 .client
9358 .post(url)
9359 .header(
9360 ::reqwest::header::ACCEPT,
9361 ::reqwest::header::HeaderValue::from_static("application/json"),
9362 )
9363 .query(&progenitor_client::QueryParam::new("_async", &async_))
9364 .query(&progenitor_client::QueryParam::new("_config", &config))
9365 .query(&progenitor_client::QueryParam::new("_filter", &filter))
9366 .query(&progenitor_client::QueryParam::new("_group", &group))
9367 .query(&progenitor_client::QueryParam::new("fs", &fs))
9368 .query(&progenitor_client::QueryParam::new("mountOpt", &mount_opt))
9369 .query(&progenitor_client::QueryParam::new(
9370 "mountPoint",
9371 &mount_point,
9372 ))
9373 .query(&progenitor_client::QueryParam::new(
9374 "mountType",
9375 &mount_type,
9376 ))
9377 .query(&progenitor_client::QueryParam::new("vfsOpt", &vfs_opt))
9378 .headers(header_map)
9379 .build()?;
9380 let info = OperationInfo {
9381 operation_id: "mount_mount",
9382 };
9383 self.pre(&mut request, &info).await?;
9384 let result = self.exec(request, &info).await;
9385 self.post(&result, &info).await?;
9386 let response = result?;
9387 match response.status().as_u16() {
9388 200u16 => ResponseValue::from_response(response).await,
9389 400u16..=499u16 => Err(Error::ErrorResponse(
9390 ResponseValue::from_response(response).await?,
9391 )),
9392 500u16..=599u16 => Err(Error::ErrorResponse(
9393 ResponseValue::from_response(response).await?,
9394 )),
9395 _ => Err(Error::UnexpectedResponse(response)),
9396 }
9397 }
9398
9399 pub async fn mount_types<'a>(
9406 &'a self,
9407 async_: Option<bool>,
9408 group: Option<&'a str>,
9409 ) -> Result<ResponseValue<types::MountTypesResponse>, Error<types::RcError>> {
9410 let url = format!("{}/mount/types", self.baseurl,);
9411 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9412 header_map.append(
9413 ::reqwest::header::HeaderName::from_static("api-version"),
9414 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9415 );
9416 #[allow(unused_mut)]
9417 let mut request = self
9418 .client
9419 .post(url)
9420 .header(
9421 ::reqwest::header::ACCEPT,
9422 ::reqwest::header::HeaderValue::from_static("application/json"),
9423 )
9424 .query(&progenitor_client::QueryParam::new("_async", &async_))
9425 .query(&progenitor_client::QueryParam::new("_group", &group))
9426 .headers(header_map)
9427 .build()?;
9428 let info = OperationInfo {
9429 operation_id: "mount_types",
9430 };
9431 self.pre(&mut request, &info).await?;
9432 let result = self.exec(request, &info).await;
9433 self.post(&result, &info).await?;
9434 let response = result?;
9435 match response.status().as_u16() {
9436 200u16 => ResponseValue::from_response(response).await,
9437 400u16..=499u16 => Err(Error::ErrorResponse(
9438 ResponseValue::from_response(response).await?,
9439 )),
9440 500u16..=599u16 => Err(Error::ErrorResponse(
9441 ResponseValue::from_response(response).await?,
9442 )),
9443 _ => Err(Error::UnexpectedResponse(response)),
9444 }
9445 }
9446
9447 pub async fn mount_unmount<'a>(
9455 &'a self,
9456 async_: Option<bool>,
9457 group: Option<&'a str>,
9458 mount_point: &'a str,
9459 ) -> Result<
9460 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9461 Error<types::RcError>,
9462 > {
9463 let url = format!("{}/mount/unmount", self.baseurl,);
9464 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9465 header_map.append(
9466 ::reqwest::header::HeaderName::from_static("api-version"),
9467 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9468 );
9469 #[allow(unused_mut)]
9470 let mut request = self
9471 .client
9472 .post(url)
9473 .header(
9474 ::reqwest::header::ACCEPT,
9475 ::reqwest::header::HeaderValue::from_static("application/json"),
9476 )
9477 .query(&progenitor_client::QueryParam::new("_async", &async_))
9478 .query(&progenitor_client::QueryParam::new("_group", &group))
9479 .query(&progenitor_client::QueryParam::new(
9480 "mountPoint",
9481 &mount_point,
9482 ))
9483 .headers(header_map)
9484 .build()?;
9485 let info = OperationInfo {
9486 operation_id: "mount_unmount",
9487 };
9488 self.pre(&mut request, &info).await?;
9489 let result = self.exec(request, &info).await;
9490 self.post(&result, &info).await?;
9491 let response = result?;
9492 match response.status().as_u16() {
9493 200u16 => ResponseValue::from_response(response).await,
9494 400u16..=499u16 => Err(Error::ErrorResponse(
9495 ResponseValue::from_response(response).await?,
9496 )),
9497 500u16..=599u16 => Err(Error::ErrorResponse(
9498 ResponseValue::from_response(response).await?,
9499 )),
9500 _ => Err(Error::UnexpectedResponse(response)),
9501 }
9502 }
9503
9504 pub async fn mount_unmountall<'a>(
9511 &'a self,
9512 async_: Option<bool>,
9513 group: Option<&'a str>,
9514 ) -> Result<
9515 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9516 Error<types::RcError>,
9517 > {
9518 let url = format!("{}/mount/unmountall", self.baseurl,);
9519 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9520 header_map.append(
9521 ::reqwest::header::HeaderName::from_static("api-version"),
9522 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9523 );
9524 #[allow(unused_mut)]
9525 let mut request = self
9526 .client
9527 .post(url)
9528 .header(
9529 ::reqwest::header::ACCEPT,
9530 ::reqwest::header::HeaderValue::from_static("application/json"),
9531 )
9532 .query(&progenitor_client::QueryParam::new("_async", &async_))
9533 .query(&progenitor_client::QueryParam::new("_group", &group))
9534 .headers(header_map)
9535 .build()?;
9536 let info = OperationInfo {
9537 operation_id: "mount_unmountall",
9538 };
9539 self.pre(&mut request, &info).await?;
9540 let result = self.exec(request, &info).await;
9541 self.post(&result, &info).await?;
9542 let response = result?;
9543 match response.status().as_u16() {
9544 200u16 => ResponseValue::from_response(response).await,
9545 400u16..=499u16 => Err(Error::ErrorResponse(
9546 ResponseValue::from_response(response).await?,
9547 )),
9548 500u16..=599u16 => Err(Error::ErrorResponse(
9549 ResponseValue::from_response(response).await?,
9550 )),
9551 _ => Err(Error::UnexpectedResponse(response)),
9552 }
9553 }
9554
9555 pub async fn rc_noop_auth<'a>(
9567 &'a self,
9568 async_: Option<bool>,
9569 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9570 ) -> Result<
9571 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9572 Error<types::RcError>,
9573 > {
9574 let url = format!("{}/rc/noopauth", self.baseurl,);
9575 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9576 header_map.append(
9577 ::reqwest::header::HeaderName::from_static("api-version"),
9578 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9579 );
9580 #[allow(unused_mut)]
9581 let mut request = self
9582 .client
9583 .post(url)
9584 .header(
9585 ::reqwest::header::ACCEPT,
9586 ::reqwest::header::HeaderValue::from_static("application/json"),
9587 )
9588 .query(&progenitor_client::QueryParam::new("_async", &async_))
9589 .query(&progenitor_client::QueryParam::new("params", ¶ms))
9590 .headers(header_map)
9591 .build()?;
9592 let info = OperationInfo {
9593 operation_id: "rc_noop_auth",
9594 };
9595 self.pre(&mut request, &info).await?;
9596 let result = self.exec(request, &info).await;
9597 self.post(&result, &info).await?;
9598 let response = result?;
9599 match response.status().as_u16() {
9600 200u16 => ResponseValue::from_response(response).await,
9601 400u16..=499u16 => Err(Error::ErrorResponse(
9602 ResponseValue::from_response(response).await?,
9603 )),
9604 500u16..=599u16 => Err(Error::ErrorResponse(
9605 ResponseValue::from_response(response).await?,
9606 )),
9607 _ => Err(Error::UnexpectedResponse(response)),
9608 }
9609 }
9610
9611 pub async fn rc_error<'a>(
9623 &'a self,
9624 async_: Option<bool>,
9625 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9626 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9627 let url = format!("{}/rc/error", self.baseurl,);
9628 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9629 header_map.append(
9630 ::reqwest::header::HeaderName::from_static("api-version"),
9631 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9632 );
9633 #[allow(unused_mut)]
9634 let mut request = self
9635 .client
9636 .post(url)
9637 .header(
9638 ::reqwest::header::ACCEPT,
9639 ::reqwest::header::HeaderValue::from_static("application/json"),
9640 )
9641 .query(&progenitor_client::QueryParam::new("_async", &async_))
9642 .query(&progenitor_client::QueryParam::new("params", ¶ms))
9643 .headers(header_map)
9644 .build()?;
9645 let info = OperationInfo {
9646 operation_id: "rc_error",
9647 };
9648 self.pre(&mut request, &info).await?;
9649 let result = self.exec(request, &info).await;
9650 self.post(&result, &info).await?;
9651 let response = result?;
9652 match response.status().as_u16() {
9653 200u16 => Ok(ResponseValue::empty(response)),
9654 400u16..=499u16 => Err(Error::ErrorResponse(
9655 ResponseValue::from_response(response).await?,
9656 )),
9657 500u16..=599u16 => Err(Error::ErrorResponse(
9658 ResponseValue::from_response(response).await?,
9659 )),
9660 _ => Err(Error::UnexpectedResponse(response)),
9661 }
9662 }
9663
9664 pub async fn rc_list<'a>(
9676 &'a self,
9677 async_: Option<bool>,
9678 group: Option<&'a str>,
9679 ) -> Result<ResponseValue<types::RcListResponse>, Error<types::RcError>> {
9680 let url = format!("{}/rc/list", self.baseurl,);
9681 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9682 header_map.append(
9683 ::reqwest::header::HeaderName::from_static("api-version"),
9684 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9685 );
9686 #[allow(unused_mut)]
9687 let mut request = self
9688 .client
9689 .post(url)
9690 .header(
9691 ::reqwest::header::ACCEPT,
9692 ::reqwest::header::HeaderValue::from_static("application/json"),
9693 )
9694 .query(&progenitor_client::QueryParam::new("_async", &async_))
9695 .query(&progenitor_client::QueryParam::new("_group", &group))
9696 .headers(header_map)
9697 .build()?;
9698 let info = OperationInfo {
9699 operation_id: "rc_list",
9700 };
9701 self.pre(&mut request, &info).await?;
9702 let result = self.exec(request, &info).await;
9703 self.post(&result, &info).await?;
9704 let response = result?;
9705 match response.status().as_u16() {
9706 200u16 => ResponseValue::from_response(response).await,
9707 400u16..=499u16 => Err(Error::ErrorResponse(
9708 ResponseValue::from_response(response).await?,
9709 )),
9710 500u16..=599u16 => Err(Error::ErrorResponse(
9711 ResponseValue::from_response(response).await?,
9712 )),
9713 _ => Err(Error::UnexpectedResponse(response)),
9714 }
9715 }
9716
9717 pub async fn backend_command<'a>(
9733 &'a self,
9734 async_: Option<bool>,
9735 group: Option<&'a str>,
9736 arg: Option<&'a ::std::vec::Vec<::std::string::String>>,
9737 command: &'a str,
9738 fs: Option<&'a str>,
9739 opt: Option<&'a str>,
9740 ) -> Result<ResponseValue<types::BackendCommandResponse>, Error<types::RcError>> {
9741 let url = format!("{}/backend/command", self.baseurl,);
9742 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9743 header_map.append(
9744 ::reqwest::header::HeaderName::from_static("api-version"),
9745 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9746 );
9747 #[allow(unused_mut)]
9748 let mut request = self
9749 .client
9750 .post(url)
9751 .header(
9752 ::reqwest::header::ACCEPT,
9753 ::reqwest::header::HeaderValue::from_static("application/json"),
9754 )
9755 .query(&progenitor_client::QueryParam::new("_async", &async_))
9756 .query(&progenitor_client::QueryParam::new("_group", &group))
9757 .query(&progenitor_client::QueryParam::new("arg", &arg))
9758 .query(&progenitor_client::QueryParam::new("command", &command))
9759 .query(&progenitor_client::QueryParam::new("fs", &fs))
9760 .query(&progenitor_client::QueryParam::new("opt", &opt))
9761 .headers(header_map)
9762 .build()?;
9763 let info = OperationInfo {
9764 operation_id: "backend_command",
9765 };
9766 self.pre(&mut request, &info).await?;
9767 let result = self.exec(request, &info).await;
9768 self.post(&result, &info).await?;
9769 let response = result?;
9770 match response.status().as_u16() {
9771 200u16 => ResponseValue::from_response(response).await,
9772 400u16..=499u16 => Err(Error::ErrorResponse(
9773 ResponseValue::from_response(response).await?,
9774 )),
9775 500u16..=599u16 => Err(Error::ErrorResponse(
9776 ResponseValue::from_response(response).await?,
9777 )),
9778 _ => Err(Error::UnexpectedResponse(response)),
9779 }
9780 }
9781
9782 pub async fn cache_expire<'a>(
9798 &'a self,
9799 async_: Option<bool>,
9800 group: Option<&'a str>,
9801 remote: &'a str,
9802 with_data: Option<bool>,
9803 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9804 let url = format!("{}/cache/expire", self.baseurl,);
9805 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9806 header_map.append(
9807 ::reqwest::header::HeaderName::from_static("api-version"),
9808 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9809 );
9810 #[allow(unused_mut)]
9811 let mut request = self
9812 .client
9813 .post(url)
9814 .header(
9815 ::reqwest::header::ACCEPT,
9816 ::reqwest::header::HeaderValue::from_static("application/json"),
9817 )
9818 .query(&progenitor_client::QueryParam::new("_async", &async_))
9819 .query(&progenitor_client::QueryParam::new("_group", &group))
9820 .query(&progenitor_client::QueryParam::new("remote", &remote))
9821 .query(&progenitor_client::QueryParam::new("withData", &with_data))
9822 .headers(header_map)
9823 .build()?;
9824 let info = OperationInfo {
9825 operation_id: "cache_expire",
9826 };
9827 self.pre(&mut request, &info).await?;
9828 let result = self.exec(request, &info).await;
9829 self.post(&result, &info).await?;
9830 let response = result?;
9831 match response.status().as_u16() {
9832 200u16 => Ok(ResponseValue::empty(response)),
9833 400u16..=499u16 => Err(Error::ErrorResponse(
9834 ResponseValue::from_response(response).await?,
9835 )),
9836 500u16..=599u16 => Err(Error::ErrorResponse(
9837 ResponseValue::from_response(response).await?,
9838 )),
9839 _ => Err(Error::UnexpectedResponse(response)),
9840 }
9841 }
9842
9843 pub async fn cache_fetch<'a>(
9857 &'a self,
9858 async_: Option<bool>,
9859 group: Option<&'a str>,
9860 chunks: Option<&'a str>,
9861 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9862 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9863 let url = format!("{}/cache/fetch", self.baseurl,);
9864 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9865 header_map.append(
9866 ::reqwest::header::HeaderName::from_static("api-version"),
9867 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9868 );
9869 #[allow(unused_mut)]
9870 let mut request = self
9871 .client
9872 .post(url)
9873 .header(
9874 ::reqwest::header::ACCEPT,
9875 ::reqwest::header::HeaderValue::from_static("application/json"),
9876 )
9877 .query(&progenitor_client::QueryParam::new("_async", &async_))
9878 .query(&progenitor_client::QueryParam::new("_group", &group))
9879 .query(&progenitor_client::QueryParam::new("chunks", &chunks))
9880 .query(&progenitor_client::QueryParam::new("params", ¶ms))
9881 .headers(header_map)
9882 .build()?;
9883 let info = OperationInfo {
9884 operation_id: "cache_fetch",
9885 };
9886 self.pre(&mut request, &info).await?;
9887 let result = self.exec(request, &info).await;
9888 self.post(&result, &info).await?;
9889 let response = result?;
9890 match response.status().as_u16() {
9891 200u16 => Ok(ResponseValue::empty(response)),
9892 400u16..=499u16 => Err(Error::ErrorResponse(
9893 ResponseValue::from_response(response).await?,
9894 )),
9895 500u16..=599u16 => Err(Error::ErrorResponse(
9896 ResponseValue::from_response(response).await?,
9897 )),
9898 _ => Err(Error::UnexpectedResponse(response)),
9899 }
9900 }
9901
9902 pub async fn cache_stats<'a>(
9913 &'a self,
9914 async_: Option<bool>,
9915 group: Option<&'a str>,
9916 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
9917 let url = format!("{}/cache/stats", self.baseurl,);
9918 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9919 header_map.append(
9920 ::reqwest::header::HeaderName::from_static("api-version"),
9921 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9922 );
9923 #[allow(unused_mut)]
9924 let mut request = self
9925 .client
9926 .post(url)
9927 .header(
9928 ::reqwest::header::ACCEPT,
9929 ::reqwest::header::HeaderValue::from_static("application/json"),
9930 )
9931 .query(&progenitor_client::QueryParam::new("_async", &async_))
9932 .query(&progenitor_client::QueryParam::new("_group", &group))
9933 .headers(header_map)
9934 .build()?;
9935 let info = OperationInfo {
9936 operation_id: "cache_stats",
9937 };
9938 self.pre(&mut request, &info).await?;
9939 let result = self.exec(request, &info).await;
9940 self.post(&result, &info).await?;
9941 let response = result?;
9942 match response.status().as_u16() {
9943 200u16 => Ok(ResponseValue::empty(response)),
9944 400u16..=499u16 => Err(Error::ErrorResponse(
9945 ResponseValue::from_response(response).await?,
9946 )),
9947 500u16..=599u16 => Err(Error::ErrorResponse(
9948 ResponseValue::from_response(response).await?,
9949 )),
9950 _ => Err(Error::UnexpectedResponse(response)),
9951 }
9952 }
9953
9954 pub async fn config_create<'a>(
9971 &'a self,
9972 async_: Option<bool>,
9973 group: Option<&'a str>,
9974 name: &'a str,
9975 opt: Option<&'a str>,
9976 parameters: &'a str,
9977 type_: &'a str,
9978 ) -> Result<
9979 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
9980 Error<types::RcError>,
9981 > {
9982 let url = format!("{}/config/create", self.baseurl,);
9983 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
9984 header_map.append(
9985 ::reqwest::header::HeaderName::from_static("api-version"),
9986 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
9987 );
9988 #[allow(unused_mut)]
9989 let mut request = self
9990 .client
9991 .post(url)
9992 .header(
9993 ::reqwest::header::ACCEPT,
9994 ::reqwest::header::HeaderValue::from_static("application/json"),
9995 )
9996 .query(&progenitor_client::QueryParam::new("_async", &async_))
9997 .query(&progenitor_client::QueryParam::new("_group", &group))
9998 .query(&progenitor_client::QueryParam::new("name", &name))
9999 .query(&progenitor_client::QueryParam::new("opt", &opt))
10000 .query(&progenitor_client::QueryParam::new(
10001 "parameters",
10002 ¶meters,
10003 ))
10004 .query(&progenitor_client::QueryParam::new("type", &type_))
10005 .headers(header_map)
10006 .build()?;
10007 let info = OperationInfo {
10008 operation_id: "config_create",
10009 };
10010 self.pre(&mut request, &info).await?;
10011 let result = self.exec(request, &info).await;
10012 self.post(&result, &info).await?;
10013 let response = result?;
10014 match response.status().as_u16() {
10015 200u16 => ResponseValue::from_response(response).await,
10016 400u16..=499u16 => Err(Error::ErrorResponse(
10017 ResponseValue::from_response(response).await?,
10018 )),
10019 500u16..=599u16 => Err(Error::ErrorResponse(
10020 ResponseValue::from_response(response).await?,
10021 )),
10022 _ => Err(Error::UnexpectedResponse(response)),
10023 }
10024 }
10025
10026 pub async fn config_delete<'a>(
10038 &'a self,
10039 async_: Option<bool>,
10040 group: Option<&'a str>,
10041 name: &'a str,
10042 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10043 let url = format!("{}/config/delete", self.baseurl,);
10044 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10045 header_map.append(
10046 ::reqwest::header::HeaderName::from_static("api-version"),
10047 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10048 );
10049 #[allow(unused_mut)]
10050 let mut request = self
10051 .client
10052 .post(url)
10053 .header(
10054 ::reqwest::header::ACCEPT,
10055 ::reqwest::header::HeaderValue::from_static("application/json"),
10056 )
10057 .query(&progenitor_client::QueryParam::new("_async", &async_))
10058 .query(&progenitor_client::QueryParam::new("_group", &group))
10059 .query(&progenitor_client::QueryParam::new("name", &name))
10060 .headers(header_map)
10061 .build()?;
10062 let info = OperationInfo {
10063 operation_id: "config_delete",
10064 };
10065 self.pre(&mut request, &info).await?;
10066 let result = self.exec(request, &info).await;
10067 self.post(&result, &info).await?;
10068 let response = result?;
10069 match response.status().as_u16() {
10070 200u16 => Ok(ResponseValue::empty(response)),
10071 400u16..=499u16 => Err(Error::ErrorResponse(
10072 ResponseValue::from_response(response).await?,
10073 )),
10074 500u16..=599u16 => Err(Error::ErrorResponse(
10075 ResponseValue::from_response(response).await?,
10076 )),
10077 _ => Err(Error::UnexpectedResponse(response)),
10078 }
10079 }
10080
10081 pub async fn config_dump<'a>(
10093 &'a self,
10094 async_: Option<bool>,
10095 group: Option<&'a str>,
10096 ) -> Result<
10097 ResponseValue<
10098 ::std::collections::HashMap<
10099 ::std::string::String,
10100 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
10101 >,
10102 >,
10103 Error<types::RcError>,
10104 > {
10105 let url = format!("{}/config/dump", self.baseurl,);
10106 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10107 header_map.append(
10108 ::reqwest::header::HeaderName::from_static("api-version"),
10109 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10110 );
10111 #[allow(unused_mut)]
10112 let mut request = self
10113 .client
10114 .post(url)
10115 .header(
10116 ::reqwest::header::ACCEPT,
10117 ::reqwest::header::HeaderValue::from_static("application/json"),
10118 )
10119 .query(&progenitor_client::QueryParam::new("_async", &async_))
10120 .query(&progenitor_client::QueryParam::new("_group", &group))
10121 .headers(header_map)
10122 .build()?;
10123 let info = OperationInfo {
10124 operation_id: "config_dump",
10125 };
10126 self.pre(&mut request, &info).await?;
10127 let result = self.exec(request, &info).await;
10128 self.post(&result, &info).await?;
10129 let response = result?;
10130 match response.status().as_u16() {
10131 200u16 => ResponseValue::from_response(response).await,
10132 400u16..=499u16 => Err(Error::ErrorResponse(
10133 ResponseValue::from_response(response).await?,
10134 )),
10135 500u16..=599u16 => Err(Error::ErrorResponse(
10136 ResponseValue::from_response(response).await?,
10137 )),
10138 _ => Err(Error::UnexpectedResponse(response)),
10139 }
10140 }
10141
10142 pub async fn config_get<'a>(
10154 &'a self,
10155 async_: Option<bool>,
10156 group: Option<&'a str>,
10157 name: &'a str,
10158 ) -> Result<ResponseValue<types::ConfigGetResponse>, Error<types::RcError>> {
10159 let url = format!("{}/config/get", self.baseurl,);
10160 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10161 header_map.append(
10162 ::reqwest::header::HeaderName::from_static("api-version"),
10163 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10164 );
10165 #[allow(unused_mut)]
10166 let mut request = self
10167 .client
10168 .post(url)
10169 .header(
10170 ::reqwest::header::ACCEPT,
10171 ::reqwest::header::HeaderValue::from_static("application/json"),
10172 )
10173 .query(&progenitor_client::QueryParam::new("_async", &async_))
10174 .query(&progenitor_client::QueryParam::new("_group", &group))
10175 .query(&progenitor_client::QueryParam::new("name", &name))
10176 .headers(header_map)
10177 .build()?;
10178 let info = OperationInfo {
10179 operation_id: "config_get",
10180 };
10181 self.pre(&mut request, &info).await?;
10182 let result = self.exec(request, &info).await;
10183 self.post(&result, &info).await?;
10184 let response = result?;
10185 match response.status().as_u16() {
10186 200u16 => ResponseValue::from_response(response).await,
10187 400u16..=499u16 => Err(Error::ErrorResponse(
10188 ResponseValue::from_response(response).await?,
10189 )),
10190 500u16..=599u16 => Err(Error::ErrorResponse(
10191 ResponseValue::from_response(response).await?,
10192 )),
10193 _ => Err(Error::UnexpectedResponse(response)),
10194 }
10195 }
10196
10197 pub async fn config_listremotes<'a>(
10208 &'a self,
10209 async_: Option<bool>,
10210 group: Option<&'a str>,
10211 ) -> Result<ResponseValue<types::ConfigListremotesResponse>, Error<types::RcError>> {
10212 let url = format!("{}/config/listremotes", self.baseurl,);
10213 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10214 header_map.append(
10215 ::reqwest::header::HeaderName::from_static("api-version"),
10216 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10217 );
10218 #[allow(unused_mut)]
10219 let mut request = self
10220 .client
10221 .post(url)
10222 .header(
10223 ::reqwest::header::ACCEPT,
10224 ::reqwest::header::HeaderValue::from_static("application/json"),
10225 )
10226 .query(&progenitor_client::QueryParam::new("_async", &async_))
10227 .query(&progenitor_client::QueryParam::new("_group", &group))
10228 .headers(header_map)
10229 .build()?;
10230 let info = OperationInfo {
10231 operation_id: "config_listremotes",
10232 };
10233 self.pre(&mut request, &info).await?;
10234 let result = self.exec(request, &info).await;
10235 self.post(&result, &info).await?;
10236 let response = result?;
10237 match response.status().as_u16() {
10238 200u16 => ResponseValue::from_response(response).await,
10239 400u16..=499u16 => Err(Error::ErrorResponse(
10240 ResponseValue::from_response(response).await?,
10241 )),
10242 500u16..=599u16 => Err(Error::ErrorResponse(
10243 ResponseValue::from_response(response).await?,
10244 )),
10245 _ => Err(Error::UnexpectedResponse(response)),
10246 }
10247 }
10248
10249 pub async fn config_password<'a>(
10263 &'a self,
10264 async_: Option<bool>,
10265 group: Option<&'a str>,
10266 name: &'a str,
10267 parameters: &'a str,
10268 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10269 let url = format!("{}/config/password", self.baseurl,);
10270 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10271 header_map.append(
10272 ::reqwest::header::HeaderName::from_static("api-version"),
10273 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10274 );
10275 #[allow(unused_mut)]
10276 let mut request = self
10277 .client
10278 .post(url)
10279 .header(
10280 ::reqwest::header::ACCEPT,
10281 ::reqwest::header::HeaderValue::from_static("application/json"),
10282 )
10283 .query(&progenitor_client::QueryParam::new("_async", &async_))
10284 .query(&progenitor_client::QueryParam::new("_group", &group))
10285 .query(&progenitor_client::QueryParam::new("name", &name))
10286 .query(&progenitor_client::QueryParam::new(
10287 "parameters",
10288 ¶meters,
10289 ))
10290 .headers(header_map)
10291 .build()?;
10292 let info = OperationInfo {
10293 operation_id: "config_password",
10294 };
10295 self.pre(&mut request, &info).await?;
10296 let result = self.exec(request, &info).await;
10297 self.post(&result, &info).await?;
10298 let response = result?;
10299 match response.status().as_u16() {
10300 200u16 => Ok(ResponseValue::empty(response)),
10301 400u16..=499u16 => Err(Error::ErrorResponse(
10302 ResponseValue::from_response(response).await?,
10303 )),
10304 500u16..=599u16 => Err(Error::ErrorResponse(
10305 ResponseValue::from_response(response).await?,
10306 )),
10307 _ => Err(Error::UnexpectedResponse(response)),
10308 }
10309 }
10310
10311 pub async fn config_paths<'a>(
10323 &'a self,
10324 async_: Option<bool>,
10325 group: Option<&'a str>,
10326 ) -> Result<ResponseValue<types::ConfigPathsResponse>, Error<types::RcError>> {
10327 let url = format!("{}/config/paths", self.baseurl,);
10328 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10329 header_map.append(
10330 ::reqwest::header::HeaderName::from_static("api-version"),
10331 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10332 );
10333 #[allow(unused_mut)]
10334 let mut request = self
10335 .client
10336 .post(url)
10337 .header(
10338 ::reqwest::header::ACCEPT,
10339 ::reqwest::header::HeaderValue::from_static("application/json"),
10340 )
10341 .query(&progenitor_client::QueryParam::new("_async", &async_))
10342 .query(&progenitor_client::QueryParam::new("_group", &group))
10343 .headers(header_map)
10344 .build()?;
10345 let info = OperationInfo {
10346 operation_id: "config_paths",
10347 };
10348 self.pre(&mut request, &info).await?;
10349 let result = self.exec(request, &info).await;
10350 self.post(&result, &info).await?;
10351 let response = result?;
10352 match response.status().as_u16() {
10353 200u16 => ResponseValue::from_response(response).await,
10354 400u16..=499u16 => Err(Error::ErrorResponse(
10355 ResponseValue::from_response(response).await?,
10356 )),
10357 500u16..=599u16 => Err(Error::ErrorResponse(
10358 ResponseValue::from_response(response).await?,
10359 )),
10360 _ => Err(Error::UnexpectedResponse(response)),
10361 }
10362 }
10363
10364 pub async fn config_providers<'a>(
10375 &'a self,
10376 async_: Option<bool>,
10377 group: Option<&'a str>,
10378 ) -> Result<ResponseValue<types::ConfigProvidersResponse>, Error<types::RcError>> {
10379 let url = format!("{}/config/providers", self.baseurl,);
10380 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10381 header_map.append(
10382 ::reqwest::header::HeaderName::from_static("api-version"),
10383 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10384 );
10385 #[allow(unused_mut)]
10386 let mut request = self
10387 .client
10388 .post(url)
10389 .header(
10390 ::reqwest::header::ACCEPT,
10391 ::reqwest::header::HeaderValue::from_static("application/json"),
10392 )
10393 .query(&progenitor_client::QueryParam::new("_async", &async_))
10394 .query(&progenitor_client::QueryParam::new("_group", &group))
10395 .headers(header_map)
10396 .build()?;
10397 let info = OperationInfo {
10398 operation_id: "config_providers",
10399 };
10400 self.pre(&mut request, &info).await?;
10401 let result = self.exec(request, &info).await;
10402 self.post(&result, &info).await?;
10403 let response = result?;
10404 match response.status().as_u16() {
10405 200u16 => ResponseValue::from_response(response).await,
10406 400u16..=499u16 => Err(Error::ErrorResponse(
10407 ResponseValue::from_response(response).await?,
10408 )),
10409 500u16..=599u16 => Err(Error::ErrorResponse(
10410 ResponseValue::from_response(response).await?,
10411 )),
10412 _ => Err(Error::UnexpectedResponse(response)),
10413 }
10414 }
10415
10416 pub async fn config_setpath<'a>(
10429 &'a self,
10430 async_: Option<bool>,
10431 group: Option<&'a str>,
10432 path: &'a str,
10433 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10434 let url = format!("{}/config/setpath", self.baseurl,);
10435 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10436 header_map.append(
10437 ::reqwest::header::HeaderName::from_static("api-version"),
10438 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10439 );
10440 #[allow(unused_mut)]
10441 let mut request = self
10442 .client
10443 .post(url)
10444 .header(
10445 ::reqwest::header::ACCEPT,
10446 ::reqwest::header::HeaderValue::from_static("application/json"),
10447 )
10448 .query(&progenitor_client::QueryParam::new("_async", &async_))
10449 .query(&progenitor_client::QueryParam::new("_group", &group))
10450 .query(&progenitor_client::QueryParam::new("path", &path))
10451 .headers(header_map)
10452 .build()?;
10453 let info = OperationInfo {
10454 operation_id: "config_setpath",
10455 };
10456 self.pre(&mut request, &info).await?;
10457 let result = self.exec(request, &info).await;
10458 self.post(&result, &info).await?;
10459 let response = result?;
10460 match response.status().as_u16() {
10461 200u16 => Ok(ResponseValue::empty(response)),
10462 400u16..=499u16 => Err(Error::ErrorResponse(
10463 ResponseValue::from_response(response).await?,
10464 )),
10465 500u16..=599u16 => Err(Error::ErrorResponse(
10466 ResponseValue::from_response(response).await?,
10467 )),
10468 _ => Err(Error::UnexpectedResponse(response)),
10469 }
10470 }
10471
10472 pub async fn config_unlock<'a>(
10484 &'a self,
10485 async_: Option<bool>,
10486 group: Option<&'a str>,
10487 config_password: &'a str,
10488 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
10489 let url = format!("{}/config/unlock", self.baseurl,);
10490 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10491 header_map.append(
10492 ::reqwest::header::HeaderName::from_static("api-version"),
10493 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10494 );
10495 #[allow(unused_mut)]
10496 let mut request = self
10497 .client
10498 .post(url)
10499 .header(
10500 ::reqwest::header::ACCEPT,
10501 ::reqwest::header::HeaderValue::from_static("application/json"),
10502 )
10503 .query(&progenitor_client::QueryParam::new("_async", &async_))
10504 .query(&progenitor_client::QueryParam::new("_group", &group))
10505 .query(&progenitor_client::QueryParam::new(
10506 "config_password",
10507 &config_password,
10508 ))
10509 .headers(header_map)
10510 .build()?;
10511 let info = OperationInfo {
10512 operation_id: "config_unlock",
10513 };
10514 self.pre(&mut request, &info).await?;
10515 let result = self.exec(request, &info).await;
10516 self.post(&result, &info).await?;
10517 let response = result?;
10518 match response.status().as_u16() {
10519 200u16 => Ok(ResponseValue::empty(response)),
10520 400u16..=499u16 => Err(Error::ErrorResponse(
10521 ResponseValue::from_response(response).await?,
10522 )),
10523 500u16..=599u16 => Err(Error::ErrorResponse(
10524 ResponseValue::from_response(response).await?,
10525 )),
10526 _ => Err(Error::UnexpectedResponse(response)),
10527 }
10528 }
10529
10530 pub async fn config_update<'a>(
10546 &'a self,
10547 async_: Option<bool>,
10548 group: Option<&'a str>,
10549 name: &'a str,
10550 opt: Option<&'a str>,
10551 parameters: &'a str,
10552 ) -> Result<
10553 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10554 Error<types::RcError>,
10555 > {
10556 let url = format!("{}/config/update", self.baseurl,);
10557 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10558 header_map.append(
10559 ::reqwest::header::HeaderName::from_static("api-version"),
10560 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10561 );
10562 #[allow(unused_mut)]
10563 let mut request = self
10564 .client
10565 .post(url)
10566 .header(
10567 ::reqwest::header::ACCEPT,
10568 ::reqwest::header::HeaderValue::from_static("application/json"),
10569 )
10570 .query(&progenitor_client::QueryParam::new("_async", &async_))
10571 .query(&progenitor_client::QueryParam::new("_group", &group))
10572 .query(&progenitor_client::QueryParam::new("name", &name))
10573 .query(&progenitor_client::QueryParam::new("opt", &opt))
10574 .query(&progenitor_client::QueryParam::new(
10575 "parameters",
10576 ¶meters,
10577 ))
10578 .headers(header_map)
10579 .build()?;
10580 let info = OperationInfo {
10581 operation_id: "config_update",
10582 };
10583 self.pre(&mut request, &info).await?;
10584 let result = self.exec(request, &info).await;
10585 self.post(&result, &info).await?;
10586 let response = result?;
10587 match response.status().as_u16() {
10588 200u16 => ResponseValue::from_response(response).await,
10589 400u16..=499u16 => Err(Error::ErrorResponse(
10590 ResponseValue::from_response(response).await?,
10591 )),
10592 500u16..=599u16 => Err(Error::ErrorResponse(
10593 ResponseValue::from_response(response).await?,
10594 )),
10595 _ => Err(Error::UnexpectedResponse(response)),
10596 }
10597 }
10598
10599 pub async fn core_version<'a>(
10611 &'a self,
10612 async_: Option<bool>,
10613 group: Option<&'a str>,
10614 ) -> Result<ResponseValue<types::CoreVersionResponse>, Error<types::RcError>> {
10615 let url = format!("{}/core/version", self.baseurl,);
10616 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10617 header_map.append(
10618 ::reqwest::header::HeaderName::from_static("api-version"),
10619 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10620 );
10621 #[allow(unused_mut)]
10622 let mut request = self
10623 .client
10624 .post(url)
10625 .header(
10626 ::reqwest::header::ACCEPT,
10627 ::reqwest::header::HeaderValue::from_static("application/json"),
10628 )
10629 .query(&progenitor_client::QueryParam::new("_async", &async_))
10630 .query(&progenitor_client::QueryParam::new("_group", &group))
10631 .headers(header_map)
10632 .build()?;
10633 let info = OperationInfo {
10634 operation_id: "core_version",
10635 };
10636 self.pre(&mut request, &info).await?;
10637 let result = self.exec(request, &info).await;
10638 self.post(&result, &info).await?;
10639 let response = result?;
10640 match response.status().as_u16() {
10641 200u16 => ResponseValue::from_response(response).await,
10642 400u16..=499u16 => Err(Error::ErrorResponse(
10643 ResponseValue::from_response(response).await?,
10644 )),
10645 500u16..=599u16 => Err(Error::ErrorResponse(
10646 ResponseValue::from_response(response).await?,
10647 )),
10648 _ => Err(Error::UnexpectedResponse(response)),
10649 }
10650 }
10651
10652 pub async fn core_stats<'a>(
10668 &'a self,
10669 async_: Option<bool>,
10670 _group: Option<&'a str>,
10671 group: Option<&'a str>,
10672 short: Option<bool>
10673 ) -> Result<ResponseValue<types::CoreStatsResponse>, Error<types::RcError>> {
10674 let url = format!("{}/core/stats", self.baseurl,);
10675 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10676 header_map.append(
10677 ::reqwest::header::HeaderName::from_static("api-version"),
10678 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10679 );
10680 #[allow(unused_mut)]
10681 let mut request = self
10682 .client
10683 .post(url)
10684 .header(
10685 ::reqwest::header::ACCEPT,
10686 ::reqwest::header::HeaderValue::from_static("application/json"),
10687 )
10688 .query(&progenitor_client::QueryParam::new("_async", &async_))
10689 .query(&progenitor_client::QueryParam::new("_group", &group))
10690 .query(&progenitor_client::QueryParam::new("group", &group))
10691 .query(&progenitor_client::QueryParam::new("short", &short))
10692 .headers(header_map)
10693 .build()?;
10694 let info = OperationInfo {
10695 operation_id: "core_stats",
10696 };
10697 self.pre(&mut request, &info).await?;
10698 let result = self.exec(request, &info).await;
10699 self.post(&result, &info).await?;
10700 let response = result?;
10701 match response.status().as_u16() {
10702 200u16 => ResponseValue::from_response(response).await,
10703 400u16..=499u16 => Err(Error::ErrorResponse(
10704 ResponseValue::from_response(response).await?,
10705 )),
10706 500u16..=599u16 => Err(Error::ErrorResponse(
10707 ResponseValue::from_response(response).await?,
10708 )),
10709 _ => Err(Error::UnexpectedResponse(response)),
10710 }
10711 }
10712
10713 pub async fn job_list<'a>(
10723 &'a self,
10724 async_: Option<bool>,
10725 ) -> Result<ResponseValue<types::JobListResponse>, Error<types::RcError>> {
10726 let url = format!("{}/job/list", self.baseurl,);
10727 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10728 header_map.append(
10729 ::reqwest::header::HeaderName::from_static("api-version"),
10730 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10731 );
10732 #[allow(unused_mut)]
10733 let mut request = self
10734 .client
10735 .post(url)
10736 .header(
10737 ::reqwest::header::ACCEPT,
10738 ::reqwest::header::HeaderValue::from_static("application/json"),
10739 )
10740 .query(&progenitor_client::QueryParam::new("_async", &async_))
10741 .headers(header_map)
10742 .build()?;
10743 let info = OperationInfo {
10744 operation_id: "job_list",
10745 };
10746 self.pre(&mut request, &info).await?;
10747 let result = self.exec(request, &info).await;
10748 self.post(&result, &info).await?;
10749 let response = result?;
10750 match response.status().as_u16() {
10751 200u16 => ResponseValue::from_response(response).await,
10752 400u16..=499u16 => Err(Error::ErrorResponse(
10753 ResponseValue::from_response(response).await?,
10754 )),
10755 500u16..=599u16 => Err(Error::ErrorResponse(
10756 ResponseValue::from_response(response).await?,
10757 )),
10758 _ => Err(Error::UnexpectedResponse(response)),
10759 }
10760 }
10761
10762 pub async fn job_status<'a>(
10774 &'a self,
10775 async_: Option<bool>,
10776 jobid: f64,
10777 ) -> Result<ResponseValue<types::JobStatusResponse>, Error<types::RcError>> {
10778 let url = format!("{}/job/status", self.baseurl,);
10779 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10780 header_map.append(
10781 ::reqwest::header::HeaderName::from_static("api-version"),
10782 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10783 );
10784 #[allow(unused_mut)]
10785 let mut request = self
10786 .client
10787 .post(url)
10788 .header(
10789 ::reqwest::header::ACCEPT,
10790 ::reqwest::header::HeaderValue::from_static("application/json"),
10791 )
10792 .query(&progenitor_client::QueryParam::new("_async", &async_))
10793 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
10794 .headers(header_map)
10795 .build()?;
10796 let info = OperationInfo {
10797 operation_id: "job_status",
10798 };
10799 self.pre(&mut request, &info).await?;
10800 let result = self.exec(request, &info).await;
10801 self.post(&result, &info).await?;
10802 let response = result?;
10803 match response.status().as_u16() {
10804 200u16 => ResponseValue::from_response(response).await,
10805 400u16..=499u16 => Err(Error::ErrorResponse(
10806 ResponseValue::from_response(response).await?,
10807 )),
10808 500u16..=599u16 => Err(Error::ErrorResponse(
10809 ResponseValue::from_response(response).await?,
10810 )),
10811 _ => Err(Error::UnexpectedResponse(response)),
10812 }
10813 }
10814
10815 pub async fn job_stop<'a>(
10826 &'a self,
10827 async_: Option<bool>,
10828 jobid: f64,
10829 ) -> Result<
10830 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10831 Error<types::RcError>,
10832 > {
10833 let url = format!("{}/job/stop", self.baseurl,);
10834 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10835 header_map.append(
10836 ::reqwest::header::HeaderName::from_static("api-version"),
10837 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10838 );
10839 #[allow(unused_mut)]
10840 let mut request = self
10841 .client
10842 .post(url)
10843 .header(
10844 ::reqwest::header::ACCEPT,
10845 ::reqwest::header::HeaderValue::from_static("application/json"),
10846 )
10847 .query(&progenitor_client::QueryParam::new("_async", &async_))
10848 .query(&progenitor_client::QueryParam::new("jobid", &jobid))
10849 .headers(header_map)
10850 .build()?;
10851 let info = OperationInfo {
10852 operation_id: "job_stop",
10853 };
10854 self.pre(&mut request, &info).await?;
10855 let result = self.exec(request, &info).await;
10856 self.post(&result, &info).await?;
10857 let response = result?;
10858 match response.status().as_u16() {
10859 200u16 => ResponseValue::from_response(response).await,
10860 400u16..=499u16 => Err(Error::ErrorResponse(
10861 ResponseValue::from_response(response).await?,
10862 )),
10863 500u16..=599u16 => Err(Error::ErrorResponse(
10864 ResponseValue::from_response(response).await?,
10865 )),
10866 _ => Err(Error::UnexpectedResponse(response)),
10867 }
10868 }
10869
10870 pub async fn job_stopgroup<'a>(
10881 &'a self,
10882 async_: Option<bool>,
10883 group: &'a str,
10884 ) -> Result<
10885 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
10886 Error<types::RcError>,
10887 > {
10888 let url = format!("{}/job/stopgroup", self.baseurl,);
10889 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10890 header_map.append(
10891 ::reqwest::header::HeaderName::from_static("api-version"),
10892 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10893 );
10894 #[allow(unused_mut)]
10895 let mut request = self
10896 .client
10897 .post(url)
10898 .header(
10899 ::reqwest::header::ACCEPT,
10900 ::reqwest::header::HeaderValue::from_static("application/json"),
10901 )
10902 .query(&progenitor_client::QueryParam::new("_async", &async_))
10903 .query(&progenitor_client::QueryParam::new("group", &group))
10904 .headers(header_map)
10905 .build()?;
10906 let info = OperationInfo {
10907 operation_id: "job_stopgroup",
10908 };
10909 self.pre(&mut request, &info).await?;
10910 let result = self.exec(request, &info).await;
10911 self.post(&result, &info).await?;
10912 let response = result?;
10913 match response.status().as_u16() {
10914 200u16 => ResponseValue::from_response(response).await,
10915 400u16..=499u16 => Err(Error::ErrorResponse(
10916 ResponseValue::from_response(response).await?,
10917 )),
10918 500u16..=599u16 => Err(Error::ErrorResponse(
10919 ResponseValue::from_response(response).await?,
10920 )),
10921 _ => Err(Error::UnexpectedResponse(response)),
10922 }
10923 }
10924
10925 pub async fn operations_list<'a>(
10956 &'a self,
10957 async_: Option<bool>,
10958 group: Option<&'a str>,
10959 dirs_only: Option<bool>,
10960 files_only: Option<bool>,
10961 fs: &'a str,
10962 hash_types: Option<&'a ::std::vec::Vec<::std::string::String>>,
10963 metadata: Option<bool>,
10964 no_mime_type: Option<bool>,
10965 no_mod_time: Option<bool>,
10966 opt: Option<&'a str>,
10967 recurse: Option<bool>,
10968 remote: &'a str,
10969 show_encrypted: Option<bool>,
10970 show_hash: Option<bool>,
10971 show_orig_i_ds: Option<bool>,
10972 ) -> Result<ResponseValue<types::OperationsListResponse>, Error<types::RcError>> {
10973 let url = format!("{}/operations/list", self.baseurl,);
10974 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
10975 header_map.append(
10976 ::reqwest::header::HeaderName::from_static("api-version"),
10977 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
10978 );
10979 #[allow(unused_mut)]
10980 let mut request = self
10981 .client
10982 .post(url)
10983 .header(
10984 ::reqwest::header::ACCEPT,
10985 ::reqwest::header::HeaderValue::from_static("application/json"),
10986 )
10987 .query(&progenitor_client::QueryParam::new("_async", &async_))
10988 .query(&progenitor_client::QueryParam::new("_group", &group))
10989 .query(&progenitor_client::QueryParam::new("dirsOnly", &dirs_only))
10990 .query(&progenitor_client::QueryParam::new(
10991 "filesOnly",
10992 &files_only,
10993 ))
10994 .query(&progenitor_client::QueryParam::new("fs", &fs))
10995 .query(&progenitor_client::QueryParam::new(
10996 "hashTypes",
10997 &hash_types,
10998 ))
10999 .query(&progenitor_client::QueryParam::new("metadata", &metadata))
11000 .query(&progenitor_client::QueryParam::new(
11001 "noMimeType",
11002 &no_mime_type,
11003 ))
11004 .query(&progenitor_client::QueryParam::new(
11005 "noModTime",
11006 &no_mod_time,
11007 ))
11008 .query(&progenitor_client::QueryParam::new("opt", &opt))
11009 .query(&progenitor_client::QueryParam::new("recurse", &recurse))
11010 .query(&progenitor_client::QueryParam::new("remote", &remote))
11011 .query(&progenitor_client::QueryParam::new(
11012 "showEncrypted",
11013 &show_encrypted,
11014 ))
11015 .query(&progenitor_client::QueryParam::new("showHash", &show_hash))
11016 .query(&progenitor_client::QueryParam::new(
11017 "showOrigIDs",
11018 &show_orig_i_ds,
11019 ))
11020 .headers(header_map)
11021 .build()?;
11022 let info = OperationInfo {
11023 operation_id: "operations_list",
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 operations_stat<'a>(
11057 &'a self,
11058 async_: Option<bool>,
11059 group: Option<&'a str>,
11060 fs: &'a str,
11061 opt: Option<&'a str>,
11062 remote: &'a str,
11063 ) -> Result<ResponseValue<types::OperationsStatResponse>, Error<types::RcError>> {
11064 let url = format!("{}/operations/stat", self.baseurl,);
11065 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11066 header_map.append(
11067 ::reqwest::header::HeaderName::from_static("api-version"),
11068 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11069 );
11070 #[allow(unused_mut)]
11071 let mut request = self
11072 .client
11073 .post(url)
11074 .header(
11075 ::reqwest::header::ACCEPT,
11076 ::reqwest::header::HeaderValue::from_static("application/json"),
11077 )
11078 .query(&progenitor_client::QueryParam::new("_async", &async_))
11079 .query(&progenitor_client::QueryParam::new("_group", &group))
11080 .query(&progenitor_client::QueryParam::new("fs", &fs))
11081 .query(&progenitor_client::QueryParam::new("opt", &opt))
11082 .query(&progenitor_client::QueryParam::new("remote", &remote))
11083 .headers(header_map)
11084 .build()?;
11085 let info = OperationInfo {
11086 operation_id: "operations_stat",
11087 };
11088 self.pre(&mut request, &info).await?;
11089 let result = self.exec(request, &info).await;
11090 self.post(&result, &info).await?;
11091 let response = result?;
11092 match response.status().as_u16() {
11093 200u16 => ResponseValue::from_response(response).await,
11094 400u16..=499u16 => Err(Error::ErrorResponse(
11095 ResponseValue::from_response(response).await?,
11096 )),
11097 500u16..=599u16 => Err(Error::ErrorResponse(
11098 ResponseValue::from_response(response).await?,
11099 )),
11100 _ => Err(Error::UnexpectedResponse(response)),
11101 }
11102 }
11103
11104 pub async fn operations_about<'a>(
11117 &'a self,
11118 async_: Option<bool>,
11119 group: Option<&'a str>,
11120 fs: &'a str,
11121 ) -> Result<ResponseValue<types::OperationsAboutResponse>, Error<types::RcError>> {
11122 let url = format!("{}/operations/about", self.baseurl,);
11123 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11124 header_map.append(
11125 ::reqwest::header::HeaderName::from_static("api-version"),
11126 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11127 );
11128 #[allow(unused_mut)]
11129 let mut request = self
11130 .client
11131 .post(url)
11132 .header(
11133 ::reqwest::header::ACCEPT,
11134 ::reqwest::header::HeaderValue::from_static("application/json"),
11135 )
11136 .query(&progenitor_client::QueryParam::new("_async", &async_))
11137 .query(&progenitor_client::QueryParam::new("_group", &group))
11138 .query(&progenitor_client::QueryParam::new("fs", &fs))
11139 .headers(header_map)
11140 .build()?;
11141 let info = OperationInfo {
11142 operation_id: "operations_about",
11143 };
11144 self.pre(&mut request, &info).await?;
11145 let result = self.exec(request, &info).await;
11146 self.post(&result, &info).await?;
11147 let response = result?;
11148 match response.status().as_u16() {
11149 200u16 => ResponseValue::from_response(response).await,
11150 400u16..=499u16 => Err(Error::ErrorResponse(
11151 ResponseValue::from_response(response).await?,
11152 )),
11153 500u16..=599u16 => Err(Error::ErrorResponse(
11154 ResponseValue::from_response(response).await?,
11155 )),
11156 _ => Err(Error::UnexpectedResponse(response)),
11157 }
11158 }
11159
11160 pub async fn operations_uploadfile<'a, B: Into<reqwest::Body>>(
11175 &'a self,
11176 async_: Option<bool>,
11177 group: Option<&'a str>,
11178 fs: &'a str,
11179 remote: &'a str,
11180 body: B,
11181 ) -> Result<
11182 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11183 Error<types::RcError>,
11184 > {
11185 let url = format!("{}/operations/uploadfile", self.baseurl,);
11186 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11187 header_map.append(
11188 ::reqwest::header::HeaderName::from_static("api-version"),
11189 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11190 );
11191 #[allow(unused_mut)]
11192 let mut request = self
11193 .client
11194 .post(url)
11195 .header(
11196 ::reqwest::header::ACCEPT,
11197 ::reqwest::header::HeaderValue::from_static("application/json"),
11198 )
11199 .header(
11200 ::reqwest::header::CONTENT_TYPE,
11201 ::reqwest::header::HeaderValue::from_static("application/octet-stream"),
11202 )
11203 .body(body)
11204 .query(&progenitor_client::QueryParam::new("_async", &async_))
11205 .query(&progenitor_client::QueryParam::new("_group", &group))
11206 .query(&progenitor_client::QueryParam::new("fs", &fs))
11207 .query(&progenitor_client::QueryParam::new("remote", &remote))
11208 .headers(header_map)
11209 .build()?;
11210 let info = OperationInfo {
11211 operation_id: "operations_uploadfile",
11212 };
11213 self.pre(&mut request, &info).await?;
11214 let result = self.exec(request, &info).await;
11215 self.post(&result, &info).await?;
11216 let response = result?;
11217 match response.status().as_u16() {
11218 200u16 => ResponseValue::from_response(response).await,
11219 400u16..=499u16 => Err(Error::ErrorResponse(
11220 ResponseValue::from_response(response).await?,
11221 )),
11222 500u16..=599u16 => Err(Error::ErrorResponse(
11223 ResponseValue::from_response(response).await?,
11224 )),
11225 _ => Err(Error::UnexpectedResponse(response)),
11226 }
11227 }
11228
11229 pub async fn operations_purge<'a>(
11244 &'a self,
11245 async_: Option<bool>,
11246 config: Option<&'a str>,
11247 filter: Option<&'a str>,
11248 group: Option<&'a str>,
11249 fs: &'a str,
11250 remote: &'a str,
11251 ) -> Result<
11252 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11253 Error<types::RcError>,
11254 > {
11255 let url = format!("{}/operations/purge", self.baseurl,);
11256 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11257 header_map.append(
11258 ::reqwest::header::HeaderName::from_static("api-version"),
11259 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11260 );
11261 #[allow(unused_mut)]
11262 let mut request = self
11263 .client
11264 .post(url)
11265 .header(
11266 ::reqwest::header::ACCEPT,
11267 ::reqwest::header::HeaderValue::from_static("application/json"),
11268 )
11269 .query(&progenitor_client::QueryParam::new("_async", &async_))
11270 .query(&progenitor_client::QueryParam::new("_config", &config))
11271 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11272 .query(&progenitor_client::QueryParam::new("_group", &group))
11273 .query(&progenitor_client::QueryParam::new("fs", &fs))
11274 .query(&progenitor_client::QueryParam::new("remote", &remote))
11275 .headers(header_map)
11276 .build()?;
11277 let info = OperationInfo {
11278 operation_id: "operations_purge",
11279 };
11280 self.pre(&mut request, &info).await?;
11281 let result = self.exec(request, &info).await;
11282 self.post(&result, &info).await?;
11283 let response = result?;
11284 match response.status().as_u16() {
11285 200u16 => ResponseValue::from_response(response).await,
11286 400u16..=499u16 => Err(Error::ErrorResponse(
11287 ResponseValue::from_response(response).await?,
11288 )),
11289 500u16..=599u16 => Err(Error::ErrorResponse(
11290 ResponseValue::from_response(response).await?,
11291 )),
11292 _ => Err(Error::UnexpectedResponse(response)),
11293 }
11294 }
11295
11296 pub async fn operations_mkdir<'a>(
11309 &'a self,
11310 async_: Option<bool>,
11311 group: Option<&'a str>,
11312 fs: &'a str,
11313 remote: &'a str,
11314 ) -> Result<
11315 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11316 Error<types::RcError>,
11317 > {
11318 let url = format!("{}/operations/mkdir", self.baseurl,);
11319 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11320 header_map.append(
11321 ::reqwest::header::HeaderName::from_static("api-version"),
11322 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11323 );
11324 #[allow(unused_mut)]
11325 let mut request = self
11326 .client
11327 .post(url)
11328 .header(
11329 ::reqwest::header::ACCEPT,
11330 ::reqwest::header::HeaderValue::from_static("application/json"),
11331 )
11332 .query(&progenitor_client::QueryParam::new("_async", &async_))
11333 .query(&progenitor_client::QueryParam::new("_group", &group))
11334 .query(&progenitor_client::QueryParam::new("fs", &fs))
11335 .query(&progenitor_client::QueryParam::new("remote", &remote))
11336 .headers(header_map)
11337 .build()?;
11338 let info = OperationInfo {
11339 operation_id: "operations_mkdir",
11340 };
11341 self.pre(&mut request, &info).await?;
11342 let result = self.exec(request, &info).await;
11343 self.post(&result, &info).await?;
11344 let response = result?;
11345 match response.status().as_u16() {
11346 200u16 => ResponseValue::from_response(response).await,
11347 400u16..=499u16 => Err(Error::ErrorResponse(
11348 ResponseValue::from_response(response).await?,
11349 )),
11350 500u16..=599u16 => Err(Error::ErrorResponse(
11351 ResponseValue::from_response(response).await?,
11352 )),
11353 _ => Err(Error::UnexpectedResponse(response)),
11354 }
11355 }
11356
11357 pub async fn operations_rmdir<'a>(
11370 &'a self,
11371 async_: Option<bool>,
11372 group: Option<&'a str>,
11373 fs: &'a str,
11374 remote: &'a str,
11375 ) -> Result<
11376 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11377 Error<types::RcError>,
11378 > {
11379 let url = format!("{}/operations/rmdir", self.baseurl,);
11380 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11381 header_map.append(
11382 ::reqwest::header::HeaderName::from_static("api-version"),
11383 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11384 );
11385 #[allow(unused_mut)]
11386 let mut request = self
11387 .client
11388 .post(url)
11389 .header(
11390 ::reqwest::header::ACCEPT,
11391 ::reqwest::header::HeaderValue::from_static("application/json"),
11392 )
11393 .query(&progenitor_client::QueryParam::new("_async", &async_))
11394 .query(&progenitor_client::QueryParam::new("_group", &group))
11395 .query(&progenitor_client::QueryParam::new("fs", &fs))
11396 .query(&progenitor_client::QueryParam::new("remote", &remote))
11397 .headers(header_map)
11398 .build()?;
11399 let info = OperationInfo {
11400 operation_id: "operations_rmdir",
11401 };
11402 self.pre(&mut request, &info).await?;
11403 let result = self.exec(request, &info).await;
11404 self.post(&result, &info).await?;
11405 let response = result?;
11406 match response.status().as_u16() {
11407 200u16 => ResponseValue::from_response(response).await,
11408 400u16..=499u16 => Err(Error::ErrorResponse(
11409 ResponseValue::from_response(response).await?,
11410 )),
11411 500u16..=599u16 => Err(Error::ErrorResponse(
11412 ResponseValue::from_response(response).await?,
11413 )),
11414 _ => Err(Error::UnexpectedResponse(response)),
11415 }
11416 }
11417
11418 pub async fn operations_check<'a>(
11451 &'a self,
11452 async_: Option<bool>,
11453 group: Option<&'a str>,
11454 check_file_fs: Option<&'a str>,
11455 check_file_hash: Option<&'a str>,
11456 check_file_remote: Option<&'a str>,
11457 combined: Option<bool>,
11458 differ: Option<bool>,
11459 download: Option<bool>,
11460 dst_fs: &'a str,
11461 error: Option<bool>,
11462 match_: Option<bool>,
11463 missing_on_dst: Option<bool>,
11464 missing_on_src: Option<bool>,
11465 one_way: Option<bool>,
11466 src_fs: &'a str,
11467 ) -> Result<ResponseValue<types::OperationsCheckResponse>, Error<types::RcError>> {
11468 let url = format!("{}/operations/check", self.baseurl,);
11469 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11470 header_map.append(
11471 ::reqwest::header::HeaderName::from_static("api-version"),
11472 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11473 );
11474 #[allow(unused_mut)]
11475 let mut request = self
11476 .client
11477 .post(url)
11478 .header(
11479 ::reqwest::header::ACCEPT,
11480 ::reqwest::header::HeaderValue::from_static("application/json"),
11481 )
11482 .query(&progenitor_client::QueryParam::new("_async", &async_))
11483 .query(&progenitor_client::QueryParam::new("_group", &group))
11484 .query(&progenitor_client::QueryParam::new(
11485 "checkFileFs",
11486 &check_file_fs,
11487 ))
11488 .query(&progenitor_client::QueryParam::new(
11489 "checkFileHash",
11490 &check_file_hash,
11491 ))
11492 .query(&progenitor_client::QueryParam::new(
11493 "checkFileRemote",
11494 &check_file_remote,
11495 ))
11496 .query(&progenitor_client::QueryParam::new("combined", &combined))
11497 .query(&progenitor_client::QueryParam::new("differ", &differ))
11498 .query(&progenitor_client::QueryParam::new("download", &download))
11499 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11500 .query(&progenitor_client::QueryParam::new("error", &error))
11501 .query(&progenitor_client::QueryParam::new("match", &match_))
11502 .query(&progenitor_client::QueryParam::new(
11503 "missingOnDst",
11504 &missing_on_dst,
11505 ))
11506 .query(&progenitor_client::QueryParam::new(
11507 "missingOnSrc",
11508 &missing_on_src,
11509 ))
11510 .query(&progenitor_client::QueryParam::new("oneWay", &one_way))
11511 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11512 .headers(header_map)
11513 .build()?;
11514 let info = OperationInfo {
11515 operation_id: "operations_check",
11516 };
11517 self.pre(&mut request, &info).await?;
11518 let result = self.exec(request, &info).await;
11519 self.post(&result, &info).await?;
11520 let response = result?;
11521 match response.status().as_u16() {
11522 200u16 => ResponseValue::from_response(response).await,
11523 400u16..=499u16 => Err(Error::ErrorResponse(
11524 ResponseValue::from_response(response).await?,
11525 )),
11526 500u16..=599u16 => Err(Error::ErrorResponse(
11527 ResponseValue::from_response(response).await?,
11528 )),
11529 _ => Err(Error::UnexpectedResponse(response)),
11530 }
11531 }
11532
11533 pub async fn sync_sync<'a>(
11551 &'a self,
11552 async_: Option<bool>,
11553 config: Option<&'a str>,
11554 filter: Option<&'a str>,
11555 group: Option<&'a str>,
11556 create_empty_src_dirs: Option<bool>,
11557 dst_fs: &'a str,
11558 src_fs: &'a str,
11559 ) -> Result<
11560 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11561 Error<types::RcError>,
11562 > {
11563 let url = format!("{}/sync/sync", self.baseurl,);
11564 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11565 header_map.append(
11566 ::reqwest::header::HeaderName::from_static("api-version"),
11567 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11568 );
11569 #[allow(unused_mut)]
11570 let mut request = self
11571 .client
11572 .post(url)
11573 .header(
11574 ::reqwest::header::ACCEPT,
11575 ::reqwest::header::HeaderValue::from_static("application/json"),
11576 )
11577 .query(&progenitor_client::QueryParam::new("_async", &async_))
11578 .query(&progenitor_client::QueryParam::new("_config", &config))
11579 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11580 .query(&progenitor_client::QueryParam::new("_group", &group))
11581 .query(&progenitor_client::QueryParam::new(
11582 "createEmptySrcDirs",
11583 &create_empty_src_dirs,
11584 ))
11585 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11586 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11587 .headers(header_map)
11588 .build()?;
11589 let info = OperationInfo {
11590 operation_id: "sync_sync",
11591 };
11592 self.pre(&mut request, &info).await?;
11593 let result = self.exec(request, &info).await;
11594 self.post(&result, &info).await?;
11595 let response = result?;
11596 match response.status().as_u16() {
11597 200u16 => ResponseValue::from_response(response).await,
11598 400u16..=499u16 => Err(Error::ErrorResponse(
11599 ResponseValue::from_response(response).await?,
11600 )),
11601 500u16..=599u16 => Err(Error::ErrorResponse(
11602 ResponseValue::from_response(response).await?,
11603 )),
11604 _ => Err(Error::UnexpectedResponse(response)),
11605 }
11606 }
11607
11608 pub async fn sync_copy<'a>(
11626 &'a self,
11627 async_: Option<bool>,
11628 config: Option<&'a str>,
11629 filter: Option<&'a str>,
11630 group: Option<&'a str>,
11631 create_empty_src_dirs: Option<bool>,
11632 dst_fs: &'a str,
11633 src_fs: &'a str,
11634 ) -> Result<
11635 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11636 Error<types::RcError>,
11637 > {
11638 let url = format!("{}/sync/copy", self.baseurl,);
11639 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11640 header_map.append(
11641 ::reqwest::header::HeaderName::from_static("api-version"),
11642 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11643 );
11644 #[allow(unused_mut)]
11645 let mut request = self
11646 .client
11647 .post(url)
11648 .header(
11649 ::reqwest::header::ACCEPT,
11650 ::reqwest::header::HeaderValue::from_static("application/json"),
11651 )
11652 .query(&progenitor_client::QueryParam::new("_async", &async_))
11653 .query(&progenitor_client::QueryParam::new("_config", &config))
11654 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11655 .query(&progenitor_client::QueryParam::new("_group", &group))
11656 .query(&progenitor_client::QueryParam::new(
11657 "createEmptySrcDirs",
11658 &create_empty_src_dirs,
11659 ))
11660 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11661 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11662 .headers(header_map)
11663 .build()?;
11664 let info = OperationInfo {
11665 operation_id: "sync_copy",
11666 };
11667 self.pre(&mut request, &info).await?;
11668 let result = self.exec(request, &info).await;
11669 self.post(&result, &info).await?;
11670 let response = result?;
11671 match response.status().as_u16() {
11672 200u16 => ResponseValue::from_response(response).await,
11673 400u16..=499u16 => Err(Error::ErrorResponse(
11674 ResponseValue::from_response(response).await?,
11675 )),
11676 500u16..=599u16 => Err(Error::ErrorResponse(
11677 ResponseValue::from_response(response).await?,
11678 )),
11679 _ => Err(Error::UnexpectedResponse(response)),
11680 }
11681 }
11682
11683 pub async fn sync_move<'a>(
11703 &'a self,
11704 async_: Option<bool>,
11705 config: Option<&'a str>,
11706 filter: Option<&'a str>,
11707 group: Option<&'a str>,
11708 create_empty_src_dirs: Option<bool>,
11709 delete_empty_src_dirs: Option<bool>,
11710 dst_fs: &'a str,
11711 src_fs: &'a str,
11712 ) -> Result<
11713 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11714 Error<types::RcError>,
11715 > {
11716 let url = format!("{}/sync/move", self.baseurl,);
11717 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11718 header_map.append(
11719 ::reqwest::header::HeaderName::from_static("api-version"),
11720 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11721 );
11722 #[allow(unused_mut)]
11723 let mut request = self
11724 .client
11725 .post(url)
11726 .header(
11727 ::reqwest::header::ACCEPT,
11728 ::reqwest::header::HeaderValue::from_static("application/json"),
11729 )
11730 .query(&progenitor_client::QueryParam::new("_async", &async_))
11731 .query(&progenitor_client::QueryParam::new("_config", &config))
11732 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11733 .query(&progenitor_client::QueryParam::new("_group", &group))
11734 .query(&progenitor_client::QueryParam::new(
11735 "createEmptySrcDirs",
11736 &create_empty_src_dirs,
11737 ))
11738 .query(&progenitor_client::QueryParam::new(
11739 "deleteEmptySrcDirs",
11740 &delete_empty_src_dirs,
11741 ))
11742 .query(&progenitor_client::QueryParam::new("dstFs", &dst_fs))
11743 .query(&progenitor_client::QueryParam::new("srcFs", &src_fs))
11744 .headers(header_map)
11745 .build()?;
11746 let info = OperationInfo {
11747 operation_id: "sync_move",
11748 };
11749 self.pre(&mut request, &info).await?;
11750 let result = self.exec(request, &info).await;
11751 self.post(&result, &info).await?;
11752 let response = result?;
11753 match response.status().as_u16() {
11754 200u16 => ResponseValue::from_response(response).await,
11755 400u16..=499u16 => Err(Error::ErrorResponse(
11756 ResponseValue::from_response(response).await?,
11757 )),
11758 500u16..=599u16 => Err(Error::ErrorResponse(
11759 ResponseValue::from_response(response).await?,
11760 )),
11761 _ => Err(Error::UnexpectedResponse(response)),
11762 }
11763 }
11764
11765 pub async fn sync_bisync<'a>(
11808 &'a self,
11809 async_: Option<bool>,
11810 config: Option<&'a str>,
11811 filter: Option<&'a str>,
11812 group: Option<&'a str>,
11813 backupdir1: Option<&'a str>,
11814 backupdir2: Option<&'a str>,
11815 check_access: Option<bool>,
11816 check_filename: Option<&'a str>,
11817 check_sync: Option<bool>,
11818 create_empty_src_dirs: Option<bool>,
11819 dry_run: Option<bool>,
11820 filters_file: Option<&'a str>,
11821 force: Option<bool>,
11822 ignore_listing_checksum: Option<bool>,
11823 max_delete: Option<f64>,
11824 no_cleanup: Option<bool>,
11825 path1: &'a str,
11826 path2: &'a str,
11827 remove_empty_dirs: Option<bool>,
11828 resilient: Option<bool>,
11829 resync: Option<bool>,
11830 workdir: Option<&'a str>,
11831 ) -> Result<
11832 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
11833 Error<types::RcError>,
11834 > {
11835 let url = format!("{}/sync/bisync", self.baseurl,);
11836 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11837 header_map.append(
11838 ::reqwest::header::HeaderName::from_static("api-version"),
11839 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11840 );
11841 #[allow(unused_mut)]
11842 let mut request = self
11843 .client
11844 .post(url)
11845 .header(
11846 ::reqwest::header::ACCEPT,
11847 ::reqwest::header::HeaderValue::from_static("application/json"),
11848 )
11849 .query(&progenitor_client::QueryParam::new("_async", &async_))
11850 .query(&progenitor_client::QueryParam::new("_config", &config))
11851 .query(&progenitor_client::QueryParam::new("_filter", &filter))
11852 .query(&progenitor_client::QueryParam::new("_group", &group))
11853 .query(&progenitor_client::QueryParam::new(
11854 "backupdir1",
11855 &backupdir1,
11856 ))
11857 .query(&progenitor_client::QueryParam::new(
11858 "backupdir2",
11859 &backupdir2,
11860 ))
11861 .query(&progenitor_client::QueryParam::new(
11862 "checkAccess",
11863 &check_access,
11864 ))
11865 .query(&progenitor_client::QueryParam::new(
11866 "checkFilename",
11867 &check_filename,
11868 ))
11869 .query(&progenitor_client::QueryParam::new(
11870 "checkSync",
11871 &check_sync,
11872 ))
11873 .query(&progenitor_client::QueryParam::new(
11874 "createEmptySrcDirs",
11875 &create_empty_src_dirs,
11876 ))
11877 .query(&progenitor_client::QueryParam::new("dryRun", &dry_run))
11878 .query(&progenitor_client::QueryParam::new(
11879 "filtersFile",
11880 &filters_file,
11881 ))
11882 .query(&progenitor_client::QueryParam::new("force", &force))
11883 .query(&progenitor_client::QueryParam::new(
11884 "ignoreListingChecksum",
11885 &ignore_listing_checksum,
11886 ))
11887 .query(&progenitor_client::QueryParam::new(
11888 "maxDelete",
11889 &max_delete,
11890 ))
11891 .query(&progenitor_client::QueryParam::new(
11892 "noCleanup",
11893 &no_cleanup,
11894 ))
11895 .query(&progenitor_client::QueryParam::new("path1", &path1))
11896 .query(&progenitor_client::QueryParam::new("path2", &path2))
11897 .query(&progenitor_client::QueryParam::new(
11898 "removeEmptyDirs",
11899 &remove_empty_dirs,
11900 ))
11901 .query(&progenitor_client::QueryParam::new("resilient", &resilient))
11902 .query(&progenitor_client::QueryParam::new("resync", &resync))
11903 .query(&progenitor_client::QueryParam::new("workdir", &workdir))
11904 .headers(header_map)
11905 .build()?;
11906 let info = OperationInfo {
11907 operation_id: "sync_bisync",
11908 };
11909 self.pre(&mut request, &info).await?;
11910 let result = self.exec(request, &info).await;
11911 self.post(&result, &info).await?;
11912 let response = result?;
11913 match response.status().as_u16() {
11914 200u16 => ResponseValue::from_response(response).await,
11915 400u16..=499u16 => Err(Error::ErrorResponse(
11916 ResponseValue::from_response(response).await?,
11917 )),
11918 500u16..=599u16 => Err(Error::ErrorResponse(
11919 ResponseValue::from_response(response).await?,
11920 )),
11921 _ => Err(Error::UnexpectedResponse(response)),
11922 }
11923 }
11924
11925 pub async fn options_blocks<'a>(
11936 &'a self,
11937 async_: Option<bool>,
11938 group: Option<&'a str>,
11939 ) -> Result<ResponseValue<types::OptionsBlocksResponse>, Error<types::RcError>> {
11940 let url = format!("{}/options/blocks", self.baseurl,);
11941 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11942 header_map.append(
11943 ::reqwest::header::HeaderName::from_static("api-version"),
11944 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
11945 );
11946 #[allow(unused_mut)]
11947 let mut request = self
11948 .client
11949 .post(url)
11950 .header(
11951 ::reqwest::header::ACCEPT,
11952 ::reqwest::header::HeaderValue::from_static("application/json"),
11953 )
11954 .query(&progenitor_client::QueryParam::new("_async", &async_))
11955 .query(&progenitor_client::QueryParam::new("_group", &group))
11956 .headers(header_map)
11957 .build()?;
11958 let info = OperationInfo {
11959 operation_id: "options_blocks",
11960 };
11961 self.pre(&mut request, &info).await?;
11962 let result = self.exec(request, &info).await;
11963 self.post(&result, &info).await?;
11964 let response = result?;
11965 match response.status().as_u16() {
11966 200u16 => ResponseValue::from_response(response).await,
11967 400u16..=499u16 => Err(Error::ErrorResponse(
11968 ResponseValue::from_response(response).await?,
11969 )),
11970 500u16..=599u16 => Err(Error::ErrorResponse(
11971 ResponseValue::from_response(response).await?,
11972 )),
11973 _ => Err(Error::UnexpectedResponse(response)),
11974 }
11975 }
11976
11977 pub async fn options_get<'a>(
11990 &'a self,
11991 async_: Option<bool>,
11992 group: Option<&'a str>,
11993 blocks: Option<&'a str>,
11994 ) -> Result<ResponseValue<types::OptionsGetResponse>, Error<types::RcError>> {
11995 let url = format!("{}/options/get", self.baseurl,);
11996 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
11997 header_map.append(
11998 ::reqwest::header::HeaderName::from_static("api-version"),
11999 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12000 );
12001 #[allow(unused_mut)]
12002 let mut request = self
12003 .client
12004 .post(url)
12005 .header(
12006 ::reqwest::header::ACCEPT,
12007 ::reqwest::header::HeaderValue::from_static("application/json"),
12008 )
12009 .query(&progenitor_client::QueryParam::new("_async", &async_))
12010 .query(&progenitor_client::QueryParam::new("_group", &group))
12011 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12012 .headers(header_map)
12013 .build()?;
12014 let info = OperationInfo {
12015 operation_id: "options_get",
12016 };
12017 self.pre(&mut request, &info).await?;
12018 let result = self.exec(request, &info).await;
12019 self.post(&result, &info).await?;
12020 let response = result?;
12021 match response.status().as_u16() {
12022 200u16 => ResponseValue::from_response(response).await,
12023 400u16..=499u16 => Err(Error::ErrorResponse(
12024 ResponseValue::from_response(response).await?,
12025 )),
12026 500u16..=599u16 => Err(Error::ErrorResponse(
12027 ResponseValue::from_response(response).await?,
12028 )),
12029 _ => Err(Error::UnexpectedResponse(response)),
12030 }
12031 }
12032
12033 pub async fn options_info<'a>(
12047 &'a self,
12048 async_: Option<bool>,
12049 group: Option<&'a str>,
12050 blocks: Option<&'a str>,
12051 ) -> Result<ResponseValue<types::OptionsInfoResponse>, Error<types::RcError>> {
12052 let url = format!("{}/options/info", self.baseurl,);
12053 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12054 header_map.append(
12055 ::reqwest::header::HeaderName::from_static("api-version"),
12056 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12057 );
12058 #[allow(unused_mut)]
12059 let mut request = self
12060 .client
12061 .post(url)
12062 .header(
12063 ::reqwest::header::ACCEPT,
12064 ::reqwest::header::HeaderValue::from_static("application/json"),
12065 )
12066 .query(&progenitor_client::QueryParam::new("_async", &async_))
12067 .query(&progenitor_client::QueryParam::new("_group", &group))
12068 .query(&progenitor_client::QueryParam::new("blocks", &blocks))
12069 .headers(header_map)
12070 .build()?;
12071 let info = OperationInfo {
12072 operation_id: "options_info",
12073 };
12074 self.pre(&mut request, &info).await?;
12075 let result = self.exec(request, &info).await;
12076 self.post(&result, &info).await?;
12077 let response = result?;
12078 match response.status().as_u16() {
12079 200u16 => ResponseValue::from_response(response).await,
12080 400u16..=499u16 => Err(Error::ErrorResponse(
12081 ResponseValue::from_response(response).await?,
12082 )),
12083 500u16..=599u16 => Err(Error::ErrorResponse(
12084 ResponseValue::from_response(response).await?,
12085 )),
12086 _ => Err(Error::UnexpectedResponse(response)),
12087 }
12088 }
12089
12090 pub async fn options_set<'a>(
12121 &'a self,
12122 async_: Option<bool>,
12123 group: Option<&'a str>,
12124 dlna: Option<
12125 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetDlnaValue>,
12126 >,
12127 filter: Option<
12128 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFilterValue>,
12129 >,
12130 ftp: Option<
12131 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetFtpValue>,
12132 >,
12133 http: Option<
12134 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetHttpValue>,
12135 >,
12136 log: Option<
12137 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetLogValue>,
12138 >,
12139 main: Option<
12140 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMainValue>,
12141 >,
12142 mount: Option<
12143 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetMountValue>,
12144 >,
12145 nfs: Option<
12146 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetNfsValue>,
12147 >,
12148 proxy: Option<
12149 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetProxyValue>,
12150 >,
12151 rc: Option<
12152 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetRcValue>,
12153 >,
12154 restic: Option<
12155 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetResticValue>,
12156 >,
12157 s3: Option<
12158 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetS3Value>,
12159 >,
12160 sftp: Option<
12161 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetSftpValue>,
12162 >,
12163 vfs: Option<
12164 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetVfsValue>,
12165 >,
12166 webdav: Option<
12167 &'a ::std::collections::HashMap<::std::string::String, types::OptionsSetWebdavValue>,
12168 >,
12169 ) -> Result<
12170 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12171 Error<types::RcError>,
12172 > {
12173 let url = format!("{}/options/set", 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("dlna", &dlna))
12190 .query(&progenitor_client::QueryParam::new("filter", &filter))
12191 .query(&progenitor_client::QueryParam::new("ftp", &ftp))
12192 .query(&progenitor_client::QueryParam::new("http", &http))
12193 .query(&progenitor_client::QueryParam::new("log", &log))
12194 .query(&progenitor_client::QueryParam::new("main", &main))
12195 .query(&progenitor_client::QueryParam::new("mount", &mount))
12196 .query(&progenitor_client::QueryParam::new("nfs", &nfs))
12197 .query(&progenitor_client::QueryParam::new("proxy", &proxy))
12198 .query(&progenitor_client::QueryParam::new("rc", &rc))
12199 .query(&progenitor_client::QueryParam::new("restic", &restic))
12200 .query(&progenitor_client::QueryParam::new("s3", &s3))
12201 .query(&progenitor_client::QueryParam::new("sftp", &sftp))
12202 .query(&progenitor_client::QueryParam::new("vfs", &vfs))
12203 .query(&progenitor_client::QueryParam::new("webdav", &webdav))
12204 .headers(header_map)
12205 .build()?;
12206 let info = OperationInfo {
12207 operation_id: "options_set",
12208 };
12209 self.pre(&mut request, &info).await?;
12210 let result = self.exec(request, &info).await;
12211 self.post(&result, &info).await?;
12212 let response = result?;
12213 match response.status().as_u16() {
12214 200u16 => ResponseValue::from_response(response).await,
12215 400u16..=499u16 => Err(Error::ErrorResponse(
12216 ResponseValue::from_response(response).await?,
12217 )),
12218 500u16..=599u16 => Err(Error::ErrorResponse(
12219 ResponseValue::from_response(response).await?,
12220 )),
12221 _ => Err(Error::UnexpectedResponse(response)),
12222 }
12223 }
12224
12225 pub async fn options_local<'a>(
12237 &'a self,
12238 async_: Option<bool>,
12239 group: Option<&'a str>,
12240 ) -> Result<ResponseValue<types::OptionsLocalResponse>, Error<types::RcError>> {
12241 let url = format!("{}/options/local", self.baseurl,);
12242 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12243 header_map.append(
12244 ::reqwest::header::HeaderName::from_static("api-version"),
12245 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12246 );
12247 #[allow(unused_mut)]
12248 let mut request = self
12249 .client
12250 .post(url)
12251 .header(
12252 ::reqwest::header::ACCEPT,
12253 ::reqwest::header::HeaderValue::from_static("application/json"),
12254 )
12255 .query(&progenitor_client::QueryParam::new("_async", &async_))
12256 .query(&progenitor_client::QueryParam::new("_group", &group))
12257 .headers(header_map)
12258 .build()?;
12259 let info = OperationInfo {
12260 operation_id: "options_local",
12261 };
12262 self.pre(&mut request, &info).await?;
12263 let result = self.exec(request, &info).await;
12264 self.post(&result, &info).await?;
12265 let response = result?;
12266 match response.status().as_u16() {
12267 200u16 => ResponseValue::from_response(response).await,
12268 400u16..=499u16 => Err(Error::ErrorResponse(
12269 ResponseValue::from_response(response).await?,
12270 )),
12271 500u16..=599u16 => Err(Error::ErrorResponse(
12272 ResponseValue::from_response(response).await?,
12273 )),
12274 _ => Err(Error::UnexpectedResponse(response)),
12275 }
12276 }
12277
12278 pub async fn serve_list<'a>(
12289 &'a self,
12290 async_: Option<bool>,
12291 group: Option<&'a str>,
12292 ) -> Result<ResponseValue<types::ServeListResponse>, Error<types::RcError>> {
12293 let url = format!("{}/serve/list", self.baseurl,);
12294 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12295 header_map.append(
12296 ::reqwest::header::HeaderName::from_static("api-version"),
12297 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12298 );
12299 #[allow(unused_mut)]
12300 let mut request = self
12301 .client
12302 .post(url)
12303 .header(
12304 ::reqwest::header::ACCEPT,
12305 ::reqwest::header::HeaderValue::from_static("application/json"),
12306 )
12307 .query(&progenitor_client::QueryParam::new("_async", &async_))
12308 .query(&progenitor_client::QueryParam::new("_group", &group))
12309 .headers(header_map)
12310 .build()?;
12311 let info = OperationInfo {
12312 operation_id: "serve_list",
12313 };
12314 self.pre(&mut request, &info).await?;
12315 let result = self.exec(request, &info).await;
12316 self.post(&result, &info).await?;
12317 let response = result?;
12318 match response.status().as_u16() {
12319 200u16 => ResponseValue::from_response(response).await,
12320 400u16..=499u16 => Err(Error::ErrorResponse(
12321 ResponseValue::from_response(response).await?,
12322 )),
12323 500u16..=599u16 => Err(Error::ErrorResponse(
12324 ResponseValue::from_response(response).await?,
12325 )),
12326 _ => Err(Error::UnexpectedResponse(response)),
12327 }
12328 }
12329
12330 pub async fn serve_start<'a>(
12350 &'a self,
12351 async_: Option<bool>,
12352 config: Option<&'a str>,
12353 filter: Option<&'a str>,
12354 group: Option<&'a str>,
12355 addr: &'a str,
12356 fs: &'a str,
12357 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12358 type_: &'a str,
12359 ) -> Result<ResponseValue<types::ServeStartResponse>, Error<types::RcError>> {
12360 let url = format!("{}/serve/start", self.baseurl,);
12361 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12362 header_map.append(
12363 ::reqwest::header::HeaderName::from_static("api-version"),
12364 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12365 );
12366 #[allow(unused_mut)]
12367 let mut request = self
12368 .client
12369 .post(url)
12370 .header(
12371 ::reqwest::header::ACCEPT,
12372 ::reqwest::header::HeaderValue::from_static("application/json"),
12373 )
12374 .query(&progenitor_client::QueryParam::new("_async", &async_))
12375 .query(&progenitor_client::QueryParam::new("_config", &config))
12376 .query(&progenitor_client::QueryParam::new("_filter", &filter))
12377 .query(&progenitor_client::QueryParam::new("_group", &group))
12378 .query(&progenitor_client::QueryParam::new("addr", &addr))
12379 .query(&progenitor_client::QueryParam::new("fs", &fs))
12380 .query(&progenitor_client::QueryParam::new("params", ¶ms))
12381 .query(&progenitor_client::QueryParam::new("type", &type_))
12382 .headers(header_map)
12383 .build()?;
12384 let info = OperationInfo {
12385 operation_id: "serve_start",
12386 };
12387 self.pre(&mut request, &info).await?;
12388 let result = self.exec(request, &info).await;
12389 self.post(&result, &info).await?;
12390 let response = result?;
12391 match response.status().as_u16() {
12392 200u16 => ResponseValue::from_response(response).await,
12393 400u16..=499u16 => Err(Error::ErrorResponse(
12394 ResponseValue::from_response(response).await?,
12395 )),
12396 500u16..=599u16 => Err(Error::ErrorResponse(
12397 ResponseValue::from_response(response).await?,
12398 )),
12399 _ => Err(Error::UnexpectedResponse(response)),
12400 }
12401 }
12402
12403 pub async fn serve_stop<'a>(
12416 &'a self,
12417 async_: Option<bool>,
12418 group: Option<&'a str>,
12419 id: &'a str,
12420 ) -> Result<
12421 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12422 Error<types::RcError>,
12423 > {
12424 let url = format!("{}/serve/stop", self.baseurl,);
12425 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12426 header_map.append(
12427 ::reqwest::header::HeaderName::from_static("api-version"),
12428 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12429 );
12430 #[allow(unused_mut)]
12431 let mut request = self
12432 .client
12433 .post(url)
12434 .header(
12435 ::reqwest::header::ACCEPT,
12436 ::reqwest::header::HeaderValue::from_static("application/json"),
12437 )
12438 .query(&progenitor_client::QueryParam::new("_async", &async_))
12439 .query(&progenitor_client::QueryParam::new("_group", &group))
12440 .query(&progenitor_client::QueryParam::new("id", &id))
12441 .headers(header_map)
12442 .build()?;
12443 let info = OperationInfo {
12444 operation_id: "serve_stop",
12445 };
12446 self.pre(&mut request, &info).await?;
12447 let result = self.exec(request, &info).await;
12448 self.post(&result, &info).await?;
12449 let response = result?;
12450 match response.status().as_u16() {
12451 200u16 => ResponseValue::from_response(response).await,
12452 400u16..=499u16 => Err(Error::ErrorResponse(
12453 ResponseValue::from_response(response).await?,
12454 )),
12455 500u16..=599u16 => Err(Error::ErrorResponse(
12456 ResponseValue::from_response(response).await?,
12457 )),
12458 _ => Err(Error::UnexpectedResponse(response)),
12459 }
12460 }
12461
12462 pub async fn serve_stopall<'a>(
12473 &'a self,
12474 async_: Option<bool>,
12475 group: Option<&'a str>,
12476 ) -> Result<
12477 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12478 Error<types::RcError>,
12479 > {
12480 let url = format!("{}/serve/stopall", self.baseurl,);
12481 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12482 header_map.append(
12483 ::reqwest::header::HeaderName::from_static("api-version"),
12484 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12485 );
12486 #[allow(unused_mut)]
12487 let mut request = self
12488 .client
12489 .post(url)
12490 .header(
12491 ::reqwest::header::ACCEPT,
12492 ::reqwest::header::HeaderValue::from_static("application/json"),
12493 )
12494 .query(&progenitor_client::QueryParam::new("_async", &async_))
12495 .query(&progenitor_client::QueryParam::new("_group", &group))
12496 .headers(header_map)
12497 .build()?;
12498 let info = OperationInfo {
12499 operation_id: "serve_stopall",
12500 };
12501 self.pre(&mut request, &info).await?;
12502 let result = self.exec(request, &info).await;
12503 self.post(&result, &info).await?;
12504 let response = result?;
12505 match response.status().as_u16() {
12506 200u16 => ResponseValue::from_response(response).await,
12507 400u16..=499u16 => Err(Error::ErrorResponse(
12508 ResponseValue::from_response(response).await?,
12509 )),
12510 500u16..=599u16 => Err(Error::ErrorResponse(
12511 ResponseValue::from_response(response).await?,
12512 )),
12513 _ => Err(Error::UnexpectedResponse(response)),
12514 }
12515 }
12516
12517 pub async fn serve_types<'a>(
12528 &'a self,
12529 async_: Option<bool>,
12530 group: Option<&'a str>,
12531 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
12532 let url = format!("{}/serve/types", self.baseurl,);
12533 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12534 header_map.append(
12535 ::reqwest::header::HeaderName::from_static("api-version"),
12536 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12537 );
12538 #[allow(unused_mut)]
12539 let mut request = self
12540 .client
12541 .post(url)
12542 .header(
12543 ::reqwest::header::ACCEPT,
12544 ::reqwest::header::HeaderValue::from_static("application/json"),
12545 )
12546 .query(&progenitor_client::QueryParam::new("_async", &async_))
12547 .query(&progenitor_client::QueryParam::new("_group", &group))
12548 .headers(header_map)
12549 .build()?;
12550 let info = OperationInfo {
12551 operation_id: "serve_types",
12552 };
12553 self.pre(&mut request, &info).await?;
12554 let result = self.exec(request, &info).await;
12555 self.post(&result, &info).await?;
12556 let response = result?;
12557 match response.status().as_u16() {
12558 200u16 => Ok(ResponseValue::empty(response)),
12559 400u16..=499u16 => Err(Error::ErrorResponse(
12560 ResponseValue::from_response(response).await?,
12561 )),
12562 500u16..=599u16 => Err(Error::ErrorResponse(
12563 ResponseValue::from_response(response).await?,
12564 )),
12565 _ => Err(Error::UnexpectedResponse(response)),
12566 }
12567 }
12568
12569 pub async fn vfs_forget<'a>(
12583 &'a self,
12584 async_: Option<bool>,
12585 group: Option<&'a str>,
12586 fs: Option<&'a str>,
12587 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12588 ) -> Result<ResponseValue<types::VfsForgetResponse>, Error<types::RcError>> {
12589 let url = format!("{}/vfs/forget", self.baseurl,);
12590 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12591 header_map.append(
12592 ::reqwest::header::HeaderName::from_static("api-version"),
12593 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12594 );
12595 #[allow(unused_mut)]
12596 let mut request = self
12597 .client
12598 .post(url)
12599 .header(
12600 ::reqwest::header::ACCEPT,
12601 ::reqwest::header::HeaderValue::from_static("application/json"),
12602 )
12603 .query(&progenitor_client::QueryParam::new("_async", &async_))
12604 .query(&progenitor_client::QueryParam::new("_group", &group))
12605 .query(&progenitor_client::QueryParam::new("fs", &fs))
12606 .query(&progenitor_client::QueryParam::new("params", ¶ms))
12607 .headers(header_map)
12608 .build()?;
12609 let info = OperationInfo {
12610 operation_id: "vfs_forget",
12611 };
12612 self.pre(&mut request, &info).await?;
12613 let result = self.exec(request, &info).await;
12614 self.post(&result, &info).await?;
12615 let response = result?;
12616 match response.status().as_u16() {
12617 200u16 => ResponseValue::from_response(response).await,
12618 400u16..=499u16 => Err(Error::ErrorResponse(
12619 ResponseValue::from_response(response).await?,
12620 )),
12621 500u16..=599u16 => Err(Error::ErrorResponse(
12622 ResponseValue::from_response(response).await?,
12623 )),
12624 _ => Err(Error::UnexpectedResponse(response)),
12625 }
12626 }
12627
12628 pub async fn vfs_list<'a>(
12640 &'a self,
12641 async_: Option<bool>,
12642 group: Option<&'a str>,
12643 fs: Option<&'a str>,
12644 ) -> Result<ResponseValue<types::VfsListResponse>, Error<types::RcError>> {
12645 let url = format!("{}/vfs/list", self.baseurl,);
12646 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12647 header_map.append(
12648 ::reqwest::header::HeaderName::from_static("api-version"),
12649 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12650 );
12651 #[allow(unused_mut)]
12652 let mut request = self
12653 .client
12654 .post(url)
12655 .header(
12656 ::reqwest::header::ACCEPT,
12657 ::reqwest::header::HeaderValue::from_static("application/json"),
12658 )
12659 .query(&progenitor_client::QueryParam::new("_async", &async_))
12660 .query(&progenitor_client::QueryParam::new("_group", &group))
12661 .query(&progenitor_client::QueryParam::new("fs", &fs))
12662 .headers(header_map)
12663 .build()?;
12664 let info = OperationInfo {
12665 operation_id: "vfs_list",
12666 };
12667 self.pre(&mut request, &info).await?;
12668 let result = self.exec(request, &info).await;
12669 self.post(&result, &info).await?;
12670 let response = result?;
12671 match response.status().as_u16() {
12672 200u16 => ResponseValue::from_response(response).await,
12673 400u16..=499u16 => Err(Error::ErrorResponse(
12674 ResponseValue::from_response(response).await?,
12675 )),
12676 500u16..=599u16 => Err(Error::ErrorResponse(
12677 ResponseValue::from_response(response).await?,
12678 )),
12679 _ => Err(Error::UnexpectedResponse(response)),
12680 }
12681 }
12682
12683 pub async fn vfs_poll_interval<'a>(
12701 &'a self,
12702 async_: Option<bool>,
12703 group: Option<&'a str>,
12704 fs: Option<&'a str>,
12705 interval: Option<&'a str>,
12706 timeout: Option<&'a str>,
12707 ) -> Result<
12708 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12709 Error<types::RcError>,
12710 > {
12711 let url = format!("{}/vfs/poll-interval", self.baseurl,);
12712 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12713 header_map.append(
12714 ::reqwest::header::HeaderName::from_static("api-version"),
12715 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12716 );
12717 #[allow(unused_mut)]
12718 let mut request = self
12719 .client
12720 .post(url)
12721 .header(
12722 ::reqwest::header::ACCEPT,
12723 ::reqwest::header::HeaderValue::from_static("application/json"),
12724 )
12725 .query(&progenitor_client::QueryParam::new("_async", &async_))
12726 .query(&progenitor_client::QueryParam::new("_group", &group))
12727 .query(&progenitor_client::QueryParam::new("fs", &fs))
12728 .query(&progenitor_client::QueryParam::new("interval", &interval))
12729 .query(&progenitor_client::QueryParam::new("timeout", &timeout))
12730 .headers(header_map)
12731 .build()?;
12732 let info = OperationInfo {
12733 operation_id: "vfs_poll_interval",
12734 };
12735 self.pre(&mut request, &info).await?;
12736 let result = self.exec(request, &info).await;
12737 self.post(&result, &info).await?;
12738 let response = result?;
12739 match response.status().as_u16() {
12740 200u16 => ResponseValue::from_response(response).await,
12741 400u16..=499u16 => Err(Error::ErrorResponse(
12742 ResponseValue::from_response(response).await?,
12743 )),
12744 500u16..=599u16 => Err(Error::ErrorResponse(
12745 ResponseValue::from_response(response).await?,
12746 )),
12747 _ => Err(Error::UnexpectedResponse(response)),
12748 }
12749 }
12750
12751 pub async fn vfs_queue<'a>(
12763 &'a self,
12764 async_: Option<bool>,
12765 group: Option<&'a str>,
12766 fs: Option<&'a str>,
12767 ) -> Result<ResponseValue<types::VfsQueueResponse>, Error<types::RcError>> {
12768 let url = format!("{}/vfs/queue", self.baseurl,);
12769 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12770 header_map.append(
12771 ::reqwest::header::HeaderName::from_static("api-version"),
12772 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12773 );
12774 #[allow(unused_mut)]
12775 let mut request = self
12776 .client
12777 .post(url)
12778 .header(
12779 ::reqwest::header::ACCEPT,
12780 ::reqwest::header::HeaderValue::from_static("application/json"),
12781 )
12782 .query(&progenitor_client::QueryParam::new("_async", &async_))
12783 .query(&progenitor_client::QueryParam::new("_group", &group))
12784 .query(&progenitor_client::QueryParam::new("fs", &fs))
12785 .headers(header_map)
12786 .build()?;
12787 let info = OperationInfo {
12788 operation_id: "vfs_queue",
12789 };
12790 self.pre(&mut request, &info).await?;
12791 let result = self.exec(request, &info).await;
12792 self.post(&result, &info).await?;
12793 let response = result?;
12794 match response.status().as_u16() {
12795 200u16 => ResponseValue::from_response(response).await,
12796 400u16..=499u16 => Err(Error::ErrorResponse(
12797 ResponseValue::from_response(response).await?,
12798 )),
12799 500u16..=599u16 => Err(Error::ErrorResponse(
12800 ResponseValue::from_response(response).await?,
12801 )),
12802 _ => Err(Error::UnexpectedResponse(response)),
12803 }
12804 }
12805
12806 pub async fn vfs_queue_set_expiry<'a>(
12824 &'a self,
12825 async_: Option<bool>,
12826 group: Option<&'a str>,
12827 expiry: f64,
12828 fs: Option<&'a str>,
12829 id: i64,
12830 relative: Option<bool>,
12831 ) -> Result<
12832 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12833 Error<types::RcError>,
12834 > {
12835 let url = format!("{}/vfs/queue-set-expiry", self.baseurl,);
12836 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12837 header_map.append(
12838 ::reqwest::header::HeaderName::from_static("api-version"),
12839 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12840 );
12841 #[allow(unused_mut)]
12842 let mut request = self
12843 .client
12844 .post(url)
12845 .header(
12846 ::reqwest::header::ACCEPT,
12847 ::reqwest::header::HeaderValue::from_static("application/json"),
12848 )
12849 .query(&progenitor_client::QueryParam::new("_async", &async_))
12850 .query(&progenitor_client::QueryParam::new("_group", &group))
12851 .query(&progenitor_client::QueryParam::new("expiry", &expiry))
12852 .query(&progenitor_client::QueryParam::new("fs", &fs))
12853 .query(&progenitor_client::QueryParam::new("id", &id))
12854 .query(&progenitor_client::QueryParam::new("relative", &relative))
12855 .headers(header_map)
12856 .build()?;
12857 let info = OperationInfo {
12858 operation_id: "vfs_queue_set_expiry",
12859 };
12860 self.pre(&mut request, &info).await?;
12861 let result = self.exec(request, &info).await;
12862 self.post(&result, &info).await?;
12863 let response = result?;
12864 match response.status().as_u16() {
12865 200u16 => ResponseValue::from_response(response).await,
12866 400u16..=499u16 => Err(Error::ErrorResponse(
12867 ResponseValue::from_response(response).await?,
12868 )),
12869 500u16..=599u16 => Err(Error::ErrorResponse(
12870 ResponseValue::from_response(response).await?,
12871 )),
12872 _ => Err(Error::UnexpectedResponse(response)),
12873 }
12874 }
12875
12876 pub async fn vfs_refresh<'a>(
12892 &'a self,
12893 async_: Option<bool>,
12894 group: Option<&'a str>,
12895 fs: Option<&'a str>,
12896 params: Option<&'a ::serde_json::Map<::std::string::String, ::serde_json::Value>>,
12897 recursive: Option<bool>,
12898 ) -> Result<ResponseValue<types::VfsRefreshResponse>, Error<types::RcError>> {
12899 let url = format!("{}/vfs/refresh", self.baseurl,);
12900 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12901 header_map.append(
12902 ::reqwest::header::HeaderName::from_static("api-version"),
12903 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12904 );
12905 #[allow(unused_mut)]
12906 let mut request = self
12907 .client
12908 .post(url)
12909 .header(
12910 ::reqwest::header::ACCEPT,
12911 ::reqwest::header::HeaderValue::from_static("application/json"),
12912 )
12913 .query(&progenitor_client::QueryParam::new("_async", &async_))
12914 .query(&progenitor_client::QueryParam::new("_group", &group))
12915 .query(&progenitor_client::QueryParam::new("fs", &fs))
12916 .query(&progenitor_client::QueryParam::new("params", ¶ms))
12917 .query(&progenitor_client::QueryParam::new("recursive", &recursive))
12918 .headers(header_map)
12919 .build()?;
12920 let info = OperationInfo {
12921 operation_id: "vfs_refresh",
12922 };
12923 self.pre(&mut request, &info).await?;
12924 let result = self.exec(request, &info).await;
12925 self.post(&result, &info).await?;
12926 let response = result?;
12927 match response.status().as_u16() {
12928 200u16 => ResponseValue::from_response(response).await,
12929 400u16..=499u16 => Err(Error::ErrorResponse(
12930 ResponseValue::from_response(response).await?,
12931 )),
12932 500u16..=599u16 => Err(Error::ErrorResponse(
12933 ResponseValue::from_response(response).await?,
12934 )),
12935 _ => Err(Error::UnexpectedResponse(response)),
12936 }
12937 }
12938
12939 pub async fn vfs_stats<'a>(
12952 &'a self,
12953 async_: Option<bool>,
12954 group: Option<&'a str>,
12955 fs: Option<&'a str>,
12956 ) -> Result<ResponseValue<types::VfsStatsResponse>, Error<types::RcError>> {
12957 let url = format!("{}/vfs/stats", self.baseurl,);
12958 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
12959 header_map.append(
12960 ::reqwest::header::HeaderName::from_static("api-version"),
12961 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
12962 );
12963 #[allow(unused_mut)]
12964 let mut request = self
12965 .client
12966 .post(url)
12967 .header(
12968 ::reqwest::header::ACCEPT,
12969 ::reqwest::header::HeaderValue::from_static("application/json"),
12970 )
12971 .query(&progenitor_client::QueryParam::new("_async", &async_))
12972 .query(&progenitor_client::QueryParam::new("_group", &group))
12973 .query(&progenitor_client::QueryParam::new("fs", &fs))
12974 .headers(header_map)
12975 .build()?;
12976 let info = OperationInfo {
12977 operation_id: "vfs_stats",
12978 };
12979 self.pre(&mut request, &info).await?;
12980 let result = self.exec(request, &info).await;
12981 self.post(&result, &info).await?;
12982 let response = result?;
12983 match response.status().as_u16() {
12984 200u16 => ResponseValue::from_response(response).await,
12985 400u16..=499u16 => Err(Error::ErrorResponse(
12986 ResponseValue::from_response(response).await?,
12987 )),
12988 500u16..=599u16 => Err(Error::ErrorResponse(
12989 ResponseValue::from_response(response).await?,
12990 )),
12991 _ => Err(Error::UnexpectedResponse(response)),
12992 }
12993 }
12994
12995 pub async fn pluginsctl_add_plugin<'a>(
13008 &'a self,
13009 async_: Option<bool>,
13010 group: Option<&'a str>,
13011 url: &'a str,
13012 ) -> Result<
13013 ResponseValue<::serde_json::Map<::std::string::String, ::serde_json::Value>>,
13014 Error<types::RcError>,
13015 > {
13016 let _url = format!("{}/pluginsctl/addPlugin", 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("url", &url))
13033 .headers(header_map)
13034 .build()?;
13035 let info = OperationInfo {
13036 operation_id: "pluginsctl_add_plugin",
13037 };
13038 self.pre(&mut request, &info).await?;
13039 let result = self.exec(request, &info).await;
13040 self.post(&result, &info).await?;
13041 let response = result?;
13042 match response.status().as_u16() {
13043 200u16 => ResponseValue::from_response(response).await,
13044 400u16..=499u16 => Err(Error::ErrorResponse(
13045 ResponseValue::from_response(response).await?,
13046 )),
13047 500u16..=599u16 => Err(Error::ErrorResponse(
13048 ResponseValue::from_response(response).await?,
13049 )),
13050 _ => Err(Error::UnexpectedResponse(response)),
13051 }
13052 }
13053
13054 pub async fn pluginsctl_get_plugins_for_type<'a>(
13068 &'a self,
13069 async_: Option<bool>,
13070 group: Option<&'a str>,
13071 plugin_type: Option<&'a str>,
13072 type_: Option<&'a str>,
13073 ) -> Result<ResponseValue<types::PluginsctlGetPluginsForTypeResponse>, Error<types::RcError>>
13074 {
13075 let url = format!("{}/pluginsctl/getPluginsForType", self.baseurl,);
13076 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13077 header_map.append(
13078 ::reqwest::header::HeaderName::from_static("api-version"),
13079 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13080 );
13081 #[allow(unused_mut)]
13082 let mut request = self
13083 .client
13084 .post(url)
13085 .header(
13086 ::reqwest::header::ACCEPT,
13087 ::reqwest::header::HeaderValue::from_static("application/json"),
13088 )
13089 .query(&progenitor_client::QueryParam::new("_async", &async_))
13090 .query(&progenitor_client::QueryParam::new("_group", &group))
13091 .query(&progenitor_client::QueryParam::new(
13092 "pluginType",
13093 &plugin_type,
13094 ))
13095 .query(&progenitor_client::QueryParam::new("type", &type_))
13096 .headers(header_map)
13097 .build()?;
13098 let info = OperationInfo {
13099 operation_id: "pluginsctl_get_plugins_for_type",
13100 };
13101 self.pre(&mut request, &info).await?;
13102 let result = self.exec(request, &info).await;
13103 self.post(&result, &info).await?;
13104 let response = result?;
13105 match response.status().as_u16() {
13106 200u16 => ResponseValue::from_response(response).await,
13107 400u16..=499u16 => Err(Error::ErrorResponse(
13108 ResponseValue::from_response(response).await?,
13109 )),
13110 500u16..=599u16 => Err(Error::ErrorResponse(
13111 ResponseValue::from_response(response).await?,
13112 )),
13113 _ => Err(Error::UnexpectedResponse(response)),
13114 }
13115 }
13116
13117 pub async fn pluginsctl_list_plugins<'a>(
13128 &'a self,
13129 async_: Option<bool>,
13130 group: Option<&'a str>,
13131 ) -> Result<ResponseValue<types::PluginsctlListPluginsResponse>, Error<types::RcError>> {
13132 let url = format!("{}/pluginsctl/listPlugins", self.baseurl,);
13133 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13134 header_map.append(
13135 ::reqwest::header::HeaderName::from_static("api-version"),
13136 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13137 );
13138 #[allow(unused_mut)]
13139 let mut request = self
13140 .client
13141 .post(url)
13142 .header(
13143 ::reqwest::header::ACCEPT,
13144 ::reqwest::header::HeaderValue::from_static("application/json"),
13145 )
13146 .query(&progenitor_client::QueryParam::new("_async", &async_))
13147 .query(&progenitor_client::QueryParam::new("_group", &group))
13148 .headers(header_map)
13149 .build()?;
13150 let info = OperationInfo {
13151 operation_id: "pluginsctl_list_plugins",
13152 };
13153 self.pre(&mut request, &info).await?;
13154 let result = self.exec(request, &info).await;
13155 self.post(&result, &info).await?;
13156 let response = result?;
13157 match response.status().as_u16() {
13158 200u16 => ResponseValue::from_response(response).await,
13159 400u16..=499u16 => Err(Error::ErrorResponse(
13160 ResponseValue::from_response(response).await?,
13161 )),
13162 500u16..=599u16 => Err(Error::ErrorResponse(
13163 ResponseValue::from_response(response).await?,
13164 )),
13165 _ => Err(Error::UnexpectedResponse(response)),
13166 }
13167 }
13168
13169 pub async fn pluginsctl_list_test_plugins<'a>(
13180 &'a self,
13181 async_: Option<bool>,
13182 group: Option<&'a str>,
13183 ) -> Result<ResponseValue<types::PluginsctlListTestPluginsResponse>, Error<types::RcError>>
13184 {
13185 let url = format!("{}/pluginsctl/listTestPlugins", self.baseurl,);
13186 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13187 header_map.append(
13188 ::reqwest::header::HeaderName::from_static("api-version"),
13189 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13190 );
13191 #[allow(unused_mut)]
13192 let mut request = self
13193 .client
13194 .post(url)
13195 .header(
13196 ::reqwest::header::ACCEPT,
13197 ::reqwest::header::HeaderValue::from_static("application/json"),
13198 )
13199 .query(&progenitor_client::QueryParam::new("_async", &async_))
13200 .query(&progenitor_client::QueryParam::new("_group", &group))
13201 .headers(header_map)
13202 .build()?;
13203 let info = OperationInfo {
13204 operation_id: "pluginsctl_list_test_plugins",
13205 };
13206 self.pre(&mut request, &info).await?;
13207 let result = self.exec(request, &info).await;
13208 self.post(&result, &info).await?;
13209 let response = result?;
13210 match response.status().as_u16() {
13211 200u16 => ResponseValue::from_response(response).await,
13212 400u16..=499u16 => Err(Error::ErrorResponse(
13213 ResponseValue::from_response(response).await?,
13214 )),
13215 500u16..=599u16 => Err(Error::ErrorResponse(
13216 ResponseValue::from_response(response).await?,
13217 )),
13218 _ => Err(Error::UnexpectedResponse(response)),
13219 }
13220 }
13221
13222 pub async fn pluginsctl_remove_plugin<'a>(
13234 &'a self,
13235 async_: Option<bool>,
13236 group: Option<&'a str>,
13237 name: &'a str,
13238 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13239 let url = format!("{}/pluginsctl/removePlugin", self.baseurl,);
13240 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13241 header_map.append(
13242 ::reqwest::header::HeaderName::from_static("api-version"),
13243 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13244 );
13245 #[allow(unused_mut)]
13246 let mut request = self
13247 .client
13248 .post(url)
13249 .header(
13250 ::reqwest::header::ACCEPT,
13251 ::reqwest::header::HeaderValue::from_static("application/json"),
13252 )
13253 .query(&progenitor_client::QueryParam::new("_async", &async_))
13254 .query(&progenitor_client::QueryParam::new("_group", &group))
13255 .query(&progenitor_client::QueryParam::new("name", &name))
13256 .headers(header_map)
13257 .build()?;
13258 let info = OperationInfo {
13259 operation_id: "pluginsctl_remove_plugin",
13260 };
13261 self.pre(&mut request, &info).await?;
13262 let result = self.exec(request, &info).await;
13263 self.post(&result, &info).await?;
13264 let response = result?;
13265 match response.status().as_u16() {
13266 200u16 => Ok(ResponseValue::empty(response)),
13267 400u16..=499u16 => Err(Error::ErrorResponse(
13268 ResponseValue::from_response(response).await?,
13269 )),
13270 500u16..=599u16 => Err(Error::ErrorResponse(
13271 ResponseValue::from_response(response).await?,
13272 )),
13273 _ => Err(Error::UnexpectedResponse(response)),
13274 }
13275 }
13276
13277 pub async fn pluginsctl_remove_test_plugin<'a>(
13289 &'a self,
13290 async_: Option<bool>,
13291 group: Option<&'a str>,
13292 name: &'a str,
13293 ) -> Result<ResponseValue<()>, Error<types::RcError>> {
13294 let url = format!("{}/pluginsctl/removeTestPlugin", self.baseurl,);
13295 let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize);
13296 header_map.append(
13297 ::reqwest::header::HeaderName::from_static("api-version"),
13298 ::reqwest::header::HeaderValue::from_static(Self::api_version()),
13299 );
13300 #[allow(unused_mut)]
13301 let mut request = self
13302 .client
13303 .post(url)
13304 .header(
13305 ::reqwest::header::ACCEPT,
13306 ::reqwest::header::HeaderValue::from_static("application/json"),
13307 )
13308 .query(&progenitor_client::QueryParam::new("_async", &async_))
13309 .query(&progenitor_client::QueryParam::new("_group", &group))
13310 .query(&progenitor_client::QueryParam::new("name", &name))
13311 .headers(header_map)
13312 .build()?;
13313 let info = OperationInfo {
13314 operation_id: "pluginsctl_remove_test_plugin",
13315 };
13316 self.pre(&mut request, &info).await?;
13317 let result = self.exec(request, &info).await;
13318 self.post(&result, &info).await?;
13319 let response = result?;
13320 match response.status().as_u16() {
13321 200u16 => Ok(ResponseValue::empty(response)),
13322 400u16..=499u16 => Err(Error::ErrorResponse(
13323 ResponseValue::from_response(response).await?,
13324 )),
13325 500u16..=599u16 => Err(Error::ErrorResponse(
13326 ResponseValue::from_response(response).await?,
13327 )),
13328 _ => Err(Error::UnexpectedResponse(response)),
13329 }
13330 }
13331}
13332
13333pub mod prelude {
13335 #[allow(unused_imports)]
13336 pub use super::Client;
13337}