package smaws-clients
Amazon Web Services SDK clients using EIO
Install
Dune Dependency
Authors
Maintainers
Sources
0.1.preview1.tar.gz
md5=18fb70dbc45e8d81a341b9bed6871bab
sha512=7607dc98acaeed5803b44c9ca32d90c88e7813d4b3e3ae4ec661a0bad16c88dc1476bc780877527ea4cd5a4b7398453c1bb600ce0db14d39afa05dc4762b5ba5
doc/src/smaws-clients.migration-hub/serializers.ml.html
Source file serializers.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
open Smaws_Lib.Json.SerializeHelpers open Types let update_date_time_to_yojson = timestamp_to_yojson let error_message_to_yojson = string_to_yojson let = fun (x: unauthorized_operation) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let token_to_yojson = string_to_yojson let retry_after_seconds_to_yojson = int_to_yojson let throttling_exception_to_yojson = fun (x: throttling_exception) -> assoc_to_yojson( [( "RetryAfterSeconds", (option_to_yojson retry_after_seconds_to_yojson x.retry_after_seconds)); ( "Message", (Some (error_message_to_yojson x.message))); ]) let base_unit_to_yojson = unit_to_yojson let status_to_yojson = fun (x: status) -> match x with | COMPLETED -> `String "COMPLETED" | FAILED -> `String "FAILED" | IN_PROGRESS -> `String "IN_PROGRESS" | NOT_STARTED -> `String "NOT_STARTED" let status_detail_to_yojson = string_to_yojson let progress_percent_to_yojson = int_to_yojson let task_to_yojson = fun (x: task) -> assoc_to_yojson( [( "ProgressPercent", (option_to_yojson progress_percent_to_yojson x.progress_percent)); ( "StatusDetail", (option_to_yojson status_detail_to_yojson x.status_detail)); ( "Status", (Some (status_to_yojson x.status))); ]) let = fun (x: service_unavailable_exception) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let resource_not_found_exception_to_yojson = fun (x: resource_not_found_exception) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let resource_name_to_yojson = string_to_yojson let resource_attribute_value_to_yojson = string_to_yojson let resource_attribute_type_to_yojson = fun (x: resource_attribute_type) -> match x with | MOTHERBOARD_SERIAL_NUMBER -> `String "MOTHERBOARD_SERIAL_NUMBER" | BIOS_ID -> `String "BIOS_ID" | VM_PATH -> `String "VM_PATH" | VM_NAME -> `String "VM_NAME" | VM_MANAGED_OBJECT_REFERENCE -> `String "VM_MANAGED_OBJECT_REFERENCE" | VM_MANAGER_ID -> `String "VM_MANAGER_ID" | FQDN -> `String "FQDN" | MAC_ADDRESS -> `String "MAC_ADDRESS" | IPV6_ADDRESS -> `String "IPV6_ADDRESS" | IPV4_ADDRESS -> `String "IPV4_ADDRESS" let resource_attribute_to_yojson = fun (x: resource_attribute) -> assoc_to_yojson( [( "Value", (Some (resource_attribute_value_to_yojson x.value))); ( "Type", (Some (resource_attribute_type_to_yojson x.type_))); ]) let resource_attribute_list_to_yojson = fun tree -> list_to_yojson resource_attribute_to_yojson tree let put_resource_attributes_result_to_yojson = fun (x: put_resource_attributes_result) -> assoc_to_yojson( [ ]) let progress_update_stream_to_yojson = string_to_yojson let migration_task_name_to_yojson = string_to_yojson let dry_run_to_yojson = bool_to_yojson let put_resource_attributes_request_to_yojson = fun (x: put_resource_attributes_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "ResourceAttributeList", (Some (resource_attribute_list_to_yojson x.resource_attribute_list))); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let invalid_input_exception_to_yojson = fun (x: invalid_input_exception) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let internal_server_error_to_yojson = fun (x: internal_server_error) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let home_region_not_set_exception_to_yojson = fun (x: home_region_not_set_exception) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let dry_run_operation_to_yojson = fun (x: dry_run_operation) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let access_denied_exception_to_yojson = fun (x: access_denied_exception) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let progress_update_stream_summary_to_yojson = fun (x: progress_update_stream_summary) -> assoc_to_yojson( [( "ProgressUpdateStreamName", (option_to_yojson progress_update_stream_to_yojson x.progress_update_stream_name)); ]) let progress_update_stream_summary_list_to_yojson = fun tree -> list_to_yojson progress_update_stream_summary_to_yojson tree let policy_error_exception_to_yojson = fun (x: policy_error_exception) -> assoc_to_yojson( [( "Message", (option_to_yojson error_message_to_yojson x.message)); ]) let notify_migration_task_state_result_to_yojson = fun (x: notify_migration_task_state_result) -> assoc_to_yojson( [ ]) let next_update_seconds_to_yojson = int_to_yojson let notify_migration_task_state_request_to_yojson = fun (x: notify_migration_task_state_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "NextUpdateSeconds", (Some (next_update_seconds_to_yojson x.next_update_seconds))); ( "UpdateDateTime", (Some (update_date_time_to_yojson x.update_date_time))); ( "Task", (Some (task_to_yojson x.task))); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let notify_application_state_result_to_yojson = fun (x: notify_application_state_result) -> assoc_to_yojson( [ ]) let application_id_to_yojson = string_to_yojson let application_status_to_yojson = fun (x: application_status) -> match x with | COMPLETED -> `String "COMPLETED" | IN_PROGRESS -> `String "IN_PROGRESS" | NOT_STARTED -> `String "NOT_STARTED" let notify_application_state_request_to_yojson = fun (x: notify_application_state_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "UpdateDateTime", (option_to_yojson update_date_time_to_yojson x.update_date_time)); ( "Status", (Some (application_status_to_yojson x.status))); ( "ApplicationId", (Some (application_id_to_yojson x.application_id))); ]) let migration_task_summary_to_yojson = fun (x: migration_task_summary) -> assoc_to_yojson( [( "UpdateDateTime", (option_to_yojson update_date_time_to_yojson x.update_date_time)); ( "StatusDetail", (option_to_yojson status_detail_to_yojson x.status_detail)); ( "ProgressPercent", (option_to_yojson progress_percent_to_yojson x.progress_percent)); ( "Status", (option_to_yojson status_to_yojson x.status)); ( "MigrationTaskName", (option_to_yojson migration_task_name_to_yojson x.migration_task_name)); ( "ProgressUpdateStream", (option_to_yojson progress_update_stream_to_yojson x.progress_update_stream)); ]) let migration_task_summary_list_to_yojson = fun tree -> list_to_yojson migration_task_summary_to_yojson tree let latest_resource_attribute_list_to_yojson = fun tree -> list_to_yojson resource_attribute_to_yojson tree let migration_task_to_yojson = fun (x: migration_task) -> assoc_to_yojson( [( "ResourceAttributeList", (option_to_yojson latest_resource_attribute_list_to_yojson x.resource_attribute_list)); ( "UpdateDateTime", (option_to_yojson update_date_time_to_yojson x.update_date_time)); ( "Task", (option_to_yojson task_to_yojson x.task)); ( "MigrationTaskName", (option_to_yojson migration_task_name_to_yojson x.migration_task_name)); ( "ProgressUpdateStream", (option_to_yojson progress_update_stream_to_yojson x.progress_update_stream)); ]) let max_results_resources_to_yojson = int_to_yojson let max_results_created_artifacts_to_yojson = int_to_yojson let max_results_to_yojson = int_to_yojson let list_progress_update_streams_result_to_yojson = fun (x: list_progress_update_streams_result) -> assoc_to_yojson( [( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ( "ProgressUpdateStreamSummaryList", (option_to_yojson progress_update_stream_summary_list_to_yojson x.progress_update_stream_summary_list)); ]) let list_progress_update_streams_request_to_yojson = fun (x: list_progress_update_streams_request) -> assoc_to_yojson( [( "MaxResults", (option_to_yojson max_results_to_yojson x.max_results)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ]) let list_migration_tasks_result_to_yojson = fun (x: list_migration_tasks_result) -> assoc_to_yojson( [( "MigrationTaskSummaryList", (option_to_yojson migration_task_summary_list_to_yojson x.migration_task_summary_list)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ]) let list_migration_tasks_request_to_yojson = fun (x: list_migration_tasks_request) -> assoc_to_yojson( [( "ResourceName", (option_to_yojson resource_name_to_yojson x.resource_name)); ( "MaxResults", (option_to_yojson max_results_to_yojson x.max_results)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ]) let configuration_id_to_yojson = string_to_yojson let discovered_resource_description_to_yojson = string_to_yojson let discovered_resource_to_yojson = fun (x: discovered_resource) -> assoc_to_yojson( [( "Description", (option_to_yojson discovered_resource_description_to_yojson x.description)); ( "ConfigurationId", (Some (configuration_id_to_yojson x.configuration_id))); ]) let discovered_resource_list_to_yojson = fun tree -> list_to_yojson discovered_resource_to_yojson tree let list_discovered_resources_result_to_yojson = fun (x: list_discovered_resources_result) -> assoc_to_yojson( [( "DiscoveredResourceList", (option_to_yojson discovered_resource_list_to_yojson x.discovered_resource_list)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ]) let list_discovered_resources_request_to_yojson = fun (x: list_discovered_resources_request) -> assoc_to_yojson( [( "MaxResults", (option_to_yojson max_results_resources_to_yojson x.max_results)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let created_artifact_name_to_yojson = string_to_yojson let created_artifact_description_to_yojson = string_to_yojson let created_artifact_to_yojson = fun (x: created_artifact) -> assoc_to_yojson( [( "Description", (option_to_yojson created_artifact_description_to_yojson x.description)); ( "Name", (Some (created_artifact_name_to_yojson x.name))); ]) let created_artifact_list_to_yojson = fun tree -> list_to_yojson created_artifact_to_yojson tree let list_created_artifacts_result_to_yojson = fun (x: list_created_artifacts_result) -> assoc_to_yojson( [( "CreatedArtifactList", (option_to_yojson created_artifact_list_to_yojson x.created_artifact_list)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ]) let list_created_artifacts_request_to_yojson = fun (x: list_created_artifacts_request) -> assoc_to_yojson( [( "MaxResults", (option_to_yojson max_results_created_artifacts_to_yojson x.max_results)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let application_state_to_yojson = fun (x: application_state) -> assoc_to_yojson( [( "LastUpdatedTime", (option_to_yojson update_date_time_to_yojson x.last_updated_time)); ( "ApplicationStatus", (option_to_yojson application_status_to_yojson x.application_status)); ( "ApplicationId", (option_to_yojson application_id_to_yojson x.application_id)); ]) let application_state_list_to_yojson = fun tree -> list_to_yojson application_state_to_yojson tree let list_application_states_result_to_yojson = fun (x: list_application_states_result) -> assoc_to_yojson( [( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ( "ApplicationStateList", (option_to_yojson application_state_list_to_yojson x.application_state_list)); ]) let application_ids_to_yojson = fun tree -> list_to_yojson application_id_to_yojson tree let list_application_states_request_to_yojson = fun (x: list_application_states_request) -> assoc_to_yojson( [( "MaxResults", (option_to_yojson max_results_to_yojson x.max_results)); ( "NextToken", (option_to_yojson token_to_yojson x.next_token)); ( "ApplicationIds", (option_to_yojson application_ids_to_yojson x.application_ids)); ]) let import_migration_task_result_to_yojson = fun (x: import_migration_task_result) -> assoc_to_yojson( [ ]) let import_migration_task_request_to_yojson = fun (x: import_migration_task_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let disassociate_discovered_resource_result_to_yojson = fun (x: disassociate_discovered_resource_result) -> assoc_to_yojson( [ ]) let disassociate_discovered_resource_request_to_yojson = fun (x: disassociate_discovered_resource_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "ConfigurationId", (Some (configuration_id_to_yojson x.configuration_id))); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let disassociate_created_artifact_result_to_yojson = fun (x: disassociate_created_artifact_result) -> assoc_to_yojson( [ ]) let disassociate_created_artifact_request_to_yojson = fun (x: disassociate_created_artifact_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "CreatedArtifactName", (Some (created_artifact_name_to_yojson x.created_artifact_name))); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let describe_migration_task_result_to_yojson = fun (x: describe_migration_task_result) -> assoc_to_yojson( [( "MigrationTask", (option_to_yojson migration_task_to_yojson x.migration_task)); ]) let describe_migration_task_request_to_yojson = fun (x: describe_migration_task_request) -> assoc_to_yojson( [( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let describe_application_state_result_to_yojson = fun (x: describe_application_state_result) -> assoc_to_yojson( [( "LastUpdatedTime", (option_to_yojson update_date_time_to_yojson x.last_updated_time)); ( "ApplicationStatus", (option_to_yojson application_status_to_yojson x.application_status)); ]) let describe_application_state_request_to_yojson = fun (x: describe_application_state_request) -> assoc_to_yojson( [( "ApplicationId", (Some (application_id_to_yojson x.application_id))); ]) let delete_progress_update_stream_result_to_yojson = fun (x: delete_progress_update_stream_result) -> assoc_to_yojson( [ ]) let delete_progress_update_stream_request_to_yojson = fun (x: delete_progress_update_stream_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "ProgressUpdateStreamName", (Some (progress_update_stream_to_yojson x.progress_update_stream_name))); ]) let create_progress_update_stream_result_to_yojson = fun (x: create_progress_update_stream_result) -> assoc_to_yojson( [ ]) let create_progress_update_stream_request_to_yojson = fun (x: create_progress_update_stream_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "ProgressUpdateStreamName", (Some (progress_update_stream_to_yojson x.progress_update_stream_name))); ]) let associate_discovered_resource_result_to_yojson = fun (x: associate_discovered_resource_result) -> assoc_to_yojson( [ ]) let associate_discovered_resource_request_to_yojson = fun (x: associate_discovered_resource_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "DiscoveredResource", (Some (discovered_resource_to_yojson x.discovered_resource))); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let associate_created_artifact_result_to_yojson = fun (x: associate_created_artifact_result) -> assoc_to_yojson( [ ]) let associate_created_artifact_request_to_yojson = fun (x: associate_created_artifact_request) -> assoc_to_yojson( [( "DryRun", (option_to_yojson dry_run_to_yojson x.dry_run)); ( "CreatedArtifact", (Some (created_artifact_to_yojson x.created_artifact))); ( "MigrationTaskName", (Some (migration_task_name_to_yojson x.migration_task_name))); ( "ProgressUpdateStream", (Some (progress_update_stream_to_yojson x.progress_update_stream))); ]) let base_string_to_yojson = string_to_yojson let base_boolean_to_yojson = bool_to_yojson let base_integer_to_yojson = int_to_yojson let base_timestamp_to_yojson = timestamp_to_yojson let base_long_to_yojson = long_to_yojson let base_document_to_yojson = json_to_yojson
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>