54 54 | "com.amazonaws.ec2",
|
55 55 | "MacSystemIntegrityProtectionConfigurationRequest",
|
56 56 | );
|
57 57 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_APPLE_INTERNAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
58 58 | ::aws_smithy_schema::ShapeId::from_static(
|
59 59 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$AppleInternal",
|
60 60 | "com.amazonaws.ec2",
|
61 61 | "MacSystemIntegrityProtectionConfigurationRequest",
|
62 62 | ),
|
63 63 | ::aws_smithy_schema::ShapeType::String,
|
64 - | "apple_internal",
|
64 + | "AppleInternal",
|
65 65 | 0,
|
66 66 | );
|
67 67 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_BASE_SYSTEM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
68 68 | ::aws_smithy_schema::ShapeId::from_static(
|
69 69 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$BaseSystem",
|
70 70 | "com.amazonaws.ec2",
|
71 71 | "MacSystemIntegrityProtectionConfigurationRequest",
|
72 72 | ),
|
73 73 | ::aws_smithy_schema::ShapeType::String,
|
74 - | "base_system",
|
74 + | "BaseSystem",
|
75 75 | 1,
|
76 76 | );
|
77 77 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_DEBUGGING_RESTRICTIONS: ::aws_smithy_schema::Schema =
|
78 78 | ::aws_smithy_schema::Schema::new_member(
|
79 79 | ::aws_smithy_schema::ShapeId::from_static(
|
80 80 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$DebuggingRestrictions",
|
81 81 | "com.amazonaws.ec2",
|
82 82 | "MacSystemIntegrityProtectionConfigurationRequest",
|
83 83 | ),
|
84 84 | ::aws_smithy_schema::ShapeType::String,
|
85 - | "debugging_restrictions",
|
85 + | "DebuggingRestrictions",
|
86 86 | 2,
|
87 87 | );
|
88 88 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_D_TRACE_RESTRICTIONS: ::aws_smithy_schema::Schema =
|
89 89 | ::aws_smithy_schema::Schema::new_member(
|
90 90 | ::aws_smithy_schema::ShapeId::from_static(
|
91 91 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$DTraceRestrictions",
|
92 92 | "com.amazonaws.ec2",
|
93 93 | "MacSystemIntegrityProtectionConfigurationRequest",
|
94 94 | ),
|
95 95 | ::aws_smithy_schema::ShapeType::String,
|
96 - | "d_trace_restrictions",
|
96 + | "DTraceRestrictions",
|
97 97 | 3,
|
98 98 | );
|
99 99 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_FILESYSTEM_PROTECTIONS: ::aws_smithy_schema::Schema =
|
100 100 | ::aws_smithy_schema::Schema::new_member(
|
101 101 | ::aws_smithy_schema::ShapeId::from_static(
|
102 102 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$FilesystemProtections",
|
103 103 | "com.amazonaws.ec2",
|
104 104 | "MacSystemIntegrityProtectionConfigurationRequest",
|
105 105 | ),
|
106 106 | ::aws_smithy_schema::ShapeType::String,
|
107 - | "filesystem_protections",
|
107 + | "FilesystemProtections",
|
108 108 | 4,
|
109 109 | );
|
110 110 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_KEXT_SIGNING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
111 111 | ::aws_smithy_schema::ShapeId::from_static(
|
112 112 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$KextSigning",
|
113 113 | "com.amazonaws.ec2",
|
114 114 | "MacSystemIntegrityProtectionConfigurationRequest",
|
115 115 | ),
|
116 116 | ::aws_smithy_schema::ShapeType::String,
|
117 - | "kext_signing",
|
117 + | "KextSigning",
|
118 118 | 5,
|
119 119 | );
|
120 120 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_NVRAM_PROTECTIONS: ::aws_smithy_schema::Schema =
|
121 121 | ::aws_smithy_schema::Schema::new_member(
|
122 122 | ::aws_smithy_schema::ShapeId::from_static(
|
123 123 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfigurationRequest$NvramProtections",
|
124 124 | "com.amazonaws.ec2",
|
125 125 | "MacSystemIntegrityProtectionConfigurationRequest",
|
126 126 | ),
|
127 127 | ::aws_smithy_schema::ShapeType::String,
|
128 - | "nvram_protections",
|
128 + | "NvramProtections",
|
129 129 | 6,
|
130 130 | );
|
131 131 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
132 132 | MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_SCHEMA_ID,
|
133 133 | ::aws_smithy_schema::ShapeType::Structure,
|
134 134 | &[
|
135 135 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_APPLE_INTERNAL,
|
136 136 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_BASE_SYSTEM,
|
137 137 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_DEBUGGING_RESTRICTIONS,
|
138 138 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_D_TRACE_RESTRICTIONS,
|
139 139 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_FILESYSTEM_PROTECTIONS,
|
140 140 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_KEXT_SIGNING,
|
141 141 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_NVRAM_PROTECTIONS,
|
142 142 | ],
|
143 143 | );
|
144 144 | impl MacSystemIntegrityProtectionConfigurationRequest {
|
145 145 | /// The schema for this shape.
|
146 146 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_SCHEMA;
|
147 147 | }
|
148 148 | impl ::aws_smithy_schema::serde::SerializableStruct for MacSystemIntegrityProtectionConfigurationRequest {
|
149 149 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
150 150 | fn serialize_members(
|
151 151 | &self,
|
152 152 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
153 153 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
154 154 | if let Some(ref val) = self.apple_internal {
|
155 155 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_APPLE_INTERNAL, val.as_str())?;
|
156 156 | }
|
157 157 | if let Some(ref val) = self.base_system {
|
158 158 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_BASE_SYSTEM, val.as_str())?;
|
159 159 | }
|
160 160 | if let Some(ref val) = self.debugging_restrictions {
|
161 161 | ser.write_string(
|
162 162 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_DEBUGGING_RESTRICTIONS,
|
163 163 | val.as_str(),
|
164 164 | )?;
|
165 165 | }
|
166 166 | if let Some(ref val) = self.d_trace_restrictions {
|
167 167 | ser.write_string(
|
168 168 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_D_TRACE_RESTRICTIONS,
|
169 169 | val.as_str(),
|
170 170 | )?;
|
171 171 | }
|
172 172 | if let Some(ref val) = self.filesystem_protections {
|
173 173 | ser.write_string(
|
174 174 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_FILESYSTEM_PROTECTIONS,
|
175 175 | val.as_str(),
|
176 176 | )?;
|
177 177 | }
|
178 178 | if let Some(ref val) = self.kext_signing {
|
179 179 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_KEXT_SIGNING, val.as_str())?;
|
180 180 | }
|
181 181 | if let Some(ref val) = self.nvram_protections {
|
182 182 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_MEMBER_NVRAM_PROTECTIONS, val.as_str())?;
|
183 183 | }
|
184 184 | Ok(())
|
185 185 | }
|
186 186 | }
|
187 187 | impl MacSystemIntegrityProtectionConfigurationRequest {
|
188 188 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
189 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
190 - | deserializer: &mut D,
|
189 + | pub fn deserialize(
|
190 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
191 191 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
192 192 | #[allow(unused_variables, unused_mut)]
|
193 193 | let mut builder = Self::builder();
|
194 194 | #[allow(
|
195 195 | unused_variables,
|
196 196 | unreachable_code,
|
197 197 | clippy::single_match,
|
198 198 | clippy::match_single_binding,
|
199 199 | clippy::diverging_sub_expression
|
200 200 | )]
|
201 - | deserializer.read_struct(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_SCHEMA, (), |_, member, deser| {
|
201 + | deserializer.read_struct(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATIONREQUEST_SCHEMA, &mut |member, deser| {
|
202 202 | match member.member_index() {
|
203 203 | Some(0) => {
|
204 204 | builder.apple_internal = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
205 205 | deser.read_string(member)?.as_str(),
|
206 206 | ));
|
207 207 | }
|
208 208 | Some(1) => {
|
209 209 | builder.base_system = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
210 210 | deser.read_string(member)?.as_str(),
|
211 211 | ));
|
212 212 | }
|
213 213 | Some(2) => {
|
214 214 | builder.debugging_restrictions = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
215 215 | deser.read_string(member)?.as_str(),
|
216 216 | ));
|
217 217 | }
|
218 218 | Some(3) => {
|
219 219 | builder.d_trace_restrictions = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
220 220 | deser.read_string(member)?.as_str(),
|
221 221 | ));
|
222 222 | }
|
223 223 | Some(4) => {
|
224 224 | builder.filesystem_protections = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
225 225 | deser.read_string(member)?.as_str(),
|
226 226 | ));
|
227 227 | }
|
228 228 | Some(5) => {
|
229 229 | builder.kext_signing = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
230 230 | deser.read_string(member)?.as_str(),
|
231 231 | ));
|
232 232 | }
|
233 233 | Some(6) => {
|
234 234 | builder.nvram_protections = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
235 235 | deser.read_string(member)?.as_str(),
|
236 236 | ));
|
237 237 | }
|
238 238 | _ => {}
|
239 239 | }
|
240 240 | Ok(())
|
241 241 | })?;
|
242 242 | Ok(builder.build())
|
243 243 | }
|
244 244 | }
|
245 + | impl MacSystemIntegrityProtectionConfigurationRequest {
|
246 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
247 + | pub fn deserialize_with_response(
|
248 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
249 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
250 + | _status: u16,
|
251 + | _body: &[u8],
|
252 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
253 + | Self::deserialize(deserializer)
|
254 + | }
|
255 + | }
|
245 256 | impl MacSystemIntegrityProtectionConfigurationRequest {
|
246 257 | /// Creates a new builder-style object to manufacture [`MacSystemIntegrityProtectionConfigurationRequest`](crate::types::MacSystemIntegrityProtectionConfigurationRequest).
|
247 258 | pub fn builder() -> crate::types::builders::MacSystemIntegrityProtectionConfigurationRequestBuilder {
|
248 259 | crate::types::builders::MacSystemIntegrityProtectionConfigurationRequestBuilder::default()
|
249 260 | }
|
250 261 | }
|
251 262 |
|
252 263 | /// A builder for [`MacSystemIntegrityProtectionConfigurationRequest`](crate::types::MacSystemIntegrityProtectionConfigurationRequest).
|
253 264 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
254 265 | #[non_exhaustive]
|