72 72 | "com.amazonaws.iam.synthetic",
|
73 73 | "GetOrganizationsAccessReportOutput",
|
74 74 | );
|
75 75 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
76 76 | ::aws_smithy_schema::ShapeId::from_static(
|
77 77 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$JobStatus",
|
78 78 | "com.amazonaws.iam.synthetic",
|
79 79 | "GetOrganizationsAccessReportOutput",
|
80 80 | ),
|
81 81 | ::aws_smithy_schema::ShapeType::String,
|
82 - | "job_status",
|
82 + | "JobStatus",
|
83 83 | 0,
|
84 84 | );
|
85 85 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_CREATION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
86 86 | ::aws_smithy_schema::ShapeId::from_static(
|
87 87 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$JobCreationDate",
|
88 88 | "com.amazonaws.iam.synthetic",
|
89 89 | "GetOrganizationsAccessReportOutput",
|
90 90 | ),
|
91 91 | ::aws_smithy_schema::ShapeType::Timestamp,
|
92 - | "job_creation_date",
|
92 + | "JobCreationDate",
|
93 93 | 1,
|
94 94 | );
|
95 95 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_COMPLETION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
96 96 | ::aws_smithy_schema::ShapeId::from_static(
|
97 97 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$JobCompletionDate",
|
98 98 | "com.amazonaws.iam.synthetic",
|
99 99 | "GetOrganizationsAccessReportOutput",
|
100 100 | ),
|
101 101 | ::aws_smithy_schema::ShapeType::Timestamp,
|
102 - | "job_completion_date",
|
102 + | "JobCompletionDate",
|
103 103 | 2,
|
104 104 | );
|
105 105 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_NUMBER_OF_SERVICES_ACCESSIBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
106 106 | ::aws_smithy_schema::ShapeId::from_static(
|
107 107 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$NumberOfServicesAccessible",
|
108 108 | "com.amazonaws.iam.synthetic",
|
109 109 | "GetOrganizationsAccessReportOutput",
|
110 110 | ),
|
111 111 | ::aws_smithy_schema::ShapeType::Integer,
|
112 - | "number_of_services_accessible",
|
112 + | "NumberOfServicesAccessible",
|
113 113 | 3,
|
114 114 | );
|
115 115 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_NUMBER_OF_SERVICES_NOT_ACCESSED: ::aws_smithy_schema::Schema =
|
116 116 | ::aws_smithy_schema::Schema::new_member(
|
117 117 | ::aws_smithy_schema::ShapeId::from_static(
|
118 118 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$NumberOfServicesNotAccessed",
|
119 119 | "com.amazonaws.iam.synthetic",
|
120 120 | "GetOrganizationsAccessReportOutput",
|
121 121 | ),
|
122 122 | ::aws_smithy_schema::ShapeType::Integer,
|
123 - | "number_of_services_not_accessed",
|
123 + | "NumberOfServicesNotAccessed",
|
124 124 | 4,
|
125 125 | );
|
126 126 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_ACCESS_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
127 127 | ::aws_smithy_schema::ShapeId::from_static(
|
128 128 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$AccessDetails",
|
129 129 | "com.amazonaws.iam.synthetic",
|
130 130 | "GetOrganizationsAccessReportOutput",
|
131 131 | ),
|
132 132 | ::aws_smithy_schema::ShapeType::List,
|
133 - | "access_details",
|
133 + | "AccessDetails",
|
134 134 | 5,
|
135 135 | );
|
136 136 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_IS_TRUNCATED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
137 137 | ::aws_smithy_schema::ShapeId::from_static(
|
138 138 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$IsTruncated",
|
139 139 | "com.amazonaws.iam.synthetic",
|
140 140 | "GetOrganizationsAccessReportOutput",
|
141 141 | ),
|
142 142 | ::aws_smithy_schema::ShapeType::Boolean,
|
143 - | "is_truncated",
|
143 + | "IsTruncated",
|
144 144 | 6,
|
145 145 | );
|
146 146 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
147 147 | ::aws_smithy_schema::ShapeId::from_static(
|
148 148 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$Marker",
|
149 149 | "com.amazonaws.iam.synthetic",
|
150 150 | "GetOrganizationsAccessReportOutput",
|
151 151 | ),
|
152 152 | ::aws_smithy_schema::ShapeType::String,
|
153 - | "marker",
|
153 + | "Marker",
|
154 154 | 7,
|
155 155 | );
|
156 156 | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_ERROR_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
157 157 | ::aws_smithy_schema::ShapeId::from_static(
|
158 158 | "com.amazonaws.iam.synthetic#GetOrganizationsAccessReportOutput$ErrorDetails",
|
159 159 | "com.amazonaws.iam.synthetic",
|
160 160 | "GetOrganizationsAccessReportOutput",
|
161 161 | ),
|
162 162 | ::aws_smithy_schema::ShapeType::Structure,
|
163 - | "error_details",
|
163 + | "ErrorDetails",
|
164 164 | 8,
|
165 165 | );
|
166 + | static GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
167 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
168 + | ::aws_smithy_schema::ShapeType::String,
|
169 + | "request_id",
|
170 + | 9,
|
171 + | )
|
172 + | .with_http_header("x-amzn-requestid");
|
166 173 | static GETORGANIZATIONSACCESSREPORTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
167 174 | GETORGANIZATIONSACCESSREPORTOUTPUT_SCHEMA_ID,
|
168 175 | ::aws_smithy_schema::ShapeType::Structure,
|
169 176 | &[
|
170 177 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_STATUS,
|
171 178 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_CREATION_DATE,
|
172 179 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_COMPLETION_DATE,
|
173 180 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_NUMBER_OF_SERVICES_ACCESSIBLE,
|
174 181 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_NUMBER_OF_SERVICES_NOT_ACCESSED,
|
175 182 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_ACCESS_DETAILS,
|
176 183 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_IS_TRUNCATED,
|
177 184 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_MARKER,
|
178 185 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_ERROR_DETAILS,
|
186 + | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER__REQUEST_ID,
|
179 187 | ],
|
180 188 | );
|
181 189 | impl GetOrganizationsAccessReportOutput {
|
182 190 | /// The schema for this shape.
|
183 191 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETORGANIZATIONSACCESSREPORTOUTPUT_SCHEMA;
|
184 192 | }
|
185 193 | impl ::aws_smithy_schema::serde::SerializableStruct for GetOrganizationsAccessReportOutput {
|
186 194 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
187 195 | fn serialize_members(
|
188 196 | &self,
|
189 197 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
190 198 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
191 199 | {
|
192 200 | let val = &self.job_status;
|
193 201 | ser.write_string(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_STATUS, val.as_str())?;
|
194 202 | }
|
195 203 | {
|
196 204 | let val = &self.job_creation_date;
|
197 205 | ser.write_timestamp(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_CREATION_DATE, val)?;
|
198 206 | }
|
199 207 | if let Some(ref val) = self.job_completion_date {
|
200 208 | ser.write_timestamp(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_JOB_COMPLETION_DATE, val)?;
|
201 209 | }
|
202 210 | if let Some(ref val) = self.number_of_services_accessible {
|
203 211 | ser.write_integer(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_NUMBER_OF_SERVICES_ACCESSIBLE, *val)?;
|
204 212 | }
|
205 213 | if let Some(ref val) = self.number_of_services_not_accessed {
|
206 214 | ser.write_integer(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_NUMBER_OF_SERVICES_NOT_ACCESSED, *val)?;
|
207 215 | }
|
208 216 | if let Some(ref val) = self.access_details {
|
209 217 | ser.write_list(
|
210 218 | &GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_ACCESS_DETAILS,
|
211 219 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
212 220 | for item in val {
|
213 221 | ser.write_struct(crate::types::AccessDetail::SCHEMA, item)?;
|
214 222 | }
|
215 223 | Ok(())
|
216 224 | },
|
217 225 | )?;
|
218 226 | }
|
219 227 | {
|
220 228 | let val = &self.is_truncated;
|
221 229 | ser.write_boolean(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_IS_TRUNCATED, *val)?;
|
222 230 | }
|
223 231 | if let Some(ref val) = self.marker {
|
224 232 | ser.write_string(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_MARKER, val)?;
|
225 233 | }
|
226 234 | if let Some(ref val) = self.error_details {
|
227 235 | ser.write_struct(&GETORGANIZATIONSACCESSREPORTOUTPUT_MEMBER_ERROR_DETAILS, val)?;
|
228 236 | }
|
229 237 | Ok(())
|
230 238 | }
|
231 239 | }
|
232 240 | impl GetOrganizationsAccessReportOutput {
|
233 241 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
234 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
235 - | deserializer: &mut D,
|
242 + | pub fn deserialize(
|
243 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
244 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
245 + | #[allow(unused_variables, unused_mut)]
|
246 + | let mut builder = Self::builder();
|
247 + | #[allow(
|
248 + | unused_variables,
|
249 + | unreachable_code,
|
250 + | clippy::single_match,
|
251 + | clippy::match_single_binding,
|
252 + | clippy::diverging_sub_expression
|
253 + | )]
|
254 + | deserializer.read_struct(&GETORGANIZATIONSACCESSREPORTOUTPUT_SCHEMA, &mut |member, deser| {
|
255 + | match member.member_index() {
|
256 + | Some(0) => {
|
257 + | builder.job_status = Some(crate::types::JobStatusType::from(deser.read_string(member)?.as_str()));
|
258 + | }
|
259 + | Some(1) => {
|
260 + | builder.job_creation_date = Some(deser.read_timestamp(member)?);
|
261 + | }
|
262 + | Some(2) => {
|
263 + | builder.job_completion_date = Some(deser.read_timestamp(member)?);
|
264 + | }
|
265 + | Some(3) => {
|
266 + | builder.number_of_services_accessible = Some(deser.read_integer(member)?);
|
267 + | }
|
268 + | Some(4) => {
|
269 + | builder.number_of_services_not_accessed = Some(deser.read_integer(member)?);
|
270 + | }
|
271 + | Some(5) => {
|
272 + | builder.access_details = Some({
|
273 + | let mut container = Vec::new();
|
274 + | deser.read_list(member, &mut |deser| {
|
275 + | container.push(crate::types::AccessDetail::deserialize(deser)?);
|
276 + | Ok(())
|
277 + | })?;
|
278 + | container
|
279 + | });
|
280 + | }
|
281 + | Some(6) => {
|
282 + | builder.is_truncated = Some(deser.read_boolean(member)?);
|
283 + | }
|
284 + | Some(7) => {
|
285 + | builder.marker = Some(deser.read_string(member)?);
|
286 + | }
|
287 + | Some(8) => {
|
288 + | builder.error_details = Some(crate::types::ErrorDetails::deserialize(deser)?);
|
289 + | }
|
290 + | Some(9) => {
|
291 + | builder._request_id = Some(deser.read_string(member)?);
|
292 + | }
|
293 + | _ => {}
|
294 + | }
|
295 + | Ok(())
|
296 + | })?;
|
297 + | builder.job_creation_date = builder.job_creation_date.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
|
298 + | builder
|
299 + | .build()
|
300 + | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
301 + | }
|
302 + | }
|
303 + | impl GetOrganizationsAccessReportOutput {
|
304 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
305 + | /// Header-bound members are read directly from headers, avoiding runtime
|
306 + | /// member iteration overhead. Body members are read via the deserializer.
|
307 + | pub fn deserialize_with_response(
|
308 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
309 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
310 + | _status: u16,
|
311 + | _body: &[u8],
|
236 312 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
237 313 | #[allow(unused_variables, unused_mut)]
|
238 314 | let mut builder = Self::builder();
|
315 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
316 + | builder._request_id = Some(val.to_string());
|
317 + | }
|
239 318 | #[allow(
|
240 319 | unused_variables,
|
241 320 | unreachable_code,
|
242 321 | clippy::single_match,
|
243 322 | clippy::match_single_binding,
|
244 323 | clippy::diverging_sub_expression
|
245 324 | )]
|
246 - | deserializer.read_struct(&GETORGANIZATIONSACCESSREPORTOUTPUT_SCHEMA, (), |_, member, deser| {
|
325 + | deserializer.read_struct(&GETORGANIZATIONSACCESSREPORTOUTPUT_SCHEMA, &mut |member, deser| {
|
247 326 | match member.member_index() {
|
248 327 | Some(0) => {
|
249 328 | builder.job_status = Some(crate::types::JobStatusType::from(deser.read_string(member)?.as_str()));
|
250 329 | }
|
251 330 | Some(1) => {
|
252 331 | builder.job_creation_date = Some(deser.read_timestamp(member)?);
|
253 332 | }
|
254 333 | Some(2) => {
|
255 334 | builder.job_completion_date = Some(deser.read_timestamp(member)?);
|
256 335 | }
|
257 336 | Some(3) => {
|
258 337 | builder.number_of_services_accessible = Some(deser.read_integer(member)?);
|
259 338 | }
|
260 339 | Some(4) => {
|
261 340 | builder.number_of_services_not_accessed = Some(deser.read_integer(member)?);
|
262 341 | }
|
263 342 | Some(5) => {
|
264 343 | builder.access_details = Some({
|
265 - | let container = if let Some(cap) = deser.container_size() {
|
266 - | Vec::with_capacity(cap)
|
267 - | } else {
|
268 - | Vec::new()
|
269 - | };
|
270 - | deser.read_list(member, container, |mut list, deser| {
|
271 - | list.push(crate::types::AccessDetail::deserialize(deser)?);
|
272 - | Ok(list)
|
273 - | })?
|
344 + | let mut container = Vec::new();
|
345 + | deser.read_list(member, &mut |deser| {
|
346 + | container.push(crate::types::AccessDetail::deserialize(deser)?);
|
347 + | Ok(())
|
348 + | })?;
|
349 + | container
|
274 350 | });
|
275 351 | }
|
276 352 | Some(6) => {
|
277 353 | builder.is_truncated = Some(deser.read_boolean(member)?);
|
278 354 | }
|
279 355 | Some(7) => {
|
280 356 | builder.marker = Some(deser.read_string(member)?);
|
281 357 | }
|
282 358 | Some(8) => {
|
283 359 | builder.error_details = Some(crate::types::ErrorDetails::deserialize(deser)?);
|