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,1178 @@
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
+ # ReplicationProtectionContainers
9
+ #
10
+ class ReplicationProtectionContainers
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ReplicationProtectionContainers 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 protection container for a fabric.
26
+ #
27
+ # Lists the protection containers in the specified fabric.
28
+ #
29
+ # @param fabric_name [String] Fabric name.
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<ProtectionContainer>] operation results.
34
+ #
35
+ def list_by_replication_fabrics(fabric_name, custom_headers:nil)
36
+ first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
37
+ first_page.get_all_items
38
+ end
39
+
40
+ #
41
+ # Gets the list of protection container for a fabric.
42
+ #
43
+ # Lists the protection containers in the specified fabric.
44
+ #
45
+ # @param fabric_name [String] Fabric name.
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_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
52
+ list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Gets the list of protection container for a fabric.
57
+ #
58
+ # Lists the protection containers in the specified fabric.
59
+ #
60
+ # @param fabric_name [String] Fabric name.
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_by_replication_fabrics_async(fabric_name, 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
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
72
+
73
+
74
+ request_headers = {}
75
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
+
77
+ # Set Headers
78
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
79
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
80
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers'
81
+
82
+ request_url = @base_url || @client.base_url
83
+
84
+ options = {
85
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
86
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
87
+ query_params: {'api-version' => @client.api_version},
88
+ headers: request_headers.merge(custom_headers || {}),
89
+ base_url: request_url
90
+ }
91
+ promise = @client.make_request_async(:get, path_template, options)
92
+
93
+ promise = promise.then do |result|
94
+ http_response = result.response
95
+ status_code = http_response.status
96
+ response_content = http_response.body
97
+ unless status_code == 200
98
+ error_model = JSON.load(response_content)
99
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
100
+ end
101
+
102
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
103
+ # Deserialize Response
104
+ if status_code == 200
105
+ begin
106
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
107
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection.mapper()
108
+ result.body = @client.deserialize(result_mapper, parsed_response)
109
+ rescue Exception => e
110
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
111
+ end
112
+ end
113
+
114
+ result
115
+ end
116
+
117
+ promise.execute
118
+ end
119
+
120
+ #
121
+ # Gets the protection container details.
122
+ #
123
+ # Gets the details of a protection container.
124
+ #
125
+ # @param fabric_name [String] Fabric name.
126
+ # @param protection_container_name [String] Protection container name.
127
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
128
+ # will be added to the HTTP request.
129
+ #
130
+ # @return [ProtectionContainer] operation results.
131
+ #
132
+ def get(fabric_name, protection_container_name, custom_headers:nil)
133
+ response = get_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
134
+ response.body unless response.nil?
135
+ end
136
+
137
+ #
138
+ # Gets the protection container details.
139
+ #
140
+ # Gets the details of a protection container.
141
+ #
142
+ # @param fabric_name [String] Fabric name.
143
+ # @param protection_container_name [String] Protection container name.
144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
+ # will be added to the HTTP request.
146
+ #
147
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
+ #
149
+ def get_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
150
+ get_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
151
+ end
152
+
153
+ #
154
+ # Gets the protection container details.
155
+ #
156
+ # Gets the details of a protection container.
157
+ #
158
+ # @param fabric_name [String] Fabric name.
159
+ # @param protection_container_name [String] Protection container name.
160
+ # @param [Hash{String => String}] A hash of custom headers that will be added
161
+ # to the HTTP request.
162
+ #
163
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
164
+ #
165
+ def get_async(fabric_name, protection_container_name, custom_headers:nil)
166
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
167
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
168
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
169
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
170
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
171
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
172
+
173
+
174
+ request_headers = {}
175
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
176
+
177
+ # Set Headers
178
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
179
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
180
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}'
181
+
182
+ request_url = @base_url || @client.base_url
183
+
184
+ options = {
185
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
186
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'protectionContainerName' => protection_container_name},
187
+ query_params: {'api-version' => @client.api_version},
188
+ headers: request_headers.merge(custom_headers || {}),
189
+ base_url: request_url
190
+ }
191
+ promise = @client.make_request_async(:get, path_template, options)
192
+
193
+ promise = promise.then do |result|
194
+ http_response = result.response
195
+ status_code = http_response.status
196
+ response_content = http_response.body
197
+ unless status_code == 200
198
+ error_model = JSON.load(response_content)
199
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
200
+ end
201
+
202
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
203
+ # Deserialize Response
204
+ if status_code == 200
205
+ begin
206
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
207
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
208
+ result.body = @client.deserialize(result_mapper, parsed_response)
209
+ rescue Exception => e
210
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
211
+ end
212
+ end
213
+
214
+ result
215
+ end
216
+
217
+ promise.execute
218
+ end
219
+
220
+ #
221
+ # Create a protection container.
222
+ #
223
+ # Operation to create a protection container.
224
+ #
225
+ # @param fabric_name [String] Unique fabric ARM name.
226
+ # @param protection_container_name [String] Unique protection container ARM
227
+ # name.
228
+ # @param creation_input [CreateProtectionContainerInput] Creation input.
229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
230
+ # will be added to the HTTP request.
231
+ #
232
+ # @return [ProtectionContainer] operation results.
233
+ #
234
+ def create(fabric_name, protection_container_name, creation_input, custom_headers:nil)
235
+ response = create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value!
236
+ response.body unless response.nil?
237
+ end
238
+
239
+ #
240
+ # @param fabric_name [String] Unique fabric ARM name.
241
+ # @param protection_container_name [String] Unique protection container ARM
242
+ # name.
243
+ # @param creation_input [CreateProtectionContainerInput] Creation input.
244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
245
+ # will be added to the HTTP request.
246
+ #
247
+ # @return [Concurrent::Promise] promise which provides async access to http
248
+ # response.
249
+ #
250
+ def create_async(fabric_name, protection_container_name, creation_input, custom_headers:nil)
251
+ # Send request
252
+ promise = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers)
253
+
254
+ promise = promise.then do |response|
255
+ # Defining deserialization method.
256
+ deserialize_method = lambda do |parsed_response|
257
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
258
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
259
+ end
260
+
261
+ # Waiting for response.
262
+ @client.get_long_running_operation_result(response, deserialize_method)
263
+ end
264
+
265
+ promise
266
+ end
267
+
268
+ #
269
+ # Adds a protectable item to the replication protection container.
270
+ #
271
+ # The operation to a add a protectable item to a protection container(Add
272
+ # physical server.)
273
+ #
274
+ # @param fabric_name [String] The name of the fabric.
275
+ # @param protection_container_name [String] The name of the protection
276
+ # container.
277
+ # @param discover_protectable_item_request [DiscoverProtectableItemRequest] The
278
+ # request object to add a protectable item.
279
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
280
+ # will be added to the HTTP request.
281
+ #
282
+ # @return [ProtectionContainer] operation results.
283
+ #
284
+ def discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
285
+ response = discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value!
286
+ response.body unless response.nil?
287
+ end
288
+
289
+ #
290
+ # @param fabric_name [String] The name of the fabric.
291
+ # @param protection_container_name [String] The name of the protection
292
+ # container.
293
+ # @param discover_protectable_item_request [DiscoverProtectableItemRequest] The
294
+ # request object to add a protectable item.
295
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
296
+ # will be added to the HTTP request.
297
+ #
298
+ # @return [Concurrent::Promise] promise which provides async access to http
299
+ # response.
300
+ #
301
+ def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
302
+ # Send request
303
+ promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers)
304
+
305
+ promise = promise.then do |response|
306
+ # Defining deserialization method.
307
+ deserialize_method = lambda do |parsed_response|
308
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
309
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
310
+ end
311
+
312
+ # Waiting for response.
313
+ @client.get_long_running_operation_result(response, deserialize_method)
314
+ end
315
+
316
+ promise
317
+ end
318
+
319
+ #
320
+ # Removes a protection container.
321
+ #
322
+ # Operation to remove a protection container.
323
+ #
324
+ # @param fabric_name [String] Unique fabric ARM name.
325
+ # @param protection_container_name [String] Unique protection container ARM
326
+ # name.
327
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
328
+ # will be added to the HTTP request.
329
+ #
330
+ def delete(fabric_name, protection_container_name, custom_headers:nil)
331
+ response = delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
332
+ nil
333
+ end
334
+
335
+ #
336
+ # @param fabric_name [String] Unique fabric ARM name.
337
+ # @param protection_container_name [String] Unique protection container ARM
338
+ # name.
339
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
340
+ # will be added to the HTTP request.
341
+ #
342
+ # @return [Concurrent::Promise] promise which provides async access to http
343
+ # response.
344
+ #
345
+ def delete_async(fabric_name, protection_container_name, custom_headers:nil)
346
+ # Send request
347
+ promise = begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers)
348
+
349
+ promise = promise.then do |response|
350
+ # Defining deserialization method.
351
+ deserialize_method = lambda do |parsed_response|
352
+ end
353
+
354
+ # Waiting for response.
355
+ @client.get_long_running_operation_result(response, deserialize_method)
356
+ end
357
+
358
+ promise
359
+ end
360
+
361
+ #
362
+ # Switches protection from one container to another or one replication provider
363
+ # to another.
364
+ #
365
+ # Operation to switch protection from one container to another or one
366
+ # replication provider to another.
367
+ #
368
+ # @param fabric_name [String] Unique fabric name.
369
+ # @param protection_container_name [String] Protection container name.
370
+ # @param switch_input [SwitchProtectionInput] Switch protection input.
371
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
372
+ # will be added to the HTTP request.
373
+ #
374
+ # @return [ProtectionContainer] operation results.
375
+ #
376
+ def switch_protection(fabric_name, protection_container_name, switch_input, custom_headers:nil)
377
+ response = switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value!
378
+ response.body unless response.nil?
379
+ end
380
+
381
+ #
382
+ # @param fabric_name [String] Unique fabric name.
383
+ # @param protection_container_name [String] Protection container name.
384
+ # @param switch_input [SwitchProtectionInput] Switch protection input.
385
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
386
+ # will be added to the HTTP request.
387
+ #
388
+ # @return [Concurrent::Promise] promise which provides async access to http
389
+ # response.
390
+ #
391
+ def switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:nil)
392
+ # Send request
393
+ promise = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers)
394
+
395
+ promise = promise.then do |response|
396
+ # Defining deserialization method.
397
+ deserialize_method = lambda do |parsed_response|
398
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
399
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
400
+ end
401
+
402
+ # Waiting for response.
403
+ @client.get_long_running_operation_result(response, deserialize_method)
404
+ end
405
+
406
+ promise
407
+ end
408
+
409
+ #
410
+ # Gets the list of all protection containers in a vault.
411
+ #
412
+ # Lists the protection containers in a vault.
413
+ #
414
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
+ # will be added to the HTTP request.
416
+ #
417
+ # @return [Array<ProtectionContainer>] operation results.
418
+ #
419
+ def list(custom_headers:nil)
420
+ first_page = list_as_lazy(custom_headers:custom_headers)
421
+ first_page.get_all_items
422
+ end
423
+
424
+ #
425
+ # Gets the list of all protection containers in a vault.
426
+ #
427
+ # Lists the protection containers in a vault.
428
+ #
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
433
+ #
434
+ def list_with_http_info(custom_headers:nil)
435
+ list_async(custom_headers:custom_headers).value!
436
+ end
437
+
438
+ #
439
+ # Gets the list of all protection containers in a vault.
440
+ #
441
+ # Lists the protection containers in a vault.
442
+ #
443
+ # @param [Hash{String => String}] A hash of custom headers that will be added
444
+ # to the HTTP request.
445
+ #
446
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
447
+ #
448
+ def list_async(custom_headers:nil)
449
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
450
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
451
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
452
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
453
+
454
+
455
+ request_headers = {}
456
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
457
+
458
+ # Set Headers
459
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
460
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
461
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers'
462
+
463
+ request_url = @base_url || @client.base_url
464
+
465
+ options = {
466
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
467
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id},
468
+ query_params: {'api-version' => @client.api_version},
469
+ headers: request_headers.merge(custom_headers || {}),
470
+ base_url: request_url
471
+ }
472
+ promise = @client.make_request_async(:get, path_template, options)
473
+
474
+ promise = promise.then do |result|
475
+ http_response = result.response
476
+ status_code = http_response.status
477
+ response_content = http_response.body
478
+ unless status_code == 200
479
+ error_model = JSON.load(response_content)
480
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
481
+ end
482
+
483
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
484
+ # Deserialize Response
485
+ if status_code == 200
486
+ begin
487
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
488
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection.mapper()
489
+ result.body = @client.deserialize(result_mapper, parsed_response)
490
+ rescue Exception => e
491
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
492
+ end
493
+ end
494
+
495
+ result
496
+ end
497
+
498
+ promise.execute
499
+ end
500
+
501
+ #
502
+ # Create a protection container.
503
+ #
504
+ # Operation to create a protection container.
505
+ #
506
+ # @param fabric_name [String] Unique fabric ARM name.
507
+ # @param protection_container_name [String] Unique protection container ARM
508
+ # name.
509
+ # @param creation_input [CreateProtectionContainerInput] Creation input.
510
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
+ # will be added to the HTTP request.
512
+ #
513
+ # @return [ProtectionContainer] operation results.
514
+ #
515
+ def begin_create(fabric_name, protection_container_name, creation_input, custom_headers:nil)
516
+ response = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value!
517
+ response.body unless response.nil?
518
+ end
519
+
520
+ #
521
+ # Create a protection container.
522
+ #
523
+ # Operation to create a protection container.
524
+ #
525
+ # @param fabric_name [String] Unique fabric ARM name.
526
+ # @param protection_container_name [String] Unique protection container ARM
527
+ # name.
528
+ # @param creation_input [CreateProtectionContainerInput] 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, protection_container_name, creation_input, custom_headers:nil)
535
+ begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value!
536
+ end
537
+
538
+ #
539
+ # Create a protection container.
540
+ #
541
+ # Operation to create a protection container.
542
+ #
543
+ # @param fabric_name [String] Unique fabric ARM name.
544
+ # @param protection_container_name [String] Unique protection container ARM
545
+ # name.
546
+ # @param creation_input [CreateProtectionContainerInput] Creation input.
547
+ # @param [Hash{String => String}] A hash of custom headers that will be added
548
+ # to the HTTP request.
549
+ #
550
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
551
+ #
552
+ def begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:nil)
553
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
554
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
555
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
556
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
557
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
558
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
559
+ fail ArgumentError, 'creation_input is nil' if creation_input.nil?
560
+
561
+
562
+ request_headers = {}
563
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
564
+
565
+ # Set Headers
566
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
567
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
568
+
569
+ # Serialize Request
570
+ request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateProtectionContainerInput.mapper()
571
+ request_content = @client.serialize(request_mapper, creation_input)
572
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
573
+
574
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}'
575
+
576
+ request_url = @base_url || @client.base_url
577
+
578
+ options = {
579
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
580
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'protectionContainerName' => protection_container_name},
581
+ query_params: {'api-version' => @client.api_version},
582
+ body: request_content,
583
+ headers: request_headers.merge(custom_headers || {}),
584
+ base_url: request_url
585
+ }
586
+ promise = @client.make_request_async(:put, path_template, options)
587
+
588
+ promise = promise.then do |result|
589
+ http_response = result.response
590
+ status_code = http_response.status
591
+ response_content = http_response.body
592
+ unless status_code == 200 || status_code == 202
593
+ error_model = JSON.load(response_content)
594
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
595
+ end
596
+
597
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
598
+ # Deserialize Response
599
+ if status_code == 200
600
+ begin
601
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
602
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
603
+ result.body = @client.deserialize(result_mapper, parsed_response)
604
+ rescue Exception => e
605
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
606
+ end
607
+ end
608
+
609
+ result
610
+ end
611
+
612
+ promise.execute
613
+ end
614
+
615
+ #
616
+ # Adds a protectable item to the replication protection container.
617
+ #
618
+ # The operation to a add a protectable item to a protection container(Add
619
+ # physical server.)
620
+ #
621
+ # @param fabric_name [String] The name of the fabric.
622
+ # @param protection_container_name [String] The name of the protection
623
+ # container.
624
+ # @param discover_protectable_item_request [DiscoverProtectableItemRequest] The
625
+ # request object to add a protectable item.
626
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
627
+ # will be added to the HTTP request.
628
+ #
629
+ # @return [ProtectionContainer] operation results.
630
+ #
631
+ def begin_discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
632
+ response = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value!
633
+ response.body unless response.nil?
634
+ end
635
+
636
+ #
637
+ # Adds a protectable item to the replication protection container.
638
+ #
639
+ # The operation to a add a protectable item to a protection container(Add
640
+ # physical server.)
641
+ #
642
+ # @param fabric_name [String] The name of the fabric.
643
+ # @param protection_container_name [String] The name of the protection
644
+ # container.
645
+ # @param discover_protectable_item_request [DiscoverProtectableItemRequest] The
646
+ # request object to add a protectable item.
647
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
648
+ # will be added to the HTTP request.
649
+ #
650
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
651
+ #
652
+ def begin_discover_protectable_item_with_http_info(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
653
+ begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value!
654
+ end
655
+
656
+ #
657
+ # Adds a protectable item to the replication protection container.
658
+ #
659
+ # The operation to a add a protectable item to a protection container(Add
660
+ # physical server.)
661
+ #
662
+ # @param fabric_name [String] The name of the fabric.
663
+ # @param protection_container_name [String] The name of the protection
664
+ # container.
665
+ # @param discover_protectable_item_request [DiscoverProtectableItemRequest] The
666
+ # request object to add a protectable item.
667
+ # @param [Hash{String => String}] A hash of custom headers that will be added
668
+ # to the HTTP request.
669
+ #
670
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
671
+ #
672
+ def begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
673
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
674
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
675
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
676
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
677
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
678
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
679
+ fail ArgumentError, 'discover_protectable_item_request is nil' if discover_protectable_item_request.nil?
680
+
681
+
682
+ request_headers = {}
683
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
684
+
685
+ # Set Headers
686
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
687
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
688
+
689
+ # Serialize Request
690
+ request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DiscoverProtectableItemRequest.mapper()
691
+ request_content = @client.serialize(request_mapper, discover_protectable_item_request)
692
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
693
+
694
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem'
695
+
696
+ request_url = @base_url || @client.base_url
697
+
698
+ options = {
699
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
700
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'protectionContainerName' => protection_container_name},
701
+ query_params: {'api-version' => @client.api_version},
702
+ body: request_content,
703
+ headers: request_headers.merge(custom_headers || {}),
704
+ base_url: request_url
705
+ }
706
+ promise = @client.make_request_async(:post, path_template, options)
707
+
708
+ promise = promise.then do |result|
709
+ http_response = result.response
710
+ status_code = http_response.status
711
+ response_content = http_response.body
712
+ unless status_code == 200 || status_code == 202
713
+ error_model = JSON.load(response_content)
714
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
715
+ end
716
+
717
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
718
+ # Deserialize Response
719
+ if status_code == 200
720
+ begin
721
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
722
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
723
+ result.body = @client.deserialize(result_mapper, parsed_response)
724
+ rescue Exception => e
725
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
726
+ end
727
+ end
728
+
729
+ result
730
+ end
731
+
732
+ promise.execute
733
+ end
734
+
735
+ #
736
+ # Removes a protection container.
737
+ #
738
+ # Operation to remove a protection container.
739
+ #
740
+ # @param fabric_name [String] Unique fabric ARM name.
741
+ # @param protection_container_name [String] Unique protection container ARM
742
+ # name.
743
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
744
+ # will be added to the HTTP request.
745
+ #
746
+ #
747
+ def begin_delete(fabric_name, protection_container_name, custom_headers:nil)
748
+ response = begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
749
+ nil
750
+ end
751
+
752
+ #
753
+ # Removes a protection container.
754
+ #
755
+ # Operation to remove a protection container.
756
+ #
757
+ # @param fabric_name [String] Unique fabric ARM name.
758
+ # @param protection_container_name [String] Unique protection container ARM
759
+ # name.
760
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
761
+ # will be added to the HTTP request.
762
+ #
763
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
764
+ #
765
+ def begin_delete_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
766
+ begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
767
+ end
768
+
769
+ #
770
+ # Removes a protection container.
771
+ #
772
+ # Operation to remove a protection container.
773
+ #
774
+ # @param fabric_name [String] Unique fabric ARM name.
775
+ # @param protection_container_name [String] Unique protection container ARM
776
+ # name.
777
+ # @param [Hash{String => String}] A hash of custom headers that will be added
778
+ # to the HTTP request.
779
+ #
780
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
781
+ #
782
+ def begin_delete_async(fabric_name, protection_container_name, custom_headers:nil)
783
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
784
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
785
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
786
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
787
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
788
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
789
+
790
+
791
+ request_headers = {}
792
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
793
+
794
+ # Set Headers
795
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
796
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
797
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove'
798
+
799
+ request_url = @base_url || @client.base_url
800
+
801
+ options = {
802
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
803
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'protectionContainerName' => protection_container_name},
804
+ query_params: {'api-version' => @client.api_version},
805
+ headers: request_headers.merge(custom_headers || {}),
806
+ base_url: request_url
807
+ }
808
+ promise = @client.make_request_async(:post, path_template, options)
809
+
810
+ promise = promise.then do |result|
811
+ http_response = result.response
812
+ status_code = http_response.status
813
+ response_content = http_response.body
814
+ unless status_code == 202 || status_code == 204
815
+ error_model = JSON.load(response_content)
816
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
817
+ end
818
+
819
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
820
+
821
+ result
822
+ end
823
+
824
+ promise.execute
825
+ end
826
+
827
+ #
828
+ # Switches protection from one container to another or one replication provider
829
+ # to another.
830
+ #
831
+ # Operation to switch protection from one container to another or one
832
+ # replication provider to another.
833
+ #
834
+ # @param fabric_name [String] Unique fabric name.
835
+ # @param protection_container_name [String] Protection container name.
836
+ # @param switch_input [SwitchProtectionInput] Switch protection input.
837
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
838
+ # will be added to the HTTP request.
839
+ #
840
+ # @return [ProtectionContainer] operation results.
841
+ #
842
+ def begin_switch_protection(fabric_name, protection_container_name, switch_input, custom_headers:nil)
843
+ response = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value!
844
+ response.body unless response.nil?
845
+ end
846
+
847
+ #
848
+ # Switches protection from one container to another or one replication provider
849
+ # to another.
850
+ #
851
+ # Operation to switch protection from one container to another or one
852
+ # replication provider to another.
853
+ #
854
+ # @param fabric_name [String] Unique fabric name.
855
+ # @param protection_container_name [String] Protection container name.
856
+ # @param switch_input [SwitchProtectionInput] Switch protection input.
857
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
858
+ # will be added to the HTTP request.
859
+ #
860
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
861
+ #
862
+ def begin_switch_protection_with_http_info(fabric_name, protection_container_name, switch_input, custom_headers:nil)
863
+ begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value!
864
+ end
865
+
866
+ #
867
+ # Switches protection from one container to another or one replication provider
868
+ # to another.
869
+ #
870
+ # Operation to switch protection from one container to another or one
871
+ # replication provider to another.
872
+ #
873
+ # @param fabric_name [String] Unique fabric name.
874
+ # @param protection_container_name [String] Protection container name.
875
+ # @param switch_input [SwitchProtectionInput] Switch protection input.
876
+ # @param [Hash{String => String}] A hash of custom headers that will be added
877
+ # to the HTTP request.
878
+ #
879
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
880
+ #
881
+ def begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:nil)
882
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
883
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
884
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
885
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
886
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
887
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
888
+ fail ArgumentError, 'switch_input is nil' if switch_input.nil?
889
+
890
+
891
+ request_headers = {}
892
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
893
+
894
+ # Set Headers
895
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
896
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
897
+
898
+ # Serialize Request
899
+ request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SwitchProtectionInput.mapper()
900
+ request_content = @client.serialize(request_mapper, switch_input)
901
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
902
+
903
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection'
904
+
905
+ request_url = @base_url || @client.base_url
906
+
907
+ options = {
908
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
909
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'protectionContainerName' => protection_container_name},
910
+ query_params: {'api-version' => @client.api_version},
911
+ body: request_content,
912
+ headers: request_headers.merge(custom_headers || {}),
913
+ base_url: request_url
914
+ }
915
+ promise = @client.make_request_async(:post, path_template, options)
916
+
917
+ promise = promise.then do |result|
918
+ http_response = result.response
919
+ status_code = http_response.status
920
+ response_content = http_response.body
921
+ unless status_code == 200 || status_code == 202
922
+ error_model = JSON.load(response_content)
923
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
924
+ end
925
+
926
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
927
+ # Deserialize Response
928
+ if status_code == 200
929
+ begin
930
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
931
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer.mapper()
932
+ result.body = @client.deserialize(result_mapper, parsed_response)
933
+ rescue Exception => e
934
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
935
+ end
936
+ end
937
+
938
+ result
939
+ end
940
+
941
+ promise.execute
942
+ end
943
+
944
+ #
945
+ # Gets the list of protection container for a fabric.
946
+ #
947
+ # Lists the protection containers in the specified fabric.
948
+ #
949
+ # @param next_page_link [String] The NextLink from the previous successful call
950
+ # to List operation.
951
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
952
+ # will be added to the HTTP request.
953
+ #
954
+ # @return [ProtectionContainerCollection] operation results.
955
+ #
956
+ def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
957
+ response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
958
+ response.body unless response.nil?
959
+ end
960
+
961
+ #
962
+ # Gets the list of protection container for a fabric.
963
+ #
964
+ # Lists the protection containers in the specified fabric.
965
+ #
966
+ # @param next_page_link [String] The NextLink from the previous successful call
967
+ # to List operation.
968
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
969
+ # will be added to the HTTP request.
970
+ #
971
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
972
+ #
973
+ def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
974
+ list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
975
+ end
976
+
977
+ #
978
+ # Gets the list of protection container for a fabric.
979
+ #
980
+ # Lists the protection containers in the specified fabric.
981
+ #
982
+ # @param next_page_link [String] The NextLink from the previous successful call
983
+ # to List operation.
984
+ # @param [Hash{String => String}] A hash of custom headers that will be added
985
+ # to the HTTP request.
986
+ #
987
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
988
+ #
989
+ def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
990
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
991
+
992
+
993
+ request_headers = {}
994
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
995
+
996
+ # Set Headers
997
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
998
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
999
+ path_template = '{nextLink}'
1000
+
1001
+ request_url = @base_url || @client.base_url
1002
+
1003
+ options = {
1004
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1005
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1006
+ headers: request_headers.merge(custom_headers || {}),
1007
+ base_url: request_url
1008
+ }
1009
+ promise = @client.make_request_async(:get, path_template, options)
1010
+
1011
+ promise = promise.then do |result|
1012
+ http_response = result.response
1013
+ status_code = http_response.status
1014
+ response_content = http_response.body
1015
+ unless status_code == 200
1016
+ error_model = JSON.load(response_content)
1017
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1018
+ end
1019
+
1020
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1021
+ # Deserialize Response
1022
+ if status_code == 200
1023
+ begin
1024
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1025
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection.mapper()
1026
+ result.body = @client.deserialize(result_mapper, parsed_response)
1027
+ rescue Exception => e
1028
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1029
+ end
1030
+ end
1031
+
1032
+ result
1033
+ end
1034
+
1035
+ promise.execute
1036
+ end
1037
+
1038
+ #
1039
+ # Gets the list of all protection containers in a vault.
1040
+ #
1041
+ # Lists the protection containers in a vault.
1042
+ #
1043
+ # @param next_page_link [String] The NextLink from the previous successful call
1044
+ # to List operation.
1045
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1046
+ # will be added to the HTTP request.
1047
+ #
1048
+ # @return [ProtectionContainerCollection] operation results.
1049
+ #
1050
+ def list_next(next_page_link, custom_headers:nil)
1051
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1052
+ response.body unless response.nil?
1053
+ end
1054
+
1055
+ #
1056
+ # Gets the list of all protection containers in a vault.
1057
+ #
1058
+ # Lists the protection containers in a vault.
1059
+ #
1060
+ # @param next_page_link [String] The NextLink from the previous successful call
1061
+ # to List operation.
1062
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1063
+ # will be added to the HTTP request.
1064
+ #
1065
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1066
+ #
1067
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1068
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1069
+ end
1070
+
1071
+ #
1072
+ # Gets the list of all protection containers in a vault.
1073
+ #
1074
+ # Lists the protection containers in a vault.
1075
+ #
1076
+ # @param next_page_link [String] The NextLink from the previous successful call
1077
+ # to List operation.
1078
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1079
+ # to the HTTP request.
1080
+ #
1081
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1082
+ #
1083
+ def list_next_async(next_page_link, custom_headers:nil)
1084
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1085
+
1086
+
1087
+ request_headers = {}
1088
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1089
+
1090
+ # Set Headers
1091
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1092
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1093
+ path_template = '{nextLink}'
1094
+
1095
+ request_url = @base_url || @client.base_url
1096
+
1097
+ options = {
1098
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1099
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1100
+ headers: request_headers.merge(custom_headers || {}),
1101
+ base_url: request_url
1102
+ }
1103
+ promise = @client.make_request_async(:get, path_template, options)
1104
+
1105
+ promise = promise.then do |result|
1106
+ http_response = result.response
1107
+ status_code = http_response.status
1108
+ response_content = http_response.body
1109
+ unless status_code == 200
1110
+ error_model = JSON.load(response_content)
1111
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1112
+ end
1113
+
1114
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1115
+ # Deserialize Response
1116
+ if status_code == 200
1117
+ begin
1118
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1119
+ result_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection.mapper()
1120
+ result.body = @client.deserialize(result_mapper, parsed_response)
1121
+ rescue Exception => e
1122
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1123
+ end
1124
+ end
1125
+
1126
+ result
1127
+ end
1128
+
1129
+ promise.execute
1130
+ end
1131
+
1132
+ #
1133
+ # Gets the list of protection container for a fabric.
1134
+ #
1135
+ # Lists the protection containers in the specified fabric.
1136
+ #
1137
+ # @param fabric_name [String] Fabric name.
1138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1139
+ # will be added to the HTTP request.
1140
+ #
1141
+ # @return [ProtectionContainerCollection] which provide lazy access to pages of
1142
+ # the response.
1143
+ #
1144
+ def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
1145
+ response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
1146
+ unless response.nil?
1147
+ page = response.body
1148
+ page.next_method = Proc.new do |next_page_link|
1149
+ list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
1150
+ end
1151
+ page
1152
+ end
1153
+ end
1154
+
1155
+ #
1156
+ # Gets the list of all protection containers in a vault.
1157
+ #
1158
+ # Lists the protection containers in a vault.
1159
+ #
1160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1161
+ # will be added to the HTTP request.
1162
+ #
1163
+ # @return [ProtectionContainerCollection] which provide lazy access to pages of
1164
+ # the response.
1165
+ #
1166
+ def list_as_lazy(custom_headers:nil)
1167
+ response = list_async(custom_headers:custom_headers).value!
1168
+ unless response.nil?
1169
+ page = response.body
1170
+ page.next_method = Proc.new do |next_page_link|
1171
+ list_next_async(next_page_link, custom_headers:custom_headers)
1172
+ end
1173
+ page
1174
+ end
1175
+ end
1176
+
1177
+ end
1178
+ end