test-oneview 5.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +758 -0
- data/Dockerfile +21 -0
- data/Gemfile +14 -0
- data/Guardfile +26 -0
- data/LICENSE +201 -0
- data/README.md +516 -0
- data/Rakefile +126 -0
- data/TESTING.md +61 -0
- data/bin/oneview-sdk-ruby +4 -0
- data/endpoints-support.md +552 -0
- data/lib/oneview-sdk.rb +65 -0
- data/lib/oneview-sdk/cli.rb +639 -0
- data/lib/oneview-sdk/client.rb +220 -0
- data/lib/oneview-sdk/config_loader.rb +31 -0
- data/lib/oneview-sdk/exceptions.rb +91 -0
- data/lib/oneview-sdk/image-streamer/client.rb +99 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1000/plan_script.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1020/plan_script.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api1600/plan_script.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api300.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/artifact_bundle.rb +213 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/build_plan.rb +33 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/deployment_group.rb +41 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/deployment_plan.rb +33 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/golden_image.rb +89 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb +49 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/plan_script.rb +42 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/resource.rb +21 -0
- data/lib/oneview-sdk/image-streamer/resource/api500.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/build_plan.rb +32 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/deployment_plan.rb +42 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api500/plan_script.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api600.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/deployment_plan.rb +31 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/os_volume.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api600/plan_script.rb +31 -0
- data/lib/oneview-sdk/image-streamer/resource/api800.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api800/plan_script.rb +22 -0
- data/lib/oneview-sdk/image_streamer.rb +68 -0
- data/lib/oneview-sdk/resource.rb +431 -0
- data/lib/oneview-sdk/resource/api1000.rb +66 -0
- data/lib/oneview-sdk/resource/api1000/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api1000/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/fcoe_network.rb +23 -0
- data/lib/oneview-sdk/resource/api1000/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/interconnect.rb +23 -0
- data/lib/oneview-sdk/resource/api1000/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1000/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/c7000/logical_interconnect_group.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/server_hardware.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/c7000/server_hardware_type.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/c7000/server_profile.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/c7000/server_profile_template.rb +33 -0
- data/lib/oneview-sdk/resource/api1000/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/storage_system.rb +35 -0
- data/lib/oneview-sdk/resource/api1000/c7000/uplink_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api1000/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1000/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/synergy/logical_interconnect_group.rb +33 -0
- data/lib/oneview-sdk/resource/api1000/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/sas_logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/server_hardware.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api1000/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/uplink_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1000/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1200.rb +66 -0
- data/lib/oneview-sdk/resource/api1200/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api1200/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/enclosure.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/c7000/enclosure_group.rb +36 -0
- data/lib/oneview-sdk/resource/api1200/c7000/ethernet_network.rb +35 -0
- data/lib/oneview-sdk/resource/api1200/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/fcoe_network.rb +23 -0
- data/lib/oneview-sdk/resource/api1200/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/interconnect.rb +33 -0
- data/lib/oneview-sdk/resource/api1200/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1200/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/c7000/logical_interconnect_group.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/c7000/network_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/server_profile.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/c7000/server_profile_template.rb +33 -0
- data/lib/oneview-sdk/resource/api1200/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/uplink_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api1200/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/enclosure.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/synergy/enclosure_group.rb +36 -0
- data/lib/oneview-sdk/resource/api1200/synergy/ethernet_network.rb +35 -0
- data/lib/oneview-sdk/resource/api1200/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1200/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/synergy/logical_interconnect_group.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/sas_logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api1200/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/uplink_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1200/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1600.rb +66 -0
- data/lib/oneview-sdk/resource/api1600/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api1600/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/fcoe_network.rb +23 -0
- data/lib/oneview-sdk/resource/api1600/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/hypervisor_cluster_profile.rb +36 -0
- data/lib/oneview-sdk/resource/api1600/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/interconnect.rb +26 -0
- data/lib/oneview-sdk/resource/api1600/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1600/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1600/c7000/logical_interconnect_group.rb +36 -0
- data/lib/oneview-sdk/resource/api1600/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/server_hardware_type.rb +25 -0
- data/lib/oneview-sdk/resource/api1600/c7000/server_profile.rb +40 -0
- data/lib/oneview-sdk/resource/api1600/c7000/server_profile_template.rb +32 -0
- data/lib/oneview-sdk/resource/api1600/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/uplink_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1600/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api1600/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/interconnect.rb +25 -0
- data/lib/oneview-sdk/resource/api1600/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1600/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api1600/synergy/logical_interconnect_group.rb +36 -0
- data/lib/oneview-sdk/resource/api1600/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/server_hardware_type.rb +25 -0
- data/lib/oneview-sdk/resource/api1600/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api1600/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/uplink_set.rb +32 -0
- data/lib/oneview-sdk/resource/api1600/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1600/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1800.rb +66 -0
- data/lib/oneview-sdk/resource/api1800/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api1800/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/ethernet_network.rb +28 -0
- data/lib/oneview-sdk/resource/api1800/c7000/fc_network.rb +28 -0
- data/lib/oneview-sdk/resource/api1800/c7000/fcoe_network.rb +28 -0
- data/lib/oneview-sdk/resource/api1800/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/interconnect.rb +26 -0
- data/lib/oneview-sdk/resource/api1800/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1800/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/logical_interconnect.rb +42 -0
- data/lib/oneview-sdk/resource/api1800/c7000/logical_interconnect_group.rb +25 -0
- data/lib/oneview-sdk/resource/api1800/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/server_hardware.rb +51 -0
- data/lib/oneview-sdk/resource/api1800/c7000/server_hardware_type.rb +25 -0
- data/lib/oneview-sdk/resource/api1800/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api1800/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/interconnect.rb +25 -0
- data/lib/oneview-sdk/resource/api1800/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api1800/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/logical_interconnect_group.rb +25 -0
- data/lib/oneview-sdk/resource/api1800/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api1800/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api1800/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api200.rb +34 -0
- data/lib/oneview-sdk/resource/api200/alerts.rb +39 -0
- data/lib/oneview-sdk/resource/api200/client_certificate.rb +134 -0
- data/lib/oneview-sdk/resource/api200/connection_template.rb +53 -0
- data/lib/oneview-sdk/resource/api200/datacenter.rb +81 -0
- data/lib/oneview-sdk/resource/api200/enclosure.rb +192 -0
- data/lib/oneview-sdk/resource/api200/enclosure_group.rb +93 -0
- data/lib/oneview-sdk/resource/api200/ethernet_network.rb +60 -0
- data/lib/oneview-sdk/resource/api200/event.rb +43 -0
- data/lib/oneview-sdk/resource/api200/fabric.rb +45 -0
- data/lib/oneview-sdk/resource/api200/fc_network.rb +34 -0
- data/lib/oneview-sdk/resource/api200/fcoe_network.rb +32 -0
- data/lib/oneview-sdk/resource/api200/firmware_bundle.rb +31 -0
- data/lib/oneview-sdk/resource/api200/firmware_driver.rb +37 -0
- data/lib/oneview-sdk/resource/api200/id_pool.rb +124 -0
- data/lib/oneview-sdk/resource/api200/interconnect.rb +114 -0
- data/lib/oneview-sdk/resource/api200/lig_uplink_set.rb +106 -0
- data/lib/oneview-sdk/resource/api200/logical_downlink.rb +57 -0
- data/lib/oneview-sdk/resource/api200/logical_enclosure.rb +88 -0
- data/lib/oneview-sdk/resource/api200/logical_interconnect.rb +267 -0
- data/lib/oneview-sdk/resource/api200/logical_interconnect_group.rb +134 -0
- data/lib/oneview-sdk/resource/api200/logical_switch.rb +188 -0
- data/lib/oneview-sdk/resource/api200/logical_switch_group.rb +70 -0
- data/lib/oneview-sdk/resource/api200/login_detail.rb +27 -0
- data/lib/oneview-sdk/resource/api200/managed_san.rb +83 -0
- data/lib/oneview-sdk/resource/api200/network_set.rb +68 -0
- data/lib/oneview-sdk/resource/api200/power_device.rb +178 -0
- data/lib/oneview-sdk/resource/api200/rack.rb +95 -0
- data/lib/oneview-sdk/resource/api200/resource.rb +18 -0
- data/lib/oneview-sdk/resource/api200/san_manager.rb +92 -0
- data/lib/oneview-sdk/resource/api200/server_hardware.rb +250 -0
- data/lib/oneview-sdk/resource/api200/server_hardware_type.rb +61 -0
- data/lib/oneview-sdk/resource/api200/server_profile.rb +396 -0
- data/lib/oneview-sdk/resource/api200/server_profile_template.rb +227 -0
- data/lib/oneview-sdk/resource/api200/storage_pool.rb +99 -0
- data/lib/oneview-sdk/resource/api200/storage_system.rb +159 -0
- data/lib/oneview-sdk/resource/api200/switch.rb +85 -0
- data/lib/oneview-sdk/resource/api200/unmanaged_device.rb +59 -0
- data/lib/oneview-sdk/resource/api200/uplink_set.rb +92 -0
- data/lib/oneview-sdk/resource/api200/user.rb +98 -0
- data/lib/oneview-sdk/resource/api200/version.rb +27 -0
- data/lib/oneview-sdk/resource/api200/volume.rb +191 -0
- data/lib/oneview-sdk/resource/api200/volume_attachment.rb +85 -0
- data/lib/oneview-sdk/resource/api200/volume_snapshot.rb +50 -0
- data/lib/oneview-sdk/resource/api200/volume_template.rb +96 -0
- data/lib/oneview-sdk/resource/api200/web_server_certificate.rb +97 -0
- data/lib/oneview-sdk/resource/api2000.rb +66 -0
- data/lib/oneview-sdk/resource/api2000/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api2000/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/interconnect.rb +26 -0
- data/lib/oneview-sdk/resource/api2000/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2000/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/logical_interconnect.rb +33 -0
- data/lib/oneview-sdk/resource/api2000/c7000/logical_interconnect_group.rb +25 -0
- data/lib/oneview-sdk/resource/api2000/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/server_hardware_type.rb +25 -0
- data/lib/oneview-sdk/resource/api2000/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api2000/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/interconnect.rb +25 -0
- data/lib/oneview-sdk/resource/api2000/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2000/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/logical_interconnect_group.rb +25 -0
- data/lib/oneview-sdk/resource/api2000/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api2000/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2000/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api300.rb +66 -0
- data/lib/oneview-sdk/resource/api300/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api300/c7000/alerts.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/enclosure.rb +36 -0
- data/lib/oneview-sdk/resource/api300/c7000/enclosure_group.rb +89 -0
- data/lib/oneview-sdk/resource/api300/c7000/ethernet_network.rb +37 -0
- data/lib/oneview-sdk/resource/api300/c7000/event.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/fabric.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/fc_network.rb +39 -0
- data/lib/oneview-sdk/resource/api300/c7000/fcoe_network.rb +37 -0
- data/lib/oneview-sdk/resource/api300/c7000/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/interconnect.rb +33 -0
- data/lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb +58 -0
- data/lib/oneview-sdk/resource/api300/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_downlink.rb +34 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb +37 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb +45 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect_group.rb +35 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_switch.rb +36 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_switch_group.rb +35 -0
- data/lib/oneview-sdk/resource/api300/c7000/login_detail.rb +23 -0
- data/lib/oneview-sdk/resource/api300/c7000/managed_san.rb +36 -0
- data/lib/oneview-sdk/resource/api300/c7000/network_set.rb +39 -0
- data/lib/oneview-sdk/resource/api300/c7000/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/scope.rb +140 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_hardware.rb +67 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_hardware_type.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_profile.rb +33 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_profile_template.rb +50 -0
- data/lib/oneview-sdk/resource/api300/c7000/storage_pool.rb +29 -0
- data/lib/oneview-sdk/resource/api300/c7000/storage_system.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/switch.rb +43 -0
- data/lib/oneview-sdk/resource/api300/c7000/unmanaged_device.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/uplink_set.rb +33 -0
- data/lib/oneview-sdk/resource/api300/c7000/user.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/version.rb +23 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_snapshot.rb +21 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_template.rb +32 -0
- data/lib/oneview-sdk/resource/api300/c7000/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api300/synergy/alerts.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb +71 -0
- data/lib/oneview-sdk/resource/api300/synergy/enclosure.rb +83 -0
- data/lib/oneview-sdk/resource/api300/synergy/enclosure_group.rb +40 -0
- data/lib/oneview-sdk/resource/api300/synergy/ethernet_network.rb +37 -0
- data/lib/oneview-sdk/resource/api300/synergy/event.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/fabric.rb +46 -0
- data/lib/oneview-sdk/resource/api300/synergy/fc_network.rb +39 -0
- data/lib/oneview-sdk/resource/api300/synergy/fcoe_network.rb +24 -0
- data/lib/oneview-sdk/resource/api300/synergy/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/interconnect.rb +53 -0
- data/lib/oneview-sdk/resource/api300/synergy/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_downlink.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_enclosure.rb +59 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect_group.rb +122 -0
- data/lib/oneview-sdk/resource/api300/synergy/login_detail.rb +23 -0
- data/lib/oneview-sdk/resource/api300/synergy/managed_san.rb +23 -0
- data/lib/oneview-sdk/resource/api300/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/os_deployment_plan.rb +41 -0
- data/lib/oneview-sdk/resource/api300/synergy/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb +87 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect.rb +103 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect_group.rb +87 -0
- data/lib/oneview-sdk/resource/api300/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_hardware.rb +30 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_hardware_type.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_profile.rb +88 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/storage_system.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/switch.rb +37 -0
- data/lib/oneview-sdk/resource/api300/synergy/unmanaged_device.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/uplink_set.rb +33 -0
- data/lib/oneview-sdk/resource/api300/synergy/user.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/version.rb +23 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_snapshot.rb +21 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_template.rb +32 -0
- data/lib/oneview-sdk/resource/api300/synergy/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500.rb +66 -0
- data/lib/oneview-sdk/resource/api500/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api500/c7000/alerts.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/enclosure.rb +57 -0
- data/lib/oneview-sdk/resource/api500/c7000/enclosure_group.rb +43 -0
- data/lib/oneview-sdk/resource/api500/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/event.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/fabric.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/fc_network.rb +24 -0
- data/lib/oneview-sdk/resource/api500/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api500/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/interconnect.rb +31 -0
- data/lib/oneview-sdk/resource/api500/c7000/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_downlink.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb +62 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_switch.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_switch_group.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/login_detail.rb +23 -0
- data/lib/oneview-sdk/resource/api500/c7000/managed_san.rb +32 -0
- data/lib/oneview-sdk/resource/api500/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api500/c7000/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api500/c7000/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/scope.rb +71 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_hardware.rb +42 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_profile.rb +81 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_profile_template.rb +108 -0
- data/lib/oneview-sdk/resource/api500/c7000/storage_pool.rb +116 -0
- data/lib/oneview-sdk/resource/api500/c7000/storage_system.rb +154 -0
- data/lib/oneview-sdk/resource/api500/c7000/switch.rb +29 -0
- data/lib/oneview-sdk/resource/api500/c7000/unmanaged_device.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/user.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/version.rb +23 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume.rb +221 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume_attachment.rb +45 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume_snapshot.rb +32 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume_template.rb +111 -0
- data/lib/oneview-sdk/resource/api500/c7000/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api500/synergy/alerts.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/drive_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/enclosure.rb +57 -0
- data/lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb +49 -0
- data/lib/oneview-sdk/resource/api500/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/event.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/fabric.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/fc_network.rb +24 -0
- data/lib/oneview-sdk/resource/api500/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api500/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/interconnect.rb +38 -0
- data/lib/oneview-sdk/resource/api500/synergy/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_downlink.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_enclosure.rb +39 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/login_detail.rb +23 -0
- data/lib/oneview-sdk/resource/api500/synergy/managed_san.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api500/synergy/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api500/synergy/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/sas_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api500/synergy/server_profile_template.rb +36 -0
- data/lib/oneview-sdk/resource/api500/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/switch.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/unmanaged_device.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/user.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/version.rb +23 -0
- data/lib/oneview-sdk/resource/api500/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/volume_snapshot.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api600.rb +66 -0
- data/lib/oneview-sdk/resource/api600/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api600/c7000/alerts.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/enclosure.rb +71 -0
- data/lib/oneview-sdk/resource/api600/c7000/enclosure_group.rb +39 -0
- data/lib/oneview-sdk/resource/api600/c7000/ethernet_network.rb +47 -0
- data/lib/oneview-sdk/resource/api600/c7000/event.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/fabric.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/fc_network.rb +35 -0
- data/lib/oneview-sdk/resource/api600/c7000/fcoe_network.rb +33 -0
- data/lib/oneview-sdk/resource/api600/c7000/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api600/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/interconnect.rb +34 -0
- data/lib/oneview-sdk/resource/api600/c7000/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api600/c7000/logical_downlink.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/logical_interconnect.rb +39 -0
- data/lib/oneview-sdk/resource/api600/c7000/logical_interconnect_group.rb +33 -0
- data/lib/oneview-sdk/resource/api600/c7000/logical_switch.rb +32 -0
- data/lib/oneview-sdk/resource/api600/c7000/logical_switch_group.rb +32 -0
- data/lib/oneview-sdk/resource/api600/c7000/login_detail.rb +23 -0
- data/lib/oneview-sdk/resource/api600/c7000/managed_san.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/network_set.rb +32 -0
- data/lib/oneview-sdk/resource/api600/c7000/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api600/c7000/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api600/c7000/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/scope.rb +103 -0
- data/lib/oneview-sdk/resource/api600/c7000/server_certificate.rb +63 -0
- data/lib/oneview-sdk/resource/api600/c7000/server_hardware.rb +44 -0
- data/lib/oneview-sdk/resource/api600/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/server_profile.rb +82 -0
- data/lib/oneview-sdk/resource/api600/c7000/server_profile_template.rb +49 -0
- data/lib/oneview-sdk/resource/api600/c7000/storage_pool.rb +32 -0
- data/lib/oneview-sdk/resource/api600/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/switch.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/unmanaged_device.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/uplink_set.rb +33 -0
- data/lib/oneview-sdk/resource/api600/c7000/user.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/version.rb +23 -0
- data/lib/oneview-sdk/resource/api600/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/volume_attachment.rb +45 -0
- data/lib/oneview-sdk/resource/api600/c7000/volume_snapshot.rb +32 -0
- data/lib/oneview-sdk/resource/api600/c7000/volume_template.rb +34 -0
- data/lib/oneview-sdk/resource/api600/c7000/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api600/synergy/alerts.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/datacenter.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/drive_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/enclosure.rb +71 -0
- data/lib/oneview-sdk/resource/api600/synergy/enclosure_group.rb +41 -0
- data/lib/oneview-sdk/resource/api600/synergy/ethernet_network.rb +47 -0
- data/lib/oneview-sdk/resource/api600/synergy/event.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/fabric.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/fc_network.rb +35 -0
- data/lib/oneview-sdk/resource/api600/synergy/fcoe_network.rb +33 -0
- data/lib/oneview-sdk/resource/api600/synergy/firmware_bundle.rb +21 -0
- data/lib/oneview-sdk/resource/api600/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/interconnect.rb +38 -0
- data/lib/oneview-sdk/resource/api600/synergy/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api600/synergy/logical_downlink.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/logical_interconnect.rb +39 -0
- data/lib/oneview-sdk/resource/api600/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/login_detail.rb +23 -0
- data/lib/oneview-sdk/resource/api600/synergy/managed_san.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/power_device.rb +21 -0
- data/lib/oneview-sdk/resource/api600/synergy/rack.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/resource.rb +21 -0
- data/lib/oneview-sdk/resource/api600/synergy/san_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/sas_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/sas_logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/sas_logical_interconnect_group.rb +33 -0
- data/lib/oneview-sdk/resource/api600/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/server_hardware.rb +33 -0
- data/lib/oneview-sdk/resource/api600/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api600/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/switch.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/unmanaged_device.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/uplink_set.rb +33 -0
- data/lib/oneview-sdk/resource/api600/synergy/user.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/version.rb +23 -0
- data/lib/oneview-sdk/resource/api600/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/volume_snapshot.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api600/synergy/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api800.rb +66 -0
- data/lib/oneview-sdk/resource/api800/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api800/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/fcoe_network.rb +23 -0
- data/lib/oneview-sdk/resource/api800/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/hypervisor_cluster_profile.rb +39 -0
- data/lib/oneview-sdk/resource/api800/c7000/hypervisor_manager.rb +33 -0
- data/lib/oneview-sdk/resource/api800/c7000/interconnect.rb +23 -0
- data/lib/oneview-sdk/resource/api800/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api800/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api800/c7000/logical_interconnect_group.rb +32 -0
- data/lib/oneview-sdk/resource/api800/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/server_hardware_type.rb +32 -0
- data/lib/oneview-sdk/resource/api800/c7000/server_profile.rb +32 -0
- data/lib/oneview-sdk/resource/api800/c7000/server_profile_template.rb +33 -0
- data/lib/oneview-sdk/resource/api800/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api800/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api800/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/logical_interconnect.rb +32 -0
- data/lib/oneview-sdk/resource/api800/synergy/logical_interconnect_group.rb +33 -0
- data/lib/oneview-sdk/resource/api800/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/sas_logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api800/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource_helper.rb +44 -0
- data/lib/oneview-sdk/rest.rb +292 -0
- data/lib/oneview-sdk/scmb.rb +71 -0
- data/lib/oneview-sdk/ssl_helper.rb +87 -0
- data/lib/oneview-sdk/version.rb +15 -0
- data/oneview-sdk.gemspec +48 -0
- metadata +1012 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative 'resource'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API200
|
16
|
+
# Switch resource implementation
|
17
|
+
class Switch < Resource
|
18
|
+
BASE_URI = '/rest/switches'.freeze
|
19
|
+
TYPE_URI = '/rest/switch-types'.freeze
|
20
|
+
UNIQUE_IDENTIFIERS = %w[name uri serialNumber].freeze
|
21
|
+
|
22
|
+
# Remove resource from OneView
|
23
|
+
# @return [true] if resource was removed successfully
|
24
|
+
alias remove delete
|
25
|
+
|
26
|
+
# Method is not available
|
27
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
28
|
+
def create(*)
|
29
|
+
unavailable_method
|
30
|
+
end
|
31
|
+
|
32
|
+
# Method is not available
|
33
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
34
|
+
def update(*)
|
35
|
+
unavailable_method
|
36
|
+
end
|
37
|
+
|
38
|
+
# Method is not available
|
39
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
40
|
+
def refresh(*)
|
41
|
+
unavailable_method
|
42
|
+
end
|
43
|
+
|
44
|
+
# Method is not available
|
45
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
46
|
+
def delete(*)
|
47
|
+
unavailable_method
|
48
|
+
end
|
49
|
+
|
50
|
+
# Retrieves the switch types
|
51
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
52
|
+
# @return [Array] All the Switch types
|
53
|
+
def self.get_types(client)
|
54
|
+
response = client.rest_get(TYPE_URI)
|
55
|
+
response = client.response_handler(response)
|
56
|
+
response['members']
|
57
|
+
end
|
58
|
+
|
59
|
+
# Retrieves the switch type with the name
|
60
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
61
|
+
# @param [String] name Switch type name
|
62
|
+
# @return [Array] Switch type
|
63
|
+
def self.get_type(client, name)
|
64
|
+
results = get_types(client)
|
65
|
+
results.find { |switch_type| switch_type['name'] == name }
|
66
|
+
end
|
67
|
+
|
68
|
+
# Get statistics for a switch or for the specified port.
|
69
|
+
# @param [String] port_name port to retrieve statistics
|
70
|
+
# @return [Hash] Switch statistics
|
71
|
+
def statistics(port_name = nil)
|
72
|
+
response = @client.rest_get("#{@data['uri']}/statistics/#{port_name}")
|
73
|
+
response.body
|
74
|
+
end
|
75
|
+
|
76
|
+
# Get settings that describe the environmental configuration
|
77
|
+
# @return [Hash] Configuration parameters
|
78
|
+
def environmental_configuration
|
79
|
+
ensure_client && ensure_uri
|
80
|
+
response = @client.rest_get(@data['uri'] + '/environmentalConfiguration', {}, @api_version)
|
81
|
+
@client.response_handler(response)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative 'resource'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API200
|
16
|
+
# Unmanaged Device resource implementation
|
17
|
+
class UnmanagedDevice < Resource
|
18
|
+
BASE_URI = '/rest/unmanaged-devices'.freeze
|
19
|
+
|
20
|
+
# Add the resource on OneView using the current data
|
21
|
+
# @note Calls the refresh method to set additional data
|
22
|
+
# @raise [OneviewSDK::IncompleteResource] if the client is not set
|
23
|
+
# @raise [StandardError] if the resource creation fails
|
24
|
+
# @return [OneviewSDK::UnmanagedDevice] self
|
25
|
+
alias add create
|
26
|
+
|
27
|
+
# Remove resource from OneView
|
28
|
+
# @return [true] if resource was removed successfully
|
29
|
+
alias remove delete
|
30
|
+
|
31
|
+
# Method is not available
|
32
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
33
|
+
def create(*)
|
34
|
+
unavailable_method
|
35
|
+
end
|
36
|
+
|
37
|
+
# Method is not available
|
38
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
39
|
+
def delete(*)
|
40
|
+
unavailable_method
|
41
|
+
end
|
42
|
+
|
43
|
+
# Gets a list of unmanaged devices
|
44
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
45
|
+
# @return [Array] list of unmanaged devices
|
46
|
+
def self.get_devices(client)
|
47
|
+
response = client.rest_get(BASE_URI)
|
48
|
+
client.response_handler(response)['members']
|
49
|
+
end
|
50
|
+
|
51
|
+
# Get settings that describe the environmental configuration
|
52
|
+
def environmental_configuration
|
53
|
+
ensure_client && ensure_uri
|
54
|
+
response = @client.rest_get(@data['uri'] + '/environmentalConfiguration')
|
55
|
+
@client.response_handler(response)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative 'resource'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API200
|
16
|
+
# Uplink set resource implementation
|
17
|
+
class UplinkSet < Resource
|
18
|
+
BASE_URI = '/rest/uplink-sets'.freeze
|
19
|
+
|
20
|
+
# Create a resource object, associate it with a client, and set its properties.
|
21
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
22
|
+
# @param [Hash] params The options for this resource (key-value pairs)
|
23
|
+
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
24
|
+
def initialize(client, params = {}, api_ver = nil)
|
25
|
+
super
|
26
|
+
# Default values
|
27
|
+
@data['fcNetworkUris'] ||= []
|
28
|
+
@data['fcoeNetworkUris'] ||= []
|
29
|
+
@data['networkUris'] ||= []
|
30
|
+
@data['portConfigInfos'] ||= []
|
31
|
+
@data['primaryPortLocation'] = nil
|
32
|
+
@data['type'] ||= 'uplink-setV3'
|
33
|
+
end
|
34
|
+
|
35
|
+
# Adds the portConfigInfos to the array
|
36
|
+
# @param [String] portUri
|
37
|
+
# @param [String] speed
|
38
|
+
# @param [Hash] locationEntries
|
39
|
+
def add_port_config(portUri, speed, locationEntries)
|
40
|
+
entry = {
|
41
|
+
'portUri' => portUri,
|
42
|
+
'desiredSpeed' => speed,
|
43
|
+
'location' => {
|
44
|
+
'locationEntries' => locationEntries
|
45
|
+
}
|
46
|
+
}
|
47
|
+
@data['portConfigInfos'] << entry
|
48
|
+
end
|
49
|
+
|
50
|
+
# Sets the logical interconnect uri
|
51
|
+
# @param [OneviewSDK::LogicalInterconnect, Hash] logical_interconnect
|
52
|
+
def set_logical_interconnect(logical_interconnect)
|
53
|
+
uri = logical_interconnect[:uri] || logical_interconnect['uri']
|
54
|
+
raise IncompleteResource, 'Invalid object' unless uri
|
55
|
+
@data['logicalInterconnectUri'] = uri
|
56
|
+
end
|
57
|
+
|
58
|
+
# Adds an ethernet network to the uplink set
|
59
|
+
# @param [OneviewSDK::EthernetNetwork, Hash] network
|
60
|
+
def add_network(network)
|
61
|
+
uri = network[:uri] || network['uri']
|
62
|
+
raise IncompleteResource, 'Must set network uri attribute' unless uri
|
63
|
+
@data['networkUris'].push(uri)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Adds an fc network to the uplink set
|
67
|
+
# @param [OneviewSDK::FCNetwork, Hash] network must accept hash syntax
|
68
|
+
def add_fcnetwork(network)
|
69
|
+
uri = network[:uri] || network['uri']
|
70
|
+
raise IncompleteResource, 'Must set network uri attribute' unless uri
|
71
|
+
@data['fcNetworkUris'].push(uri)
|
72
|
+
end
|
73
|
+
|
74
|
+
# Adds an fcoe network to the uplink set
|
75
|
+
# @param [OneviewSDK::FCoENetwork, Hash] network must accept hash syntax
|
76
|
+
def add_fcoenetwork(network)
|
77
|
+
uri = network[:uri] || network['uri']
|
78
|
+
raise IncompleteResource, 'Must set network uri attribute' unless uri
|
79
|
+
@data['fcoeNetworkUris'].push(uri)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Gets the unassigned uplink ports
|
83
|
+
# @return [Array] List of unassigned uplink-ports
|
84
|
+
def get_unassigned_ports
|
85
|
+
ensure_client && ensure_uri
|
86
|
+
response = @client.rest_post(BASE_URI + '/unassignedUplinkPorts', { 'body' => @data }, @api_version)
|
87
|
+
result = @client.response_handler(response)
|
88
|
+
result['members']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# (c) Copyright 2017 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative 'resource'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API200
|
16
|
+
# User resource implementation
|
17
|
+
class User < Resource
|
18
|
+
BASE_URI = '/rest/users'.freeze
|
19
|
+
UNIQUE_IDENTIFIERS = %w[userName uri].freeze
|
20
|
+
|
21
|
+
# Create a resource object, associate it with a client, and set its properties.
|
22
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
23
|
+
# @param [Hash] params The options for this resource (key-value pairs)
|
24
|
+
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
25
|
+
def initialize(client, params = {}, api_ver = nil)
|
26
|
+
super
|
27
|
+
# Default values:
|
28
|
+
@data['type'] ||= 'UserAndRoles'
|
29
|
+
@data['enabled'] ||= true
|
30
|
+
@data['roles'] ||= ['Read only']
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create the resource on OneView using the current data
|
34
|
+
# @note Calls the refresh method to set additional data
|
35
|
+
# @note Removes the password attribute after creation
|
36
|
+
# @param [Hash] header The header options for the request (key-value pairs)
|
37
|
+
# @raise [OneviewSDK::IncompleteResource] if the client is not set
|
38
|
+
# @raise [StandardError] if the resource creation fails
|
39
|
+
# @return [Resource] self
|
40
|
+
def create(header = {})
|
41
|
+
ensure_client
|
42
|
+
response = @client.rest_post(BASE_URI, DEFAULT_REQUEST_HEADER.merge(header).merge('body' => @data), @api_version)
|
43
|
+
body = @client.response_handler(response)
|
44
|
+
@data.delete('password')
|
45
|
+
set_all(body)
|
46
|
+
self
|
47
|
+
end
|
48
|
+
|
49
|
+
# Set data and save to OneView
|
50
|
+
# @param [Hash] attributes The attributes to add/change for this resource (key-value pairs)
|
51
|
+
# @raise [OneviewSDK::IncompleteResource] if the client or uri is not set
|
52
|
+
# @raise [StandardError] if the resource save fails
|
53
|
+
# @return [Resource] self
|
54
|
+
def update(attributes = {})
|
55
|
+
set_all(attributes)
|
56
|
+
ensure_client && ensure_uri
|
57
|
+
new_data = @data.reject { |k, _v| k.to_s == 'roles' } # This cannot be updated here. It is updated below
|
58
|
+
response = @client.rest_put(self.class::BASE_URI, { 'body' => new_data }, @api_version)
|
59
|
+
d = @client.response_handler(response)
|
60
|
+
set_roles(@data['roles']) if @data['roles'] && @data['roles'].sort != d['roles'].sort
|
61
|
+
self
|
62
|
+
end
|
63
|
+
|
64
|
+
# Set data and save to OneView
|
65
|
+
# @param [Array] roles The names of the roles to set for this user
|
66
|
+
# @raise [OneviewSDK::IncompleteResource] if the client or uri is not set
|
67
|
+
# @raise [StandardError] if setting the role fails
|
68
|
+
# @return [Resource] self
|
69
|
+
def set_roles(roles)
|
70
|
+
ensure_client && ensure_uri
|
71
|
+
data = roles.map { |r| { roleName: r, type: 'RoleNameDtoV2' } }
|
72
|
+
response = @client.rest_put("#{@data['uri']}/roles?multiResource=true", { 'body' => data }, @api_version)
|
73
|
+
r = @client.response_handler(response)
|
74
|
+
new_roles = r.map { |i| i['roleName'] }
|
75
|
+
set('roles', new_roles)
|
76
|
+
self
|
77
|
+
end
|
78
|
+
|
79
|
+
# Validates the existence of a user with the given user name in the appliance.
|
80
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
81
|
+
# @param [String] user_name The user name to validate
|
82
|
+
# @return [Boolean] return true if the user already exists
|
83
|
+
def self.validate_user_name(client, user_name)
|
84
|
+
response = client.rest_post("#{BASE_URI}/validateLoginName/#{user_name}")
|
85
|
+
client.response_handler(response)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks for the existence of a user with the specified full name in the appliance.
|
89
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
90
|
+
# @param [String] full_name The full name to validate
|
91
|
+
# @return [Boolean] return true if the user already exists
|
92
|
+
def self.validate_full_name(client, full_name)
|
93
|
+
response = client.rest_post("#{BASE_URI}/validateUserName/#{full_name}")
|
94
|
+
client.response_handler(response)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# (C) Copyright 2017 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
module OneviewSDK
|
13
|
+
module API200
|
14
|
+
# Version resource implementation
|
15
|
+
class Version
|
16
|
+
BASE_URI = '/rest/version'.freeze
|
17
|
+
|
18
|
+
# Get current and minimum version
|
19
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
20
|
+
# @return [Hash] Version
|
21
|
+
def self.get_version(client)
|
22
|
+
response = client.rest_get(BASE_URI)
|
23
|
+
client.response_handler(response)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,191 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative 'resource'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API200
|
16
|
+
# Volume resource implementation
|
17
|
+
class Volume < Resource
|
18
|
+
BASE_URI = '/rest/storage-volumes'.freeze
|
19
|
+
|
20
|
+
# It's possible to create the volume in 6 different ways:
|
21
|
+
# 1) Common = Storage System + Storage Pool
|
22
|
+
# 2) Template = Storage Volume Template
|
23
|
+
# 3) Common with snapshots = Storage System + Storage Pool + Snapshot Pool
|
24
|
+
# 4) Management = Storage System + wwn
|
25
|
+
# 5) Management by name = Storage System + Storage System Volume Name
|
26
|
+
# 6) Snapshot = Snapshot Pool + Storage Pool + Snapshot
|
27
|
+
|
28
|
+
# Creates the volume
|
29
|
+
# @note provisioning parameters are required for creation, but not afterwards; after creation, they will be removed.
|
30
|
+
# @param [Hash] header The header options for the request (key-value pairs)
|
31
|
+
# @raise [OneviewSDK::IncompleteResource] if the client is not set
|
32
|
+
# @raise [StandardError] if the resource creation fails
|
33
|
+
# @return [Resource] self
|
34
|
+
def create(header = {})
|
35
|
+
super(DEFAULT_REQUEST_HEADER.merge(header))
|
36
|
+
@data.delete('provisioningParameters')
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
# Delete the resource from OneView if it exists, then create it using the current data
|
41
|
+
# @note Calls refresh method to set additional data
|
42
|
+
# @param [Hash] header The header options for the request (key-value pairs)
|
43
|
+
# @raise [OneviewSDK::IncompleteResource] if the client is not set
|
44
|
+
# @raise [StandardError] if the resource creation fails
|
45
|
+
# @return [Resource] self
|
46
|
+
def create!(header = {})
|
47
|
+
temp = self.class.new(@client, @data)
|
48
|
+
header = DEFAULT_REQUEST_HEADER.merge(header)
|
49
|
+
temp.delete(:all, header) if temp.retrieve!(header)
|
50
|
+
create(header)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Update resource attributes
|
54
|
+
# @param [Hash] attributes attributes to be updated
|
55
|
+
# @return [OneviewSDK::Volume] self
|
56
|
+
def update(attributes = {})
|
57
|
+
@data.delete('provisioningParameters')
|
58
|
+
super
|
59
|
+
end
|
60
|
+
|
61
|
+
# Deletes the resource from OneView or from Oneview and storage system
|
62
|
+
# @param [Symbol] flag Delete storage system from Oneview only or in storage system as well
|
63
|
+
# @param [Hash] header The header options for the request (key-value pairs)
|
64
|
+
# @return [true] if resource was deleted successfully
|
65
|
+
def delete(flag = :all, header = {})
|
66
|
+
ensure_client && ensure_uri
|
67
|
+
raise InvalidResource, 'Invalid flag value, use :oneview or :all' unless %i[oneview all].include?(flag)
|
68
|
+
header = DEFAULT_REQUEST_HEADER.merge(header).merge('exportOnly' => true) if flag == :oneview
|
69
|
+
super(header)
|
70
|
+
end
|
71
|
+
|
72
|
+
# Sets the storage system to the volume
|
73
|
+
# @param [OneviewSDK::StorageSystem] storage_system Storage System
|
74
|
+
# @note The storageSystemUri attribute should not be set in the updated. Once created, this attribute is read only.
|
75
|
+
def set_storage_system(storage_system)
|
76
|
+
assure_uri(storage_system)
|
77
|
+
set('storageSystemUri', storage_system['uri'])
|
78
|
+
end
|
79
|
+
|
80
|
+
# Sets the storage pool to the volume
|
81
|
+
# @note The storagePoolUri attribute should not be set in the updated. Once created, this attribute is read only.
|
82
|
+
# @param [OneviewSDK::StoragePool] storage_pool Storage pool
|
83
|
+
def set_storage_pool(storage_pool)
|
84
|
+
assure_uri(storage_pool)
|
85
|
+
self['provisioningParameters'] ||= {}
|
86
|
+
self['provisioningParameters']['storagePoolUri'] = storage_pool['uri']
|
87
|
+
end
|
88
|
+
|
89
|
+
# Adds the storage volume template to the volume
|
90
|
+
# @param [OneviewSDK::VolumeTemplate] storage_volume_template Storage Volume Template
|
91
|
+
def set_storage_volume_template(storage_volume_template)
|
92
|
+
assure_uri(storage_volume_template)
|
93
|
+
set('templateUri', storage_volume_template['uri'])
|
94
|
+
end
|
95
|
+
|
96
|
+
# Sets the snapshot pool to the volume
|
97
|
+
# @param [OneviewSDK::StoragePool] storage_pool Storage Pool to use for snapshots
|
98
|
+
def set_snapshot_pool(storage_pool)
|
99
|
+
assure_uri(storage_pool)
|
100
|
+
set('snapshotPoolUri', storage_pool['uri'])
|
101
|
+
end
|
102
|
+
|
103
|
+
# Creates a snapshot of the volume
|
104
|
+
# @param [String, OneviewSDK::VolumeSnapshot] snapshot String or OneviewSDK::VolumeSnapshot object
|
105
|
+
# @param [String] description Provide a description
|
106
|
+
# @return [true] if snapshot was created successfully
|
107
|
+
def create_snapshot(snapshot, description = nil)
|
108
|
+
ensure_uri && ensure_client
|
109
|
+
if snapshot.is_a?(OneviewSDK::Resource) || snapshot.is_a?(Hash)
|
110
|
+
name = snapshot[:name] || snapshot['name']
|
111
|
+
description ||= snapshot[:description] || snapshot['description']
|
112
|
+
else
|
113
|
+
name = snapshot
|
114
|
+
end
|
115
|
+
data = generate_snapshot_data(name, description)
|
116
|
+
response = @client.rest_post("#{@data['uri']}/snapshots", { 'body' => data }, @api_version)
|
117
|
+
@client.response_handler(response)
|
118
|
+
true
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deletes a snapshot of the volume
|
122
|
+
# @param [String] name snapshot name
|
123
|
+
# @return [true] if snapshot was created successfully
|
124
|
+
def delete_snapshot(name)
|
125
|
+
result = get_snapshot(name)
|
126
|
+
response = @client.rest_delete(result['uri'], { 'If-Match' => result['eTag'] }, @api_version)
|
127
|
+
@client.response_handler(response)
|
128
|
+
true
|
129
|
+
end
|
130
|
+
|
131
|
+
# Retrieves a snapshot by name
|
132
|
+
# @param [String] name
|
133
|
+
# @return [Hash] snapshot data
|
134
|
+
def get_snapshot(name)
|
135
|
+
results = get_snapshots
|
136
|
+
results.find { |snap| snap['name'] == name }
|
137
|
+
end
|
138
|
+
|
139
|
+
# Gets all the snapshots of this volume
|
140
|
+
# @return [Array] Array of snapshots
|
141
|
+
def get_snapshots
|
142
|
+
ensure_uri && ensure_client
|
143
|
+
uri = "#{@data['uri']}/snapshots"
|
144
|
+
self.class.find_with_pagination(@client, uri)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Gets all the attachable volumes managed by the appliance
|
148
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
149
|
+
# @return [Array<OneviewSDK::Volume>] Array of volumes
|
150
|
+
def self.get_attachable_volumes(client, query = nil)
|
151
|
+
query_uri = build_query(query) if query
|
152
|
+
uri = "#{BASE_URI}/attachable-volumes#{query_uri}"
|
153
|
+
find_by(client, {}, uri)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Gets the list of extra managed storage volume paths
|
157
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
158
|
+
# @return response
|
159
|
+
def self.get_extra_managed_volume_paths(client)
|
160
|
+
response = client.rest_get(BASE_URI + '/repair?alertFixType=ExtraManagedStorageVolumePaths')
|
161
|
+
client.response_handler(response)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Removes extra presentation from the volume
|
165
|
+
# @return response
|
166
|
+
def repair
|
167
|
+
response = client.rest_post(BASE_URI + '/repair', 'body' => { resourceUri: @data['uri'], type: 'ExtraManagedStorageVolumePaths' })
|
168
|
+
client.response_handler(response)
|
169
|
+
end
|
170
|
+
|
171
|
+
private
|
172
|
+
|
173
|
+
# Verify if the resource has a URI
|
174
|
+
# If not, first it tries to retrieve, and then verify for its existence
|
175
|
+
# @param [OneviewSDK::Resource] resource The resource object
|
176
|
+
# @raise [OneviewSDK::IncompleteResource] if the resource not found
|
177
|
+
def assure_uri(resource)
|
178
|
+
resource.retrieve! unless resource['uri']
|
179
|
+
raise IncompleteResource, "#{resource.class}: #{resource['name']} not found" unless resource['uri']
|
180
|
+
end
|
181
|
+
|
182
|
+
# Generates the snapshot data
|
183
|
+
# @param [String] name The name of the snapshot
|
184
|
+
# @param [String] description The description of the snapshot
|
185
|
+
# @return [Hash] snapshot data
|
186
|
+
def generate_snapshot_data(name, description = nil)
|
187
|
+
{ type: 'Snapshot', description: description, name: name }
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|