1#![allow(
6 dead_code,
7 unused_variables,
8 clippy::let_and_return,
9 clippy::single_match
10)]
11
12#[allow(unused_imports)]
13use http::header::HeaderName;
14use winterbaume_core::MockResponse;
15
16pub use super::model::*;
17
18pub fn serialize_associate_browser_settings_response(
20 result: &AssociateBrowserSettingsResponse,
21) -> MockResponse {
22 let status = 200_u16;
23 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
24 MockResponse::rest_json(status, body)
25}
26
27pub fn serialize_associate_data_protection_settings_response(
29 result: &AssociateDataProtectionSettingsResponse,
30) -> MockResponse {
31 let status = 200_u16;
32 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
33 MockResponse::rest_json(status, body)
34}
35
36pub fn serialize_associate_ip_access_settings_response(
38 result: &AssociateIpAccessSettingsResponse,
39) -> MockResponse {
40 let status = 200_u16;
41 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
42 MockResponse::rest_json(status, body)
43}
44
45pub fn serialize_associate_network_settings_response(
47 result: &AssociateNetworkSettingsResponse,
48) -> MockResponse {
49 let status = 200_u16;
50 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
51 MockResponse::rest_json(status, body)
52}
53
54pub fn serialize_associate_session_logger_response(
56 result: &AssociateSessionLoggerResponse,
57) -> MockResponse {
58 let status = 200_u16;
59 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
60 MockResponse::rest_json(status, body)
61}
62
63pub fn serialize_associate_trust_store_response(
65 result: &AssociateTrustStoreResponse,
66) -> MockResponse {
67 let status = 200_u16;
68 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
69 MockResponse::rest_json(status, body)
70}
71
72pub fn serialize_associate_user_access_logging_settings_response(
74 result: &AssociateUserAccessLoggingSettingsResponse,
75) -> MockResponse {
76 let status = 200_u16;
77 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
78 MockResponse::rest_json(status, body)
79}
80
81pub fn serialize_associate_user_settings_response(
83 result: &AssociateUserSettingsResponse,
84) -> MockResponse {
85 let status = 200_u16;
86 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
87 MockResponse::rest_json(status, body)
88}
89
90pub fn serialize_create_browser_settings_response(
92 result: &CreateBrowserSettingsResponse,
93) -> MockResponse {
94 let status = 200_u16;
95 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
96 MockResponse::rest_json(status, body)
97}
98
99pub fn serialize_create_data_protection_settings_response(
101 result: &CreateDataProtectionSettingsResponse,
102) -> MockResponse {
103 let status = 200_u16;
104 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
105 MockResponse::rest_json(status, body)
106}
107
108pub fn serialize_create_identity_provider_response(
110 result: &CreateIdentityProviderResponse,
111) -> MockResponse {
112 let status = 200_u16;
113 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
114 MockResponse::rest_json(status, body)
115}
116
117pub fn serialize_create_ip_access_settings_response(
119 result: &CreateIpAccessSettingsResponse,
120) -> MockResponse {
121 let status = 200_u16;
122 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
123 MockResponse::rest_json(status, body)
124}
125
126pub fn serialize_create_network_settings_response(
128 result: &CreateNetworkSettingsResponse,
129) -> MockResponse {
130 let status = 200_u16;
131 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
132 MockResponse::rest_json(status, body)
133}
134
135pub fn serialize_create_portal_response(result: &CreatePortalResponse) -> MockResponse {
137 let status = 200_u16;
138 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
139 MockResponse::rest_json(status, body)
140}
141
142pub fn serialize_create_session_logger_response(
144 result: &CreateSessionLoggerResponse,
145) -> MockResponse {
146 let status = 200_u16;
147 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
148 MockResponse::rest_json(status, body)
149}
150
151pub fn serialize_create_trust_store_response(result: &CreateTrustStoreResponse) -> MockResponse {
153 let status = 200_u16;
154 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
155 MockResponse::rest_json(status, body)
156}
157
158pub fn serialize_create_user_access_logging_settings_response(
160 result: &CreateUserAccessLoggingSettingsResponse,
161) -> MockResponse {
162 let status = 200_u16;
163 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
164 MockResponse::rest_json(status, body)
165}
166
167pub fn serialize_create_user_settings_response(
169 result: &CreateUserSettingsResponse,
170) -> MockResponse {
171 let status = 200_u16;
172 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
173 MockResponse::rest_json(status, body)
174}
175
176pub fn serialize_delete_browser_settings_response(
178 result: &DeleteBrowserSettingsResponse,
179) -> MockResponse {
180 let status = 200_u16;
181 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
182 MockResponse::rest_json(status, body)
183}
184
185pub fn serialize_delete_data_protection_settings_response(
187 result: &DeleteDataProtectionSettingsResponse,
188) -> MockResponse {
189 let status = 200_u16;
190 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
191 MockResponse::rest_json(status, body)
192}
193
194pub fn serialize_delete_identity_provider_response(
196 result: &DeleteIdentityProviderResponse,
197) -> MockResponse {
198 let status = 200_u16;
199 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
200 MockResponse::rest_json(status, body)
201}
202
203pub fn serialize_delete_ip_access_settings_response(
205 result: &DeleteIpAccessSettingsResponse,
206) -> MockResponse {
207 let status = 200_u16;
208 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
209 MockResponse::rest_json(status, body)
210}
211
212pub fn serialize_delete_network_settings_response(
214 result: &DeleteNetworkSettingsResponse,
215) -> MockResponse {
216 let status = 200_u16;
217 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
218 MockResponse::rest_json(status, body)
219}
220
221pub fn serialize_delete_portal_response(result: &DeletePortalResponse) -> MockResponse {
223 let status = 200_u16;
224 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
225 MockResponse::rest_json(status, body)
226}
227
228pub fn serialize_delete_session_logger_response(
230 result: &DeleteSessionLoggerResponse,
231) -> MockResponse {
232 let status = 200_u16;
233 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
234 MockResponse::rest_json(status, body)
235}
236
237pub fn serialize_delete_trust_store_response(result: &DeleteTrustStoreResponse) -> MockResponse {
239 let status = 200_u16;
240 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
241 MockResponse::rest_json(status, body)
242}
243
244pub fn serialize_delete_user_access_logging_settings_response(
246 result: &DeleteUserAccessLoggingSettingsResponse,
247) -> MockResponse {
248 let status = 200_u16;
249 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
250 MockResponse::rest_json(status, body)
251}
252
253pub fn serialize_delete_user_settings_response(
255 result: &DeleteUserSettingsResponse,
256) -> MockResponse {
257 let status = 200_u16;
258 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
259 MockResponse::rest_json(status, body)
260}
261
262pub fn serialize_disassociate_browser_settings_response(
264 result: &DisassociateBrowserSettingsResponse,
265) -> MockResponse {
266 let status = 200_u16;
267 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
268 MockResponse::rest_json(status, body)
269}
270
271pub fn serialize_disassociate_data_protection_settings_response(
273 result: &DisassociateDataProtectionSettingsResponse,
274) -> MockResponse {
275 let status = 200_u16;
276 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
277 MockResponse::rest_json(status, body)
278}
279
280pub fn serialize_disassociate_ip_access_settings_response(
282 result: &DisassociateIpAccessSettingsResponse,
283) -> MockResponse {
284 let status = 200_u16;
285 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
286 MockResponse::rest_json(status, body)
287}
288
289pub fn serialize_disassociate_network_settings_response(
291 result: &DisassociateNetworkSettingsResponse,
292) -> MockResponse {
293 let status = 200_u16;
294 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
295 MockResponse::rest_json(status, body)
296}
297
298pub fn serialize_disassociate_session_logger_response(
300 result: &DisassociateSessionLoggerResponse,
301) -> MockResponse {
302 let status = 200_u16;
303 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
304 MockResponse::rest_json(status, body)
305}
306
307pub fn serialize_disassociate_trust_store_response(
309 result: &DisassociateTrustStoreResponse,
310) -> MockResponse {
311 let status = 200_u16;
312 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
313 MockResponse::rest_json(status, body)
314}
315
316pub fn serialize_disassociate_user_access_logging_settings_response(
318 result: &DisassociateUserAccessLoggingSettingsResponse,
319) -> MockResponse {
320 let status = 200_u16;
321 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
322 MockResponse::rest_json(status, body)
323}
324
325pub fn serialize_disassociate_user_settings_response(
327 result: &DisassociateUserSettingsResponse,
328) -> MockResponse {
329 let status = 200_u16;
330 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
331 MockResponse::rest_json(status, body)
332}
333
334pub fn serialize_expire_session_response(result: &ExpireSessionResponse) -> MockResponse {
336 let status = 200_u16;
337 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
338 MockResponse::rest_json(status, body)
339}
340
341pub fn serialize_get_browser_settings_response(
343 result: &GetBrowserSettingsResponse,
344) -> MockResponse {
345 let status = 200_u16;
346 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
347 MockResponse::rest_json(status, body)
348}
349
350pub fn serialize_get_data_protection_settings_response(
352 result: &GetDataProtectionSettingsResponse,
353) -> MockResponse {
354 let status = 200_u16;
355 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
356 MockResponse::rest_json(status, body)
357}
358
359pub fn serialize_get_identity_provider_response(
361 result: &GetIdentityProviderResponse,
362) -> MockResponse {
363 let status = 200_u16;
364 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
365 MockResponse::rest_json(status, body)
366}
367
368pub fn serialize_get_ip_access_settings_response(
370 result: &GetIpAccessSettingsResponse,
371) -> MockResponse {
372 let status = 200_u16;
373 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
374 MockResponse::rest_json(status, body)
375}
376
377pub fn serialize_get_network_settings_response(
379 result: &GetNetworkSettingsResponse,
380) -> MockResponse {
381 let status = 200_u16;
382 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
383 MockResponse::rest_json(status, body)
384}
385
386pub fn serialize_get_portal_response(result: &GetPortalResponse) -> MockResponse {
388 let status = 200_u16;
389 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
390 MockResponse::rest_json(status, body)
391}
392
393pub fn serialize_get_portal_service_provider_metadata_response(
395 result: &GetPortalServiceProviderMetadataResponse,
396) -> MockResponse {
397 let status = 200_u16;
398 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
399 MockResponse::rest_json(status, body)
400}
401
402pub fn serialize_get_session_response(result: &GetSessionResponse) -> MockResponse {
404 let status = 200_u16;
405 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
406 MockResponse::rest_json(status, body)
407}
408
409pub fn serialize_get_session_logger_response(result: &GetSessionLoggerResponse) -> MockResponse {
411 let status = 200_u16;
412 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
413 MockResponse::rest_json(status, body)
414}
415
416pub fn serialize_get_trust_store_response(result: &GetTrustStoreResponse) -> MockResponse {
418 let status = 200_u16;
419 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
420 MockResponse::rest_json(status, body)
421}
422
423pub fn serialize_get_trust_store_certificate_response(
425 result: &GetTrustStoreCertificateResponse,
426) -> MockResponse {
427 let status = 200_u16;
428 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
429 MockResponse::rest_json(status, body)
430}
431
432pub fn serialize_get_user_access_logging_settings_response(
434 result: &GetUserAccessLoggingSettingsResponse,
435) -> MockResponse {
436 let status = 200_u16;
437 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
438 MockResponse::rest_json(status, body)
439}
440
441pub fn serialize_get_user_settings_response(result: &GetUserSettingsResponse) -> MockResponse {
443 let status = 200_u16;
444 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
445 MockResponse::rest_json(status, body)
446}
447
448pub fn serialize_list_browser_settings_response(
450 result: &ListBrowserSettingsResponse,
451) -> MockResponse {
452 let status = 200_u16;
453 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
454 MockResponse::rest_json(status, body)
455}
456
457pub fn serialize_list_data_protection_settings_response(
459 result: &ListDataProtectionSettingsResponse,
460) -> MockResponse {
461 let status = 200_u16;
462 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
463 MockResponse::rest_json(status, body)
464}
465
466pub fn serialize_list_identity_providers_response(
468 result: &ListIdentityProvidersResponse,
469) -> MockResponse {
470 let status = 200_u16;
471 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
472 MockResponse::rest_json(status, body)
473}
474
475pub fn serialize_list_ip_access_settings_response(
477 result: &ListIpAccessSettingsResponse,
478) -> MockResponse {
479 let status = 200_u16;
480 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
481 MockResponse::rest_json(status, body)
482}
483
484pub fn serialize_list_network_settings_response(
486 result: &ListNetworkSettingsResponse,
487) -> MockResponse {
488 let status = 200_u16;
489 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
490 MockResponse::rest_json(status, body)
491}
492
493pub fn serialize_list_portals_response(result: &ListPortalsResponse) -> MockResponse {
495 let status = 200_u16;
496 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
497 MockResponse::rest_json(status, body)
498}
499
500pub fn serialize_list_session_loggers_response(
502 result: &ListSessionLoggersResponse,
503) -> MockResponse {
504 let status = 200_u16;
505 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
506 MockResponse::rest_json(status, body)
507}
508
509pub fn serialize_list_sessions_response(result: &ListSessionsResponse) -> MockResponse {
511 let status = 200_u16;
512 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
513 MockResponse::rest_json(status, body)
514}
515
516pub fn serialize_list_tags_for_resource_response(
518 result: &ListTagsForResourceResponse,
519) -> MockResponse {
520 let status = 200_u16;
521 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
522 MockResponse::rest_json(status, body)
523}
524
525pub fn serialize_list_trust_store_certificates_response(
527 result: &ListTrustStoreCertificatesResponse,
528) -> MockResponse {
529 let status = 200_u16;
530 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
531 MockResponse::rest_json(status, body)
532}
533
534pub fn serialize_list_trust_stores_response(result: &ListTrustStoresResponse) -> MockResponse {
536 let status = 200_u16;
537 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
538 MockResponse::rest_json(status, body)
539}
540
541pub fn serialize_list_user_access_logging_settings_response(
543 result: &ListUserAccessLoggingSettingsResponse,
544) -> MockResponse {
545 let status = 200_u16;
546 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
547 MockResponse::rest_json(status, body)
548}
549
550pub fn serialize_list_user_settings_response(result: &ListUserSettingsResponse) -> MockResponse {
552 let status = 200_u16;
553 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
554 MockResponse::rest_json(status, body)
555}
556
557pub fn serialize_tag_resource_response(result: &TagResourceResponse) -> MockResponse {
559 let status = 200_u16;
560 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
561 MockResponse::rest_json(status, body)
562}
563
564pub fn serialize_untag_resource_response(result: &UntagResourceResponse) -> MockResponse {
566 let status = 200_u16;
567 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
568 MockResponse::rest_json(status, body)
569}
570
571pub fn serialize_update_browser_settings_response(
573 result: &UpdateBrowserSettingsResponse,
574) -> MockResponse {
575 let status = 200_u16;
576 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
577 MockResponse::rest_json(status, body)
578}
579
580pub fn serialize_update_data_protection_settings_response(
582 result: &UpdateDataProtectionSettingsResponse,
583) -> MockResponse {
584 let status = 200_u16;
585 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
586 MockResponse::rest_json(status, body)
587}
588
589pub fn serialize_update_identity_provider_response(
591 result: &UpdateIdentityProviderResponse,
592) -> MockResponse {
593 let status = 200_u16;
594 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
595 MockResponse::rest_json(status, body)
596}
597
598pub fn serialize_update_ip_access_settings_response(
600 result: &UpdateIpAccessSettingsResponse,
601) -> MockResponse {
602 let status = 200_u16;
603 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
604 MockResponse::rest_json(status, body)
605}
606
607pub fn serialize_update_network_settings_response(
609 result: &UpdateNetworkSettingsResponse,
610) -> MockResponse {
611 let status = 200_u16;
612 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
613 MockResponse::rest_json(status, body)
614}
615
616pub fn serialize_update_portal_response(result: &UpdatePortalResponse) -> MockResponse {
618 let status = 200_u16;
619 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
620 MockResponse::rest_json(status, body)
621}
622
623pub fn serialize_update_session_logger_response(
625 result: &UpdateSessionLoggerResponse,
626) -> MockResponse {
627 let status = 200_u16;
628 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
629 MockResponse::rest_json(status, body)
630}
631
632pub fn serialize_update_trust_store_response(result: &UpdateTrustStoreResponse) -> MockResponse {
634 let status = 200_u16;
635 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
636 MockResponse::rest_json(status, body)
637}
638
639pub fn serialize_update_user_access_logging_settings_response(
641 result: &UpdateUserAccessLoggingSettingsResponse,
642) -> MockResponse {
643 let status = 200_u16;
644 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
645 MockResponse::rest_json(status, body)
646}
647
648pub fn serialize_update_user_settings_response(
650 result: &UpdateUserSettingsResponse,
651) -> MockResponse {
652 let status = 200_u16;
653 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
654 MockResponse::rest_json(status, body)
655}
656
657pub fn deserialize_associate_browser_settings_request(
659 request: &winterbaume_core::MockRequest,
660 labels: &[(&str, &str)],
661 query: &std::collections::HashMap<String, String>,
662) -> Result<AssociateBrowserSettingsRequest, String> {
663 let mut input = AssociateBrowserSettingsRequest::default();
664 for (name, value) in labels {
665 match *name {
666 "portalArn" => {
667 input.portal_arn = value.to_string();
668 }
669 _ => {}
670 }
671 }
672 if let Some(value) = query.get("browserSettingsArn") {
673 input.browser_settings_arn = value.to_string();
674 }
675 Ok(input)
676}
677
678pub fn deserialize_associate_data_protection_settings_request(
680 request: &winterbaume_core::MockRequest,
681 labels: &[(&str, &str)],
682 query: &std::collections::HashMap<String, String>,
683) -> Result<AssociateDataProtectionSettingsRequest, String> {
684 let mut input = AssociateDataProtectionSettingsRequest::default();
685 for (name, value) in labels {
686 match *name {
687 "portalArn" => {
688 input.portal_arn = value.to_string();
689 }
690 _ => {}
691 }
692 }
693 if let Some(value) = query.get("dataProtectionSettingsArn") {
694 input.data_protection_settings_arn = value.to_string();
695 }
696 Ok(input)
697}
698
699pub fn deserialize_associate_ip_access_settings_request(
701 request: &winterbaume_core::MockRequest,
702 labels: &[(&str, &str)],
703 query: &std::collections::HashMap<String, String>,
704) -> Result<AssociateIpAccessSettingsRequest, String> {
705 let mut input = AssociateIpAccessSettingsRequest::default();
706 for (name, value) in labels {
707 match *name {
708 "portalArn" => {
709 input.portal_arn = value.to_string();
710 }
711 _ => {}
712 }
713 }
714 if let Some(value) = query.get("ipAccessSettingsArn") {
715 input.ip_access_settings_arn = value.to_string();
716 }
717 Ok(input)
718}
719
720pub fn deserialize_associate_network_settings_request(
722 request: &winterbaume_core::MockRequest,
723 labels: &[(&str, &str)],
724 query: &std::collections::HashMap<String, String>,
725) -> Result<AssociateNetworkSettingsRequest, String> {
726 let mut input = AssociateNetworkSettingsRequest::default();
727 for (name, value) in labels {
728 match *name {
729 "portalArn" => {
730 input.portal_arn = value.to_string();
731 }
732 _ => {}
733 }
734 }
735 if let Some(value) = query.get("networkSettingsArn") {
736 input.network_settings_arn = value.to_string();
737 }
738 Ok(input)
739}
740
741pub fn deserialize_associate_session_logger_request(
743 request: &winterbaume_core::MockRequest,
744 labels: &[(&str, &str)],
745 query: &std::collections::HashMap<String, String>,
746) -> Result<AssociateSessionLoggerRequest, String> {
747 let mut input = AssociateSessionLoggerRequest::default();
748 for (name, value) in labels {
749 match *name {
750 "portalArn" => {
751 input.portal_arn = value.to_string();
752 }
753 _ => {}
754 }
755 }
756 if let Some(value) = query.get("sessionLoggerArn") {
757 input.session_logger_arn = value.to_string();
758 }
759 Ok(input)
760}
761
762pub fn deserialize_associate_trust_store_request(
764 request: &winterbaume_core::MockRequest,
765 labels: &[(&str, &str)],
766 query: &std::collections::HashMap<String, String>,
767) -> Result<AssociateTrustStoreRequest, String> {
768 let mut input = AssociateTrustStoreRequest::default();
769 for (name, value) in labels {
770 match *name {
771 "portalArn" => {
772 input.portal_arn = value.to_string();
773 }
774 _ => {}
775 }
776 }
777 if let Some(value) = query.get("trustStoreArn") {
778 input.trust_store_arn = value.to_string();
779 }
780 Ok(input)
781}
782
783pub fn deserialize_associate_user_access_logging_settings_request(
785 request: &winterbaume_core::MockRequest,
786 labels: &[(&str, &str)],
787 query: &std::collections::HashMap<String, String>,
788) -> Result<AssociateUserAccessLoggingSettingsRequest, String> {
789 let mut input = AssociateUserAccessLoggingSettingsRequest::default();
790 for (name, value) in labels {
791 match *name {
792 "portalArn" => {
793 input.portal_arn = value.to_string();
794 }
795 _ => {}
796 }
797 }
798 if let Some(value) = query.get("userAccessLoggingSettingsArn") {
799 input.user_access_logging_settings_arn = value.to_string();
800 }
801 Ok(input)
802}
803
804pub fn deserialize_associate_user_settings_request(
806 request: &winterbaume_core::MockRequest,
807 labels: &[(&str, &str)],
808 query: &std::collections::HashMap<String, String>,
809) -> Result<AssociateUserSettingsRequest, String> {
810 let mut input = AssociateUserSettingsRequest::default();
811 for (name, value) in labels {
812 match *name {
813 "portalArn" => {
814 input.portal_arn = value.to_string();
815 }
816 _ => {}
817 }
818 }
819 if let Some(value) = query.get("userSettingsArn") {
820 input.user_settings_arn = value.to_string();
821 }
822 Ok(input)
823}
824
825pub fn deserialize_create_browser_settings_request(
827 request: &winterbaume_core::MockRequest,
828 labels: &[(&str, &str)],
829 query: &std::collections::HashMap<String, String>,
830) -> Result<CreateBrowserSettingsRequest, String> {
831 let mut input = CreateBrowserSettingsRequest::default();
832 if !request.body.is_empty() {
833 input = serde_json::from_slice::<CreateBrowserSettingsRequest>(&request.body)
834 .map_err(|err| format!("failed to deserialize CreateBrowserSettings request: {err}"))?;
835 }
836 Ok(input)
837}
838
839pub fn deserialize_create_data_protection_settings_request(
841 request: &winterbaume_core::MockRequest,
842 labels: &[(&str, &str)],
843 query: &std::collections::HashMap<String, String>,
844) -> Result<CreateDataProtectionSettingsRequest, String> {
845 let mut input = CreateDataProtectionSettingsRequest::default();
846 if !request.body.is_empty() {
847 input = serde_json::from_slice::<CreateDataProtectionSettingsRequest>(&request.body)
848 .map_err(|err| {
849 format!("failed to deserialize CreateDataProtectionSettings request: {err}")
850 })?;
851 }
852 Ok(input)
853}
854
855pub fn deserialize_create_identity_provider_request(
857 request: &winterbaume_core::MockRequest,
858 labels: &[(&str, &str)],
859 query: &std::collections::HashMap<String, String>,
860) -> Result<CreateIdentityProviderRequest, String> {
861 let mut input = CreateIdentityProviderRequest::default();
862 if !request.body.is_empty() {
863 input = serde_json::from_slice::<CreateIdentityProviderRequest>(&request.body).map_err(
864 |err| format!("failed to deserialize CreateIdentityProvider request: {err}"),
865 )?;
866 }
867 Ok(input)
868}
869
870pub fn deserialize_create_ip_access_settings_request(
872 request: &winterbaume_core::MockRequest,
873 labels: &[(&str, &str)],
874 query: &std::collections::HashMap<String, String>,
875) -> Result<CreateIpAccessSettingsRequest, String> {
876 let mut input = CreateIpAccessSettingsRequest::default();
877 if !request.body.is_empty() {
878 input = serde_json::from_slice::<CreateIpAccessSettingsRequest>(&request.body).map_err(
879 |err| format!("failed to deserialize CreateIpAccessSettings request: {err}"),
880 )?;
881 }
882 Ok(input)
883}
884
885pub fn deserialize_create_network_settings_request(
887 request: &winterbaume_core::MockRequest,
888 labels: &[(&str, &str)],
889 query: &std::collections::HashMap<String, String>,
890) -> Result<CreateNetworkSettingsRequest, String> {
891 let mut input = CreateNetworkSettingsRequest::default();
892 if !request.body.is_empty() {
893 input = serde_json::from_slice::<CreateNetworkSettingsRequest>(&request.body)
894 .map_err(|err| format!("failed to deserialize CreateNetworkSettings request: {err}"))?;
895 }
896 Ok(input)
897}
898
899pub fn deserialize_create_portal_request(
901 request: &winterbaume_core::MockRequest,
902 labels: &[(&str, &str)],
903 query: &std::collections::HashMap<String, String>,
904) -> Result<CreatePortalRequest, String> {
905 let mut input = CreatePortalRequest::default();
906 if !request.body.is_empty() {
907 input = serde_json::from_slice::<CreatePortalRequest>(&request.body)
908 .map_err(|err| format!("failed to deserialize CreatePortal request: {err}"))?;
909 }
910 Ok(input)
911}
912
913pub fn deserialize_create_session_logger_request(
915 request: &winterbaume_core::MockRequest,
916 labels: &[(&str, &str)],
917 query: &std::collections::HashMap<String, String>,
918) -> Result<CreateSessionLoggerRequest, String> {
919 let mut input = CreateSessionLoggerRequest::default();
920 if !request.body.is_empty() {
921 input = serde_json::from_slice::<CreateSessionLoggerRequest>(&request.body)
922 .map_err(|err| format!("failed to deserialize CreateSessionLogger request: {err}"))?;
923 }
924 Ok(input)
925}
926
927pub fn deserialize_create_trust_store_request(
929 request: &winterbaume_core::MockRequest,
930 labels: &[(&str, &str)],
931 query: &std::collections::HashMap<String, String>,
932) -> Result<CreateTrustStoreRequest, String> {
933 let mut input = CreateTrustStoreRequest::default();
934 if !request.body.is_empty() {
935 input = serde_json::from_slice::<CreateTrustStoreRequest>(&request.body)
936 .map_err(|err| format!("failed to deserialize CreateTrustStore request: {err}"))?;
937 }
938 Ok(input)
939}
940
941pub fn deserialize_create_user_access_logging_settings_request(
943 request: &winterbaume_core::MockRequest,
944 labels: &[(&str, &str)],
945 query: &std::collections::HashMap<String, String>,
946) -> Result<CreateUserAccessLoggingSettingsRequest, String> {
947 let mut input = CreateUserAccessLoggingSettingsRequest::default();
948 if !request.body.is_empty() {
949 input = serde_json::from_slice::<CreateUserAccessLoggingSettingsRequest>(&request.body)
950 .map_err(|err| {
951 format!("failed to deserialize CreateUserAccessLoggingSettings request: {err}")
952 })?;
953 }
954 Ok(input)
955}
956
957pub fn deserialize_create_user_settings_request(
959 request: &winterbaume_core::MockRequest,
960 labels: &[(&str, &str)],
961 query: &std::collections::HashMap<String, String>,
962) -> Result<CreateUserSettingsRequest, String> {
963 let mut input = CreateUserSettingsRequest::default();
964 if !request.body.is_empty() {
965 input = serde_json::from_slice::<CreateUserSettingsRequest>(&request.body)
966 .map_err(|err| format!("failed to deserialize CreateUserSettings request: {err}"))?;
967 }
968 Ok(input)
969}
970
971pub fn deserialize_delete_browser_settings_request(
973 request: &winterbaume_core::MockRequest,
974 labels: &[(&str, &str)],
975 query: &std::collections::HashMap<String, String>,
976) -> Result<DeleteBrowserSettingsRequest, String> {
977 let mut input = DeleteBrowserSettingsRequest::default();
978 for (name, value) in labels {
979 match *name {
980 "browserSettingsArn" => {
981 input.browser_settings_arn = value.to_string();
982 }
983 _ => {}
984 }
985 }
986 Ok(input)
987}
988
989pub fn deserialize_delete_data_protection_settings_request(
991 request: &winterbaume_core::MockRequest,
992 labels: &[(&str, &str)],
993 query: &std::collections::HashMap<String, String>,
994) -> Result<DeleteDataProtectionSettingsRequest, String> {
995 let mut input = DeleteDataProtectionSettingsRequest::default();
996 for (name, value) in labels {
997 match *name {
998 "dataProtectionSettingsArn" => {
999 input.data_protection_settings_arn = value.to_string();
1000 }
1001 _ => {}
1002 }
1003 }
1004 Ok(input)
1005}
1006
1007pub fn deserialize_delete_identity_provider_request(
1009 request: &winterbaume_core::MockRequest,
1010 labels: &[(&str, &str)],
1011 query: &std::collections::HashMap<String, String>,
1012) -> Result<DeleteIdentityProviderRequest, String> {
1013 let mut input = DeleteIdentityProviderRequest::default();
1014 for (name, value) in labels {
1015 match *name {
1016 "identityProviderArn" => {
1017 input.identity_provider_arn = value.to_string();
1018 }
1019 _ => {}
1020 }
1021 }
1022 Ok(input)
1023}
1024
1025pub fn deserialize_delete_ip_access_settings_request(
1027 request: &winterbaume_core::MockRequest,
1028 labels: &[(&str, &str)],
1029 query: &std::collections::HashMap<String, String>,
1030) -> Result<DeleteIpAccessSettingsRequest, String> {
1031 let mut input = DeleteIpAccessSettingsRequest::default();
1032 for (name, value) in labels {
1033 match *name {
1034 "ipAccessSettingsArn" => {
1035 input.ip_access_settings_arn = value.to_string();
1036 }
1037 _ => {}
1038 }
1039 }
1040 Ok(input)
1041}
1042
1043pub fn deserialize_delete_network_settings_request(
1045 request: &winterbaume_core::MockRequest,
1046 labels: &[(&str, &str)],
1047 query: &std::collections::HashMap<String, String>,
1048) -> Result<DeleteNetworkSettingsRequest, String> {
1049 let mut input = DeleteNetworkSettingsRequest::default();
1050 for (name, value) in labels {
1051 match *name {
1052 "networkSettingsArn" => {
1053 input.network_settings_arn = value.to_string();
1054 }
1055 _ => {}
1056 }
1057 }
1058 Ok(input)
1059}
1060
1061pub fn deserialize_delete_portal_request(
1063 request: &winterbaume_core::MockRequest,
1064 labels: &[(&str, &str)],
1065 query: &std::collections::HashMap<String, String>,
1066) -> Result<DeletePortalRequest, String> {
1067 let mut input = DeletePortalRequest::default();
1068 for (name, value) in labels {
1069 match *name {
1070 "portalArn" => {
1071 input.portal_arn = value.to_string();
1072 }
1073 _ => {}
1074 }
1075 }
1076 Ok(input)
1077}
1078
1079pub fn deserialize_delete_session_logger_request(
1081 request: &winterbaume_core::MockRequest,
1082 labels: &[(&str, &str)],
1083 query: &std::collections::HashMap<String, String>,
1084) -> Result<DeleteSessionLoggerRequest, String> {
1085 let mut input = DeleteSessionLoggerRequest::default();
1086 for (name, value) in labels {
1087 match *name {
1088 "sessionLoggerArn" => {
1089 input.session_logger_arn = value.to_string();
1090 }
1091 _ => {}
1092 }
1093 }
1094 Ok(input)
1095}
1096
1097pub fn deserialize_delete_trust_store_request(
1099 request: &winterbaume_core::MockRequest,
1100 labels: &[(&str, &str)],
1101 query: &std::collections::HashMap<String, String>,
1102) -> Result<DeleteTrustStoreRequest, String> {
1103 let mut input = DeleteTrustStoreRequest::default();
1104 for (name, value) in labels {
1105 match *name {
1106 "trustStoreArn" => {
1107 input.trust_store_arn = value.to_string();
1108 }
1109 _ => {}
1110 }
1111 }
1112 Ok(input)
1113}
1114
1115pub fn deserialize_delete_user_access_logging_settings_request(
1117 request: &winterbaume_core::MockRequest,
1118 labels: &[(&str, &str)],
1119 query: &std::collections::HashMap<String, String>,
1120) -> Result<DeleteUserAccessLoggingSettingsRequest, String> {
1121 let mut input = DeleteUserAccessLoggingSettingsRequest::default();
1122 for (name, value) in labels {
1123 match *name {
1124 "userAccessLoggingSettingsArn" => {
1125 input.user_access_logging_settings_arn = value.to_string();
1126 }
1127 _ => {}
1128 }
1129 }
1130 Ok(input)
1131}
1132
1133pub fn deserialize_delete_user_settings_request(
1135 request: &winterbaume_core::MockRequest,
1136 labels: &[(&str, &str)],
1137 query: &std::collections::HashMap<String, String>,
1138) -> Result<DeleteUserSettingsRequest, String> {
1139 let mut input = DeleteUserSettingsRequest::default();
1140 for (name, value) in labels {
1141 match *name {
1142 "userSettingsArn" => {
1143 input.user_settings_arn = value.to_string();
1144 }
1145 _ => {}
1146 }
1147 }
1148 Ok(input)
1149}
1150
1151pub fn deserialize_disassociate_browser_settings_request(
1153 request: &winterbaume_core::MockRequest,
1154 labels: &[(&str, &str)],
1155 query: &std::collections::HashMap<String, String>,
1156) -> Result<DisassociateBrowserSettingsRequest, String> {
1157 let mut input = DisassociateBrowserSettingsRequest::default();
1158 for (name, value) in labels {
1159 match *name {
1160 "portalArn" => {
1161 input.portal_arn = value.to_string();
1162 }
1163 _ => {}
1164 }
1165 }
1166 Ok(input)
1167}
1168
1169pub fn deserialize_disassociate_data_protection_settings_request(
1171 request: &winterbaume_core::MockRequest,
1172 labels: &[(&str, &str)],
1173 query: &std::collections::HashMap<String, String>,
1174) -> Result<DisassociateDataProtectionSettingsRequest, String> {
1175 let mut input = DisassociateDataProtectionSettingsRequest::default();
1176 for (name, value) in labels {
1177 match *name {
1178 "portalArn" => {
1179 input.portal_arn = value.to_string();
1180 }
1181 _ => {}
1182 }
1183 }
1184 Ok(input)
1185}
1186
1187pub fn deserialize_disassociate_ip_access_settings_request(
1189 request: &winterbaume_core::MockRequest,
1190 labels: &[(&str, &str)],
1191 query: &std::collections::HashMap<String, String>,
1192) -> Result<DisassociateIpAccessSettingsRequest, String> {
1193 let mut input = DisassociateIpAccessSettingsRequest::default();
1194 for (name, value) in labels {
1195 match *name {
1196 "portalArn" => {
1197 input.portal_arn = value.to_string();
1198 }
1199 _ => {}
1200 }
1201 }
1202 Ok(input)
1203}
1204
1205pub fn deserialize_disassociate_network_settings_request(
1207 request: &winterbaume_core::MockRequest,
1208 labels: &[(&str, &str)],
1209 query: &std::collections::HashMap<String, String>,
1210) -> Result<DisassociateNetworkSettingsRequest, String> {
1211 let mut input = DisassociateNetworkSettingsRequest::default();
1212 for (name, value) in labels {
1213 match *name {
1214 "portalArn" => {
1215 input.portal_arn = value.to_string();
1216 }
1217 _ => {}
1218 }
1219 }
1220 Ok(input)
1221}
1222
1223pub fn deserialize_disassociate_session_logger_request(
1225 request: &winterbaume_core::MockRequest,
1226 labels: &[(&str, &str)],
1227 query: &std::collections::HashMap<String, String>,
1228) -> Result<DisassociateSessionLoggerRequest, String> {
1229 let mut input = DisassociateSessionLoggerRequest::default();
1230 for (name, value) in labels {
1231 match *name {
1232 "portalArn" => {
1233 input.portal_arn = value.to_string();
1234 }
1235 _ => {}
1236 }
1237 }
1238 Ok(input)
1239}
1240
1241pub fn deserialize_disassociate_trust_store_request(
1243 request: &winterbaume_core::MockRequest,
1244 labels: &[(&str, &str)],
1245 query: &std::collections::HashMap<String, String>,
1246) -> Result<DisassociateTrustStoreRequest, String> {
1247 let mut input = DisassociateTrustStoreRequest::default();
1248 for (name, value) in labels {
1249 match *name {
1250 "portalArn" => {
1251 input.portal_arn = value.to_string();
1252 }
1253 _ => {}
1254 }
1255 }
1256 Ok(input)
1257}
1258
1259pub fn deserialize_disassociate_user_access_logging_settings_request(
1261 request: &winterbaume_core::MockRequest,
1262 labels: &[(&str, &str)],
1263 query: &std::collections::HashMap<String, String>,
1264) -> Result<DisassociateUserAccessLoggingSettingsRequest, String> {
1265 let mut input = DisassociateUserAccessLoggingSettingsRequest::default();
1266 for (name, value) in labels {
1267 match *name {
1268 "portalArn" => {
1269 input.portal_arn = value.to_string();
1270 }
1271 _ => {}
1272 }
1273 }
1274 Ok(input)
1275}
1276
1277pub fn deserialize_disassociate_user_settings_request(
1279 request: &winterbaume_core::MockRequest,
1280 labels: &[(&str, &str)],
1281 query: &std::collections::HashMap<String, String>,
1282) -> Result<DisassociateUserSettingsRequest, String> {
1283 let mut input = DisassociateUserSettingsRequest::default();
1284 for (name, value) in labels {
1285 match *name {
1286 "portalArn" => {
1287 input.portal_arn = value.to_string();
1288 }
1289 _ => {}
1290 }
1291 }
1292 Ok(input)
1293}
1294
1295pub fn deserialize_expire_session_request(
1297 request: &winterbaume_core::MockRequest,
1298 labels: &[(&str, &str)],
1299 query: &std::collections::HashMap<String, String>,
1300) -> Result<ExpireSessionRequest, String> {
1301 let mut input = ExpireSessionRequest::default();
1302 for (name, value) in labels {
1303 match *name {
1304 "portalId" => {
1305 input.portal_id = value.to_string();
1306 }
1307 "sessionId" => {
1308 input.session_id = value.to_string();
1309 }
1310 _ => {}
1311 }
1312 }
1313 Ok(input)
1314}
1315
1316pub fn deserialize_get_browser_settings_request(
1318 request: &winterbaume_core::MockRequest,
1319 labels: &[(&str, &str)],
1320 query: &std::collections::HashMap<String, String>,
1321) -> Result<GetBrowserSettingsRequest, String> {
1322 let mut input = GetBrowserSettingsRequest::default();
1323 for (name, value) in labels {
1324 match *name {
1325 "browserSettingsArn" => {
1326 input.browser_settings_arn = value.to_string();
1327 }
1328 _ => {}
1329 }
1330 }
1331 Ok(input)
1332}
1333
1334pub fn deserialize_get_data_protection_settings_request(
1336 request: &winterbaume_core::MockRequest,
1337 labels: &[(&str, &str)],
1338 query: &std::collections::HashMap<String, String>,
1339) -> Result<GetDataProtectionSettingsRequest, String> {
1340 let mut input = GetDataProtectionSettingsRequest::default();
1341 for (name, value) in labels {
1342 match *name {
1343 "dataProtectionSettingsArn" => {
1344 input.data_protection_settings_arn = value.to_string();
1345 }
1346 _ => {}
1347 }
1348 }
1349 Ok(input)
1350}
1351
1352pub fn deserialize_get_identity_provider_request(
1354 request: &winterbaume_core::MockRequest,
1355 labels: &[(&str, &str)],
1356 query: &std::collections::HashMap<String, String>,
1357) -> Result<GetIdentityProviderRequest, String> {
1358 let mut input = GetIdentityProviderRequest::default();
1359 for (name, value) in labels {
1360 match *name {
1361 "identityProviderArn" => {
1362 input.identity_provider_arn = value.to_string();
1363 }
1364 _ => {}
1365 }
1366 }
1367 Ok(input)
1368}
1369
1370pub fn deserialize_get_ip_access_settings_request(
1372 request: &winterbaume_core::MockRequest,
1373 labels: &[(&str, &str)],
1374 query: &std::collections::HashMap<String, String>,
1375) -> Result<GetIpAccessSettingsRequest, String> {
1376 let mut input = GetIpAccessSettingsRequest::default();
1377 for (name, value) in labels {
1378 match *name {
1379 "ipAccessSettingsArn" => {
1380 input.ip_access_settings_arn = value.to_string();
1381 }
1382 _ => {}
1383 }
1384 }
1385 Ok(input)
1386}
1387
1388pub fn deserialize_get_network_settings_request(
1390 request: &winterbaume_core::MockRequest,
1391 labels: &[(&str, &str)],
1392 query: &std::collections::HashMap<String, String>,
1393) -> Result<GetNetworkSettingsRequest, String> {
1394 let mut input = GetNetworkSettingsRequest::default();
1395 for (name, value) in labels {
1396 match *name {
1397 "networkSettingsArn" => {
1398 input.network_settings_arn = value.to_string();
1399 }
1400 _ => {}
1401 }
1402 }
1403 Ok(input)
1404}
1405
1406pub fn deserialize_get_portal_request(
1408 request: &winterbaume_core::MockRequest,
1409 labels: &[(&str, &str)],
1410 query: &std::collections::HashMap<String, String>,
1411) -> Result<GetPortalRequest, String> {
1412 let mut input = GetPortalRequest::default();
1413 for (name, value) in labels {
1414 match *name {
1415 "portalArn" => {
1416 input.portal_arn = value.to_string();
1417 }
1418 _ => {}
1419 }
1420 }
1421 Ok(input)
1422}
1423
1424pub fn deserialize_get_portal_service_provider_metadata_request(
1426 request: &winterbaume_core::MockRequest,
1427 labels: &[(&str, &str)],
1428 query: &std::collections::HashMap<String, String>,
1429) -> Result<GetPortalServiceProviderMetadataRequest, String> {
1430 let mut input = GetPortalServiceProviderMetadataRequest::default();
1431 for (name, value) in labels {
1432 match *name {
1433 "portalArn" => {
1434 input.portal_arn = value.to_string();
1435 }
1436 _ => {}
1437 }
1438 }
1439 Ok(input)
1440}
1441
1442pub fn deserialize_get_session_request(
1444 request: &winterbaume_core::MockRequest,
1445 labels: &[(&str, &str)],
1446 query: &std::collections::HashMap<String, String>,
1447) -> Result<GetSessionRequest, String> {
1448 let mut input = GetSessionRequest::default();
1449 for (name, value) in labels {
1450 match *name {
1451 "portalId" => {
1452 input.portal_id = value.to_string();
1453 }
1454 "sessionId" => {
1455 input.session_id = value.to_string();
1456 }
1457 _ => {}
1458 }
1459 }
1460 Ok(input)
1461}
1462
1463pub fn deserialize_get_session_logger_request(
1465 request: &winterbaume_core::MockRequest,
1466 labels: &[(&str, &str)],
1467 query: &std::collections::HashMap<String, String>,
1468) -> Result<GetSessionLoggerRequest, String> {
1469 let mut input = GetSessionLoggerRequest::default();
1470 for (name, value) in labels {
1471 match *name {
1472 "sessionLoggerArn" => {
1473 input.session_logger_arn = value.to_string();
1474 }
1475 _ => {}
1476 }
1477 }
1478 Ok(input)
1479}
1480
1481pub fn deserialize_get_trust_store_request(
1483 request: &winterbaume_core::MockRequest,
1484 labels: &[(&str, &str)],
1485 query: &std::collections::HashMap<String, String>,
1486) -> Result<GetTrustStoreRequest, String> {
1487 let mut input = GetTrustStoreRequest::default();
1488 for (name, value) in labels {
1489 match *name {
1490 "trustStoreArn" => {
1491 input.trust_store_arn = value.to_string();
1492 }
1493 _ => {}
1494 }
1495 }
1496 Ok(input)
1497}
1498
1499pub fn deserialize_get_trust_store_certificate_request(
1501 request: &winterbaume_core::MockRequest,
1502 labels: &[(&str, &str)],
1503 query: &std::collections::HashMap<String, String>,
1504) -> Result<GetTrustStoreCertificateRequest, String> {
1505 let mut input = GetTrustStoreCertificateRequest::default();
1506 for (name, value) in labels {
1507 match *name {
1508 "trustStoreArn" => {
1509 input.trust_store_arn = value.to_string();
1510 }
1511 _ => {}
1512 }
1513 }
1514 if let Some(value) = query.get("thumbprint") {
1515 input.thumbprint = value.to_string();
1516 }
1517 Ok(input)
1518}
1519
1520pub fn deserialize_get_user_access_logging_settings_request(
1522 request: &winterbaume_core::MockRequest,
1523 labels: &[(&str, &str)],
1524 query: &std::collections::HashMap<String, String>,
1525) -> Result<GetUserAccessLoggingSettingsRequest, String> {
1526 let mut input = GetUserAccessLoggingSettingsRequest::default();
1527 for (name, value) in labels {
1528 match *name {
1529 "userAccessLoggingSettingsArn" => {
1530 input.user_access_logging_settings_arn = value.to_string();
1531 }
1532 _ => {}
1533 }
1534 }
1535 Ok(input)
1536}
1537
1538pub fn deserialize_get_user_settings_request(
1540 request: &winterbaume_core::MockRequest,
1541 labels: &[(&str, &str)],
1542 query: &std::collections::HashMap<String, String>,
1543) -> Result<GetUserSettingsRequest, String> {
1544 let mut input = GetUserSettingsRequest::default();
1545 for (name, value) in labels {
1546 match *name {
1547 "userSettingsArn" => {
1548 input.user_settings_arn = value.to_string();
1549 }
1550 _ => {}
1551 }
1552 }
1553 Ok(input)
1554}
1555
1556pub fn deserialize_list_browser_settings_request(
1558 request: &winterbaume_core::MockRequest,
1559 labels: &[(&str, &str)],
1560 query: &std::collections::HashMap<String, String>,
1561) -> Result<ListBrowserSettingsRequest, String> {
1562 let mut input = ListBrowserSettingsRequest::default();
1563 if let Some(value) = query.get("maxResults") {
1564 input.max_results = Some(
1565 value
1566 .parse::<i32>()
1567 .map_err(|err| format!("failed to parse integer: {err}"))?,
1568 );
1569 }
1570 if let Some(value) = query.get("nextToken") {
1571 input.next_token = Some(value.to_string());
1572 }
1573 Ok(input)
1574}
1575
1576pub fn deserialize_list_data_protection_settings_request(
1578 request: &winterbaume_core::MockRequest,
1579 labels: &[(&str, &str)],
1580 query: &std::collections::HashMap<String, String>,
1581) -> Result<ListDataProtectionSettingsRequest, String> {
1582 let mut input = ListDataProtectionSettingsRequest::default();
1583 if let Some(value) = query.get("maxResults") {
1584 input.max_results = Some(
1585 value
1586 .parse::<i32>()
1587 .map_err(|err| format!("failed to parse integer: {err}"))?,
1588 );
1589 }
1590 if let Some(value) = query.get("nextToken") {
1591 input.next_token = Some(value.to_string());
1592 }
1593 Ok(input)
1594}
1595
1596pub fn deserialize_list_identity_providers_request(
1598 request: &winterbaume_core::MockRequest,
1599 labels: &[(&str, &str)],
1600 query: &std::collections::HashMap<String, String>,
1601) -> Result<ListIdentityProvidersRequest, String> {
1602 let mut input = ListIdentityProvidersRequest::default();
1603 for (name, value) in labels {
1604 match *name {
1605 "portalArn" => {
1606 input.portal_arn = value.to_string();
1607 }
1608 _ => {}
1609 }
1610 }
1611 if let Some(value) = query.get("maxResults") {
1612 input.max_results = Some(
1613 value
1614 .parse::<i32>()
1615 .map_err(|err| format!("failed to parse integer: {err}"))?,
1616 );
1617 }
1618 if let Some(value) = query.get("nextToken") {
1619 input.next_token = Some(value.to_string());
1620 }
1621 Ok(input)
1622}
1623
1624pub fn deserialize_list_ip_access_settings_request(
1626 request: &winterbaume_core::MockRequest,
1627 labels: &[(&str, &str)],
1628 query: &std::collections::HashMap<String, String>,
1629) -> Result<ListIpAccessSettingsRequest, String> {
1630 let mut input = ListIpAccessSettingsRequest::default();
1631 if let Some(value) = query.get("maxResults") {
1632 input.max_results = Some(
1633 value
1634 .parse::<i32>()
1635 .map_err(|err| format!("failed to parse integer: {err}"))?,
1636 );
1637 }
1638 if let Some(value) = query.get("nextToken") {
1639 input.next_token = Some(value.to_string());
1640 }
1641 Ok(input)
1642}
1643
1644pub fn deserialize_list_network_settings_request(
1646 request: &winterbaume_core::MockRequest,
1647 labels: &[(&str, &str)],
1648 query: &std::collections::HashMap<String, String>,
1649) -> Result<ListNetworkSettingsRequest, String> {
1650 let mut input = ListNetworkSettingsRequest::default();
1651 if let Some(value) = query.get("maxResults") {
1652 input.max_results = Some(
1653 value
1654 .parse::<i32>()
1655 .map_err(|err| format!("failed to parse integer: {err}"))?,
1656 );
1657 }
1658 if let Some(value) = query.get("nextToken") {
1659 input.next_token = Some(value.to_string());
1660 }
1661 Ok(input)
1662}
1663
1664pub fn deserialize_list_portals_request(
1666 request: &winterbaume_core::MockRequest,
1667 labels: &[(&str, &str)],
1668 query: &std::collections::HashMap<String, String>,
1669) -> Result<ListPortalsRequest, String> {
1670 let mut input = ListPortalsRequest::default();
1671 if let Some(value) = query.get("maxResults") {
1672 input.max_results = Some(
1673 value
1674 .parse::<i32>()
1675 .map_err(|err| format!("failed to parse integer: {err}"))?,
1676 );
1677 }
1678 if let Some(value) = query.get("nextToken") {
1679 input.next_token = Some(value.to_string());
1680 }
1681 Ok(input)
1682}
1683
1684pub fn deserialize_list_session_loggers_request(
1686 request: &winterbaume_core::MockRequest,
1687 labels: &[(&str, &str)],
1688 query: &std::collections::HashMap<String, String>,
1689) -> Result<ListSessionLoggersRequest, String> {
1690 let mut input = ListSessionLoggersRequest::default();
1691 if let Some(value) = query.get("maxResults") {
1692 input.max_results = Some(
1693 value
1694 .parse::<i32>()
1695 .map_err(|err| format!("failed to parse integer: {err}"))?,
1696 );
1697 }
1698 if let Some(value) = query.get("nextToken") {
1699 input.next_token = Some(value.to_string());
1700 }
1701 Ok(input)
1702}
1703
1704pub fn deserialize_list_sessions_request(
1706 request: &winterbaume_core::MockRequest,
1707 labels: &[(&str, &str)],
1708 query: &std::collections::HashMap<String, String>,
1709) -> Result<ListSessionsRequest, String> {
1710 let mut input = ListSessionsRequest::default();
1711 for (name, value) in labels {
1712 match *name {
1713 "portalId" => {
1714 input.portal_id = value.to_string();
1715 }
1716 _ => {}
1717 }
1718 }
1719 if let Some(value) = query.get("maxResults") {
1720 input.max_results = Some(
1721 value
1722 .parse::<i32>()
1723 .map_err(|err| format!("failed to parse integer: {err}"))?,
1724 );
1725 }
1726 if let Some(value) = query.get("nextToken") {
1727 input.next_token = Some(value.to_string());
1728 }
1729 if let Some(value) = query.get("sessionId") {
1730 input.session_id = Some(value.to_string());
1731 }
1732 if let Some(value) = query.get("sortBy") {
1733 input.sort_by = Some(value.to_string());
1734 }
1735 if let Some(value) = query.get("status") {
1736 input.status = Some(value.to_string());
1737 }
1738 if let Some(value) = query.get("username") {
1739 input.username = Some(value.to_string());
1740 }
1741 Ok(input)
1742}
1743
1744pub fn deserialize_list_tags_for_resource_request(
1746 request: &winterbaume_core::MockRequest,
1747 labels: &[(&str, &str)],
1748 query: &std::collections::HashMap<String, String>,
1749) -> Result<ListTagsForResourceRequest, String> {
1750 let mut input = ListTagsForResourceRequest::default();
1751 for (name, value) in labels {
1752 match *name {
1753 "resourceArn" => {
1754 input.resource_arn = value.to_string();
1755 }
1756 _ => {}
1757 }
1758 }
1759 Ok(input)
1760}
1761
1762pub fn deserialize_list_trust_store_certificates_request(
1764 request: &winterbaume_core::MockRequest,
1765 labels: &[(&str, &str)],
1766 query: &std::collections::HashMap<String, String>,
1767) -> Result<ListTrustStoreCertificatesRequest, String> {
1768 let mut input = ListTrustStoreCertificatesRequest::default();
1769 for (name, value) in labels {
1770 match *name {
1771 "trustStoreArn" => {
1772 input.trust_store_arn = value.to_string();
1773 }
1774 _ => {}
1775 }
1776 }
1777 if let Some(value) = query.get("maxResults") {
1778 input.max_results = Some(
1779 value
1780 .parse::<i32>()
1781 .map_err(|err| format!("failed to parse integer: {err}"))?,
1782 );
1783 }
1784 if let Some(value) = query.get("nextToken") {
1785 input.next_token = Some(value.to_string());
1786 }
1787 Ok(input)
1788}
1789
1790pub fn deserialize_list_trust_stores_request(
1792 request: &winterbaume_core::MockRequest,
1793 labels: &[(&str, &str)],
1794 query: &std::collections::HashMap<String, String>,
1795) -> Result<ListTrustStoresRequest, String> {
1796 let mut input = ListTrustStoresRequest::default();
1797 if let Some(value) = query.get("maxResults") {
1798 input.max_results = Some(
1799 value
1800 .parse::<i32>()
1801 .map_err(|err| format!("failed to parse integer: {err}"))?,
1802 );
1803 }
1804 if let Some(value) = query.get("nextToken") {
1805 input.next_token = Some(value.to_string());
1806 }
1807 Ok(input)
1808}
1809
1810pub fn deserialize_list_user_access_logging_settings_request(
1812 request: &winterbaume_core::MockRequest,
1813 labels: &[(&str, &str)],
1814 query: &std::collections::HashMap<String, String>,
1815) -> Result<ListUserAccessLoggingSettingsRequest, String> {
1816 let mut input = ListUserAccessLoggingSettingsRequest::default();
1817 if let Some(value) = query.get("maxResults") {
1818 input.max_results = Some(
1819 value
1820 .parse::<i32>()
1821 .map_err(|err| format!("failed to parse integer: {err}"))?,
1822 );
1823 }
1824 if let Some(value) = query.get("nextToken") {
1825 input.next_token = Some(value.to_string());
1826 }
1827 Ok(input)
1828}
1829
1830pub fn deserialize_list_user_settings_request(
1832 request: &winterbaume_core::MockRequest,
1833 labels: &[(&str, &str)],
1834 query: &std::collections::HashMap<String, String>,
1835) -> Result<ListUserSettingsRequest, String> {
1836 let mut input = ListUserSettingsRequest::default();
1837 if let Some(value) = query.get("maxResults") {
1838 input.max_results = Some(
1839 value
1840 .parse::<i32>()
1841 .map_err(|err| format!("failed to parse integer: {err}"))?,
1842 );
1843 }
1844 if let Some(value) = query.get("nextToken") {
1845 input.next_token = Some(value.to_string());
1846 }
1847 Ok(input)
1848}
1849
1850pub fn deserialize_tag_resource_request(
1852 request: &winterbaume_core::MockRequest,
1853 labels: &[(&str, &str)],
1854 query: &std::collections::HashMap<String, String>,
1855) -> Result<TagResourceRequest, String> {
1856 let mut input = TagResourceRequest::default();
1857 if !request.body.is_empty() {
1858 input = serde_json::from_slice::<TagResourceRequest>(&request.body)
1859 .map_err(|err| format!("failed to deserialize TagResource request: {err}"))?;
1860 }
1861 for (name, value) in labels {
1862 match *name {
1863 "resourceArn" => {
1864 input.resource_arn = value.to_string();
1865 }
1866 _ => {}
1867 }
1868 }
1869 Ok(input)
1870}
1871
1872pub fn deserialize_untag_resource_request(
1874 request: &winterbaume_core::MockRequest,
1875 labels: &[(&str, &str)],
1876 query: &std::collections::HashMap<String, String>,
1877) -> Result<UntagResourceRequest, String> {
1878 let mut input = UntagResourceRequest::default();
1879 for (name, value) in labels {
1880 match *name {
1881 "resourceArn" => {
1882 input.resource_arn = value.to_string();
1883 }
1884 _ => {}
1885 }
1886 }
1887 if let Some(value) = query.get("tagKeys") {
1888 input.tag_keys = value
1889 .split(',')
1890 .filter(|item| !item.trim().is_empty())
1891 .map(|item| Ok(item.trim().to_string()))
1892 .collect::<Result<Vec<_>, String>>()?;
1893 }
1894 Ok(input)
1895}
1896
1897pub fn deserialize_update_browser_settings_request(
1899 request: &winterbaume_core::MockRequest,
1900 labels: &[(&str, &str)],
1901 query: &std::collections::HashMap<String, String>,
1902) -> Result<UpdateBrowserSettingsRequest, String> {
1903 let mut input = UpdateBrowserSettingsRequest::default();
1904 if !request.body.is_empty() {
1905 input = serde_json::from_slice::<UpdateBrowserSettingsRequest>(&request.body)
1906 .map_err(|err| format!("failed to deserialize UpdateBrowserSettings request: {err}"))?;
1907 }
1908 for (name, value) in labels {
1909 match *name {
1910 "browserSettingsArn" => {
1911 input.browser_settings_arn = value.to_string();
1912 }
1913 _ => {}
1914 }
1915 }
1916 Ok(input)
1917}
1918
1919pub fn deserialize_update_data_protection_settings_request(
1921 request: &winterbaume_core::MockRequest,
1922 labels: &[(&str, &str)],
1923 query: &std::collections::HashMap<String, String>,
1924) -> Result<UpdateDataProtectionSettingsRequest, String> {
1925 let mut input = UpdateDataProtectionSettingsRequest::default();
1926 if !request.body.is_empty() {
1927 input = serde_json::from_slice::<UpdateDataProtectionSettingsRequest>(&request.body)
1928 .map_err(|err| {
1929 format!("failed to deserialize UpdateDataProtectionSettings request: {err}")
1930 })?;
1931 }
1932 for (name, value) in labels {
1933 match *name {
1934 "dataProtectionSettingsArn" => {
1935 input.data_protection_settings_arn = value.to_string();
1936 }
1937 _ => {}
1938 }
1939 }
1940 Ok(input)
1941}
1942
1943pub fn deserialize_update_identity_provider_request(
1945 request: &winterbaume_core::MockRequest,
1946 labels: &[(&str, &str)],
1947 query: &std::collections::HashMap<String, String>,
1948) -> Result<UpdateIdentityProviderRequest, String> {
1949 let mut input = UpdateIdentityProviderRequest::default();
1950 if !request.body.is_empty() {
1951 input = serde_json::from_slice::<UpdateIdentityProviderRequest>(&request.body).map_err(
1952 |err| format!("failed to deserialize UpdateIdentityProvider request: {err}"),
1953 )?;
1954 }
1955 for (name, value) in labels {
1956 match *name {
1957 "identityProviderArn" => {
1958 input.identity_provider_arn = value.to_string();
1959 }
1960 _ => {}
1961 }
1962 }
1963 Ok(input)
1964}
1965
1966pub fn deserialize_update_ip_access_settings_request(
1968 request: &winterbaume_core::MockRequest,
1969 labels: &[(&str, &str)],
1970 query: &std::collections::HashMap<String, String>,
1971) -> Result<UpdateIpAccessSettingsRequest, String> {
1972 let mut input = UpdateIpAccessSettingsRequest::default();
1973 if !request.body.is_empty() {
1974 input = serde_json::from_slice::<UpdateIpAccessSettingsRequest>(&request.body).map_err(
1975 |err| format!("failed to deserialize UpdateIpAccessSettings request: {err}"),
1976 )?;
1977 }
1978 for (name, value) in labels {
1979 match *name {
1980 "ipAccessSettingsArn" => {
1981 input.ip_access_settings_arn = value.to_string();
1982 }
1983 _ => {}
1984 }
1985 }
1986 Ok(input)
1987}
1988
1989pub fn deserialize_update_network_settings_request(
1991 request: &winterbaume_core::MockRequest,
1992 labels: &[(&str, &str)],
1993 query: &std::collections::HashMap<String, String>,
1994) -> Result<UpdateNetworkSettingsRequest, String> {
1995 let mut input = UpdateNetworkSettingsRequest::default();
1996 if !request.body.is_empty() {
1997 input = serde_json::from_slice::<UpdateNetworkSettingsRequest>(&request.body)
1998 .map_err(|err| format!("failed to deserialize UpdateNetworkSettings request: {err}"))?;
1999 }
2000 for (name, value) in labels {
2001 match *name {
2002 "networkSettingsArn" => {
2003 input.network_settings_arn = value.to_string();
2004 }
2005 _ => {}
2006 }
2007 }
2008 Ok(input)
2009}
2010
2011pub fn deserialize_update_portal_request(
2013 request: &winterbaume_core::MockRequest,
2014 labels: &[(&str, &str)],
2015 query: &std::collections::HashMap<String, String>,
2016) -> Result<UpdatePortalRequest, String> {
2017 let mut input = UpdatePortalRequest::default();
2018 if !request.body.is_empty() {
2019 input = serde_json::from_slice::<UpdatePortalRequest>(&request.body)
2020 .map_err(|err| format!("failed to deserialize UpdatePortal request: {err}"))?;
2021 }
2022 for (name, value) in labels {
2023 match *name {
2024 "portalArn" => {
2025 input.portal_arn = value.to_string();
2026 }
2027 _ => {}
2028 }
2029 }
2030 Ok(input)
2031}
2032
2033pub fn deserialize_update_session_logger_request(
2035 request: &winterbaume_core::MockRequest,
2036 labels: &[(&str, &str)],
2037 query: &std::collections::HashMap<String, String>,
2038) -> Result<UpdateSessionLoggerRequest, String> {
2039 let mut input = UpdateSessionLoggerRequest::default();
2040 if !request.body.is_empty() {
2041 input = serde_json::from_slice::<UpdateSessionLoggerRequest>(&request.body)
2042 .map_err(|err| format!("failed to deserialize UpdateSessionLogger request: {err}"))?;
2043 }
2044 for (name, value) in labels {
2045 match *name {
2046 "sessionLoggerArn" => {
2047 input.session_logger_arn = value.to_string();
2048 }
2049 _ => {}
2050 }
2051 }
2052 Ok(input)
2053}
2054
2055pub fn deserialize_update_trust_store_request(
2057 request: &winterbaume_core::MockRequest,
2058 labels: &[(&str, &str)],
2059 query: &std::collections::HashMap<String, String>,
2060) -> Result<UpdateTrustStoreRequest, String> {
2061 let mut input = UpdateTrustStoreRequest::default();
2062 if !request.body.is_empty() {
2063 input = serde_json::from_slice::<UpdateTrustStoreRequest>(&request.body)
2064 .map_err(|err| format!("failed to deserialize UpdateTrustStore request: {err}"))?;
2065 }
2066 for (name, value) in labels {
2067 match *name {
2068 "trustStoreArn" => {
2069 input.trust_store_arn = value.to_string();
2070 }
2071 _ => {}
2072 }
2073 }
2074 Ok(input)
2075}
2076
2077pub fn deserialize_update_user_access_logging_settings_request(
2079 request: &winterbaume_core::MockRequest,
2080 labels: &[(&str, &str)],
2081 query: &std::collections::HashMap<String, String>,
2082) -> Result<UpdateUserAccessLoggingSettingsRequest, String> {
2083 let mut input = UpdateUserAccessLoggingSettingsRequest::default();
2084 if !request.body.is_empty() {
2085 input = serde_json::from_slice::<UpdateUserAccessLoggingSettingsRequest>(&request.body)
2086 .map_err(|err| {
2087 format!("failed to deserialize UpdateUserAccessLoggingSettings request: {err}")
2088 })?;
2089 }
2090 for (name, value) in labels {
2091 match *name {
2092 "userAccessLoggingSettingsArn" => {
2093 input.user_access_logging_settings_arn = value.to_string();
2094 }
2095 _ => {}
2096 }
2097 }
2098 Ok(input)
2099}
2100
2101pub fn deserialize_update_user_settings_request(
2103 request: &winterbaume_core::MockRequest,
2104 labels: &[(&str, &str)],
2105 query: &std::collections::HashMap<String, String>,
2106) -> Result<UpdateUserSettingsRequest, String> {
2107 let mut input = UpdateUserSettingsRequest::default();
2108 if !request.body.is_empty() {
2109 input = serde_json::from_slice::<UpdateUserSettingsRequest>(&request.body)
2110 .map_err(|err| format!("failed to deserialize UpdateUserSettings request: {err}"))?;
2111 }
2112 for (name, value) in labels {
2113 match *name {
2114 "userSettingsArn" => {
2115 input.user_settings_arn = value.to_string();
2116 }
2117 _ => {}
2118 }
2119 }
2120 Ok(input)
2121}