nominal_api/conjure/objects/ingest/api/
update_containerized_extractor_request.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct UpdateContainerizedExtractorRequest {
16 #[builder(default, into)]
17 #[serde(rename = "name", skip_serializing_if = "Option::is_none", default)]
18 name: Option<String>,
19 #[builder(default, into)]
20 #[serde(rename = "description", skip_serializing_if = "Option::is_none", default)]
21 description: Option<String>,
22 #[builder(default, into)]
23 #[serde(rename = "inputs", skip_serializing_if = "Option::is_none", default)]
24 inputs: Option<Vec<super::FileExtractionInput>>,
25 #[builder(default, into)]
26 #[serde(rename = "parameters", skip_serializing_if = "Option::is_none", default)]
27 parameters: Option<Vec<super::FileExtractionParameter>>,
28 #[builder(default, into)]
29 #[serde(rename = "properties", skip_serializing_if = "Option::is_none", default)]
30 properties: Option<
31 std::collections::BTreeMap<
32 super::super::super::api::PropertyName,
33 super::super::super::api::PropertyValue,
34 >,
35 >,
36 #[builder(default, into)]
37 #[serde(rename = "labels", skip_serializing_if = "Option::is_none", default)]
38 labels: Option<std::collections::BTreeSet<super::super::super::api::Label>>,
39 #[builder(
40 default,
41 custom(
42 type = impl
43 Into<Option<super::TimestampMetadata>>,
44 convert = |v|v.into().map(Box::new)
45 )
46 )]
47 #[serde(
48 rename = "timestampMetadata",
49 skip_serializing_if = "Option::is_none",
50 default
51 )]
52 timestamp_metadata: Option<Box<super::TimestampMetadata>>,
53 #[builder(default, into)]
54 #[serde(
55 rename = "outputFileFormat",
56 skip_serializing_if = "Option::is_none",
57 default
58 )]
59 output_file_format: Option<super::FileOutputFormat>,
60 #[builder(default, into)]
61 #[serde(rename = "registry", skip_serializing_if = "Option::is_none", default)]
62 registry: Option<String>,
63 #[builder(default, into)]
64 #[serde(rename = "repository", skip_serializing_if = "Option::is_none", default)]
65 repository: Option<String>,
66 #[builder(default, into)]
67 #[serde(rename = "tags", skip_serializing_if = "Option::is_none", default)]
68 tags: Option<std::collections::BTreeSet<String>>,
69 #[builder(default, into)]
70 #[serde(rename = "defaultTag", skip_serializing_if = "Option::is_none", default)]
71 default_tag: Option<String>,
72 #[builder(
73 default,
74 custom(
75 type = impl
76 Into<Option<super::Authentication>>,
77 convert = |v|v.into().map(Box::new)
78 )
79 )]
80 #[serde(rename = "authentication", skip_serializing_if = "Option::is_none", default)]
81 authentication: Option<Box<super::Authentication>>,
82 #[builder(default, into)]
83 #[serde(rename = "command", skip_serializing_if = "Option::is_none", default)]
84 command: Option<String>,
85}
86impl UpdateContainerizedExtractorRequest {
87 #[inline]
89 pub fn new() -> Self {
90 Self::builder().build()
91 }
92 #[inline]
93 pub fn name(&self) -> Option<&str> {
94 self.name.as_ref().map(|o| &**o)
95 }
96 #[inline]
97 pub fn description(&self) -> Option<&str> {
98 self.description.as_ref().map(|o| &**o)
99 }
100 #[inline]
101 pub fn inputs(&self) -> Option<&[super::FileExtractionInput]> {
102 self.inputs.as_ref().map(|o| &**o)
103 }
104 #[inline]
105 pub fn parameters(&self) -> Option<&[super::FileExtractionParameter]> {
106 self.parameters.as_ref().map(|o| &**o)
107 }
108 #[inline]
109 pub fn properties(
110 &self,
111 ) -> Option<
112 &std::collections::BTreeMap<
113 super::super::super::api::PropertyName,
114 super::super::super::api::PropertyValue,
115 >,
116 > {
117 self.properties.as_ref().map(|o| &*o)
118 }
119 #[inline]
120 pub fn labels(
121 &self,
122 ) -> Option<&std::collections::BTreeSet<super::super::super::api::Label>> {
123 self.labels.as_ref().map(|o| &*o)
124 }
125 #[inline]
126 pub fn timestamp_metadata(&self) -> Option<&super::TimestampMetadata> {
127 self.timestamp_metadata.as_ref().map(|o| &**o)
128 }
129 #[inline]
130 pub fn output_file_format(&self) -> Option<&super::FileOutputFormat> {
131 self.output_file_format.as_ref().map(|o| &*o)
132 }
133 #[inline]
134 pub fn registry(&self) -> Option<&str> {
135 self.registry.as_ref().map(|o| &**o)
136 }
137 #[inline]
138 pub fn repository(&self) -> Option<&str> {
139 self.repository.as_ref().map(|o| &**o)
140 }
141 #[inline]
142 pub fn tags(&self) -> Option<&std::collections::BTreeSet<String>> {
143 self.tags.as_ref().map(|o| &*o)
144 }
145 #[inline]
146 pub fn default_tag(&self) -> Option<&str> {
147 self.default_tag.as_ref().map(|o| &**o)
148 }
149 #[inline]
150 pub fn authentication(&self) -> Option<&super::Authentication> {
151 self.authentication.as_ref().map(|o| &**o)
152 }
153 #[inline]
154 pub fn command(&self) -> Option<&str> {
155 self.command.as_ref().map(|o| &**o)
156 }
157}