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,250 @@
|
|
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
|
+
# Server hardware resource implementation
|
17
|
+
class ServerHardware < Resource
|
18
|
+
BASE_URI = '/rest/server-hardware'.freeze
|
19
|
+
UNIQUE_IDENTIFIERS = %w[name uri serialNumber virtualSerialNumber serverProfileUri].freeze
|
20
|
+
|
21
|
+
# Remove resource from OneView
|
22
|
+
# @return [true] if resource was removed successfully
|
23
|
+
alias remove delete
|
24
|
+
|
25
|
+
# Create a resource object, associate it with a client, and set its properties.
|
26
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
27
|
+
# @param [Hash] params The options for this resource (key-value pairs)
|
28
|
+
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
29
|
+
def initialize(client, params = {}, api_ver = nil)
|
30
|
+
super
|
31
|
+
# Default values
|
32
|
+
@data['type'] ||= 'server-hardware-4'
|
33
|
+
end
|
34
|
+
|
35
|
+
# Method is not available
|
36
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
37
|
+
def create!(*)
|
38
|
+
unavailable_method
|
39
|
+
end
|
40
|
+
|
41
|
+
# Retrieve resource details based on this resource's name or URI.
|
42
|
+
# @note one of the UNIQUE_IDENTIFIERS must be specified in the resource
|
43
|
+
# @return [Boolean] Whether or not retrieve was successful
|
44
|
+
def retrieve!
|
45
|
+
hostname = @data['hostname'] || @data['mpHostInfo']['mpHostName'] rescue nil
|
46
|
+
if hostname
|
47
|
+
results = self.class.find_by(@client, 'mpHostInfo' => { 'mpHostName' => hostname })
|
48
|
+
if results.size == 1
|
49
|
+
set_all(results[0].data)
|
50
|
+
return true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
super
|
54
|
+
rescue IncompleteResource => e
|
55
|
+
raise e unless hostname
|
56
|
+
false
|
57
|
+
end
|
58
|
+
|
59
|
+
# Check if a resource exists
|
60
|
+
# @note one of the UNIQUE_IDENTIFIERS must be specified in the resource
|
61
|
+
# @return [Boolean] Whether or not resource exists
|
62
|
+
def exists?
|
63
|
+
hostname = @data['hostname'] || @data['mpHostInfo']['mpHostName'] rescue nil
|
64
|
+
return true if hostname && self.class.find_by(@client, 'mpHostInfo' => { 'mpHostName' => hostname }).size == 1
|
65
|
+
super
|
66
|
+
rescue IncompleteResource => e
|
67
|
+
raise e unless hostname
|
68
|
+
false
|
69
|
+
end
|
70
|
+
|
71
|
+
# Method is not available
|
72
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
73
|
+
def create(*)
|
74
|
+
unavailable_method
|
75
|
+
end
|
76
|
+
|
77
|
+
# Method is not available
|
78
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
79
|
+
def delete(*)
|
80
|
+
unavailable_method
|
81
|
+
end
|
82
|
+
|
83
|
+
# Adds the resource on OneView using the current data
|
84
|
+
# @raise [OneviewSDK::IncompleteResource] if the client is not set or required attributes are missing
|
85
|
+
# @return [OneviewSDK::ServerHardware] self
|
86
|
+
def add
|
87
|
+
ensure_client
|
88
|
+
required_attributes = %w[hostname username password licensingIntent]
|
89
|
+
required_attributes.each { |k| raise IncompleteResource, "Missing required attribute: '#{k}'" unless @data.key?(k) }
|
90
|
+
|
91
|
+
optional_attrs = %w[configurationState force restore]
|
92
|
+
temp_data = @data.select { |k, _v| required_attributes.include?(k) || optional_attrs.include?(k) }
|
93
|
+
response = @client.rest_post(self.class::BASE_URI, { 'body' => temp_data }, @api_version)
|
94
|
+
body = @client.response_handler(response)
|
95
|
+
set_all(body)
|
96
|
+
%w[username password hostname].each { |k| @data.delete(k) } # These are no longer needed
|
97
|
+
self
|
98
|
+
end
|
99
|
+
|
100
|
+
# Method is not available
|
101
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
102
|
+
def update(*)
|
103
|
+
unavailable_method
|
104
|
+
end
|
105
|
+
|
106
|
+
# Power on the server hardware
|
107
|
+
# @param [Boolean] force Use 'PressAndHold' action?
|
108
|
+
# @return [Boolean] Returns whether or not the server was powered on
|
109
|
+
def power_on(force = false)
|
110
|
+
set_power_state('on', force)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Power off the server hardware
|
114
|
+
# @param [Boolean] force Use 'PressAndHold' action?
|
115
|
+
# @return [Boolean] Returns whether or not the server was powered off
|
116
|
+
def power_off(force = false)
|
117
|
+
set_power_state('off', force)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Gets a list of BIOS/UEFI values on the physical server
|
121
|
+
# @return [Hash] List with BIOS/UEFI settings
|
122
|
+
def get_bios
|
123
|
+
response = @client.rest_get(@data['uri'] + '/bios')
|
124
|
+
@client.response_handler(response)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Gets a url to the iLO web interface
|
128
|
+
# @return [Hash] url
|
129
|
+
def get_ilo_sso_url
|
130
|
+
response = @client.rest_get(@data['uri'] + '/iloSsoUrl')
|
131
|
+
@client.response_handler(response)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Gets a Single Sign-On session for the Java Applet console
|
135
|
+
# @return [Hash] url
|
136
|
+
def get_java_remote_sso_url
|
137
|
+
response = @client.rest_get(@data['uri'] + '/javaRemoteConsoleUrl')
|
138
|
+
@client.response_handler(response)
|
139
|
+
end
|
140
|
+
|
141
|
+
# Gets a url to the iLO web interface
|
142
|
+
# @return [Hash] url
|
143
|
+
def get_remote_console_url
|
144
|
+
response = @client.rest_get(@data['uri'] + '/remoteConsoleUrl')
|
145
|
+
@client.response_handler(response)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Refreshes the enclosure along with all of its components
|
149
|
+
# @param [String] state NotRefreshing, RefreshFailed, RefreshPending, Refreshing
|
150
|
+
# @param [Hash] options Optional force fields for refreshing the enclosure
|
151
|
+
def set_refresh_state(state, options = {})
|
152
|
+
ensure_client && ensure_uri
|
153
|
+
s = state.to_s rescue state
|
154
|
+
requestBody = {
|
155
|
+
'body' => {
|
156
|
+
refreshState: s
|
157
|
+
}
|
158
|
+
}
|
159
|
+
requestBody['body'].merge(options)
|
160
|
+
response = @client.rest_put(@data['uri'] + '/refreshState', requestBody, @api_version)
|
161
|
+
new_data = @client.response_handler(response)
|
162
|
+
set_all(new_data)
|
163
|
+
end
|
164
|
+
|
165
|
+
# Updates the iLO firmware on a physical server to a minimum iLO firmware required by OneView
|
166
|
+
def update_ilo_firmware
|
167
|
+
response = @client.rest_put(@data['uri'] + '/mpFirmwareVersion')
|
168
|
+
@client.response_handler(response)
|
169
|
+
end
|
170
|
+
|
171
|
+
# Gets the settings that describe the environmental configuration
|
172
|
+
def environmental_configuration
|
173
|
+
ensure_client && ensure_uri
|
174
|
+
response = @client.rest_get(@data['uri'] + '/environmentalConfiguration', {}, @api_version)
|
175
|
+
@client.response_handler(response)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Retrieves historical utilization
|
179
|
+
# @param [Hash] queryParameters query parameters (ie :startDate, :endDate, :fields, :view, etc.)
|
180
|
+
# @option queryParameters [Array] :fields
|
181
|
+
# @option queryParameters [Time, Date, String] :startDate
|
182
|
+
# @option queryParameters [Time, Date, String] :endDate
|
183
|
+
def utilization(queryParameters = {})
|
184
|
+
ensure_client && ensure_uri
|
185
|
+
uri = "#{@data['uri']}/utilization?"
|
186
|
+
|
187
|
+
queryParameters[:endDate] = convert_time(queryParameters[:endDate])
|
188
|
+
queryParameters[:startDate] = convert_time(queryParameters[:startDate])
|
189
|
+
|
190
|
+
queryParameters.each do |key, value|
|
191
|
+
next if value.nil?
|
192
|
+
uri += case key.to_sym
|
193
|
+
when :fields
|
194
|
+
"fields=#{value.join(',')}"
|
195
|
+
when :startDate, :endDate
|
196
|
+
"filter=#{key}=#{value}"
|
197
|
+
else
|
198
|
+
"#{key}=#{value}"
|
199
|
+
end
|
200
|
+
uri += '&'
|
201
|
+
end
|
202
|
+
uri.chop! # Get rid of trailing '&' or '?'
|
203
|
+
response = @client.rest_get(uri, {}, @api_version)
|
204
|
+
@client.response_handler(response)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Set power state. Takes into consideration the current state and does the right thing
|
208
|
+
def set_power_state(state, force)
|
209
|
+
refresh
|
210
|
+
return true if @data['powerState'].downcase == state
|
211
|
+
@logger.debug "Powering #{state} server hardware '#{@data['name']}'. Current state: '#{@data['powerState']}'"
|
212
|
+
|
213
|
+
action = 'PressAndHold' if force
|
214
|
+
action ||= case @data['powerState'].downcase
|
215
|
+
when 'poweringon', 'poweringoff' # Wait
|
216
|
+
sleep 5
|
217
|
+
return set_power_state(state, force)
|
218
|
+
when 'resetting'
|
219
|
+
if state == 'on' # Wait
|
220
|
+
sleep 5
|
221
|
+
return set_power_state(state, force)
|
222
|
+
end
|
223
|
+
'PressAndHold'
|
224
|
+
when 'unknown' then state == 'on' ? 'ColdBoot' : 'PressAndHold'
|
225
|
+
else 'MomentaryPress'
|
226
|
+
end
|
227
|
+
options = { 'body' => { powerState: state.capitalize, powerControl: action } }
|
228
|
+
response = @client.rest_put("#{@data['uri']}/powerState", options)
|
229
|
+
body = @client.response_handler(response)
|
230
|
+
set_all(body)
|
231
|
+
true
|
232
|
+
end
|
233
|
+
|
234
|
+
private
|
235
|
+
|
236
|
+
# Converts Date, Time, or String objects to iso8601 string
|
237
|
+
def convert_time(t)
|
238
|
+
case t
|
239
|
+
when nil then nil
|
240
|
+
when Date then t.to_time.utc.iso8601(3)
|
241
|
+
when Time then t.utc.iso8601(3)
|
242
|
+
when String then Time.parse(t).utc.iso8601(3)
|
243
|
+
else raise InvalidResource, "Invalid time format '#{t.class}'. Valid options are Time, Date, or String"
|
244
|
+
end
|
245
|
+
rescue StandardError => e
|
246
|
+
raise InvalidResource, "Failed to parse time value '#{t}'. #{e.message}"
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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
|
+
# Server hardware type resource implementation
|
17
|
+
class ServerHardwareType < Resource
|
18
|
+
BASE_URI = '/rest/server-hardware-types'.freeze
|
19
|
+
|
20
|
+
# Remove resource from OneView
|
21
|
+
# @return [true] if resource was removed successfully
|
22
|
+
alias remove delete
|
23
|
+
|
24
|
+
# Create a resource object, associate it with a client, and set its properties.
|
25
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
26
|
+
# @param [Hash] params The options for this resource (key-value pairs)
|
27
|
+
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
28
|
+
def initialize(client, params = {}, api_ver = nil)
|
29
|
+
super
|
30
|
+
# Default values
|
31
|
+
@data['type'] ||= 'server-hardware-type-4'
|
32
|
+
end
|
33
|
+
|
34
|
+
# Method is not available
|
35
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
36
|
+
def create(*)
|
37
|
+
unavailable_method
|
38
|
+
end
|
39
|
+
|
40
|
+
# Method is not available
|
41
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
42
|
+
def delete(*)
|
43
|
+
unavailable_method
|
44
|
+
end
|
45
|
+
|
46
|
+
# Update resource attributes
|
47
|
+
# @param [Hash] attributes attributes to be updated
|
48
|
+
# @option attributes [String] :name server hardware type name
|
49
|
+
# @option attributes [String] :description server hardware type description
|
50
|
+
# @return [OneviewSDK::ServerHardwareType] self
|
51
|
+
def update(attributes = {})
|
52
|
+
set_all(attributes)
|
53
|
+
ensure_client && ensure_uri
|
54
|
+
data = @data.select { |k, _v| %w[name description].include?(k) }
|
55
|
+
response = @client.rest_put(@data['uri'], { 'body' => data }, @api_version)
|
56
|
+
@client.response_handler(response)
|
57
|
+
self
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,396 @@
|
|
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
|
+
require_relative '../../resource_helper'
|
14
|
+
|
15
|
+
module OneviewSDK
|
16
|
+
module API200
|
17
|
+
# Server profile resource implementation
|
18
|
+
class ServerProfile < Resource
|
19
|
+
include OneviewSDK::ResourceHelper::PatchOperation
|
20
|
+
BASE_URI = '/rest/server-profiles'.freeze
|
21
|
+
UNIQUE_IDENTIFIERS = %w[name uri associatedServer serialNumber serverHardwareUri].freeze
|
22
|
+
|
23
|
+
def initialize(client, params = {}, api_ver = nil)
|
24
|
+
super
|
25
|
+
# Default values
|
26
|
+
@data['type'] ||= 'ServerProfileV5'
|
27
|
+
end
|
28
|
+
|
29
|
+
# Sets the Server Hardware for the resource
|
30
|
+
# @param [OneviewSDK::ServerHardware] server_hardware Server Hardware resource
|
31
|
+
# @raise [OneviewSDK::IncompleteResource] if server hardware not found
|
32
|
+
def set_server_hardware(server_hardware)
|
33
|
+
raise 'Server Hardware could not be found!' unless server_hardware.retrieve!
|
34
|
+
self['serverHardwareUri'] = server_hardware['uri']
|
35
|
+
end
|
36
|
+
|
37
|
+
# Sets the Server Hardware Type for the resource
|
38
|
+
# @param [OneviewSDK::ServerHardwareType] server_hardware_type Type of the desired Server Hardware
|
39
|
+
# @raise [OneviewSDK::IncompleteResource] if server hardware type not found
|
40
|
+
def set_server_hardware_type(server_hardware_type)
|
41
|
+
raise 'Server Hardware Type could not be found!' unless server_hardware_type.retrieve!
|
42
|
+
self['serverHardwareTypeUri'] = server_hardware_type['uri']
|
43
|
+
end
|
44
|
+
|
45
|
+
# Sets the Enclosure Group for the resource
|
46
|
+
# @param [OneviewSDK::EnclosureGroup] enclosure_group Enclosure Group that the Server is a member
|
47
|
+
# @raise [OneviewSDK::IncompleteResource] if enclosure group not found
|
48
|
+
def set_enclosure_group(enclosure_group)
|
49
|
+
raise 'Enclosure Group could not be found!' unless enclosure_group.retrieve!
|
50
|
+
self['enclosureGroupUri'] = enclosure_group['uri']
|
51
|
+
end
|
52
|
+
|
53
|
+
# Sets the Enclosure for the resource
|
54
|
+
# @param [OneviewSDK::Enclosure] enclosure Enclosure that the Server is a member
|
55
|
+
# @raise [OneviewSDK::IncompleteResource] if enclosure not found
|
56
|
+
def set_enclosure(enclosure)
|
57
|
+
raise 'Enclosure could not be found!' unless enclosure.retrieve!
|
58
|
+
self['enclosureUri'] = enclosure['uri']
|
59
|
+
end
|
60
|
+
|
61
|
+
# Gets the preview of manual and automatic updates required to make the server profile consistent with its template.
|
62
|
+
# @return [Hash] Hash containing the required information
|
63
|
+
def get_compliance_preview
|
64
|
+
ensure_client & ensure_uri
|
65
|
+
response = @client.rest_get("#{self['uri']}/compliance-preview")
|
66
|
+
@client.response_handler(response)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Retrieves the error or status messages associated with the specified profile.
|
70
|
+
# @return [Hash] Hash containing the required information
|
71
|
+
def get_messages
|
72
|
+
ensure_client & ensure_uri
|
73
|
+
response = @client.rest_get("#{self['uri']}/messages")
|
74
|
+
@client.response_handler(response)
|
75
|
+
end
|
76
|
+
|
77
|
+
# Transforms an existing profile by supplying a new server hardware type and/or enclosure group.
|
78
|
+
# A profile will be returned with a new configuration based on the capabilities of the supplied
|
79
|
+
# server hardware type and/or enclosure group. All deployed connections will have their port assignment
|
80
|
+
# set to 'Auto'. Re-selection of the server hardware may also be required. The new profile can subsequently
|
81
|
+
# be used for the PUT https://{appl}/rest/server- profiles/{id} API but is not guaranteed to pass
|
82
|
+
# validation. Any incompatibilities will be flagged when the transformed server profile is submitted.
|
83
|
+
# @param [Hash<String,Object>] query Query parameters
|
84
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' Enclosure Group associated with the resource
|
85
|
+
# @option query [OneviewSDK::ServerHardware] 'server_hardware' The server hardware associated with the resource
|
86
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
87
|
+
# @return [Hash] Hash containing the required information
|
88
|
+
def get_transformation(query = nil)
|
89
|
+
ensure_client & ensure_uri
|
90
|
+
query_uri = OneviewSDK::Resource.build_query(query) if query
|
91
|
+
response = @client.rest_get("#{self['uri']}/transformation#{query_uri}")
|
92
|
+
@client.response_handler(response)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Updates the server profile from the server profile template.
|
96
|
+
def update_from_template
|
97
|
+
patch('replace', '/templateCompliance', 'Compliant', 'If-Match' => self['eTag'])
|
98
|
+
end
|
99
|
+
|
100
|
+
# @!group Helpers
|
101
|
+
|
102
|
+
# Gets attached ServerHardware for the profile
|
103
|
+
# @return [OneviewSDK::ServerHardware] if hardware is attached
|
104
|
+
# @return [nil] if no hardware is attached
|
105
|
+
def get_server_hardware
|
106
|
+
return nil unless self['serverHardwareUri']
|
107
|
+
sh = OneviewSDK::ServerHardware.new(@client, uri: self['serverHardwareUri'])
|
108
|
+
sh.retrieve!
|
109
|
+
sh
|
110
|
+
end
|
111
|
+
|
112
|
+
# Gets all the available Ethernet and FC Networks, and Network Sets
|
113
|
+
# @return [Hash]
|
114
|
+
# A hash containing the lists of Ethernet Networks and FC Networks
|
115
|
+
def get_available_networks
|
116
|
+
query = { enclosure_group_uri: @data['enclosureGroupUri'], server_hardware_type_uri: @data['serverHardwareTypeUri'] }
|
117
|
+
self.class.get_available_networks(@client, query)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Gets available server hardware
|
121
|
+
# @return [Array<OneviewSDK::ServerHardware>] Array of ServerHardware resources that matches this
|
122
|
+
# profile's server hardware type and enclosure group and who's state is 'NoProfileApplied'
|
123
|
+
def get_available_hardware
|
124
|
+
ensure_client
|
125
|
+
raise IncompleteResource, 'Must set @data[\'serverHardwareTypeUri\']' unless @data['serverHardwareTypeUri']
|
126
|
+
raise IncompleteResource, 'Must set @data[\'enclosureGroupUri\']' unless @data['enclosureGroupUri']
|
127
|
+
params = {
|
128
|
+
state: 'NoProfileApplied',
|
129
|
+
serverHardwareTypeUri: @data['serverHardwareTypeUri'],
|
130
|
+
serverGroupUri: @data['enclosureGroupUri']
|
131
|
+
}
|
132
|
+
variant = self.class.name.split('::').at(-2)
|
133
|
+
OneviewSDK.resource_named('ServerHardware', @client.api_version, variant).find_by(@client, params)
|
134
|
+
rescue StandardError => e
|
135
|
+
raise IncompleteResource, "Failed to get available hardware. Message: #{e.message}"
|
136
|
+
end
|
137
|
+
|
138
|
+
# Adds a connection entry to Server profile template
|
139
|
+
# @param [OneviewSDK::EthernetNetwork,OneviewSDK::FCNetwork] network Network associated with the connection
|
140
|
+
# @param [Hash<String,String>] connection_options Hash containing the configuration of the connection
|
141
|
+
# @option connection_options [Integer] 'allocatedMbps' The transmit throughput (mbps) currently allocated to
|
142
|
+
# this connection. When Fibre Channel connections are set to Auto for requested bandwidth, the value can be set to -2000
|
143
|
+
# to indicate that the actual value is unknown until OneView is able to negotiate the actual speed.
|
144
|
+
# @option connection_options [Integer] 'allocatedVFs' The number of virtual functions allocated to this connection. This value will be null.
|
145
|
+
# @option connection_options [Hash] 'boot' indicates that the server will attempt to boot from this connection.
|
146
|
+
# This object can only be specified if "boot.manageBoot" is set to 'true'
|
147
|
+
# @option connection_options [String] 'deploymentStatus' The deployment status of the connection.
|
148
|
+
# The value can be 'Undefined', 'Reserved', or 'Deployed'.
|
149
|
+
# @option connection_options [String] 'functionType' Type of function required for the connection.
|
150
|
+
# functionType cannot be modified after the connection is created.
|
151
|
+
# @option connection_options [String] 'id' Unique identifier for this connection. Defaults to 0 (auto).
|
152
|
+
# @option connection_options [String] 'mac' The MAC address that is currently programmed on the FlexNic.
|
153
|
+
# @option connection_options [String] 'macType' Specifies the type of MAC address to be programmed into the IO Devices.
|
154
|
+
# The value can be 'Virtual', 'Physical' or 'UserDefined'.
|
155
|
+
# @option connection_options [String] 'maximumMbps' Maximum transmit throughput (mbps) allowed on this connection.
|
156
|
+
# The value is limited by the maximum throughput of the network link and maximumBandwidth of the selected network (networkUri).
|
157
|
+
# For Fibre Channel connections, the value is limited to the same value as the allocatedMbps.
|
158
|
+
# @option connection_options [String] 'name' A string used to identify the respective connection.
|
159
|
+
# The connection name is case insensitive, limited to 63 characters and must be unique within the profile.
|
160
|
+
# @option connection_options [String] 'portId' Identifies the port (FlexNIC) used for this connection.
|
161
|
+
# @option connection_options [String] 'requestedMbps' The transmit throughput (mbps) that should be allocated to this connection.
|
162
|
+
# @option connection_options [String] 'requestedVFs' This value can be "Auto" or 0.
|
163
|
+
# @option connection_options [String] 'wwnn' The node WWN address that is currently programmed on the FlexNic.
|
164
|
+
# @option connection_options [String] 'wwpn' The port WWN address that is currently programmed on the FlexNic.
|
165
|
+
# @option connection_options [String] 'wwpnType' Specifies the type of WWN address to be porgrammed on the FlexNIC.
|
166
|
+
# The value can be 'Virtual', 'Physical' or 'UserDefined'.
|
167
|
+
def add_connection(network, connection_options = {})
|
168
|
+
connection_options = Hash[connection_options.map { |k, v| [k.to_s, v] }]
|
169
|
+
self['connections'] = [] unless self['connections']
|
170
|
+
connection_options['id'] ||= 0
|
171
|
+
connection_options['networkUri'] = network['uri'] if network['uri'] || network.retrieve!
|
172
|
+
self['connections'] << connection_options
|
173
|
+
end
|
174
|
+
|
175
|
+
# Removes a connection entry in Server profile template
|
176
|
+
# @param [String] connection_name Name of the connection
|
177
|
+
# @return Returns the connection hash if found, otherwise returns nil
|
178
|
+
def remove_connection(connection_name)
|
179
|
+
desired_connection = nil
|
180
|
+
return desired_connection unless self['connections']
|
181
|
+
self['connections'].each do |con|
|
182
|
+
desired_connection = self['connections'].delete(con) if con['name'] == connection_name
|
183
|
+
end
|
184
|
+
desired_connection
|
185
|
+
end
|
186
|
+
|
187
|
+
# Adds volume attachment entry with associated Volume in Server profile
|
188
|
+
# @param [OneviewSDK::Volume] volume Volume Resource to add an attachment
|
189
|
+
# @param [Hash] attachment_options Options of the new attachment
|
190
|
+
# @option attachment_options [Fixnum] 'id' The ID of the attached storage volume. Do not use it if you want it to be created automatically.
|
191
|
+
# @option attachment_options [String] 'lun' The logical unit number.
|
192
|
+
# @option attachment_options [String] 'lunType' The logical unit number type: Auto or Manual.
|
193
|
+
# @option attachment_options [Boolean] 'permanent' Required. If true, indicates that the volume will persist when the profile is deleted.
|
194
|
+
# If false, then the volume will be deleted when the profile is deleted.
|
195
|
+
# @option attachment_options [Array] 'storagePaths' A list of host-to-target path associations.
|
196
|
+
# @raise [OneviewSDK::IncompleteResource] if volume not found
|
197
|
+
# @return Returns the connection hash if found, otherwise returns nil
|
198
|
+
def add_volume_attachment(volume, attachment_options = {})
|
199
|
+
raise IncompleteResource, 'Volume not found!' unless volume.retrieve!
|
200
|
+
# Convert symbols keys to string
|
201
|
+
attachment_options = Hash[attachment_options.map { |k, v| [k.to_s, v] }]
|
202
|
+
self['sanStorage'] ||= {}
|
203
|
+
self['sanStorage']['volumeAttachments'] ||= []
|
204
|
+
self['sanStorage']['manageSanStorage'] ||= true
|
205
|
+
attachment_options['id'] ||= 0
|
206
|
+
attachment_options['volumeUri'] = volume['uri']
|
207
|
+
attachment_options['volumeStoragePoolUri'] = volume['storagePoolUri']
|
208
|
+
attachment_options['volumeStorageSystemUri'] = volume['storageSystemUri']
|
209
|
+
|
210
|
+
self['sanStorage']['volumeAttachments'] << attachment_options
|
211
|
+
end
|
212
|
+
|
213
|
+
# Adds volume attachment entry and creates a new Volume associated in the Server profile
|
214
|
+
# @param [OneviewSDK::StoragePool] storage_pool StoragePool Resource to add an attachment
|
215
|
+
# @param [Hash] volume_options Options to create a new Volume.
|
216
|
+
# Please refer to OneviewSDK::Volume documentation for the data necessary to create a new Volume.
|
217
|
+
# @param [Hash] attachment_options Options of the new attachment
|
218
|
+
# @option attachment_options [Fixnum] 'id' The ID of the attached storage volume. Do not use it if you want it to be created automatically.
|
219
|
+
# @option attachment_options [String] 'lun' The logical unit number.
|
220
|
+
# @option attachment_options [String] 'lunType' The logical unit number type: Auto or Manual.
|
221
|
+
# @option attachment_options [Boolean] 'permanent' Required. If true, indicates that the volume will persist when the profile is deleted.
|
222
|
+
# If false, then the volume will be deleted when the profile is deleted.
|
223
|
+
# @option attachment_options [Array] 'storagePaths' A list of host-to-target path associations.
|
224
|
+
# @raise [OneviewSDK::IncompleteResource] if storage pool not found
|
225
|
+
# @return Returns the connection hash if found, otherwise returns nil
|
226
|
+
def create_volume_with_attachment(storage_pool, volume_options, attachment_options = {})
|
227
|
+
raise IncompleteResource, 'Storage Pool not found!' unless storage_pool.retrieve!
|
228
|
+
# Convert symbols keys to string in volume_options and attachment_options
|
229
|
+
volume_options = Hash[volume_options.map { |k, v| [k.to_s, v] }]
|
230
|
+
attachment_options = Hash[attachment_options.map { |k, v| [k.to_s, v] }]
|
231
|
+
self['sanStorage'] ||= {}
|
232
|
+
self['sanStorage']['volumeAttachments'] ||= []
|
233
|
+
attachment_options['id'] ||= 0
|
234
|
+
# Removing provisioningParameters and adding them to the top level hash
|
235
|
+
provision_param = volume_options.delete('provisioningParameters') || volume_options.delete(:provisioningParameters)
|
236
|
+
provision_param.each do |k, v|
|
237
|
+
volume_options[k] = v
|
238
|
+
end
|
239
|
+
# Each provisioningParameter has the prefix 'volume' attached to its name in the original options
|
240
|
+
# Also, it needs to respect the lower camel case
|
241
|
+
volume_options.each do |k, v|
|
242
|
+
attachment_options["volume#{k.to_s[0].capitalize}#{k.to_s[1, k.to_s.length - 1]}"] = v
|
243
|
+
end
|
244
|
+
|
245
|
+
attachment_options['volumeStoragePoolUri'] = storage_pool['uri']
|
246
|
+
|
247
|
+
# Since the volume is being created in this method, it needs to be nil
|
248
|
+
attachment_options['volumeUri'] = nil
|
249
|
+
attachment_options['volumeStorageSystemUri'] = nil
|
250
|
+
|
251
|
+
# volumeProvisionedCapacityBytes is not following the same pattern in Volume
|
252
|
+
attachment_options['volumeProvisionedCapacityBytes'] ||= attachment_options.delete('volumeRequestedCapacity')
|
253
|
+
|
254
|
+
# Defaults
|
255
|
+
attachment_options['permanent'] ||= true
|
256
|
+
attachment_options['lunType'] ||= 'Auto'
|
257
|
+
attachment_options['lun'] ||= nil
|
258
|
+
attachment_options['storagePaths'] ||= []
|
259
|
+
attachment_options['volumeShareable'] = false
|
260
|
+
|
261
|
+
self['sanStorage']['manageSanStorage'] ||= true
|
262
|
+
self['sanStorage']['volumeAttachments'] << attachment_options
|
263
|
+
end
|
264
|
+
|
265
|
+
# Removes a volume attachment entry in the Server profile
|
266
|
+
# @param [Fixnum] id ID number of the attachment entry
|
267
|
+
# @return Returns the volume hash if found, otherwise returns nil
|
268
|
+
def remove_volume_attachment(id)
|
269
|
+
self['sanStorage'] ||= {}
|
270
|
+
self['sanStorage']['volumeAttachments'] ||= []
|
271
|
+
return if self['sanStorage'].empty? || self['sanStorage']['volumeAttachments'].empty?
|
272
|
+
|
273
|
+
volume_attachment = nil
|
274
|
+
self['sanStorage']['volumeAttachments'].each do |entry|
|
275
|
+
volume_attachment = self['sanStorage']['volumeAttachments'].delete(entry) if entry['id'] == id
|
276
|
+
end
|
277
|
+
volume_attachment
|
278
|
+
end
|
279
|
+
|
280
|
+
# Sets the Firmware Driver for the server profile
|
281
|
+
# @param [OneviewSDK::FirmwareDriver] firmware Firmware Driver to be associated with the resource
|
282
|
+
# @param [Hash<String,Object>] firmware_options Firmware Driver options
|
283
|
+
# @option firmware_options [Boolean] 'manageFirmware' Indicates that the server firmware is configured using the server profile.
|
284
|
+
# Value can be 'true' or 'false'.
|
285
|
+
# @option firmware_options [Boolean] 'forceInstallFirmware' Force installation of firmware even if same or newer version is installed.
|
286
|
+
# Downgrading the firmware can result in the installation of unsupported firmware and cause server hardware to cease operation.
|
287
|
+
# Value can be 'true' or 'false'.
|
288
|
+
# @option firmware_options [String] 'firmwareInstallType' Specifies the way a Service Pack for ProLiant (SPP) is installed.
|
289
|
+
# This field is used if the 'manageFirmware' field is true.
|
290
|
+
# Values are 'FirmwareAndOSDrivers', 'FirmwareOnly', and 'FirmwareOnlyOfflineMode'.
|
291
|
+
def set_firmware_driver(firmware, firmware_options = {})
|
292
|
+
firmware_options['firmwareBaselineUri'] = firmware['uri'] if firmware['uri'] || firmware.retrieve!
|
293
|
+
self['firmware'] = firmware_options
|
294
|
+
end
|
295
|
+
|
296
|
+
# @!endgroup
|
297
|
+
|
298
|
+
# Gets all the available ethernet and fc networks, and network sets
|
299
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
300
|
+
# @param [Hash<String,Object>] query Query parameters
|
301
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' Enclosure Group associated with the resource
|
302
|
+
# @option query [String] 'function_type' The FunctionType (Ethernet or FibreChannel) to filter the list of networks returned
|
303
|
+
# @option query [OneviewSDK::ServerHardware] 'server_hardware' The server hardware associated with the resource
|
304
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
305
|
+
# @option query [String] 'view' Name of a predefined view to return a specific subset of the attributes of the resource or collection
|
306
|
+
# @return [Hash]
|
307
|
+
# A hash containing the lists of Ethernet and FC Networks, and Network Sets
|
308
|
+
# Options:
|
309
|
+
# * [String] 'ethernetNetworks' The list of Ethernet Networks
|
310
|
+
# * [String] 'fcNetworks' The list of FC Networks
|
311
|
+
# * [String] 'networkSets' The list of Networks Sets
|
312
|
+
def self.get_available_networks(client, query)
|
313
|
+
query_uri = build_query(query) if query
|
314
|
+
response = client.rest_get("#{BASE_URI}/available-networks#{query_uri}")
|
315
|
+
body = client.response_handler(response)
|
316
|
+
body.select { |k, _v| %w[ethernetNetworks networkSets fcNetworks].include?(k) }
|
317
|
+
end
|
318
|
+
|
319
|
+
# Gets the available servers based on the query parameters
|
320
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
321
|
+
# @param [Hash<String,Object>] query Query parameters
|
322
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' Enclosure Group associated with the resource
|
323
|
+
# @option query [OneviewSDK::ServerProfile] 'server_profile' The server profile associated with the resource
|
324
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
325
|
+
# @return [Hash] Hash containing all the available server information
|
326
|
+
def self.get_available_servers(client, query = nil)
|
327
|
+
if query
|
328
|
+
query_uri = build_query(query)
|
329
|
+
# profileUri attribute is not following the standards in OneView
|
330
|
+
query_uri.sub!('serverProfileUri', 'profileUri')
|
331
|
+
end
|
332
|
+
response = client.rest_get("#{BASE_URI}/available-servers#{query_uri}")
|
333
|
+
client.response_handler(response)
|
334
|
+
end
|
335
|
+
|
336
|
+
# Gets the available storage systems based on the query parameters
|
337
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
338
|
+
# @param [Hash<String,Object>] query Query parameters
|
339
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' Enclosure Group associated with the resource
|
340
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
341
|
+
# @option query [OneviewSDK::StorageSystem] 'storage_system' The Storage System the resources are associated with
|
342
|
+
def self.get_available_storage_system(client, query = nil)
|
343
|
+
# For storage_system the query requires the ID instead the URI
|
344
|
+
if query && query['storage_system']
|
345
|
+
query['storage_system'].retrieve! unless query['storage_system']['uri']
|
346
|
+
query['storage_system_id'] = query['storage_system']['uri'].split('/').last
|
347
|
+
query.delete('storage_system')
|
348
|
+
end
|
349
|
+
query_uri = build_query(query) if query
|
350
|
+
response = client.rest_get("#{BASE_URI}/available-storage-system#{query_uri}")
|
351
|
+
client.response_handler(response)
|
352
|
+
end
|
353
|
+
|
354
|
+
# Gets the available storage systems based on the query parameters
|
355
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
356
|
+
# @param [Hash<String,Object>] query Query parameters
|
357
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' The enclosure group associated with the resource
|
358
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
359
|
+
# @option query [Array<String>] 'filter' A general filter/query string to narrow the list of items returned.
|
360
|
+
# The default is no filter - all resources are returned.
|
361
|
+
# @option query [Integer] 'start' The first item to return, using 0-based indexing.
|
362
|
+
# If not specified, the default is 0 - start with the first available item.
|
363
|
+
# @option query [Integer] 'count' The sort order of the returned data set.
|
364
|
+
# By default, the sort order is based on create time, with the oldest entry first.
|
365
|
+
# @option query [String] 'sort' The number of resources to return. A count of -1 requests all the items.
|
366
|
+
def self.get_available_storage_systems(client, query = nil)
|
367
|
+
query_uri = build_query(query) if query
|
368
|
+
find_with_pagination(client, "#{BASE_URI}/available-storage-systems#{query_uri}")
|
369
|
+
end
|
370
|
+
|
371
|
+
# Get the available targets based on the query parameters
|
372
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
373
|
+
# @param [Hash<String,Object>] query Query parameters
|
374
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' Enclosure Group associated with the resource
|
375
|
+
# @option query [OneviewSDK::ServerProfile] 'server_profile' The server profile associated with the resource
|
376
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
377
|
+
def self.get_available_targets(client, query = nil)
|
378
|
+
query_uri = build_query(query) if query
|
379
|
+
response = client.rest_get("#{BASE_URI}/available-targets#{query_uri}")
|
380
|
+
client.response_handler(response)
|
381
|
+
end
|
382
|
+
|
383
|
+
# Gets all the available ethernet and fc networks
|
384
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
385
|
+
# @param [Hash<String,Object>] query Query parameters
|
386
|
+
# @option query [OneviewSDK::EnclosureGroup] 'enclosure_group' Enclosure Group associated with the resource
|
387
|
+
# @option query [OneviewSDK::ServerHardware] 'server_hardware' The server hardware associated with the resource
|
388
|
+
# @option query [OneviewSDK::ServerHardwareType] 'server_hardware_type' The server hardware type associated with the resource
|
389
|
+
def self.get_profile_ports(client, query = nil)
|
390
|
+
query_uri = build_query(query) if query
|
391
|
+
response = client.rest_get("#{BASE_URI}/profile-ports#{query_uri}")
|
392
|
+
client.response_handler(response)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
end
|
396
|
+
end
|