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