azure_mgmt_recovery_services_site_recovery 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (353) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_recovery_services_site_recovery.rb +7 -0
  4. data/lib/generated/azure_mgmt_recovery_services_site_recovery.rb +372 -0
  5. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aapply_recovery_point_input.rb +48 -0
  6. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2acontainer_creation_input.rb +48 -0
  7. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aenable_protection_input.rb +136 -0
  8. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aevent_details.rb +108 -0
  9. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2afailover_provider_input.rb +71 -0
  10. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2apolicy_creation_input.rb +92 -0
  11. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2apolicy_details.rb +100 -0
  12. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aprotected_disk_details.rb +168 -0
  13. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aprotected_managed_disk_details.rb +158 -0
  14. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2areplication_details.rb +373 -0
  15. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2areprotect_input.rb +117 -0
  16. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2arp_recovery_point_type.rb +18 -0
  17. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aswitch_protection_input.rb +136 -0
  18. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2aupdate_replication_protected_item_input.rb +68 -0
  19. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2avm_disk_input_details.rb +64 -0
  20. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/a2avm_managed_disk_input_details.rb +64 -0
  21. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/add_vcenter_request.rb +46 -0
  22. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/add_vcenter_request_properties.rb +86 -0
  23. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/alert.rb +76 -0
  24. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/alert_collection.rb +94 -0
  25. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/alert_properties.rb +72 -0
  26. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/alternate_location_recovery_option.rb +16 -0
  27. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/apply_recovery_point_input.rb +46 -0
  28. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/apply_recovery_point_input_properties.rb +58 -0
  29. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/apply_recovery_point_provider_specific_input.rb +47 -0
  30. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/armexception.rb +93 -0
  31. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/armexception_details.rb +104 -0
  32. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/arminner_error.rb +186 -0
  33. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/asr_job_details.rb +62 -0
  34. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/asrtask.rb +182 -0
  35. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/automation_runbook_task_details.rb +139 -0
  36. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +58 -0
  37. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_specific_details.rb +75 -0
  38. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_create_network_mapping_input.rb +59 -0
  39. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_network_mapping_settings.rb +68 -0
  40. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_update_network_mapping_input.rb +58 -0
  41. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_to_azure_vm_synced_config_details.rb +87 -0
  42. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/azure_vm_disk_details.rb +104 -0
  43. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/configuration_settings.rb +47 -0
  44. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/configure_alert_request.rb +46 -0
  45. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/configure_alert_request_properties.rb +72 -0
  46. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/consistency_check_task_details.rb +68 -0
  47. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_network_mapping_input.rb +46 -0
  48. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_network_mapping_input_properties.rb +68 -0
  49. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_policy_input.rb +45 -0
  50. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_policy_input_properties.rb +47 -0
  51. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_input.rb +46 -0
  52. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_input_properties.rb +55 -0
  53. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_mapping_input.rb +46 -0
  54. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_protection_container_mapping_input_properties.rb +67 -0
  55. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_recovery_plan_input.rb +46 -0
  56. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/create_recovery_plan_input_properties.rb +84 -0
  57. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/current_scenario_details.rb +64 -0
  58. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/data_store.rb +84 -0
  59. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/data_sync_status.rb +16 -0
  60. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_input.rb +46 -0
  61. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_input_properties.rb +61 -0
  62. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_provider_specific_input.rb +45 -0
  63. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/disable_protection_reason.rb +16 -0
  64. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/discover_protectable_item_request.rb +46 -0
  65. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/discover_protectable_item_request_properties.rb +65 -0
  66. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/disk_details.rb +74 -0
  67. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/disk_volume_details.rb +54 -0
  68. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/display.rb +100 -0
  69. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/enable_protection_input.rb +46 -0
  70. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/enable_protection_input_properties.rb +71 -0
  71. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/enable_protection_provider_specific_input.rb +49 -0
  72. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/encryption_details.rb +64 -0
  73. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/event.rb +76 -0
  74. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/event_collection.rb +94 -0
  75. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/event_properties.rb +151 -0
  76. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/event_provider_specific_details.rb +50 -0
  77. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/event_query_parameter.rb +107 -0
  78. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/event_specific_details.rb +45 -0
  79. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/export_job_details.rb +82 -0
  80. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric.rb +76 -0
  81. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_collection.rb +94 -0
  82. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_creation_input.rb +45 -0
  83. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_creation_input_properties.rb +48 -0
  84. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_properties.rb +127 -0
  85. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_replication_group_task_details.rb +79 -0
  86. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_create_network_mapping_input.rb +47 -0
  87. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +46 -0
  88. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_details.rb +49 -0
  89. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_update_network_mapping_input.rb +47 -0
  90. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/failover_deployment_model.rb +17 -0
  91. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/failover_job_details.rb +81 -0
  92. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/failover_process_server_request.rb +46 -0
  93. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/failover_process_server_request_properties.rb +92 -0
  94. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/failover_replication_protected_item_details.rb +124 -0
  95. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/group_task_details.rb +66 -0
  96. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/health_error.rb +152 -0
  97. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/health_error_category.rb +17 -0
  98. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/health_error_summary.rb +120 -0
  99. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica2012event_details.rb +88 -0
  100. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica2012r2event_details.rb +88 -0
  101. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_apply_recovery_point_input.rb +79 -0
  102. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_enable_protection_input.rb +201 -0
  103. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_event_details.rb +78 -0
  104. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_failback_provider_input.rb +78 -0
  105. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_failover_provider_input.rb +90 -0
  106. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_policy_details.rb +112 -0
  107. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_policy_input.rb +120 -0
  108. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_replication_details.rb +281 -0
  109. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_reprotect_input.rb +109 -0
  110. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_rp_recovery_point_type.rb +17 -0
  111. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_azure_update_replication_protected_item_input.rb +82 -0
  112. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_event_details.rb +88 -0
  113. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_policy_details.rb +151 -0
  114. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_replication_details.rb +135 -0
  115. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_blue_policy_details.rb +161 -0
  116. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_blue_policy_input.rb +161 -0
  117. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_blue_replication_details.rb +135 -0
  118. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_policy_details.rb +151 -0
  119. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_policy_input.rb +151 -0
  120. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_replication_details.rb +135 -0
  121. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vsite_details.rb +48 -0
  122. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vvirtual_machine_details.rb +97 -0
  123. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/identity_information.rb +117 -0
  124. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/identity_provider_type.rb +16 -0
  125. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_agent_details.rb +66 -0
  126. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2apply_recovery_point_input.rb +58 -0
  127. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2enable_protection_input.rb +211 -0
  128. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2event_details.rb +119 -0
  129. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2failover_provider_input.rb +70 -0
  130. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2policy_details.rb +100 -0
  131. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2policy_input.rb +102 -0
  132. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2protected_disk_details.rb +185 -0
  133. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2recovery_point_details.rb +64 -0
  134. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2replication_details.rb +573 -0
  135. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2reprotect_input.rb +126 -0
  136. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_azure_v2update_replication_protected_item_input.rb +82 -0
  137. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_base_policy_details.rb +90 -0
  138. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disable_protection_provider_specific_input.rb +60 -0
  139. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disk_details.rb +102 -0
  140. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disk_exclusion_input.rb +73 -0
  141. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_disk_signature_exclusion_options.rb +46 -0
  142. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_enable_protection_input.rb +156 -0
  143. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_failover_provider_input.rb +75 -0
  144. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_policy_details.rb +90 -0
  145. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_policy_input.rb +92 -0
  146. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_protected_disk_details.rb +185 -0
  147. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_replication_details.rb +472 -0
  148. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_reprotect_input.rb +136 -0
  149. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_v2rp_recovery_point_type.rb +18 -0
  150. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/in_mage_volume_exclusion_options.rb +59 -0
  151. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/inconsistent_vm_details.rb +90 -0
  152. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/initial_replication_details.rb +54 -0
  153. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/inline_workflow_task_details.rb +80 -0
  154. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/input_endpoint.rb +74 -0
  155. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job.rb +119 -0
  156. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_collection.rb +94 -0
  157. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_details.rb +68 -0
  158. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_entity.rb +95 -0
  159. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_error_details.rb +86 -0
  160. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_properties.rb +206 -0
  161. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_query_parameter.rb +98 -0
  162. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_status_event_details.rb +88 -0
  163. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/job_task_details.rb +60 -0
  164. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/license_type.rb +17 -0
  165. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/logical_network.rb +76 -0
  166. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/logical_network_collection.rb +94 -0
  167. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/logical_network_properties.rb +77 -0
  168. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/manual_action_task_details.rb +78 -0
  169. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/master_target_server.rb +179 -0
  170. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/method_call_status.rb +73 -0
  171. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/mobility_service_update.rb +65 -0
  172. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/multi_vm_sync_status.rb +16 -0
  173. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network.rb +76 -0
  174. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network_collection.rb +94 -0
  175. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping.rb +82 -0
  176. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping_collection.rb +98 -0
  177. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping_fabric_specific_settings.rb +47 -0
  178. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network_mapping_properties.rb +128 -0
  179. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/network_properties.rb +82 -0
  180. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/operations_discovery.rb +95 -0
  181. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/operations_discovery_collection.rb +94 -0
  182. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/osdetails.rb +94 -0
  183. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/osdisk_details.rb +64 -0
  184. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/planned_failover_input.rb +46 -0
  185. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/planned_failover_input_properties.rb +57 -0
  186. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/policy.rb +76 -0
  187. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/policy_collection.rb +94 -0
  188. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/policy_properties.rb +57 -0
  189. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/policy_provider_specific_details.rb +54 -0
  190. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/policy_provider_specific_input.rb +51 -0
  191. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/possible_operations_directions.rb +16 -0
  192. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/process_server.rb +294 -0
  193. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item.rb +76 -0
  194. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item_collection.rb +94 -0
  195. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protectable_item_properties.rb +123 -0
  196. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protected_items_query_parameter.rb +64 -0
  197. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container.rb +76 -0
  198. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_collection.rb +94 -0
  199. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_fabric_specific_details.rb +45 -0
  200. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping.rb +76 -0
  201. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping_collection.rb +94 -0
  202. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping_properties.rb +154 -0
  203. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_mapping_provider_specific_details.rb +46 -0
  204. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/protection_container_properties.rb +106 -0
  205. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/provider_error.rb +84 -0
  206. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/provider_specific_failover_input.rb +49 -0
  207. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/provider_specific_recovery_point_details.rb +45 -0
  208. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/rcm_azure_migration_policy_details.rb +101 -0
  209. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan.rb +76 -0
  210. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_a2afailover_input.rb +72 -0
  211. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_action.rb +95 -0
  212. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_action_details.rb +47 -0
  213. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_action_location.rb +16 -0
  214. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_automation_runbook_action_details.rb +81 -0
  215. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_collection.rb +94 -0
  216. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_group.rb +100 -0
  217. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_group_task_details.rb +93 -0
  218. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_group_type.rb +17 -0
  219. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_hyper_vreplica_azure_failback_input.rb +73 -0
  220. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_hyper_vreplica_azure_failover_input.rb +92 -0
  221. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_in_mage_azure_v2failover_input.rb +82 -0
  222. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_in_mage_failover_input.rb +60 -0
  223. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_manual_action_details.rb +58 -0
  224. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_planned_failover_input.rb +46 -0
  225. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_planned_failover_input_properties.rb +68 -0
  226. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_properties.rb +207 -0
  227. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_protected_item.rb +54 -0
  228. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_provider_specific_failover_input.rb +50 -0
  229. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_script_action_details.rb +80 -0
  230. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_shutdown_group_task_details.rb +93 -0
  231. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_cleanup_input.rb +46 -0
  232. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_cleanup_input_properties.rb +45 -0
  233. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_input.rb +46 -0
  234. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_test_failover_input_properties.rb +98 -0
  235. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_unplanned_failover_input.rb +46 -0
  236. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_plan_unplanned_failover_input_properties.rb +81 -0
  237. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point.rb +76 -0
  238. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_collection.rb +94 -0
  239. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_properties.rb +67 -0
  240. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_point_type.rb +17 -0
  241. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_services_provider.rb +76 -0
  242. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_services_provider_collection.rb +94 -0
  243. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/recovery_services_provider_properties.rb +191 -0
  244. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/remove_protection_container_mapping_input.rb +46 -0
  245. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/remove_protection_container_mapping_input_properties.rb +47 -0
  246. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/renew_certificate_input.rb +46 -0
  247. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/renew_certificate_input_properties.rb +44 -0
  248. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_group_details.rb +48 -0
  249. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item.rb +76 -0
  250. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item_collection.rb +95 -0
  251. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item_operation.rb +27 -0
  252. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_protected_item_properties.rb +338 -0
  253. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_container_unmapping_input.rb +45 -0
  254. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_container_creation_input.rb +46 -0
  255. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_container_mapping_input.rb +45 -0
  256. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/replication_provider_specific_settings.rb +51 -0
  257. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/resource.rb +77 -0
  258. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/resource_health_summary.rb +64 -0
  259. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/resume_job_params.rb +45 -0
  260. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/resume_job_params_properties.rb +44 -0
  261. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/retention_volume.rb +74 -0
  262. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/reverse_replication_input.rb +46 -0
  263. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/reverse_replication_input_properties.rb +58 -0
  264. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/reverse_replication_provider_specific_input.rb +48 -0
  265. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/role_assignment.rb +84 -0
  266. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/rp_in_mage_recovery_point_type.rb +17 -0
  267. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/run_as_account.rb +54 -0
  268. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/san_enable_protection_input.rb +48 -0
  269. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/script_action_task_details.rb +89 -0
  270. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/service_error.rb +84 -0
  271. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/set_multi_vm_sync_status.rb +16 -0
  272. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/severity.rb +18 -0
  273. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/source_site_operations.rb +16 -0
  274. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification.rb +77 -0
  275. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_collection.rb +94 -0
  276. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping.rb +77 -0
  277. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping_collection.rb +95 -0
  278. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping_input.rb +46 -0
  279. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_mapping_properties.rb +44 -0
  280. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_classification_properties.rb +44 -0
  281. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/storage_mapping_input_properties.rb +44 -0
  282. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/subnet.rb +71 -0
  283. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_input.rb +45 -0
  284. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_input_properties.rb +58 -0
  285. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_job_details.rb +72 -0
  286. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/switch_protection_provider_specific_input.rb +45 -0
  287. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/task_type_details.rb +52 -0
  288. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_cleanup_input.rb +46 -0
  289. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_cleanup_input_properties.rb +44 -0
  290. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_input.rb +45 -0
  291. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_input_properties.rb +88 -0
  292. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/test_failover_job_details.rb +132 -0
  293. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/unplanned_failover_input.rb +46 -0
  294. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/unplanned_failover_input_properties.rb +67 -0
  295. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_mobility_service_request.rb +46 -0
  296. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_mobility_service_request_properties.rb +44 -0
  297. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_network_mapping_input.rb +46 -0
  298. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_network_mapping_input_properties.rb +68 -0
  299. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_policy_input.rb +45 -0
  300. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_policy_input_properties.rb +47 -0
  301. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_recovery_plan_input.rb +46 -0
  302. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_recovery_plan_input_properties.rb +52 -0
  303. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_replication_protected_item_input.rb +46 -0
  304. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_replication_protected_item_input_properties.rb +131 -0
  305. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_replication_protected_item_provider_input.rb +48 -0
  306. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_vcenter_request.rb +46 -0
  307. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/update_vcenter_request_properties.rb +86 -0
  308. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vault_health_details.rb +76 -0
  309. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vault_health_properties.rb +76 -0
  310. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vcenter.rb +76 -0
  311. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vcenter_collection.rb +94 -0
  312. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vcenter_properties.rb +137 -0
  313. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/virtual_machine_task_details.rb +79 -0
  314. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vm_nic_updates_task_details.rb +78 -0
  315. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_details.rb +48 -0
  316. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_azure_create_network_mapping_input.rb +49 -0
  317. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_azure_network_mapping_settings.rb +48 -0
  318. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_azure_update_network_mapping_input.rb +49 -0
  319. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_vmm_create_network_mapping_input.rb +49 -0
  320. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_vmm_network_mapping_settings.rb +48 -0
  321. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmm_to_vmm_update_network_mapping_input.rb +49 -0
  322. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmnic_details.rb +154 -0
  323. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmnic_input_details.rb +74 -0
  324. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_cbt_policy_creation_input.rb +79 -0
  325. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_cbt_policy_details.rb +89 -0
  326. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_details.rb +376 -0
  327. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_v2fabric_creation_input.rb +48 -0
  328. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_v2fabric_specific_details.rb +68 -0
  329. data/lib/generated/azure_mgmt_recovery_services_site_recovery/models/vmware_virtual_machine_details.rb +168 -0
  330. data/lib/generated/azure_mgmt_recovery_services_site_recovery/module_definition.rb +8 -0
  331. data/lib/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +230 -0
  332. data/lib/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +360 -0
  333. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +442 -0
  334. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +329 -0
  335. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +1299 -0
  336. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +905 -0
  337. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +335 -0
  338. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +1012 -0
  339. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +541 -0
  340. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +752 -0
  341. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +344 -0
  342. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +2757 -0
  343. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +1002 -0
  344. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +1175 -0
  345. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +1639 -0
  346. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +967 -0
  347. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +861 -0
  348. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +541 -0
  349. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +116 -0
  350. data/lib/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +999 -0
  351. data/lib/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +217 -0
  352. data/lib/generated/azure_mgmt_recovery_services_site_recovery/version.rb +8 -0
  353. metadata +466 -0
@@ -0,0 +1,1002 @@
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::ARM::RecoveryServicesSiteRecovery
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
+ # Remove protection container mapping.
26
+ #
27
+ # The operation to delete or remove a protection container mapping.
28
+ #
29
+ # @param fabric_name [String] Fabric name.
30
+ # @param protection_container_name [String] Protection container name.
31
+ # @param mapping_name [String] Protection container mapping name.
32
+ # @param removal_input [RemoveProtectionContainerMappingInput] Removal input.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ def delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil)
37
+ response = delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value!
38
+ nil
39
+ end
40
+
41
+ #
42
+ # @param fabric_name [String] Fabric name.
43
+ # @param protection_container_name [String] Protection container name.
44
+ # @param mapping_name [String] Protection container mapping name.
45
+ # @param removal_input [RemoveProtectionContainerMappingInput] Removal input.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [Concurrent::Promise] promise which provides async access to http
50
+ # response.
51
+ #
52
+ def delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil)
53
+ # Send request
54
+ promise = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers)
55
+
56
+ promise = promise.then do |response|
57
+ # Defining deserialization method.
58
+ deserialize_method = lambda do |parsed_response|
59
+ end
60
+
61
+ # Waiting for response.
62
+ @client.get_long_running_operation_result(response, deserialize_method)
63
+ end
64
+
65
+ promise
66
+ end
67
+
68
+ #
69
+ # Gets a protection container mapping/
70
+ #
71
+ # Gets the details of a protection container mapping.
72
+ #
73
+ # @param fabric_name [String] Fabric name.
74
+ # @param protection_container_name [String] Protection container name.
75
+ # @param mapping_name [String] Protection Container mapping name.
76
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
77
+ # will be added to the HTTP request.
78
+ #
79
+ # @return [ProtectionContainerMapping] operation results.
80
+ #
81
+ def get(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
82
+ response = get_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
83
+ response.body unless response.nil?
84
+ end
85
+
86
+ #
87
+ # Gets a protection container mapping/
88
+ #
89
+ # Gets the details of a protection container mapping.
90
+ #
91
+ # @param fabric_name [String] Fabric name.
92
+ # @param protection_container_name [String] Protection container name.
93
+ # @param mapping_name [String] Protection Container mapping name.
94
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
95
+ # will be added to the HTTP request.
96
+ #
97
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
98
+ #
99
+ def get_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
100
+ get_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
101
+ end
102
+
103
+ #
104
+ # Gets a protection container mapping/
105
+ #
106
+ # Gets the details of a protection container mapping.
107
+ #
108
+ # @param fabric_name [String] Fabric name.
109
+ # @param protection_container_name [String] Protection container name.
110
+ # @param mapping_name [String] Protection Container mapping name.
111
+ # @param [Hash{String => String}] A hash of custom headers that will be added
112
+ # to the HTTP request.
113
+ #
114
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
115
+ #
116
+ def get_async(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
117
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
118
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
119
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
120
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
121
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
122
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
123
+ fail ArgumentError, 'mapping_name is nil' if mapping_name.nil?
124
+
125
+
126
+ request_headers = {}
127
+
128
+ # Set Headers
129
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
130
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
131
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}'
132
+
133
+ request_url = @base_url || @client.base_url
134
+
135
+ options = {
136
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
137
+ 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},
138
+ query_params: {'api-version' => @client.api_version},
139
+ headers: request_headers.merge(custom_headers || {}),
140
+ base_url: request_url
141
+ }
142
+ promise = @client.make_request_async(:get, path_template, options)
143
+
144
+ promise = promise.then do |result|
145
+ http_response = result.response
146
+ status_code = http_response.status
147
+ response_content = http_response.body
148
+ unless status_code == 200
149
+ error_model = JSON.load(response_content)
150
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
151
+ end
152
+
153
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
154
+ # Deserialize Response
155
+ if status_code == 200
156
+ begin
157
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
158
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMapping.mapper()
159
+ result.body = @client.deserialize(result_mapper, parsed_response)
160
+ rescue Exception => e
161
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
162
+ end
163
+ end
164
+
165
+ result
166
+ end
167
+
168
+ promise.execute
169
+ end
170
+
171
+ #
172
+ # Create protection container mapping.
173
+ #
174
+ # The operation to create a protection container mapping.
175
+ #
176
+ # @param fabric_name [String] Fabric name.
177
+ # @param protection_container_name [String] Protection container name.
178
+ # @param mapping_name [String] Protection container mapping name.
179
+ # @param creation_input [CreateProtectionContainerMappingInput] Mapping
180
+ # creation input.
181
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
182
+ # will be added to the HTTP request.
183
+ #
184
+ # @return [ProtectionContainerMapping] operation results.
185
+ #
186
+ def create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil)
187
+ response = create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value!
188
+ response.body unless response.nil?
189
+ end
190
+
191
+ #
192
+ # @param fabric_name [String] Fabric name.
193
+ # @param protection_container_name [String] Protection container name.
194
+ # @param mapping_name [String] Protection container mapping name.
195
+ # @param creation_input [CreateProtectionContainerMappingInput] Mapping
196
+ # creation input.
197
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
198
+ # will be added to the HTTP request.
199
+ #
200
+ # @return [Concurrent::Promise] promise which provides async access to http
201
+ # response.
202
+ #
203
+ def create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil)
204
+ # Send request
205
+ promise = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers)
206
+
207
+ promise = promise.then do |response|
208
+ # Defining deserialization method.
209
+ deserialize_method = lambda do |parsed_response|
210
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMapping.mapper()
211
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
212
+ end
213
+
214
+ # Waiting for response.
215
+ @client.get_long_running_operation_result(response, deserialize_method)
216
+ end
217
+
218
+ promise
219
+ end
220
+
221
+ #
222
+ # Purge protection container mapping.
223
+ #
224
+ # The operation to purge(force delete) a protection container mapping
225
+ #
226
+ # @param fabric_name [String] Fabric name.
227
+ # @param protection_container_name [String] Protection container name.
228
+ # @param mapping_name [String] Protection container mapping name.
229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
230
+ # will be added to the HTTP request.
231
+ #
232
+ def purge(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
233
+ response = purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
234
+ nil
235
+ end
236
+
237
+ #
238
+ # @param fabric_name [String] Fabric name.
239
+ # @param protection_container_name [String] Protection container name.
240
+ # @param mapping_name [String] Protection container mapping name.
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ # @return [Concurrent::Promise] promise which provides async access to http
245
+ # response.
246
+ #
247
+ def purge_async(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
248
+ # Send request
249
+ promise = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers)
250
+
251
+ promise = promise.then do |response|
252
+ # Defining deserialization method.
253
+ deserialize_method = lambda do |parsed_response|
254
+ end
255
+
256
+ # Waiting for response.
257
+ @client.get_long_running_operation_result(response, deserialize_method)
258
+ end
259
+
260
+ promise
261
+ end
262
+
263
+ #
264
+ # Gets the list of protection container mappings for a protection container.
265
+ #
266
+ # Lists the protection container mappings for a protection container.
267
+ #
268
+ # @param fabric_name [String] Fabric name.
269
+ # @param protection_container_name [String] Protection container name.
270
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
+ # will be added to the HTTP request.
272
+ #
273
+ # @return [Array<ProtectionContainerMapping>] operation results.
274
+ #
275
+ def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers = nil)
276
+ first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers)
277
+ first_page.get_all_items
278
+ end
279
+
280
+ #
281
+ # Gets the list of protection container mappings for a protection container.
282
+ #
283
+ # Lists the protection container mappings for a protection container.
284
+ #
285
+ # @param fabric_name [String] Fabric name.
286
+ # @param protection_container_name [String] Protection container name.
287
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
288
+ # will be added to the HTTP request.
289
+ #
290
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
291
+ #
292
+ def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers = nil)
293
+ list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
294
+ end
295
+
296
+ #
297
+ # Gets the list of protection container mappings for a protection container.
298
+ #
299
+ # Lists the protection container mappings for a protection container.
300
+ #
301
+ # @param fabric_name [String] Fabric name.
302
+ # @param protection_container_name [String] Protection container name.
303
+ # @param [Hash{String => String}] A hash of custom headers that will be added
304
+ # to the HTTP request.
305
+ #
306
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
307
+ #
308
+ def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers = nil)
309
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
310
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
311
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
312
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
313
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
314
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
315
+
316
+
317
+ request_headers = {}
318
+
319
+ # Set Headers
320
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
321
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
322
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings'
323
+
324
+ request_url = @base_url || @client.base_url
325
+
326
+ options = {
327
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
328
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'protectionContainerName' => protection_container_name},
329
+ query_params: {'api-version' => @client.api_version},
330
+ headers: request_headers.merge(custom_headers || {}),
331
+ base_url: request_url
332
+ }
333
+ promise = @client.make_request_async(:get, path_template, options)
334
+
335
+ promise = promise.then do |result|
336
+ http_response = result.response
337
+ status_code = http_response.status
338
+ response_content = http_response.body
339
+ unless status_code == 200
340
+ error_model = JSON.load(response_content)
341
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
342
+ end
343
+
344
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
345
+ # Deserialize Response
346
+ if status_code == 200
347
+ begin
348
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
349
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMappingCollection.mapper()
350
+ result.body = @client.deserialize(result_mapper, parsed_response)
351
+ rescue Exception => e
352
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
353
+ end
354
+ end
355
+
356
+ result
357
+ end
358
+
359
+ promise.execute
360
+ end
361
+
362
+ #
363
+ # Gets the list of all protection container mappings in a vault.
364
+ #
365
+ # Lists the protection container mappings in the vault.
366
+ #
367
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
368
+ # will be added to the HTTP request.
369
+ #
370
+ # @return [Array<ProtectionContainerMapping>] operation results.
371
+ #
372
+ def list(custom_headers = nil)
373
+ first_page = list_as_lazy(custom_headers)
374
+ first_page.get_all_items
375
+ end
376
+
377
+ #
378
+ # Gets the list of all protection container mappings in a vault.
379
+ #
380
+ # Lists the protection container mappings in the vault.
381
+ #
382
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
383
+ # will be added to the HTTP request.
384
+ #
385
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
386
+ #
387
+ def list_with_http_info(custom_headers = nil)
388
+ list_async(custom_headers).value!
389
+ end
390
+
391
+ #
392
+ # Gets the list of all protection container mappings in a vault.
393
+ #
394
+ # Lists the protection container mappings in the vault.
395
+ #
396
+ # @param [Hash{String => String}] A hash of custom headers that will be added
397
+ # to the HTTP request.
398
+ #
399
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
400
+ #
401
+ def list_async(custom_headers = nil)
402
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
403
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
404
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
405
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
406
+
407
+
408
+ request_headers = {}
409
+
410
+ # Set Headers
411
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
412
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
413
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainerMappings'
414
+
415
+ request_url = @base_url || @client.base_url
416
+
417
+ options = {
418
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
419
+ path_params: {'resourceName' => @client.resource_name,'resourceGroupName' => @client.resource_group_name,'subscriptionId' => @client.subscription_id},
420
+ query_params: {'api-version' => @client.api_version},
421
+ headers: request_headers.merge(custom_headers || {}),
422
+ base_url: request_url
423
+ }
424
+ promise = @client.make_request_async(:get, path_template, options)
425
+
426
+ promise = promise.then do |result|
427
+ http_response = result.response
428
+ status_code = http_response.status
429
+ response_content = http_response.body
430
+ unless status_code == 200
431
+ error_model = JSON.load(response_content)
432
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
433
+ end
434
+
435
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
436
+ # Deserialize Response
437
+ if status_code == 200
438
+ begin
439
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
440
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMappingCollection.mapper()
441
+ result.body = @client.deserialize(result_mapper, parsed_response)
442
+ rescue Exception => e
443
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
444
+ end
445
+ end
446
+
447
+ result
448
+ end
449
+
450
+ promise.execute
451
+ end
452
+
453
+ #
454
+ # Remove protection container mapping.
455
+ #
456
+ # The operation to delete or remove a protection container mapping.
457
+ #
458
+ # @param fabric_name [String] Fabric name.
459
+ # @param protection_container_name [String] Protection container name.
460
+ # @param mapping_name [String] Protection container mapping name.
461
+ # @param removal_input [RemoveProtectionContainerMappingInput] Removal input.
462
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
463
+ # will be added to the HTTP request.
464
+ #
465
+ #
466
+ def begin_delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil)
467
+ response = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value!
468
+ nil
469
+ end
470
+
471
+ #
472
+ # Remove protection container mapping.
473
+ #
474
+ # The operation to delete or remove a protection container mapping.
475
+ #
476
+ # @param fabric_name [String] Fabric name.
477
+ # @param protection_container_name [String] Protection container name.
478
+ # @param mapping_name [String] Protection container mapping name.
479
+ # @param removal_input [RemoveProtectionContainerMappingInput] Removal input.
480
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
481
+ # will be added to the HTTP request.
482
+ #
483
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
484
+ #
485
+ def begin_delete_with_http_info(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil)
486
+ begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value!
487
+ end
488
+
489
+ #
490
+ # Remove protection container mapping.
491
+ #
492
+ # The operation to delete or remove a protection container mapping.
493
+ #
494
+ # @param fabric_name [String] Fabric name.
495
+ # @param protection_container_name [String] Protection container name.
496
+ # @param mapping_name [String] Protection container mapping name.
497
+ # @param removal_input [RemoveProtectionContainerMappingInput] Removal input.
498
+ # @param [Hash{String => String}] A hash of custom headers that will be added
499
+ # to the HTTP request.
500
+ #
501
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
502
+ #
503
+ def begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil)
504
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
505
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
506
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
507
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
508
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
509
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
510
+ fail ArgumentError, 'mapping_name is nil' if mapping_name.nil?
511
+ fail ArgumentError, 'removal_input is nil' if removal_input.nil?
512
+
513
+
514
+ request_headers = {}
515
+
516
+ # Set Headers
517
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
518
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
519
+
520
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
521
+
522
+ # Serialize Request
523
+ request_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::RemoveProtectionContainerMappingInput.mapper()
524
+ request_content = @client.serialize(request_mapper, removal_input)
525
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
526
+
527
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}/remove'
528
+
529
+ request_url = @base_url || @client.base_url
530
+
531
+ options = {
532
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
533
+ 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},
534
+ query_params: {'api-version' => @client.api_version},
535
+ body: request_content,
536
+ headers: request_headers.merge(custom_headers || {}),
537
+ base_url: request_url
538
+ }
539
+ promise = @client.make_request_async(:post, path_template, options)
540
+
541
+ promise = promise.then do |result|
542
+ http_response = result.response
543
+ status_code = http_response.status
544
+ response_content = http_response.body
545
+ unless status_code == 202 || status_code == 204
546
+ error_model = JSON.load(response_content)
547
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
548
+ end
549
+
550
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
551
+
552
+ result
553
+ end
554
+
555
+ promise.execute
556
+ end
557
+
558
+ #
559
+ # Create protection container mapping.
560
+ #
561
+ # The operation to create a protection container mapping.
562
+ #
563
+ # @param fabric_name [String] Fabric name.
564
+ # @param protection_container_name [String] Protection container name.
565
+ # @param mapping_name [String] Protection container mapping name.
566
+ # @param creation_input [CreateProtectionContainerMappingInput] Mapping
567
+ # creation input.
568
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
569
+ # will be added to the HTTP request.
570
+ #
571
+ # @return [ProtectionContainerMapping] operation results.
572
+ #
573
+ def begin_create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil)
574
+ response = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value!
575
+ response.body unless response.nil?
576
+ end
577
+
578
+ #
579
+ # Create protection container mapping.
580
+ #
581
+ # The operation to create a protection container mapping.
582
+ #
583
+ # @param fabric_name [String] Fabric name.
584
+ # @param protection_container_name [String] Protection container name.
585
+ # @param mapping_name [String] Protection container mapping name.
586
+ # @param creation_input [CreateProtectionContainerMappingInput] Mapping
587
+ # creation input.
588
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
589
+ # will be added to the HTTP request.
590
+ #
591
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
592
+ #
593
+ def begin_create_with_http_info(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil)
594
+ begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value!
595
+ end
596
+
597
+ #
598
+ # Create protection container mapping.
599
+ #
600
+ # The operation to create a protection container mapping.
601
+ #
602
+ # @param fabric_name [String] Fabric name.
603
+ # @param protection_container_name [String] Protection container name.
604
+ # @param mapping_name [String] Protection container mapping name.
605
+ # @param creation_input [CreateProtectionContainerMappingInput] Mapping
606
+ # creation input.
607
+ # @param [Hash{String => String}] A hash of custom headers that will be added
608
+ # to the HTTP request.
609
+ #
610
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
611
+ #
612
+ def begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil)
613
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
614
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
615
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
616
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
617
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
618
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
619
+ fail ArgumentError, 'mapping_name is nil' if mapping_name.nil?
620
+ fail ArgumentError, 'creation_input is nil' if creation_input.nil?
621
+
622
+
623
+ request_headers = {}
624
+
625
+ # Set Headers
626
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
627
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
628
+
629
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
630
+
631
+ # Serialize Request
632
+ request_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::CreateProtectionContainerMappingInput.mapper()
633
+ request_content = @client.serialize(request_mapper, creation_input)
634
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
635
+
636
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}'
637
+
638
+ request_url = @base_url || @client.base_url
639
+
640
+ options = {
641
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
642
+ 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},
643
+ query_params: {'api-version' => @client.api_version},
644
+ body: request_content,
645
+ headers: request_headers.merge(custom_headers || {}),
646
+ base_url: request_url
647
+ }
648
+ promise = @client.make_request_async(:put, path_template, options)
649
+
650
+ promise = promise.then do |result|
651
+ http_response = result.response
652
+ status_code = http_response.status
653
+ response_content = http_response.body
654
+ unless status_code == 200 || status_code == 202
655
+ error_model = JSON.load(response_content)
656
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
657
+ end
658
+
659
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
660
+ # Deserialize Response
661
+ if status_code == 200
662
+ begin
663
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
664
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMapping.mapper()
665
+ result.body = @client.deserialize(result_mapper, parsed_response)
666
+ rescue Exception => e
667
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
668
+ end
669
+ end
670
+
671
+ result
672
+ end
673
+
674
+ promise.execute
675
+ end
676
+
677
+ #
678
+ # Purge protection container mapping.
679
+ #
680
+ # The operation to purge(force delete) a protection container mapping
681
+ #
682
+ # @param fabric_name [String] Fabric name.
683
+ # @param protection_container_name [String] Protection container name.
684
+ # @param mapping_name [String] Protection container mapping name.
685
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
686
+ # will be added to the HTTP request.
687
+ #
688
+ #
689
+ def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
690
+ response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
691
+ nil
692
+ end
693
+
694
+ #
695
+ # Purge protection container mapping.
696
+ #
697
+ # The operation to purge(force delete) a protection container mapping
698
+ #
699
+ # @param fabric_name [String] Fabric name.
700
+ # @param protection_container_name [String] Protection container name.
701
+ # @param mapping_name [String] Protection container mapping name.
702
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
703
+ # will be added to the HTTP request.
704
+ #
705
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
706
+ #
707
+ def begin_purge_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
708
+ begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
709
+ end
710
+
711
+ #
712
+ # Purge protection container mapping.
713
+ #
714
+ # The operation to purge(force delete) a protection container mapping
715
+ #
716
+ # @param fabric_name [String] Fabric name.
717
+ # @param protection_container_name [String] Protection container name.
718
+ # @param mapping_name [String] Protection container mapping name.
719
+ # @param [Hash{String => String}] A hash of custom headers that will be added
720
+ # to the HTTP request.
721
+ #
722
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
723
+ #
724
+ def begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers = nil)
725
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
726
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
727
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
728
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
729
+ fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
730
+ fail ArgumentError, 'protection_container_name is nil' if protection_container_name.nil?
731
+ fail ArgumentError, 'mapping_name is nil' if mapping_name.nil?
732
+
733
+
734
+ request_headers = {}
735
+
736
+ # Set Headers
737
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
738
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
739
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}'
740
+
741
+ request_url = @base_url || @client.base_url
742
+
743
+ options = {
744
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
745
+ 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},
746
+ query_params: {'api-version' => @client.api_version},
747
+ headers: request_headers.merge(custom_headers || {}),
748
+ base_url: request_url
749
+ }
750
+ promise = @client.make_request_async(:delete, path_template, options)
751
+
752
+ promise = promise.then do |result|
753
+ http_response = result.response
754
+ status_code = http_response.status
755
+ response_content = http_response.body
756
+ unless status_code == 202 || status_code == 204
757
+ error_model = JSON.load(response_content)
758
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
759
+ end
760
+
761
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
762
+
763
+ result
764
+ end
765
+
766
+ promise.execute
767
+ end
768
+
769
+ #
770
+ # Gets the list of protection container mappings for a protection container.
771
+ #
772
+ # Lists the protection container mappings for a protection container.
773
+ #
774
+ # @param next_page_link [String] The NextLink from the previous successful call
775
+ # to List operation.
776
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
777
+ # will be added to the HTTP request.
778
+ #
779
+ # @return [ProtectionContainerMappingCollection] operation results.
780
+ #
781
+ def list_by_replication_protection_containers_next(next_page_link, custom_headers = nil)
782
+ response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
783
+ response.body unless response.nil?
784
+ end
785
+
786
+ #
787
+ # Gets the list of protection container mappings for a protection container.
788
+ #
789
+ # Lists the protection container mappings for a protection container.
790
+ #
791
+ # @param next_page_link [String] The NextLink from the previous successful call
792
+ # to List operation.
793
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
794
+ # will be added to the HTTP request.
795
+ #
796
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
797
+ #
798
+ def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers = nil)
799
+ list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
800
+ end
801
+
802
+ #
803
+ # Gets the list of protection container mappings for a protection container.
804
+ #
805
+ # Lists the protection container mappings for a protection container.
806
+ #
807
+ # @param next_page_link [String] The NextLink from the previous successful call
808
+ # to List operation.
809
+ # @param [Hash{String => String}] A hash of custom headers that will be added
810
+ # to the HTTP request.
811
+ #
812
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
813
+ #
814
+ def list_by_replication_protection_containers_next_async(next_page_link, custom_headers = nil)
815
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
816
+
817
+
818
+ request_headers = {}
819
+
820
+ # Set Headers
821
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
822
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
823
+ path_template = '{nextLink}'
824
+
825
+ request_url = @base_url || @client.base_url
826
+
827
+ options = {
828
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
829
+ skip_encoding_path_params: {'nextLink' => next_page_link},
830
+ headers: request_headers.merge(custom_headers || {}),
831
+ base_url: request_url
832
+ }
833
+ promise = @client.make_request_async(:get, path_template, options)
834
+
835
+ promise = promise.then do |result|
836
+ http_response = result.response
837
+ status_code = http_response.status
838
+ response_content = http_response.body
839
+ unless status_code == 200
840
+ error_model = JSON.load(response_content)
841
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
842
+ end
843
+
844
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
845
+ # Deserialize Response
846
+ if status_code == 200
847
+ begin
848
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
849
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMappingCollection.mapper()
850
+ result.body = @client.deserialize(result_mapper, parsed_response)
851
+ rescue Exception => e
852
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
853
+ end
854
+ end
855
+
856
+ result
857
+ end
858
+
859
+ promise.execute
860
+ end
861
+
862
+ #
863
+ # Gets the list of all protection container mappings in a vault.
864
+ #
865
+ # Lists the protection container mappings in the vault.
866
+ #
867
+ # @param next_page_link [String] The NextLink from the previous successful call
868
+ # to List operation.
869
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
870
+ # will be added to the HTTP request.
871
+ #
872
+ # @return [ProtectionContainerMappingCollection] operation results.
873
+ #
874
+ def list_next(next_page_link, custom_headers = nil)
875
+ response = list_next_async(next_page_link, custom_headers).value!
876
+ response.body unless response.nil?
877
+ end
878
+
879
+ #
880
+ # Gets the list of all protection container mappings in a vault.
881
+ #
882
+ # Lists the protection container mappings in the vault.
883
+ #
884
+ # @param next_page_link [String] The NextLink from the previous successful call
885
+ # to List operation.
886
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
887
+ # will be added to the HTTP request.
888
+ #
889
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
890
+ #
891
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
892
+ list_next_async(next_page_link, custom_headers).value!
893
+ end
894
+
895
+ #
896
+ # Gets the list of all protection container mappings in a vault.
897
+ #
898
+ # Lists the protection container mappings in the vault.
899
+ #
900
+ # @param next_page_link [String] The NextLink from the previous successful call
901
+ # to List operation.
902
+ # @param [Hash{String => String}] A hash of custom headers that will be added
903
+ # to the HTTP request.
904
+ #
905
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
906
+ #
907
+ def list_next_async(next_page_link, custom_headers = nil)
908
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
909
+
910
+
911
+ request_headers = {}
912
+
913
+ # Set Headers
914
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
915
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
916
+ path_template = '{nextLink}'
917
+
918
+ request_url = @base_url || @client.base_url
919
+
920
+ options = {
921
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
922
+ skip_encoding_path_params: {'nextLink' => next_page_link},
923
+ headers: request_headers.merge(custom_headers || {}),
924
+ base_url: request_url
925
+ }
926
+ promise = @client.make_request_async(:get, path_template, options)
927
+
928
+ promise = promise.then do |result|
929
+ http_response = result.response
930
+ status_code = http_response.status
931
+ response_content = http_response.body
932
+ unless status_code == 200
933
+ error_model = JSON.load(response_content)
934
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
935
+ end
936
+
937
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
938
+ # Deserialize Response
939
+ if status_code == 200
940
+ begin
941
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
942
+ result_mapper = Azure::ARM::RecoveryServicesSiteRecovery::Models::ProtectionContainerMappingCollection.mapper()
943
+ result.body = @client.deserialize(result_mapper, parsed_response)
944
+ rescue Exception => e
945
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
946
+ end
947
+ end
948
+
949
+ result
950
+ end
951
+
952
+ promise.execute
953
+ end
954
+
955
+ #
956
+ # Gets the list of protection container mappings for a protection container.
957
+ #
958
+ # Lists the protection container mappings for a protection container.
959
+ #
960
+ # @param fabric_name [String] Fabric name.
961
+ # @param protection_container_name [String] Protection container name.
962
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
963
+ # will be added to the HTTP request.
964
+ #
965
+ # @return [ProtectionContainerMappingCollection] which provide lazy access to
966
+ # pages of the response.
967
+ #
968
+ def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers = nil)
969
+ response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
970
+ unless response.nil?
971
+ page = response.body
972
+ page.next_method = Proc.new do |next_page_link|
973
+ list_by_replication_protection_containers_next_async(next_page_link, custom_headers)
974
+ end
975
+ page
976
+ end
977
+ end
978
+
979
+ #
980
+ # Gets the list of all protection container mappings in a vault.
981
+ #
982
+ # Lists the protection container mappings in the vault.
983
+ #
984
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
985
+ # will be added to the HTTP request.
986
+ #
987
+ # @return [ProtectionContainerMappingCollection] which provide lazy access to
988
+ # pages of the response.
989
+ #
990
+ def list_as_lazy(custom_headers = nil)
991
+ response = list_async(custom_headers).value!
992
+ unless response.nil?
993
+ page = response.body
994
+ page.next_method = Proc.new do |next_page_link|
995
+ list_next_async(next_page_link, custom_headers)
996
+ end
997
+ page
998
+ end
999
+ end
1000
+
1001
+ end
1002
+ end