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,227 @@
|
|
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 profile template resource implementation
|
17
|
+
class ServerProfileTemplate < Resource
|
18
|
+
BASE_URI = '/rest/server-profile-templates'.freeze
|
19
|
+
|
20
|
+
# Create a resource object, associate it with a client, and set its properties.
|
21
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
22
|
+
# @param [Hash] params The options for this resource (key-value pairs)
|
23
|
+
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
24
|
+
def initialize(client, params = {}, api_ver = nil)
|
25
|
+
super
|
26
|
+
# Default values
|
27
|
+
@data['type'] ||= 'ServerProfileTemplateV1'
|
28
|
+
end
|
29
|
+
|
30
|
+
# Sets the Server Hardware Type for the Server Profile Template
|
31
|
+
# @param [OneviewSDK::ServerHardwareType] server_hardware_type Type of the desired Server Hardware
|
32
|
+
def set_server_hardware_type(server_hardware_type)
|
33
|
+
self['serverHardwareTypeUri'] = server_hardware_type['uri'] if server_hardware_type['uri'] || server_hardware_type.retrieve!
|
34
|
+
raise "Resource #{server_hardware_type['name']} could not be found!" unless server_hardware_type['uri']
|
35
|
+
end
|
36
|
+
|
37
|
+
# Sets the enclosure group for the server profile template
|
38
|
+
# @param [OneviewSDK::EnclosureGroup] enclosure_group Enclosure Group that the Server is a member
|
39
|
+
def set_enclosure_group(enclosure_group)
|
40
|
+
self['enclosureGroupUri'] = enclosure_group['uri'] if enclosure_group['uri'] || enclosure_group.retrieve!
|
41
|
+
raise "Resource #{enclosure_group['name']} could not be found!" unless enclosure_group['uri']
|
42
|
+
end
|
43
|
+
|
44
|
+
# Sets the firmware driver for the current server profile template
|
45
|
+
# @param [OneviewSDK::FirmwareDriver] firmware Firmware Driver to be associated with the resource
|
46
|
+
# @param [Hash<String,Object>] firmware_options Firmware Driver options
|
47
|
+
# @option firmware_options [Boolean] 'manageFirmware' Indicates that the server firmware is configured using the server profile.
|
48
|
+
# Value can be 'true' or 'false'.
|
49
|
+
# @option firmware_options [Boolean] 'forceInstallFirmware' Force installation of firmware even if same or newer version is installed.
|
50
|
+
# Downgrading the firmware can result in the installation of unsupported firmware and cause server hardware to cease operation.
|
51
|
+
# Value can be 'true' or 'false'.
|
52
|
+
# @option firmware_options [String] 'firmwareInstallType' Specifies the way a Service Pack for ProLiant (SPP) is installed.
|
53
|
+
# This field is used if the 'manageFirmware' field is true.
|
54
|
+
# Values are 'FirmwareAndOSDrivers', 'FirmwareOnly', and 'FirmwareOnlyOfflineMode'.
|
55
|
+
def set_firmware_driver(firmware, firmware_options = {})
|
56
|
+
firmware_options['firmwareBaselineUri'] = firmware['uri'] if firmware['uri'] || firmware.retrieve!
|
57
|
+
self['firmware'] = firmware_options
|
58
|
+
end
|
59
|
+
|
60
|
+
# Adds a connection entry to server profile template
|
61
|
+
# @param [OneviewSDK::EthernetNetwork,OneviewSDK::FCNetwork] network Network associated with the connection
|
62
|
+
# @param [Hash<String,String>] connection_options Hash containing the configuration of the connection
|
63
|
+
# @option connection_options [Integer] 'allocatedMbps' The transmit throughput (mbps) currently allocated to
|
64
|
+
# this connection. When Fibre Channel connections are set to Auto for requested bandwidth, the value can be set to -2000
|
65
|
+
# to indicate that the actual value is unknown until OneView is able to negotiate the actual speed.
|
66
|
+
# @option connection_options [Integer] 'allocatedVFs' The number of virtual functions allocated to this connection. This value will be null.
|
67
|
+
# @option connection_options [Hash] 'boot' indicates that the server will attempt to boot from this connection.
|
68
|
+
# This object can only be specified if "boot.manageBoot" is set to 'true'
|
69
|
+
# @option connection_options [String] 'deploymentStatus' The deployment status of the connection.
|
70
|
+
# The value can be 'Undefined', 'Reserved', or 'Deployed'.
|
71
|
+
# @option connection_options [String] 'functionType' Type of function required for the connection.
|
72
|
+
# functionType cannot be modified after the connection is created.
|
73
|
+
# @option connection_options [String] 'mac' The MAC address that is currently programmed on the FlexNic.
|
74
|
+
# @option connection_options [String] 'macType' Specifies the type of MAC address to be programmed into the IO Devices.
|
75
|
+
# The value can be 'Virtual', 'Physical' or 'UserDefined'.
|
76
|
+
# @option connection_options [String] 'maximumMbps' Maximum transmit throughput (mbps) allowed on this connection.
|
77
|
+
# The value is limited by the maximum throughput of the network link and maximumBandwidth of the selected network (networkUri).
|
78
|
+
# For Fibre Channel connections, the value is limited to the same value as the allocatedMbps.
|
79
|
+
# @option connection_options [String] 'name' A string used to identify the respective connection.
|
80
|
+
# The connection name is case insensitive, limited to 63 characters and must be unique within the profile.
|
81
|
+
# @option connection_options [String] 'portId' Identifies the port (FlexNIC) used for this connection.
|
82
|
+
# @option connection_options [String] 'requestedMbps' The transmit throughput (mbps) that should be allocated to this connection.
|
83
|
+
# @option connection_options [String] 'requestedVFs' This value can be "Auto" or 0.
|
84
|
+
# @option connection_options [String] 'wwnn' The node WWN address that is currently programmed on the FlexNic.
|
85
|
+
# @option connection_options [String] 'wwpn' The port WWN address that is currently programmed on the FlexNic.
|
86
|
+
# @option connection_options [String] 'wwpnType' Specifies the type of WWN address to be porgrammed on the FlexNIC.
|
87
|
+
# The value can be 'Virtual', 'Physical' or 'UserDefined'.
|
88
|
+
def add_connection(network, connection_options = {})
|
89
|
+
connection_options = Hash[connection_options.map { |k, v| [k.to_s, v] }]
|
90
|
+
self['connections'] = [] unless self['connections']
|
91
|
+
connection_options['id'] ||= 0
|
92
|
+
connection_options['networkUri'] = network['uri'] if network['uri'] || network.retrieve!
|
93
|
+
self['connections'] << connection_options
|
94
|
+
end
|
95
|
+
|
96
|
+
# Removes a connection entry in server profile template
|
97
|
+
# @param [String] connection_name Name of the connection
|
98
|
+
# @return Returns the connection hash if found, otherwise returns nil
|
99
|
+
def remove_connection(connection_name)
|
100
|
+
desired_connection = nil
|
101
|
+
return desired_connection unless self['connections']
|
102
|
+
self['connections'].each do |con|
|
103
|
+
desired_connection = self['connections'].delete(con) if con['name'] == connection_name
|
104
|
+
end
|
105
|
+
desired_connection
|
106
|
+
end
|
107
|
+
|
108
|
+
# Adds a volume attachment entry with associated volume in server profile template
|
109
|
+
# @param [OneviewSDK::Volume] volume Volume Resource to add an attachment
|
110
|
+
# @param [Hash] attachment_options Options of the new attachment
|
111
|
+
# @option attachment_options [Fixnum] 'id' The ID of the attached storage volume. Do not use it if you want it to be created automatically.
|
112
|
+
# @option attachment_options [String] 'lun' The logical unit number.
|
113
|
+
# @option attachment_options [String] 'lunType' The logical unit number type: Auto or Manual.
|
114
|
+
# @option attachment_options [Boolean] 'permanent' Required. If true, indicates that the volume will persist when the profile is deleted.
|
115
|
+
# If false, then the volume will be deleted when the profile is deleted.
|
116
|
+
# @option attachment_options [Array] 'storagePaths' A list of host-to-target path associations.
|
117
|
+
# @raise [OneviewSDK::IncompleteResource] if volume not found
|
118
|
+
# @return Returns the connection hash if found, otherwise returns nil
|
119
|
+
def add_volume_attachment(volume, attachment_options = {})
|
120
|
+
raise IncompleteResource, 'Volume not found!' unless volume.retrieve!
|
121
|
+
# Convert symbols keys to string
|
122
|
+
attachment_options = Hash[attachment_options.map { |k, v| [k.to_s, v] }]
|
123
|
+
self['sanStorage'] ||= {}
|
124
|
+
self['sanStorage']['volumeAttachments'] ||= []
|
125
|
+
self['sanStorage']['manageSanStorage'] ||= true
|
126
|
+
attachment_options['id'] ||= 0
|
127
|
+
attachment_options['volumeUri'] = volume['uri']
|
128
|
+
attachment_options['volumeStoragePoolUri'] = volume['storagePoolUri']
|
129
|
+
attachment_options['volumeStorageSystemUri'] = volume['storageSystemUri'] if volume['storageSystemUri']
|
130
|
+
|
131
|
+
self['sanStorage']['volumeAttachments'] << attachment_options
|
132
|
+
end
|
133
|
+
|
134
|
+
# Adds a volume attachment entry with new volume in Server profile template
|
135
|
+
# @param [OneviewSDK::StoragePool] storage_pool StoragePool Resource to add an attachment
|
136
|
+
# @param [Hash] volume_options Options to create a new Volume.
|
137
|
+
# Please refer to OneviewSDK::Volume documentation for the data necessary to create a new Volume.
|
138
|
+
# @param [Hash] attachment_options Options of the new attachment
|
139
|
+
# @option attachment_options [Fixnum] 'id' The ID of the attached storage volume. Do not use it if you want it to be created automatically.
|
140
|
+
# @option attachment_options [String] 'lun' The logical unit number.
|
141
|
+
# @option attachment_options [String] 'lunType' The logical unit number type: Auto or Manual.
|
142
|
+
# @option attachment_options [Boolean] 'permanent' Required. If true, indicates that the volume will persist when the profile is deleted.
|
143
|
+
# If false, then the volume will be deleted when the profile is deleted.
|
144
|
+
# @option attachment_options [Array] 'storagePaths' A list of host-to-target path associations.
|
145
|
+
# @raise [OneviewSDK::IncompleteResource] if storage pool not found
|
146
|
+
# @return Returns the connection hash if found, otherwise returns nil
|
147
|
+
def create_volume_with_attachment(storage_pool, volume_options, attachment_options = {})
|
148
|
+
raise IncompleteResource, 'Storage Pool not found!' unless storage_pool.retrieve!
|
149
|
+
# Convert symbols keys to string in volume_options and attachment_options
|
150
|
+
volume_options = Hash[volume_options.map { |k, v| [k.to_s, v] }]
|
151
|
+
attachment_options = Hash[attachment_options.map { |k, v| [k.to_s, v] }]
|
152
|
+
self['sanStorage'] ||= {}
|
153
|
+
self['sanStorage']['volumeAttachments'] ||= []
|
154
|
+
attachment_options['id'] ||= 0
|
155
|
+
# Removing provisioningParameters and adding them to the top level hash
|
156
|
+
provision_param = volume_options.delete('provisioningParameters') || volume_options.delete(:provisioningParameters)
|
157
|
+
provision_param.each do |k, v|
|
158
|
+
volume_options[k] = v
|
159
|
+
end
|
160
|
+
# Each provisioningParameter has the prefix 'volume' attached to its name in the original options
|
161
|
+
# Also, it needs to respect the lower camel case
|
162
|
+
volume_options.each do |k, v|
|
163
|
+
attachment_options["volume#{k.to_s[0].capitalize}#{k.to_s[1, k.to_s.length - 1]}"] = v
|
164
|
+
end
|
165
|
+
|
166
|
+
attachment_options['volumeStoragePoolUri'] = storage_pool['uri']
|
167
|
+
# volumeProvisionedCapacityBytes is not following the same pattern in Volume
|
168
|
+
attachment_options['volumeProvisionedCapacityBytes'] ||= attachment_options.delete('volumeRequestedCapacity')
|
169
|
+
|
170
|
+
# Defaults
|
171
|
+
attachment_options['volumeUri'] = nil
|
172
|
+
attachment_options['volumeStorageSystemUri'] = nil
|
173
|
+
attachment_options['permanent'] ||= true
|
174
|
+
attachment_options['volumeShareable'] = false
|
175
|
+
|
176
|
+
self['sanStorage']['manageSanStorage'] ||= true
|
177
|
+
self['sanStorage']['volumeAttachments'] << attachment_options
|
178
|
+
end
|
179
|
+
|
180
|
+
# Removes a volume attachment entry in Server profile template
|
181
|
+
# @param [Fixnum] id ID number of the attachment entry
|
182
|
+
# @return Returns the volume hash if found, otherwise returns nil
|
183
|
+
def remove_volume_attachment(id)
|
184
|
+
self['sanStorage'] ||= {}
|
185
|
+
self['sanStorage']['volumeAttachments'] ||= []
|
186
|
+
return if self['sanStorage'].empty? || self['sanStorage']['volumeAttachments'].empty?
|
187
|
+
|
188
|
+
volume_attachment = nil
|
189
|
+
self['sanStorage']['volumeAttachments'].each do |entry|
|
190
|
+
volume_attachment = self['sanStorage']['volumeAttachments'].delete(entry) if entry['id'] == id
|
191
|
+
end
|
192
|
+
volume_attachment
|
193
|
+
end
|
194
|
+
|
195
|
+
# Gets the available server hardwares
|
196
|
+
# @raise [OneviewSDK::IncompleteResource] if serverHardwareTypeUri or enclosureGroupUri is missing
|
197
|
+
# @return [Array<OneviewSDK::ServerHardware>] Array of ServerHardware resources that matches this
|
198
|
+
# profile template's server hardware type and enclosure group and who's state is 'NoProfileApplied'
|
199
|
+
def get_available_hardware
|
200
|
+
ensure_client
|
201
|
+
raise IncompleteResource, 'Must set @data[\'serverHardwareTypeUri\']' unless @data['serverHardwareTypeUri']
|
202
|
+
raise IncompleteResource, 'Must set @data[\'enclosureGroupUri\']' unless @data['enclosureGroupUri']
|
203
|
+
params = {
|
204
|
+
state: 'NoProfileApplied',
|
205
|
+
serverHardwareTypeUri: @data['serverHardwareTypeUri'],
|
206
|
+
serverGroupUri: @data['enclosureGroupUri']
|
207
|
+
}
|
208
|
+
OneviewSDK::ServerHardware.find_by(@client, params)
|
209
|
+
rescue StandardError => e
|
210
|
+
raise IncompleteResource, "Failed to get available hardware. Message: #{e.message}"
|
211
|
+
end
|
212
|
+
|
213
|
+
# Creates a ServerProfile using this template
|
214
|
+
# @param [String] name Name of new server profile
|
215
|
+
# @return [OneviewSDK::ServerProfile] New server profile from template.
|
216
|
+
# Temporary object only; call .create to actually create resource on OneView.
|
217
|
+
def new_profile(name = nil)
|
218
|
+
ensure_client && ensure_uri
|
219
|
+
response = @client.rest_get("#{@data['uri']}/new-profile")
|
220
|
+
options = @client.response_handler(response)
|
221
|
+
profile = OneviewSDK::ServerProfile.new(@client, options)
|
222
|
+
profile['name'] = name ? name : "Server_Profile_created_from_#{@data['name']}"
|
223
|
+
profile
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
@@ -0,0 +1,99 @@
|
|
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
|
+
# Storage pool resource implementation
|
17
|
+
class StoragePool < Resource
|
18
|
+
BASE_URI = '/rest/storage-pools'.freeze
|
19
|
+
|
20
|
+
# Add the resource on OneView using the current data
|
21
|
+
# @note Calls the refresh method to set additional data
|
22
|
+
# @raise [OneviewSDK::IncompleteResource] if the client is not set
|
23
|
+
# @raise [StandardError] if the resource creation fails
|
24
|
+
# @return [OneviewSDK::StoragePool] self
|
25
|
+
alias add create
|
26
|
+
|
27
|
+
# Remove resource from OneView
|
28
|
+
# @return [true] if resource was removed successfully
|
29
|
+
alias remove delete
|
30
|
+
|
31
|
+
# Create a resource object, associate it with a client, and set its properties.
|
32
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
33
|
+
# @param [Hash] params The options for this resource (key-value pairs)
|
34
|
+
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
35
|
+
def initialize(client, params = {}, api_ver = nil)
|
36
|
+
super
|
37
|
+
# Default values:
|
38
|
+
@data['type'] ||= 'StoragePoolV2'
|
39
|
+
end
|
40
|
+
|
41
|
+
# Method is not available
|
42
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
43
|
+
def create(*)
|
44
|
+
unavailable_method
|
45
|
+
end
|
46
|
+
|
47
|
+
# Method is not available
|
48
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
49
|
+
def create!(*)
|
50
|
+
unavailable_method
|
51
|
+
end
|
52
|
+
|
53
|
+
# Method is not available
|
54
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
55
|
+
def delete(*)
|
56
|
+
unavailable_method
|
57
|
+
end
|
58
|
+
|
59
|
+
# Method is not available
|
60
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
61
|
+
def update(*)
|
62
|
+
unavailable_method
|
63
|
+
end
|
64
|
+
|
65
|
+
# Retrieve resource details based on this resource's name or URI.
|
66
|
+
# @note Name or URI must be specified inside the resource
|
67
|
+
# @return [Boolean] Whether or not retrieve was successful
|
68
|
+
def retrieve!
|
69
|
+
raise IncompleteResource, 'Must set resource name or uri before trying to retrieve!' unless @data['name'] || @data['uri']
|
70
|
+
raise IncompleteResource, 'Must set resource storageSystemUri before trying to retrieve!' unless @data['storageSystemUri']
|
71
|
+
results = self.class.find_by(@client, name: @data['name'], storageSystemUri: @data['storageSystemUri']) if @data['name']
|
72
|
+
results = self.class.find_by(@client, uri: @data['uri'], storageSystemUri: @data['storageSystemUri']) if @data['uri'] &&
|
73
|
+
(!results || results.empty?)
|
74
|
+
return false unless results.size == 1
|
75
|
+
set_all(results[0].data)
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check if a resource exists
|
80
|
+
# @note name or uri must be specified inside resource
|
81
|
+
# @return [Boolean] Whether or not resource exists
|
82
|
+
def exists?
|
83
|
+
raise IncompleteResource, 'Must set resource name or uri before trying to exists?' unless @data['name'] || @data['uri']
|
84
|
+
raise IncompleteResource, 'Must set resource storageSystemUri before trying to exists?' unless @data['storageSystemUri']
|
85
|
+
return true if @data['name'] && self.class.find_by(@client, name: @data['name'], storageSystemUri: @data['storageSystemUri']).size == 1
|
86
|
+
return true if @data['uri'] && self.class.find_by(@client, uri: @data['uri'], storageSystemUri: @data['storageSystemUri']).size == 1
|
87
|
+
false
|
88
|
+
end
|
89
|
+
|
90
|
+
# Sets the storage system
|
91
|
+
# @param [OneviewSDK::StorageSystem] storage_system
|
92
|
+
# @raise [OneviewSDK::IncompleteResource] if Storage System not found
|
93
|
+
def set_storage_system(storage_system)
|
94
|
+
raise 'Storage System could not be found!' unless storage_system.retrieve!
|
95
|
+
set('storageSystemUri', storage_system['uri'])
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,159 @@
|
|
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
|
+
# Storage system resource implementation
|
17
|
+
class StorageSystem < Resource
|
18
|
+
BASE_URI = '/rest/storage-systems'.freeze
|
19
|
+
UNIQUE_IDENTIFIERS = %w[name uri serialNumber wwn].freeze # credentials['ip_hostname'] is supported too
|
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'] ||= 'StorageSystemV3'
|
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
|
+
# Method is not available
|
42
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
43
|
+
def create!(*)
|
44
|
+
unavailable_method
|
45
|
+
end
|
46
|
+
|
47
|
+
# Method is not available
|
48
|
+
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
49
|
+
def delete(*)
|
50
|
+
unavailable_method
|
51
|
+
end
|
52
|
+
|
53
|
+
# Adds the resource to OneView using the current data
|
54
|
+
# @note Calls the refresh method to set additional data
|
55
|
+
# @return [OneviewSDK::StorageSystem] self
|
56
|
+
def add
|
57
|
+
ensure_client
|
58
|
+
task = @client.rest_post(self.class::BASE_URI, { 'body' => self['credentials'] }, @api_version)
|
59
|
+
temp = @data.clone
|
60
|
+
task = @client.wait_for(task['uri'] || task['location'])
|
61
|
+
@data['uri'] = task['associatedResource']['resourceUri']
|
62
|
+
refresh
|
63
|
+
temp.delete('credentials')
|
64
|
+
update(temp)
|
65
|
+
self
|
66
|
+
end
|
67
|
+
|
68
|
+
# Checks if the resource already exists
|
69
|
+
# @note one of the UNIQUE_IDENTIFIERS or credentials['ip_hostname'] must be specified in the resource
|
70
|
+
# @return [Boolean] Whether or not resource exists
|
71
|
+
# @raise [OneviewSDK::IncompleteResource] if required attributes are not filled
|
72
|
+
def exists?
|
73
|
+
ip_hostname = self['credentials'][:ip_hostname] || self['credentials']['ip_hostname'] rescue nil
|
74
|
+
return true if ip_hostname && self.class.find_by(@client, credentials: { ip_hostname: ip_hostname }).size == 1
|
75
|
+
super
|
76
|
+
rescue IncompleteResource => e
|
77
|
+
raise e unless ip_hostname
|
78
|
+
false
|
79
|
+
end
|
80
|
+
|
81
|
+
# Retrieves the resource details based on this resource's name or URI.
|
82
|
+
# @note one of the UNIQUE_IDENTIFIERS or credentials['ip_hostname'] must be specified in the resource
|
83
|
+
# @return [Boolean] Whether or not retrieve was successful
|
84
|
+
# @raise [OneviewSDK::IncompleteResource] if required attributes are not filled
|
85
|
+
def retrieve!
|
86
|
+
ip_hostname = self['credentials'][:ip_hostname] || self['credentials']['ip_hostname'] rescue nil
|
87
|
+
if ip_hostname
|
88
|
+
results = self.class.find_by(@client, credentials: { ip_hostname: ip_hostname })
|
89
|
+
if results.size == 1
|
90
|
+
set_all(results[0].data)
|
91
|
+
return true
|
92
|
+
end
|
93
|
+
end
|
94
|
+
super
|
95
|
+
rescue IncompleteResource => e
|
96
|
+
raise e unless ip_hostname
|
97
|
+
false
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check the equality of the data for the other resource with this resource.
|
101
|
+
# @note Does not check the client, logger, or api_version if another resource is passed in
|
102
|
+
# @param [Hash, Resource] other resource or hash to compare the key-value pairs with
|
103
|
+
# @example Compare to hash
|
104
|
+
# @note Does not check the password in credentials
|
105
|
+
# @example myResource.like?(credentials: { username: 'admin', password: 'secret' })
|
106
|
+
# myResource = OneviewSDK::Resource.new(client, { name: 'res1', description: 'example'}, 200)
|
107
|
+
# myResource.like?(description: '') # returns false
|
108
|
+
# myResource.like?(name: 'res1') # returns true
|
109
|
+
# @return [Boolean] Whether or not the two objects are alike
|
110
|
+
def like?(other)
|
111
|
+
if other.is_a? Hash
|
112
|
+
other_copy = Marshal.load(Marshal.dump(other))
|
113
|
+
else
|
114
|
+
other_copy = other.dup
|
115
|
+
other_copy.data = Marshal.load(Marshal.dump(other.data))
|
116
|
+
end
|
117
|
+
|
118
|
+
if other_copy['credentials']
|
119
|
+
other_copy['credentials'].delete('password') rescue nil
|
120
|
+
other_copy['credentials'].delete(:password) rescue nil
|
121
|
+
elsif other_copy[:credentials]
|
122
|
+
other_copy[:credentials].delete('password') rescue nil
|
123
|
+
other_copy[:credentials].delete(:password) rescue nil
|
124
|
+
end
|
125
|
+
|
126
|
+
super(other_copy)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Gets the host types for the storage system resource
|
130
|
+
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
131
|
+
# @return [String] response body
|
132
|
+
def self.get_host_types(client)
|
133
|
+
response = client.rest_get(BASE_URI + '/host-types')
|
134
|
+
client.response_handler(response)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Lists the storage pools
|
138
|
+
def get_storage_pools
|
139
|
+
self.class.find_with_pagination(@client, @data['uri'] + '/storage-pools')
|
140
|
+
end
|
141
|
+
|
142
|
+
# Lists all managed target ports for the specified storage system,
|
143
|
+
# or only the one specified
|
144
|
+
# @param [String] port Target port
|
145
|
+
def get_managed_ports(port = nil)
|
146
|
+
uri = @data['uri']
|
147
|
+
uri += port.nil? ? '/managedPorts' : "/managedPorts/#{port}"
|
148
|
+
self.class.find_with_pagination(@client, uri)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Refreshes a storage system
|
152
|
+
# @param [String] state NotRefreshing, RefreshFailed, RefreshPending, Refreshing
|
153
|
+
def set_refresh_state(state)
|
154
|
+
@data['refreshState'] = state
|
155
|
+
update
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|