azure_mgmt_recovery_services_site_recovery 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +7 -6
  3. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery.rb +392 -0
  4. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aapply_recovery_point_input.rb +50 -0
  5. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2acontainer_creation_input.rb +50 -0
  6. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2acontainer_mapping_input.rb +73 -0
  7. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aenable_protection_input.rb +169 -0
  8. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aevent_details.rb +116 -0
  9. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2afailover_provider_input.rb +75 -0
  10. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2apolicy_creation_input.rb +97 -0
  11. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2apolicy_details.rb +107 -0
  12. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aprotected_disk_details.rb +182 -0
  13. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aprotected_managed_disk_details.rb +206 -0
  14. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aprotection_container_mapping_details.rb +95 -0
  15. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2arecovery_point_details.rb +63 -0
  16. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2areplication_details.rb +431 -0
  17. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2areprotect_input.rb +126 -0
  18. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2arp_recovery_point_type.rb +18 -0
  19. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aswitch_protection_input.rb +158 -0
  20. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aupdate_container_mapping_input.rb +73 -0
  21. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2aupdate_replication_protected_item_input.rb +104 -0
  22. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2avm_disk_input_details.rb +68 -0
  23. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2avm_managed_disk_input_details.rb +92 -0
  24. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/a2avm_managed_disk_update_details.rb +68 -0
  25. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/add_vcenter_request.rb +48 -0
  26. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/add_vcenter_request_properties.rb +92 -0
  27. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/agent_auto_update_status.rb +16 -0
  28. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/agent_version_status.rb +19 -0
  29. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/alert.rb +82 -0
  30. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/alert_collection.rb +98 -0
  31. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/alert_properties.rb +77 -0
  32. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/alternate_location_recovery_option.rb +16 -0
  33. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/apply_recovery_point_input.rb +48 -0
  34. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/apply_recovery_point_input_properties.rb +61 -0
  35. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/apply_recovery_point_provider_specific_input.rb +48 -0
  36. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/asr_job_details.rb +66 -0
  37. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/asrtask.rb +197 -0
  38. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/automation_runbook_task_details.rb +150 -0
  39. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +61 -0
  40. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_specific_details.rb +80 -0
  41. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_create_network_mapping_input.rb +62 -0
  42. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_network_mapping_settings.rb +72 -0
  43. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_update_network_mapping_input.rb +61 -0
  44. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_vm_synced_config_details.rb +94 -0
  45. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_vm_disk_details.rb +112 -0
  46. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/compute_size_error_details.rb +58 -0
  47. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/configuration_settings.rb +49 -0
  48. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/configure_alert_request.rb +48 -0
  49. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/configure_alert_request_properties.rb +77 -0
  50. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/consistency_check_task_details.rb +72 -0
  51. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_network_mapping_input.rb +48 -0
  52. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_network_mapping_input_properties.rb +72 -0
  53. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_policy_input.rb +47 -0
  54. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_policy_input_properties.rb +49 -0
  55. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_input.rb +48 -0
  56. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_input_properties.rb +58 -0
  57. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_mapping_input.rb +48 -0
  58. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_mapping_input_properties.rb +73 -0
  59. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_recovery_plan_input.rb +48 -0
  60. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/create_recovery_plan_input_properties.rb +89 -0
  61. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/current_scenario_details.rb +68 -0
  62. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/data_store.rb +90 -0
  63. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/data_sync_status.rb +16 -0
  64. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_input.rb +48 -0
  65. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_input_properties.rb +63 -0
  66. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_provider_specific_input.rb +46 -0
  67. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_reason.rb +16 -0
  68. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/discover_protectable_item_request.rb +48 -0
  69. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/discover_protectable_item_request_properties.rb +69 -0
  70. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/disk_details.rb +79 -0
  71. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/disk_volume_details.rb +57 -0
  72. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/display.rb +105 -0
  73. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/enable_protection_input.rb +48 -0
  74. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/enable_protection_input_properties.rb +75 -0
  75. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/enable_protection_provider_specific_input.rb +50 -0
  76. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/encryption_details.rb +68 -0
  77. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/event.rb +82 -0
  78. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/event_collection.rb +98 -0
  79. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/event_properties.rb +163 -0
  80. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/event_provider_specific_details.rb +51 -0
  81. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/event_query_parameter.rb +115 -0
  82. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/event_specific_details.rb +46 -0
  83. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/export_job_details.rb +88 -0
  84. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric.rb +82 -0
  85. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_collection.rb +98 -0
  86. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_creation_input.rb +47 -0
  87. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_creation_input_properties.rb +50 -0
  88. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_properties.rb +137 -0
  89. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_replication_group_task_details.rb +84 -0
  90. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_create_network_mapping_input.rb +48 -0
  91. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +47 -0
  92. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_details.rb +50 -0
  93. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_update_network_mapping_input.rb +48 -0
  94. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/failover_deployment_model.rb +17 -0
  95. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/failover_job_details.rb +87 -0
  96. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/failover_process_server_request.rb +48 -0
  97. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/failover_process_server_request_properties.rb +99 -0
  98. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/failover_replication_protected_item_details.rb +134 -0
  99. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/group_task_details.rb +69 -0
  100. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/health_error.rb +193 -0
  101. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/health_error_category.rb +21 -0
  102. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/health_error_summary.rb +129 -0
  103. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica2012event_details.rb +94 -0
  104. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica2012r2event_details.rb +94 -0
  105. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_apply_recovery_point_input.rb +84 -0
  106. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_enable_protection_input.rb +218 -0
  107. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_event_details.rb +83 -0
  108. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_failback_provider_input.rb +83 -0
  109. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_failover_provider_input.rb +96 -0
  110. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_policy_details.rb +120 -0
  111. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_policy_input.rb +117 -0
  112. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_replication_details.rb +340 -0
  113. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_reprotect_input.rb +117 -0
  114. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_rp_recovery_point_type.rb +17 -0
  115. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_update_replication_protected_item_input.rb +87 -0
  116. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_event_details.rb +94 -0
  117. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_policy_details.rb +163 -0
  118. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_replication_details.rb +146 -0
  119. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_blue_policy_details.rb +174 -0
  120. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_blue_policy_input.rb +174 -0
  121. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_blue_replication_details.rb +146 -0
  122. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_policy_details.rb +163 -0
  123. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_policy_input.rb +163 -0
  124. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_replication_details.rb +146 -0
  125. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vsite_details.rb +50 -0
  126. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vvirtual_machine_details.rb +145 -0
  127. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/identity_information.rb +124 -0
  128. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/identity_provider_type.rb +15 -0
  129. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_agent_details.rb +81 -0
  130. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_agent_version_details.rb +82 -0
  131. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2apply_recovery_point_input.rb +61 -0
  132. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2enable_protection_input.rb +229 -0
  133. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2event_details.rb +128 -0
  134. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2failover_provider_input.rb +74 -0
  135. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2policy_details.rb +107 -0
  136. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2policy_input.rb +108 -0
  137. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2protected_disk_details.rb +201 -0
  138. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2recovery_point_details.rb +62 -0
  139. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2replication_details.rb +650 -0
  140. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2reprotect_input.rb +136 -0
  141. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2update_replication_protected_item_input.rb +87 -0
  142. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_base_policy_details.rb +96 -0
  143. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disable_protection_provider_specific_input.rb +63 -0
  144. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disk_details.rb +110 -0
  145. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disk_exclusion_input.rb +78 -0
  146. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disk_signature_exclusion_options.rb +48 -0
  147. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_enable_protection_input.rb +169 -0
  148. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_failover_provider_input.rb +78 -0
  149. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_policy_details.rb +96 -0
  150. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_policy_input.rb +97 -0
  151. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_protected_disk_details.rb +201 -0
  152. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_replication_details.rb +516 -0
  153. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_reprotect_input.rb +147 -0
  154. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_v2rp_recovery_point_type.rb +18 -0
  155. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_volume_exclusion_options.rb +62 -0
  156. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/inconsistent_vm_details.rb +97 -0
  157. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/initial_replication_details.rb +57 -0
  158. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/inline_workflow_task_details.rb +86 -0
  159. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/inner_health_error.rb +172 -0
  160. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/input_endpoint.rb +79 -0
  161. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job.rb +82 -0
  162. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_collection.rb +98 -0
  163. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_details.rb +71 -0
  164. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_entity.rb +102 -0
  165. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_error_details.rb +92 -0
  166. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_properties.rb +224 -0
  167. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_query_parameter.rb +90 -0
  168. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_status_event_details.rb +94 -0
  169. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/job_task_details.rb +63 -0
  170. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/license_type.rb +17 -0
  171. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/logical_network.rb +82 -0
  172. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/logical_network_collection.rb +98 -0
  173. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/logical_network_properties.rb +82 -0
  174. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/manual_action_task_details.rb +83 -0
  175. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/master_target_server.rb +272 -0
  176. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/mobility_service_update.rb +69 -0
  177. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/multi_vm_group_create_option.rb +16 -0
  178. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/multi_vm_sync_point_option.rb +16 -0
  179. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/multi_vm_sync_status.rb +16 -0
  180. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network.rb +82 -0
  181. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network_collection.rb +98 -0
  182. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping.rb +88 -0
  183. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping_collection.rb +102 -0
  184. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping_fabric_specific_settings.rb +48 -0
  185. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping_properties.rb +138 -0
  186. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/network_properties.rb +88 -0
  187. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/operations_discovery.rb +100 -0
  188. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/operations_discovery_collection.rb +98 -0
  189. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/osdetails.rb +101 -0
  190. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/osdisk_details.rb +68 -0
  191. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/planned_failover_input.rb +48 -0
  192. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/planned_failover_input_properties.rb +60 -0
  193. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/policy.rb +82 -0
  194. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/policy_collection.rb +98 -0
  195. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/policy_properties.rb +60 -0
  196. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/policy_provider_specific_details.rb +55 -0
  197. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/policy_provider_specific_input.rb +52 -0
  198. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/possible_operations_directions.rb +16 -0
  199. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/presence_status.rb +17 -0
  200. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/process_server.rb +364 -0
  201. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item.rb +82 -0
  202. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item_collection.rb +98 -0
  203. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item_properties.rb +133 -0
  204. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item_query_parameter.rb +46 -0
  205. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protected_items_query_parameter.rb +92 -0
  206. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container.rb +82 -0
  207. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_collection.rb +98 -0
  208. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_fabric_specific_details.rb +47 -0
  209. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping.rb +82 -0
  210. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping_collection.rb +98 -0
  211. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping_properties.rb +169 -0
  212. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping_provider_specific_details.rb +47 -0
  213. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_properties.rb +114 -0
  214. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/provider_error.rb +90 -0
  215. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/provider_specific_failover_input.rb +50 -0
  216. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/provider_specific_recovery_point_details.rb +47 -0
  217. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/rcm_azure_migration_policy_details.rb +107 -0
  218. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan.rb +82 -0
  219. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_a2afailover_input.rb +88 -0
  220. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_action.rb +100 -0
  221. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_action_details.rb +48 -0
  222. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_action_location.rb +16 -0
  223. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_automation_runbook_action_details.rb +85 -0
  224. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_collection.rb +98 -0
  225. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_group.rb +107 -0
  226. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_group_task_details.rb +100 -0
  227. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_group_type.rb +17 -0
  228. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_hyper_vreplica_azure_failback_input.rb +75 -0
  229. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_hyper_vreplica_azure_failover_input.rb +97 -0
  230. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_in_mage_azure_v2failover_input.rb +86 -0
  231. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_in_mage_failover_input.rb +62 -0
  232. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_manual_action_details.rb +61 -0
  233. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_planned_failover_input.rb +48 -0
  234. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_planned_failover_input_properties.rb +71 -0
  235. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_properties.rb +226 -0
  236. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_protected_item.rb +57 -0
  237. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_provider_specific_failover_input.rb +51 -0
  238. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_script_action_details.rb +84 -0
  239. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_shutdown_group_task_details.rb +100 -0
  240. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_cleanup_input.rb +48 -0
  241. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_cleanup_input_properties.rb +47 -0
  242. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_input.rb +48 -0
  243. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_input_properties.rb +104 -0
  244. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_unplanned_failover_input.rb +48 -0
  245. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_unplanned_failover_input_properties.rb +84 -0
  246. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point.rb +82 -0
  247. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_collection.rb +98 -0
  248. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_properties.rb +73 -0
  249. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_sync_type.rb +16 -0
  250. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_type.rb +17 -0
  251. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_services_provider.rb +82 -0
  252. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_services_provider_collection.rb +98 -0
  253. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_services_provider_properties.rb +220 -0
  254. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/remove_protection_container_mapping_input.rb +48 -0
  255. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/remove_protection_container_mapping_input_properties.rb +49 -0
  256. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/renew_certificate_input.rb +48 -0
  257. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/renew_certificate_input_properties.rb +46 -0
  258. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_group_details.rb +50 -0
  259. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item.rb +82 -0
  260. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item_collection.rb +99 -0
  261. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item_operation.rb +27 -0
  262. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item_properties.rb +360 -0
  263. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_container_unmapping_input.rb +47 -0
  264. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_container_creation_input.rb +47 -0
  265. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_container_mapping_input.rb +47 -0
  266. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_settings.rb +52 -0
  267. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_update_container_mapping_input.rb +47 -0
  268. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/resource.rb +82 -0
  269. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/resource_health_summary.rb +68 -0
  270. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/resume_job_params.rb +47 -0
  271. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/resume_job_params_properties.rb +46 -0
  272. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/retention_volume.rb +79 -0
  273. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/reverse_replication_input.rb +48 -0
  274. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/reverse_replication_input_properties.rb +61 -0
  275. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/reverse_replication_provider_specific_input.rb +49 -0
  276. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/role_assignment.rb +90 -0
  277. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/rp_in_mage_recovery_point_type.rb +17 -0
  278. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/run_as_account.rb +57 -0
  279. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/san_enable_protection_input.rb +50 -0
  280. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/script_action_task_details.rb +95 -0
  281. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/service_error.rb +90 -0
  282. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/set_multi_vm_sync_status.rb +16 -0
  283. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/severity.rb +18 -0
  284. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/source_site_operations.rb +16 -0
  285. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification.rb +83 -0
  286. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_collection.rb +98 -0
  287. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping.rb +83 -0
  288. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping_collection.rb +99 -0
  289. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping_input.rb +48 -0
  290. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping_properties.rb +46 -0
  291. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_properties.rb +46 -0
  292. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/storage_mapping_input_properties.rb +46 -0
  293. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/subnet.rb +76 -0
  294. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_input.rb +47 -0
  295. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_input_properties.rb +61 -0
  296. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_job_details.rb +77 -0
  297. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_provider_specific_input.rb +46 -0
  298. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/target_compute_size.rb +80 -0
  299. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/target_compute_size_collection.rb +98 -0
  300. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/target_compute_size_properties.rb +138 -0
  301. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/task_type_details.rb +53 -0
  302. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_cleanup_input.rb +48 -0
  303. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_cleanup_input_properties.rb +46 -0
  304. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_input.rb +47 -0
  305. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_input_properties.rb +94 -0
  306. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_job_details.rb +143 -0
  307. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/unplanned_failover_input.rb +48 -0
  308. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/unplanned_failover_input_properties.rb +71 -0
  309. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_mobility_service_request.rb +48 -0
  310. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_mobility_service_request_properties.rb +46 -0
  311. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_network_mapping_input.rb +48 -0
  312. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_network_mapping_input_properties.rb +72 -0
  313. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_policy_input.rb +47 -0
  314. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_policy_input_properties.rb +49 -0
  315. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_protection_container_mapping_input.rb +48 -0
  316. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_protection_container_mapping_input_properties.rb +51 -0
  317. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_recovery_plan_input.rb +48 -0
  318. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_recovery_plan_input_properties.rb +55 -0
  319. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_replication_protected_item_input.rb +48 -0
  320. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_replication_protected_item_input_properties.rb +152 -0
  321. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_replication_protected_item_provider_input.rb +49 -0
  322. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_vcenter_request.rb +48 -0
  323. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/update_vcenter_request_properties.rb +92 -0
  324. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vault_health_details.rb +82 -0
  325. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vault_health_properties.rb +94 -0
  326. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vcenter.rb +82 -0
  327. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vcenter_collection.rb +98 -0
  328. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vcenter_properties.rb +168 -0
  329. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/version_details.rb +70 -0
  330. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/virtual_machine_task_details.rb +84 -0
  331. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vm_nic_updates_task_details.rb +83 -0
  332. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_details.rb +50 -0
  333. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_azure_create_network_mapping_input.rb +51 -0
  334. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_azure_network_mapping_settings.rb +50 -0
  335. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_azure_update_network_mapping_input.rb +51 -0
  336. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_vmm_create_network_mapping_input.rb +51 -0
  337. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_vmm_network_mapping_settings.rb +50 -0
  338. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_vmm_update_network_mapping_input.rb +51 -0
  339. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_virtual_machine_details.rb +145 -0
  340. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmnic_details.rb +167 -0
  341. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmnic_input_details.rb +79 -0
  342. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_cbt_policy_creation_input.rb +84 -0
  343. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_cbt_policy_details.rb +95 -0
  344. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_details.rb +434 -0
  345. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_v2fabric_creation_input.rb +72 -0
  346. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_v2fabric_specific_details.rb +94 -0
  347. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_virtual_machine_details.rb +182 -0
  348. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/module_definition.rb +9 -0
  349. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +232 -0
  350. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +363 -0
  351. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +444 -0
  352. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +332 -0
  353. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +1303 -0
  354. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +908 -0
  355. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +338 -0
  356. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +1016 -0
  357. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +546 -0
  358. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +754 -0
  359. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +351 -0
  360. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +2755 -0
  361. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +1174 -0
  362. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +1178 -0
  363. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +1639 -0
  364. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +975 -0
  365. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +866 -0
  366. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +546 -0
  367. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +241 -0
  368. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +1003 -0
  369. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +223 -0
  370. data/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/target_compute_sizes.rb +252 -0
  371. data/lib/azure_mgmt_recovery_services_site_recovery.rb +1 -0
  372. data/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +1071 -993
  373. data/lib/version.rb +1 -1
  374. metadata +373 -5
@@ -0,0 +1,332 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10
7
+ #
8
+ # ReplicationEvents
9
+ #
10
+ class ReplicationEvents
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ReplicationEvents class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SiteRecoveryManagementClient] reference to the SiteRecoveryManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets the list of Azure Site Recovery events.
26
+ #
27
+ # Gets the list of Azure Site Recovery events for the vault.
28
+ #
29
+ # @param filter [String] OData filter options.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [Array<Event>] operation results.
34
+ #
35
+ def list(filter:nil, custom_headers:nil)
36
+ first_page = list_as_lazy(filter:filter, custom_headers:custom_headers)
37
+ first_page.get_all_items
38
+ end
39
+
40
+ #
41
+ # Gets the list of Azure Site Recovery events.
42
+ #
43
+ # Gets the list of Azure Site Recovery events for the vault.
44
+ #
45
+ # @param filter [String] OData filter options.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def list_with_http_info(filter:nil, custom_headers:nil)
52
+ list_async(filter:filter, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Gets the list of Azure Site Recovery events.
57
+ #
58
+ # Gets the list of Azure Site Recovery events for the vault.
59
+ #
60
+ # @param filter [String] OData filter options.
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def list_async(filter:nil, custom_headers:nil)
67
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
69
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
70
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id},
86
+ query_params: {'api-version' => @client.api_version,'$filter' => filter},
87
+ headers: request_headers.merge(custom_headers || {}),
88
+ base_url: request_url
89
+ }
90
+ promise = @client.make_request_async(:get, path_template, options)
91
+
92
+ promise = promise.then do |result|
93
+ http_response = result.response
94
+ status_code = http_response.status
95
+ response_content = http_response.body
96
+ unless status_code == 200
97
+ error_model = JSON.load(response_content)
98
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
99
+ end
100
+
101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ # Deserialize Response
103
+ if status_code == 200
104
+ begin
105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EventCollection.mapper()
107
+ result.body = @client.deserialize(result_mapper, parsed_response)
108
+ rescue Exception => e
109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
110
+ end
111
+ end
112
+
113
+ result
114
+ end
115
+
116
+ promise.execute
117
+ end
118
+
119
+ #
120
+ # Get the details of an Azure Site recovery event.
121
+ #
122
+ # The operation to get the details of an Azure Site recovery event.
123
+ #
124
+ # @param event_name [String] The name of the Azure Site Recovery event.
125
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
+ # will be added to the HTTP request.
127
+ #
128
+ # @return [Event] operation results.
129
+ #
130
+ def get(event_name, custom_headers:nil)
131
+ response = get_async(event_name, custom_headers:custom_headers).value!
132
+ response.body unless response.nil?
133
+ end
134
+
135
+ #
136
+ # Get the details of an Azure Site recovery event.
137
+ #
138
+ # The operation to get the details of an Azure Site recovery event.
139
+ #
140
+ # @param event_name [String] The name of the Azure Site Recovery event.
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
145
+ #
146
+ def get_with_http_info(event_name, custom_headers:nil)
147
+ get_async(event_name, custom_headers:custom_headers).value!
148
+ end
149
+
150
+ #
151
+ # Get the details of an Azure Site recovery event.
152
+ #
153
+ # The operation to get the details of an Azure Site recovery event.
154
+ #
155
+ # @param event_name [String] The name of the Azure Site Recovery event.
156
+ # @param [Hash{String => String}] A hash of custom headers that will be added
157
+ # to the HTTP request.
158
+ #
159
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
160
+ #
161
+ def get_async(event_name, custom_headers:nil)
162
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
163
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
164
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
165
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
166
+ fail ArgumentError, 'event_name is nil' if event_name.nil?
167
+
168
+
169
+ request_headers = {}
170
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
171
+
172
+ # Set Headers
173
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
174
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
175
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}'
176
+
177
+ request_url = @base_url || @client.base_url
178
+
179
+ options = {
180
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
181
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'eventName' => event_name},
182
+ query_params: {'api-version' => @client.api_version},
183
+ headers: request_headers.merge(custom_headers || {}),
184
+ base_url: request_url
185
+ }
186
+ promise = @client.make_request_async(:get, path_template, options)
187
+
188
+ promise = promise.then do |result|
189
+ http_response = result.response
190
+ status_code = http_response.status
191
+ response_content = http_response.body
192
+ unless status_code == 200
193
+ error_model = JSON.load(response_content)
194
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
195
+ end
196
+
197
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
198
+ # Deserialize Response
199
+ if status_code == 200
200
+ begin
201
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
202
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event.mapper()
203
+ result.body = @client.deserialize(result_mapper, parsed_response)
204
+ rescue Exception => e
205
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
206
+ end
207
+ end
208
+
209
+ result
210
+ end
211
+
212
+ promise.execute
213
+ end
214
+
215
+ #
216
+ # Gets the list of Azure Site Recovery events.
217
+ #
218
+ # Gets the list of Azure Site Recovery events for the vault.
219
+ #
220
+ # @param next_page_link [String] The NextLink from the previous successful call
221
+ # to List operation.
222
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
223
+ # will be added to the HTTP request.
224
+ #
225
+ # @return [EventCollection] operation results.
226
+ #
227
+ def list_next(next_page_link, custom_headers:nil)
228
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
229
+ response.body unless response.nil?
230
+ end
231
+
232
+ #
233
+ # Gets the list of Azure Site Recovery events.
234
+ #
235
+ # Gets the list of Azure Site Recovery events for the vault.
236
+ #
237
+ # @param next_page_link [String] The NextLink from the previous successful call
238
+ # to List operation.
239
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
240
+ # will be added to the HTTP request.
241
+ #
242
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
243
+ #
244
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
245
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
246
+ end
247
+
248
+ #
249
+ # Gets the list of Azure Site Recovery events.
250
+ #
251
+ # Gets the list of Azure Site Recovery events for the vault.
252
+ #
253
+ # @param next_page_link [String] The NextLink from the previous successful call
254
+ # to List operation.
255
+ # @param [Hash{String => String}] A hash of custom headers that will be added
256
+ # to the HTTP request.
257
+ #
258
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
259
+ #
260
+ def list_next_async(next_page_link, custom_headers:nil)
261
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
262
+
263
+
264
+ request_headers = {}
265
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
266
+
267
+ # Set Headers
268
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
269
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
270
+ path_template = '{nextLink}'
271
+
272
+ request_url = @base_url || @client.base_url
273
+
274
+ options = {
275
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
276
+ skip_encoding_path_params: {'nextLink' => next_page_link},
277
+ headers: request_headers.merge(custom_headers || {}),
278
+ base_url: request_url
279
+ }
280
+ promise = @client.make_request_async(:get, path_template, options)
281
+
282
+ promise = promise.then do |result|
283
+ http_response = result.response
284
+ status_code = http_response.status
285
+ response_content = http_response.body
286
+ unless status_code == 200
287
+ error_model = JSON.load(response_content)
288
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
289
+ end
290
+
291
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
292
+ # Deserialize Response
293
+ if status_code == 200
294
+ begin
295
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
296
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EventCollection.mapper()
297
+ result.body = @client.deserialize(result_mapper, parsed_response)
298
+ rescue Exception => e
299
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
300
+ end
301
+ end
302
+
303
+ result
304
+ end
305
+
306
+ promise.execute
307
+ end
308
+
309
+ #
310
+ # Gets the list of Azure Site Recovery events.
311
+ #
312
+ # Gets the list of Azure Site Recovery events for the vault.
313
+ #
314
+ # @param filter [String] OData filter options.
315
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
316
+ # will be added to the HTTP request.
317
+ #
318
+ # @return [EventCollection] which provide lazy access to pages of the response.
319
+ #
320
+ def list_as_lazy(filter:nil, custom_headers:nil)
321
+ response = list_async(filter:filter, custom_headers:custom_headers).value!
322
+ unless response.nil?
323
+ page = response.body
324
+ page.next_method = Proc.new do |next_page_link|
325
+ list_next_async(next_page_link, custom_headers:custom_headers)
326
+ end
327
+ page
328
+ end
329
+ end
330
+
331
+ end
332
+ end
@@ -0,0 +1,1303 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10
7
+ #
8
+ # ReplicationFabrics
9
+ #
10
+ class ReplicationFabrics
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ReplicationFabrics class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SiteRecoveryManagementClient] reference to the SiteRecoveryManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets the list of ASR fabrics
26
+ #
27
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
28
+ #
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<Fabric>] operation results.
33
+ #
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Gets the list of ASR fabrics
41
+ #
42
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
43
+ #
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_with_http_info(custom_headers:nil)
50
+ list_async(custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Gets the list of ASR fabrics
55
+ #
56
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
57
+ #
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_async(custom_headers:nil)
64
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
66
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
67
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
68
+
69
+
70
+ request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
+
73
+ # Set Headers
74
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
75
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
76
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics'
77
+
78
+ request_url = @base_url || @client.base_url
79
+
80
+ options = {
81
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
82
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id},
83
+ query_params: {'api-version' => @client.api_version},
84
+ headers: request_headers.merge(custom_headers || {}),
85
+ base_url: request_url
86
+ }
87
+ promise = @client.make_request_async(:get, path_template, options)
88
+
89
+ promise = promise.then do |result|
90
+ http_response = result.response
91
+ status_code = http_response.status
92
+ response_content = http_response.body
93
+ unless status_code == 200
94
+ error_model = JSON.load(response_content)
95
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
96
+ end
97
+
98
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
99
+ # Deserialize Response
100
+ if status_code == 200
101
+ begin
102
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
103
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricCollection.mapper()
104
+ result.body = @client.deserialize(result_mapper, parsed_response)
105
+ rescue Exception => e
106
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
107
+ end
108
+ end
109
+
110
+ result
111
+ end
112
+
113
+ promise.execute
114
+ end
115
+
116
+ #
117
+ # Gets the details of an ASR fabric.
118
+ #
119
+ # Gets the details of an Azure Site Recovery fabric.
120
+ #
121
+ # @param fabric_name [String] Fabric name.
122
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
123
+ # will be added to the HTTP request.
124
+ #
125
+ # @return [Fabric] operation results.
126
+ #
127
+ def get(fabric_name, custom_headers:nil)
128
+ response = get_async(fabric_name, custom_headers:custom_headers).value!
129
+ response.body unless response.nil?
130
+ end
131
+
132
+ #
133
+ # Gets the details of an ASR fabric.
134
+ #
135
+ # Gets the details of an Azure Site Recovery fabric.
136
+ #
137
+ # @param fabric_name [String] Fabric name.
138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
139
+ # will be added to the HTTP request.
140
+ #
141
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
+ #
143
+ def get_with_http_info(fabric_name, custom_headers:nil)
144
+ get_async(fabric_name, custom_headers:custom_headers).value!
145
+ end
146
+
147
+ #
148
+ # Gets the details of an ASR fabric.
149
+ #
150
+ # Gets the details of an Azure Site Recovery fabric.
151
+ #
152
+ # @param fabric_name [String] Fabric name.
153
+ # @param [Hash{String => String}] A hash of custom headers that will be added
154
+ # to the HTTP request.
155
+ #
156
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
+ #
158
+ def get_async(fabric_name, custom_headers:nil)
159
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
160
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
161
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
162
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
163
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
164
+
165
+
166
+ request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
168
+
169
+ # Set Headers
170
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
171
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
172
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}'
173
+
174
+ request_url = @base_url || @client.base_url
175
+
176
+ options = {
177
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
178
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
179
+ query_params: {'api-version' => @client.api_version},
180
+ headers: request_headers.merge(custom_headers || {}),
181
+ base_url: request_url
182
+ }
183
+ promise = @client.make_request_async(:get, path_template, options)
184
+
185
+ promise = promise.then do |result|
186
+ http_response = result.response
187
+ status_code = http_response.status
188
+ response_content = http_response.body
189
+ unless status_code == 200
190
+ error_model = JSON.load(response_content)
191
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
192
+ end
193
+
194
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
195
+ # Deserialize Response
196
+ if status_code == 200
197
+ begin
198
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
199
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
200
+ result.body = @client.deserialize(result_mapper, parsed_response)
201
+ rescue Exception => e
202
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
203
+ end
204
+ end
205
+
206
+ result
207
+ end
208
+
209
+ promise.execute
210
+ end
211
+
212
+ #
213
+ # Creates an Azure Site Recovery fabric.
214
+ #
215
+ # The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site)
216
+ #
217
+ # @param fabric_name [String] Name of the ASR fabric.
218
+ # @param input [FabricCreationInput] Fabric creation input.
219
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
220
+ # will be added to the HTTP request.
221
+ #
222
+ # @return [Fabric] operation results.
223
+ #
224
+ def create(fabric_name, input, custom_headers:nil)
225
+ response = create_async(fabric_name, input, custom_headers:custom_headers).value!
226
+ response.body unless response.nil?
227
+ end
228
+
229
+ #
230
+ # @param fabric_name [String] Name of the ASR fabric.
231
+ # @param input [FabricCreationInput] Fabric creation input.
232
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
233
+ # will be added to the HTTP request.
234
+ #
235
+ # @return [Concurrent::Promise] promise which provides async access to http
236
+ # response.
237
+ #
238
+ def create_async(fabric_name, input, custom_headers:nil)
239
+ # Send request
240
+ promise = begin_create_async(fabric_name, input, custom_headers:custom_headers)
241
+
242
+ promise = promise.then do |response|
243
+ # Defining deserialization method.
244
+ deserialize_method = lambda do |parsed_response|
245
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
246
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
247
+ end
248
+
249
+ # Waiting for response.
250
+ @client.get_long_running_operation_result(response, deserialize_method)
251
+ end
252
+
253
+ promise
254
+ end
255
+
256
+ #
257
+ # Purges the site.
258
+ #
259
+ # The operation to purge(force delete) an Azure Site Recovery fabric.
260
+ #
261
+ # @param fabric_name [String] ASR fabric to purge.
262
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
263
+ # will be added to the HTTP request.
264
+ #
265
+ def purge(fabric_name, custom_headers:nil)
266
+ response = purge_async(fabric_name, custom_headers:custom_headers).value!
267
+ nil
268
+ end
269
+
270
+ #
271
+ # @param fabric_name [String] ASR fabric to purge.
272
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
273
+ # will be added to the HTTP request.
274
+ #
275
+ # @return [Concurrent::Promise] promise which provides async access to http
276
+ # response.
277
+ #
278
+ def purge_async(fabric_name, custom_headers:nil)
279
+ # Send request
280
+ promise = begin_purge_async(fabric_name, custom_headers:custom_headers)
281
+
282
+ promise = promise.then do |response|
283
+ # Defining deserialization method.
284
+ deserialize_method = lambda do |parsed_response|
285
+ end
286
+
287
+ # Waiting for response.
288
+ @client.get_long_running_operation_result(response, deserialize_method)
289
+ end
290
+
291
+ promise
292
+ end
293
+
294
+ #
295
+ # Checks the consistency of the ASR fabric.
296
+ #
297
+ # The operation to perform a consistency check on the fabric.
298
+ #
299
+ # @param fabric_name [String] Fabric name.
300
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
301
+ # will be added to the HTTP request.
302
+ #
303
+ # @return [Fabric] operation results.
304
+ #
305
+ def check_consistency(fabric_name, custom_headers:nil)
306
+ response = check_consistency_async(fabric_name, custom_headers:custom_headers).value!
307
+ response.body unless response.nil?
308
+ end
309
+
310
+ #
311
+ # @param fabric_name [String] Fabric name.
312
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
313
+ # will be added to the HTTP request.
314
+ #
315
+ # @return [Concurrent::Promise] promise which provides async access to http
316
+ # response.
317
+ #
318
+ def check_consistency_async(fabric_name, custom_headers:nil)
319
+ # Send request
320
+ promise = begin_check_consistency_async(fabric_name, custom_headers:custom_headers)
321
+
322
+ promise = promise.then do |response|
323
+ # Defining deserialization method.
324
+ deserialize_method = lambda do |parsed_response|
325
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
326
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
327
+ end
328
+
329
+ # Waiting for response.
330
+ @client.get_long_running_operation_result(response, deserialize_method)
331
+ end
332
+
333
+ promise
334
+ end
335
+
336
+ #
337
+ # Migrates the site to AAD.
338
+ #
339
+ # The operation to migrate an Azure Site Recovery fabric to AAD.
340
+ #
341
+ # @param fabric_name [String] ASR fabric to migrate.
342
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
343
+ # will be added to the HTTP request.
344
+ #
345
+ def migrate_to_aad(fabric_name, custom_headers:nil)
346
+ response = migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value!
347
+ nil
348
+ end
349
+
350
+ #
351
+ # @param fabric_name [String] ASR fabric to migrate.
352
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
353
+ # will be added to the HTTP request.
354
+ #
355
+ # @return [Concurrent::Promise] promise which provides async access to http
356
+ # response.
357
+ #
358
+ def migrate_to_aad_async(fabric_name, custom_headers:nil)
359
+ # Send request
360
+ promise = begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers)
361
+
362
+ promise = promise.then do |response|
363
+ # Defining deserialization method.
364
+ deserialize_method = lambda do |parsed_response|
365
+ end
366
+
367
+ # Waiting for response.
368
+ @client.get_long_running_operation_result(response, deserialize_method)
369
+ end
370
+
371
+ promise
372
+ end
373
+
374
+ #
375
+ # Perform failover of the process server.
376
+ #
377
+ # The operation to move replications from a process server to another process
378
+ # server.
379
+ #
380
+ # @param fabric_name [String] The name of the fabric containing the process
381
+ # server.
382
+ # @param failover_process_server_request [FailoverProcessServerRequest] The
383
+ # input to the failover process server operation.
384
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
385
+ # will be added to the HTTP request.
386
+ #
387
+ # @return [Fabric] operation results.
388
+ #
389
+ def reassociate_gateway(fabric_name, failover_process_server_request, custom_headers:nil)
390
+ response = reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value!
391
+ response.body unless response.nil?
392
+ end
393
+
394
+ #
395
+ # @param fabric_name [String] The name of the fabric containing the process
396
+ # server.
397
+ # @param failover_process_server_request [FailoverProcessServerRequest] The
398
+ # input to the failover process server operation.
399
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
400
+ # will be added to the HTTP request.
401
+ #
402
+ # @return [Concurrent::Promise] promise which provides async access to http
403
+ # response.
404
+ #
405
+ def reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:nil)
406
+ # Send request
407
+ promise = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers)
408
+
409
+ promise = promise.then do |response|
410
+ # Defining deserialization method.
411
+ deserialize_method = lambda do |parsed_response|
412
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
413
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
414
+ end
415
+
416
+ # Waiting for response.
417
+ @client.get_long_running_operation_result(response, deserialize_method)
418
+ end
419
+
420
+ promise
421
+ end
422
+
423
+ #
424
+ # Deletes the site.
425
+ #
426
+ # The operation to delete or remove an Azure Site Recovery fabric.
427
+ #
428
+ # @param fabric_name [String] ASR fabric to delete
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ def delete(fabric_name, custom_headers:nil)
433
+ response = delete_async(fabric_name, custom_headers:custom_headers).value!
434
+ nil
435
+ end
436
+
437
+ #
438
+ # @param fabric_name [String] ASR fabric to delete
439
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
440
+ # will be added to the HTTP request.
441
+ #
442
+ # @return [Concurrent::Promise] promise which provides async access to http
443
+ # response.
444
+ #
445
+ def delete_async(fabric_name, custom_headers:nil)
446
+ # Send request
447
+ promise = begin_delete_async(fabric_name, custom_headers:custom_headers)
448
+
449
+ promise = promise.then do |response|
450
+ # Defining deserialization method.
451
+ deserialize_method = lambda do |parsed_response|
452
+ end
453
+
454
+ # Waiting for response.
455
+ @client.get_long_running_operation_result(response, deserialize_method)
456
+ end
457
+
458
+ promise
459
+ end
460
+
461
+ #
462
+ # Renews certificate for the fabric.
463
+ #
464
+ # Renews the connection certificate for the ASR replication fabric.
465
+ #
466
+ # @param fabric_name [String] fabric name to renew certs for.
467
+ # @param renew_certificate [RenewCertificateInput] Renew certificate input.
468
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
469
+ # will be added to the HTTP request.
470
+ #
471
+ # @return [Fabric] operation results.
472
+ #
473
+ def renew_certificate(fabric_name, renew_certificate, custom_headers:nil)
474
+ response = renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value!
475
+ response.body unless response.nil?
476
+ end
477
+
478
+ #
479
+ # @param fabric_name [String] fabric name to renew certs for.
480
+ # @param renew_certificate [RenewCertificateInput] Renew certificate input.
481
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
482
+ # will be added to the HTTP request.
483
+ #
484
+ # @return [Concurrent::Promise] promise which provides async access to http
485
+ # response.
486
+ #
487
+ def renew_certificate_async(fabric_name, renew_certificate, custom_headers:nil)
488
+ # Send request
489
+ promise = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers)
490
+
491
+ promise = promise.then do |response|
492
+ # Defining deserialization method.
493
+ deserialize_method = lambda do |parsed_response|
494
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
495
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
496
+ end
497
+
498
+ # Waiting for response.
499
+ @client.get_long_running_operation_result(response, deserialize_method)
500
+ end
501
+
502
+ promise
503
+ end
504
+
505
+ #
506
+ # Creates an Azure Site Recovery fabric.
507
+ #
508
+ # The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site)
509
+ #
510
+ # @param fabric_name [String] Name of the ASR fabric.
511
+ # @param input [FabricCreationInput] Fabric creation input.
512
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
513
+ # will be added to the HTTP request.
514
+ #
515
+ # @return [Fabric] operation results.
516
+ #
517
+ def begin_create(fabric_name, input, custom_headers:nil)
518
+ response = begin_create_async(fabric_name, input, custom_headers:custom_headers).value!
519
+ response.body unless response.nil?
520
+ end
521
+
522
+ #
523
+ # Creates an Azure Site Recovery fabric.
524
+ #
525
+ # The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site)
526
+ #
527
+ # @param fabric_name [String] Name of the ASR fabric.
528
+ # @param input [FabricCreationInput] Fabric creation input.
529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
+ # will be added to the HTTP request.
531
+ #
532
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
533
+ #
534
+ def begin_create_with_http_info(fabric_name, input, custom_headers:nil)
535
+ begin_create_async(fabric_name, input, custom_headers:custom_headers).value!
536
+ end
537
+
538
+ #
539
+ # Creates an Azure Site Recovery fabric.
540
+ #
541
+ # The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site)
542
+ #
543
+ # @param fabric_name [String] Name of the ASR fabric.
544
+ # @param input [FabricCreationInput] Fabric creation input.
545
+ # @param [Hash{String => String}] A hash of custom headers that will be added
546
+ # to the HTTP request.
547
+ #
548
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
549
+ #
550
+ def begin_create_async(fabric_name, input, custom_headers:nil)
551
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
552
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
553
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
554
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
555
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
556
+ fail ArgumentError, 'input is nil' if input.nil?
557
+
558
+
559
+ request_headers = {}
560
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
561
+
562
+ # Set Headers
563
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
564
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
565
+
566
+ # Serialize Request
567
+ request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricCreationInput.mapper()
568
+ request_content = @client.serialize(request_mapper, input)
569
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
570
+
571
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}'
572
+
573
+ request_url = @base_url || @client.base_url
574
+
575
+ options = {
576
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
577
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
578
+ query_params: {'api-version' => @client.api_version},
579
+ body: request_content,
580
+ headers: request_headers.merge(custom_headers || {}),
581
+ base_url: request_url
582
+ }
583
+ promise = @client.make_request_async(:put, path_template, options)
584
+
585
+ promise = promise.then do |result|
586
+ http_response = result.response
587
+ status_code = http_response.status
588
+ response_content = http_response.body
589
+ unless status_code == 200 || status_code == 202
590
+ error_model = JSON.load(response_content)
591
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
592
+ end
593
+
594
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
595
+ # Deserialize Response
596
+ if status_code == 200
597
+ begin
598
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
599
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
600
+ result.body = @client.deserialize(result_mapper, parsed_response)
601
+ rescue Exception => e
602
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
603
+ end
604
+ end
605
+
606
+ result
607
+ end
608
+
609
+ promise.execute
610
+ end
611
+
612
+ #
613
+ # Purges the site.
614
+ #
615
+ # The operation to purge(force delete) an Azure Site Recovery fabric.
616
+ #
617
+ # @param fabric_name [String] ASR fabric to purge.
618
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
619
+ # will be added to the HTTP request.
620
+ #
621
+ #
622
+ def begin_purge(fabric_name, custom_headers:nil)
623
+ response = begin_purge_async(fabric_name, custom_headers:custom_headers).value!
624
+ nil
625
+ end
626
+
627
+ #
628
+ # Purges the site.
629
+ #
630
+ # The operation to purge(force delete) an Azure Site Recovery fabric.
631
+ #
632
+ # @param fabric_name [String] ASR fabric to purge.
633
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
634
+ # will be added to the HTTP request.
635
+ #
636
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
637
+ #
638
+ def begin_purge_with_http_info(fabric_name, custom_headers:nil)
639
+ begin_purge_async(fabric_name, custom_headers:custom_headers).value!
640
+ end
641
+
642
+ #
643
+ # Purges the site.
644
+ #
645
+ # The operation to purge(force delete) an Azure Site Recovery fabric.
646
+ #
647
+ # @param fabric_name [String] ASR fabric to purge.
648
+ # @param [Hash{String => String}] A hash of custom headers that will be added
649
+ # to the HTTP request.
650
+ #
651
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
652
+ #
653
+ def begin_purge_async(fabric_name, custom_headers:nil)
654
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
655
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
656
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
657
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
658
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
659
+
660
+
661
+ request_headers = {}
662
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
663
+
664
+ # Set Headers
665
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
666
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
667
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}'
668
+
669
+ request_url = @base_url || @client.base_url
670
+
671
+ options = {
672
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
673
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
674
+ query_params: {'api-version' => @client.api_version},
675
+ headers: request_headers.merge(custom_headers || {}),
676
+ base_url: request_url
677
+ }
678
+ promise = @client.make_request_async(:delete, path_template, options)
679
+
680
+ promise = promise.then do |result|
681
+ http_response = result.response
682
+ status_code = http_response.status
683
+ response_content = http_response.body
684
+ unless status_code == 202 || status_code == 204
685
+ error_model = JSON.load(response_content)
686
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
687
+ end
688
+
689
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
690
+
691
+ result
692
+ end
693
+
694
+ promise.execute
695
+ end
696
+
697
+ #
698
+ # Checks the consistency of the ASR fabric.
699
+ #
700
+ # The operation to perform a consistency check on the fabric.
701
+ #
702
+ # @param fabric_name [String] Fabric name.
703
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
704
+ # will be added to the HTTP request.
705
+ #
706
+ # @return [Fabric] operation results.
707
+ #
708
+ def begin_check_consistency(fabric_name, custom_headers:nil)
709
+ response = begin_check_consistency_async(fabric_name, custom_headers:custom_headers).value!
710
+ response.body unless response.nil?
711
+ end
712
+
713
+ #
714
+ # Checks the consistency of the ASR fabric.
715
+ #
716
+ # The operation to perform a consistency check on the fabric.
717
+ #
718
+ # @param fabric_name [String] Fabric name.
719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
720
+ # will be added to the HTTP request.
721
+ #
722
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
723
+ #
724
+ def begin_check_consistency_with_http_info(fabric_name, custom_headers:nil)
725
+ begin_check_consistency_async(fabric_name, custom_headers:custom_headers).value!
726
+ end
727
+
728
+ #
729
+ # Checks the consistency of the ASR fabric.
730
+ #
731
+ # The operation to perform a consistency check on the fabric.
732
+ #
733
+ # @param fabric_name [String] Fabric name.
734
+ # @param [Hash{String => String}] A hash of custom headers that will be added
735
+ # to the HTTP request.
736
+ #
737
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
738
+ #
739
+ def begin_check_consistency_async(fabric_name, custom_headers:nil)
740
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
741
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
742
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
743
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
744
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
745
+
746
+
747
+ request_headers = {}
748
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
749
+
750
+ # Set Headers
751
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
752
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
753
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency'
754
+
755
+ request_url = @base_url || @client.base_url
756
+
757
+ options = {
758
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
759
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
760
+ query_params: {'api-version' => @client.api_version},
761
+ headers: request_headers.merge(custom_headers || {}),
762
+ base_url: request_url
763
+ }
764
+ promise = @client.make_request_async(:post, path_template, options)
765
+
766
+ promise = promise.then do |result|
767
+ http_response = result.response
768
+ status_code = http_response.status
769
+ response_content = http_response.body
770
+ unless status_code == 200 || status_code == 202
771
+ error_model = JSON.load(response_content)
772
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
773
+ end
774
+
775
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
776
+ # Deserialize Response
777
+ if status_code == 200
778
+ begin
779
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
780
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
781
+ result.body = @client.deserialize(result_mapper, parsed_response)
782
+ rescue Exception => e
783
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
784
+ end
785
+ end
786
+
787
+ result
788
+ end
789
+
790
+ promise.execute
791
+ end
792
+
793
+ #
794
+ # Migrates the site to AAD.
795
+ #
796
+ # The operation to migrate an Azure Site Recovery fabric to AAD.
797
+ #
798
+ # @param fabric_name [String] ASR fabric to migrate.
799
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
800
+ # will be added to the HTTP request.
801
+ #
802
+ #
803
+ def begin_migrate_to_aad(fabric_name, custom_headers:nil)
804
+ response = begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value!
805
+ nil
806
+ end
807
+
808
+ #
809
+ # Migrates the site to AAD.
810
+ #
811
+ # The operation to migrate an Azure Site Recovery fabric to AAD.
812
+ #
813
+ # @param fabric_name [String] ASR fabric to migrate.
814
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
815
+ # will be added to the HTTP request.
816
+ #
817
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
818
+ #
819
+ def begin_migrate_to_aad_with_http_info(fabric_name, custom_headers:nil)
820
+ begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value!
821
+ end
822
+
823
+ #
824
+ # Migrates the site to AAD.
825
+ #
826
+ # The operation to migrate an Azure Site Recovery fabric to AAD.
827
+ #
828
+ # @param fabric_name [String] ASR fabric to migrate.
829
+ # @param [Hash{String => String}] A hash of custom headers that will be added
830
+ # to the HTTP request.
831
+ #
832
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
833
+ #
834
+ def begin_migrate_to_aad_async(fabric_name, custom_headers:nil)
835
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
836
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
837
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
838
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
839
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
840
+
841
+
842
+ request_headers = {}
843
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
844
+
845
+ # Set Headers
846
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
847
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
848
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad'
849
+
850
+ request_url = @base_url || @client.base_url
851
+
852
+ options = {
853
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
854
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
855
+ query_params: {'api-version' => @client.api_version},
856
+ headers: request_headers.merge(custom_headers || {}),
857
+ base_url: request_url
858
+ }
859
+ promise = @client.make_request_async(:post, path_template, options)
860
+
861
+ promise = promise.then do |result|
862
+ http_response = result.response
863
+ status_code = http_response.status
864
+ response_content = http_response.body
865
+ unless status_code == 202 || status_code == 204
866
+ error_model = JSON.load(response_content)
867
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
868
+ end
869
+
870
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
871
+
872
+ result
873
+ end
874
+
875
+ promise.execute
876
+ end
877
+
878
+ #
879
+ # Perform failover of the process server.
880
+ #
881
+ # The operation to move replications from a process server to another process
882
+ # server.
883
+ #
884
+ # @param fabric_name [String] The name of the fabric containing the process
885
+ # server.
886
+ # @param failover_process_server_request [FailoverProcessServerRequest] The
887
+ # input to the failover process server operation.
888
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
889
+ # will be added to the HTTP request.
890
+ #
891
+ # @return [Fabric] operation results.
892
+ #
893
+ def begin_reassociate_gateway(fabric_name, failover_process_server_request, custom_headers:nil)
894
+ response = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value!
895
+ response.body unless response.nil?
896
+ end
897
+
898
+ #
899
+ # Perform failover of the process server.
900
+ #
901
+ # The operation to move replications from a process server to another process
902
+ # server.
903
+ #
904
+ # @param fabric_name [String] The name of the fabric containing the process
905
+ # server.
906
+ # @param failover_process_server_request [FailoverProcessServerRequest] The
907
+ # input to the failover process server operation.
908
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
909
+ # will be added to the HTTP request.
910
+ #
911
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
912
+ #
913
+ def begin_reassociate_gateway_with_http_info(fabric_name, failover_process_server_request, custom_headers:nil)
914
+ begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value!
915
+ end
916
+
917
+ #
918
+ # Perform failover of the process server.
919
+ #
920
+ # The operation to move replications from a process server to another process
921
+ # server.
922
+ #
923
+ # @param fabric_name [String] The name of the fabric containing the process
924
+ # server.
925
+ # @param failover_process_server_request [FailoverProcessServerRequest] The
926
+ # input to the failover process server operation.
927
+ # @param [Hash{String => String}] A hash of custom headers that will be added
928
+ # to the HTTP request.
929
+ #
930
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
931
+ #
932
+ def begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:nil)
933
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
934
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
935
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
936
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
937
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
938
+ fail ArgumentError, 'failover_process_server_request is nil' if failover_process_server_request.nil?
939
+
940
+
941
+ request_headers = {}
942
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
943
+
944
+ # Set Headers
945
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
946
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
947
+
948
+ # Serialize Request
949
+ request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FailoverProcessServerRequest.mapper()
950
+ request_content = @client.serialize(request_mapper, failover_process_server_request)
951
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
952
+
953
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway'
954
+
955
+ request_url = @base_url || @client.base_url
956
+
957
+ options = {
958
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
959
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
960
+ query_params: {'api-version' => @client.api_version},
961
+ body: request_content,
962
+ headers: request_headers.merge(custom_headers || {}),
963
+ base_url: request_url
964
+ }
965
+ promise = @client.make_request_async(:post, path_template, options)
966
+
967
+ promise = promise.then do |result|
968
+ http_response = result.response
969
+ status_code = http_response.status
970
+ response_content = http_response.body
971
+ unless status_code == 200 || status_code == 202
972
+ error_model = JSON.load(response_content)
973
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
974
+ end
975
+
976
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
977
+ # Deserialize Response
978
+ if status_code == 200
979
+ begin
980
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
981
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
982
+ result.body = @client.deserialize(result_mapper, parsed_response)
983
+ rescue Exception => e
984
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
985
+ end
986
+ end
987
+
988
+ result
989
+ end
990
+
991
+ promise.execute
992
+ end
993
+
994
+ #
995
+ # Deletes the site.
996
+ #
997
+ # The operation to delete or remove an Azure Site Recovery fabric.
998
+ #
999
+ # @param fabric_name [String] ASR fabric to delete
1000
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1001
+ # will be added to the HTTP request.
1002
+ #
1003
+ #
1004
+ def begin_delete(fabric_name, custom_headers:nil)
1005
+ response = begin_delete_async(fabric_name, custom_headers:custom_headers).value!
1006
+ nil
1007
+ end
1008
+
1009
+ #
1010
+ # Deletes the site.
1011
+ #
1012
+ # The operation to delete or remove an Azure Site Recovery fabric.
1013
+ #
1014
+ # @param fabric_name [String] ASR fabric to delete
1015
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1016
+ # will be added to the HTTP request.
1017
+ #
1018
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1019
+ #
1020
+ def begin_delete_with_http_info(fabric_name, custom_headers:nil)
1021
+ begin_delete_async(fabric_name, custom_headers:custom_headers).value!
1022
+ end
1023
+
1024
+ #
1025
+ # Deletes the site.
1026
+ #
1027
+ # The operation to delete or remove an Azure Site Recovery fabric.
1028
+ #
1029
+ # @param fabric_name [String] ASR fabric to delete
1030
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1031
+ # to the HTTP request.
1032
+ #
1033
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1034
+ #
1035
+ def begin_delete_async(fabric_name, custom_headers:nil)
1036
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1037
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1038
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
1039
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1040
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
1041
+
1042
+
1043
+ request_headers = {}
1044
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1045
+
1046
+ # Set Headers
1047
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1048
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1049
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove'
1050
+
1051
+ request_url = @base_url || @client.base_url
1052
+
1053
+ options = {
1054
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1055
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
1056
+ query_params: {'api-version' => @client.api_version},
1057
+ headers: request_headers.merge(custom_headers || {}),
1058
+ base_url: request_url
1059
+ }
1060
+ promise = @client.make_request_async(:post, path_template, options)
1061
+
1062
+ promise = promise.then do |result|
1063
+ http_response = result.response
1064
+ status_code = http_response.status
1065
+ response_content = http_response.body
1066
+ unless status_code == 202 || status_code == 204
1067
+ error_model = JSON.load(response_content)
1068
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1069
+ end
1070
+
1071
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1072
+
1073
+ result
1074
+ end
1075
+
1076
+ promise.execute
1077
+ end
1078
+
1079
+ #
1080
+ # Renews certificate for the fabric.
1081
+ #
1082
+ # Renews the connection certificate for the ASR replication fabric.
1083
+ #
1084
+ # @param fabric_name [String] fabric name to renew certs for.
1085
+ # @param renew_certificate [RenewCertificateInput] Renew certificate input.
1086
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1087
+ # will be added to the HTTP request.
1088
+ #
1089
+ # @return [Fabric] operation results.
1090
+ #
1091
+ def begin_renew_certificate(fabric_name, renew_certificate, custom_headers:nil)
1092
+ response = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value!
1093
+ response.body unless response.nil?
1094
+ end
1095
+
1096
+ #
1097
+ # Renews certificate for the fabric.
1098
+ #
1099
+ # Renews the connection certificate for the ASR replication fabric.
1100
+ #
1101
+ # @param fabric_name [String] fabric name to renew certs for.
1102
+ # @param renew_certificate [RenewCertificateInput] Renew certificate input.
1103
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1104
+ # will be added to the HTTP request.
1105
+ #
1106
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1107
+ #
1108
+ def begin_renew_certificate_with_http_info(fabric_name, renew_certificate, custom_headers:nil)
1109
+ begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value!
1110
+ end
1111
+
1112
+ #
1113
+ # Renews certificate for the fabric.
1114
+ #
1115
+ # Renews the connection certificate for the ASR replication fabric.
1116
+ #
1117
+ # @param fabric_name [String] fabric name to renew certs for.
1118
+ # @param renew_certificate [RenewCertificateInput] Renew certificate input.
1119
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1120
+ # to the HTTP request.
1121
+ #
1122
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1123
+ #
1124
+ def begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:nil)
1125
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1126
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1127
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
1128
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1129
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
1130
+ fail ArgumentError, 'renew_certificate is nil' if renew_certificate.nil?
1131
+
1132
+
1133
+ request_headers = {}
1134
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1135
+
1136
+ # Set Headers
1137
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1138
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1139
+
1140
+ # Serialize Request
1141
+ request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RenewCertificateInput.mapper()
1142
+ request_content = @client.serialize(request_mapper, renew_certificate)
1143
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1144
+
1145
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate'
1146
+
1147
+ request_url = @base_url || @client.base_url
1148
+
1149
+ options = {
1150
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1151
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
1152
+ query_params: {'api-version' => @client.api_version},
1153
+ body: request_content,
1154
+ headers: request_headers.merge(custom_headers || {}),
1155
+ base_url: request_url
1156
+ }
1157
+ promise = @client.make_request_async(:post, path_template, options)
1158
+
1159
+ promise = promise.then do |result|
1160
+ http_response = result.response
1161
+ status_code = http_response.status
1162
+ response_content = http_response.body
1163
+ unless status_code == 200 || status_code == 202
1164
+ error_model = JSON.load(response_content)
1165
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1166
+ end
1167
+
1168
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1169
+ # Deserialize Response
1170
+ if status_code == 200
1171
+ begin
1172
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1173
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric.mapper()
1174
+ result.body = @client.deserialize(result_mapper, parsed_response)
1175
+ rescue Exception => e
1176
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1177
+ end
1178
+ end
1179
+
1180
+ result
1181
+ end
1182
+
1183
+ promise.execute
1184
+ end
1185
+
1186
+ #
1187
+ # Gets the list of ASR fabrics
1188
+ #
1189
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
1190
+ #
1191
+ # @param next_page_link [String] The NextLink from the previous successful call
1192
+ # to List operation.
1193
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1194
+ # will be added to the HTTP request.
1195
+ #
1196
+ # @return [FabricCollection] operation results.
1197
+ #
1198
+ def list_next(next_page_link, custom_headers:nil)
1199
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1200
+ response.body unless response.nil?
1201
+ end
1202
+
1203
+ #
1204
+ # Gets the list of ASR fabrics
1205
+ #
1206
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
1207
+ #
1208
+ # @param next_page_link [String] The NextLink from the previous successful call
1209
+ # to List operation.
1210
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1211
+ # will be added to the HTTP request.
1212
+ #
1213
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1214
+ #
1215
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1216
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1217
+ end
1218
+
1219
+ #
1220
+ # Gets the list of ASR fabrics
1221
+ #
1222
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
1223
+ #
1224
+ # @param next_page_link [String] The NextLink from the previous successful call
1225
+ # to List operation.
1226
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1227
+ # to the HTTP request.
1228
+ #
1229
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1230
+ #
1231
+ def list_next_async(next_page_link, custom_headers:nil)
1232
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1233
+
1234
+
1235
+ request_headers = {}
1236
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1237
+
1238
+ # Set Headers
1239
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1240
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1241
+ path_template = '{nextLink}'
1242
+
1243
+ request_url = @base_url || @client.base_url
1244
+
1245
+ options = {
1246
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1247
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1248
+ headers: request_headers.merge(custom_headers || {}),
1249
+ base_url: request_url
1250
+ }
1251
+ promise = @client.make_request_async(:get, path_template, options)
1252
+
1253
+ promise = promise.then do |result|
1254
+ http_response = result.response
1255
+ status_code = http_response.status
1256
+ response_content = http_response.body
1257
+ unless status_code == 200
1258
+ error_model = JSON.load(response_content)
1259
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1260
+ end
1261
+
1262
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1263
+ # Deserialize Response
1264
+ if status_code == 200
1265
+ begin
1266
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1267
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricCollection.mapper()
1268
+ result.body = @client.deserialize(result_mapper, parsed_response)
1269
+ rescue Exception => e
1270
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1271
+ end
1272
+ end
1273
+
1274
+ result
1275
+ end
1276
+
1277
+ promise.execute
1278
+ end
1279
+
1280
+ #
1281
+ # Gets the list of ASR fabrics
1282
+ #
1283
+ # Gets a list of the Azure Site Recovery fabrics in the vault.
1284
+ #
1285
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1286
+ # will be added to the HTTP request.
1287
+ #
1288
+ # @return [FabricCollection] which provide lazy access to pages of the
1289
+ # response.
1290
+ #
1291
+ def list_as_lazy(custom_headers:nil)
1292
+ response = list_async(custom_headers:custom_headers).value!
1293
+ unless response.nil?
1294
+ page = response.body
1295
+ page.next_method = Proc.new do |next_page_link|
1296
+ list_next_async(next_page_link, custom_headers:custom_headers)
1297
+ end
1298
+ page
1299
+ end
1300
+ end
1301
+
1302
+ end
1303
+ end