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