oneview-sdk 5.16.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +200 -1
- data/Dockerfile +2 -2
- data/Gemfile +1 -0
- data/Guardfile +1 -1
- data/LICENSE +1 -1
- data/README.md +123 -109
- data/Rakefile +1 -1
- data/TESTING.md +1 -0
- data/bin/oneview-sdk-ruby +1 -0
- data/endpoints-support.md +309 -308
- data/lib/oneview-sdk.rb +2 -2
- data/lib/oneview-sdk/client.rb +0 -1
- data/lib/oneview-sdk/image-streamer/resource/api2000.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2000/plan_script.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2010/plan_script.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020.rb +39 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/artifact_bundle.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/build_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/deployment_group.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/deployment_plan.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/golden_image.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/os_volume.rb +22 -0
- data/lib/oneview-sdk/image-streamer/resource/api2020/plan_script.rb +22 -0
- data/lib/oneview-sdk/image_streamer.rb +1 -1
- data/lib/oneview-sdk/resource/api2200.rb +66 -0
- data/lib/oneview-sdk/resource/api2200/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api2200/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/hypervisor_cluster_profile.rb +27 -0
- data/lib/oneview-sdk/resource/api2200/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/interconnect.rb +23 -0
- data/lib/oneview-sdk/resource/api2200/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2200/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api2200/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2200/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/server_profile.rb +25 -0
- data/lib/oneview-sdk/resource/api2200/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2200/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2400.rb +66 -0
- data/lib/oneview-sdk/resource/api2400/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api2400/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2400/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/logical_interconnect.rb +33 -0
- data/lib/oneview-sdk/resource/api2400/c7000/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api2400/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2400/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/server_profile.rb +23 -0
- data/lib/oneview-sdk/resource/api2400/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2400/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2600.rb +66 -0
- data/lib/oneview-sdk/resource/api2600/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api2600/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2600/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api2600/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2600/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/server_profile.rb +23 -0
- data/lib/oneview-sdk/resource/api2600/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2600/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2800.rb +66 -0
- data/lib/oneview-sdk/resource/api2800/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api2800/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2800/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api2800/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api2800/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/server_profile.rb +23 -0
- data/lib/oneview-sdk/resource/api2800/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api2800/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api3000.rb +66 -0
- data/lib/oneview-sdk/resource/api3000/c7000.rb +27 -0
- data/lib/oneview-sdk/resource/api3000/c7000/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api3000/c7000/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/server_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/c7000/volume_template.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy.rb +27 -0
- data/lib/oneview-sdk/resource/api3000/synergy/connection_template.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/enclosure_group.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/ethernet_network.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/fc_network.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/fcoe_network.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/firmware_driver.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/lig_uplink_set.rb +21 -0
- data/lib/oneview-sdk/resource/api3000/synergy/logical_enclosure.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/logical_interconnect.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/logical_interconnect_group.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/network_set.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/scope.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/server_hardware.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/server_hardware_type.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/server_profile.rb +23 -0
- data/lib/oneview-sdk/resource/api3000/synergy/server_profile_template.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/storage_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/storage_system.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/uplink_set.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/volume.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/volume_attachment.rb +22 -0
- data/lib/oneview-sdk/resource/api3000/synergy/volume_template.rb +22 -0
- data/lib/oneview-sdk/version.rb +2 -2
- data/oneview-sdk.gemspec +2 -2
- metadata +317 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b41c8378656913a6b4a9a7e2e0a58154c6a0491fb0cf2830422cc86f57acb2
|
4
|
+
data.tar.gz: 4fa26f897ed6e2ba66c8fe34204a85918379fc540af875936a9365b6272230af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b5bcf3ed9a31a759e460e76c0a7e5f2a0ef54800de9bdde087bcbf25c654b6f83082f066fe842c7e7cc66d7f68ef6d89b025cda949f111f511108d3f9709efb
|
7
|
+
data.tar.gz: 55a7d15c3dd7ddab4b1dc5176c8e8e03bb4b8923edeeba288bb3a35a4c092515d7198fe67c375670ba59ebb1e14ee909106c2a448afb4dc5578fda2bb79eb5ea
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,202 @@
|
|
1
|
+
## 6.2.0
|
2
|
+
#### Notes
|
3
|
+
Extends support of the SDK to OneView REST API version 3000 (OneView v6.20).
|
4
|
+
|
5
|
+
#### Features supported
|
6
|
+
- Connection Template
|
7
|
+
- Enclosure
|
8
|
+
- Enclosure Group
|
9
|
+
- Ethernet Network
|
10
|
+
- FC Network
|
11
|
+
- FCOE Network
|
12
|
+
- Firmware Driver
|
13
|
+
- Hypervisor Cluster Profile
|
14
|
+
- Hypervisor Manager
|
15
|
+
- Interconnects
|
16
|
+
- Interconnect Type
|
17
|
+
- LIG Uplink Set
|
18
|
+
- Logical Enclosure
|
19
|
+
- Logical Interconnect
|
20
|
+
- Logical Interconnect Group
|
21
|
+
- Network Set
|
22
|
+
- OS Deployment Plan
|
23
|
+
- Scope
|
24
|
+
- Server Certificate
|
25
|
+
- Server Hardware
|
26
|
+
- Server Hardware Type
|
27
|
+
- Server Profile
|
28
|
+
- Server Profile Template
|
29
|
+
- Storage Pool
|
30
|
+
- Storage System
|
31
|
+
- Uplink Set
|
32
|
+
- Volume
|
33
|
+
- Volume Attachment
|
34
|
+
- Volume Template
|
35
|
+
|
36
|
+
## 6.1.0
|
37
|
+
#### Notes
|
38
|
+
Extends support of the SDK to OneView REST API version 2800 (OneView v6.10) and ImageStreamer REST API version 2020 (I3S v6.10).
|
39
|
+
|
40
|
+
#### Features supported
|
41
|
+
- Artifact Bundle
|
42
|
+
- Build Plan
|
43
|
+
- Connection Template
|
44
|
+
- Deployment Group
|
45
|
+
- Deployment Plan
|
46
|
+
- Enclosure
|
47
|
+
- Enclosure Group
|
48
|
+
- Ethernet Network
|
49
|
+
- FC Network
|
50
|
+
- FCOE Network
|
51
|
+
- Firmware Driver
|
52
|
+
- Golden Image
|
53
|
+
- Hypervisor Cluster Profile
|
54
|
+
- Hypervisor Manager
|
55
|
+
- Interconnects
|
56
|
+
- Interconnect Type
|
57
|
+
- LIG Uplink Set
|
58
|
+
- Logical Enclosure
|
59
|
+
- Logical Interconnect
|
60
|
+
- Logical Interconnect Group
|
61
|
+
- Network Set
|
62
|
+
- OS Deployment Plan
|
63
|
+
- OS Volume
|
64
|
+
- Plan Script
|
65
|
+
- Scope
|
66
|
+
- Server Certificate
|
67
|
+
- Server Hardware
|
68
|
+
- Server Hardware Type
|
69
|
+
- Server Profile
|
70
|
+
- Server Profile Template
|
71
|
+
- Storage Pool
|
72
|
+
- Storage System
|
73
|
+
- Uplink Set
|
74
|
+
- Volume
|
75
|
+
- Volume Attachment
|
76
|
+
- Volume Template
|
77
|
+
|
78
|
+
## 6.0.0
|
79
|
+
#### Notes
|
80
|
+
Extends support of the SDK to OneView REST API version 2600 (OneView v6.00) and ImageStreamer REST API version 2010 (I3S v6.00).
|
81
|
+
|
82
|
+
#### Features supported
|
83
|
+
- Artifact Bundle
|
84
|
+
- Build Plan
|
85
|
+
- Connection Template
|
86
|
+
- Deployment Group
|
87
|
+
- Deployment Plan
|
88
|
+
- Enclosure
|
89
|
+
- Enclosure Group
|
90
|
+
- Ethernet Network
|
91
|
+
- FC Network
|
92
|
+
- FCOE Network
|
93
|
+
- Firmware Driver
|
94
|
+
- Golden Image
|
95
|
+
- Hypervisor Cluster Profile
|
96
|
+
- Hypervisor Manager
|
97
|
+
- Interconnects
|
98
|
+
- Interconnect Type
|
99
|
+
- LIG Uplink Set
|
100
|
+
- Logical Enclosure
|
101
|
+
- Logical Interconnect
|
102
|
+
- Logical Interconnect Group
|
103
|
+
- Network Set
|
104
|
+
- OS Deployment Plan
|
105
|
+
- OS Volume
|
106
|
+
- Plan Script
|
107
|
+
- Scope
|
108
|
+
- Server Certificate
|
109
|
+
- Server Hardware
|
110
|
+
- Server Hardware Type
|
111
|
+
- Server Profile
|
112
|
+
- Server Profile Template
|
113
|
+
- Storage Pool
|
114
|
+
- Storage System
|
115
|
+
- Uplink Set
|
116
|
+
- Volume
|
117
|
+
- Volume Attachment
|
118
|
+
- Volume Template
|
119
|
+
|
120
|
+
## v5.18.0
|
121
|
+
#### Notes
|
122
|
+
Extends support of the SDK to OneView REST API version 2400 (OneView v5.60).
|
123
|
+
|
124
|
+
#### Features supported
|
125
|
+
- Connection Template
|
126
|
+
- Enclosure
|
127
|
+
- Enclosure Group
|
128
|
+
- Ethernet Network
|
129
|
+
- FC Network
|
130
|
+
- FCOE Network
|
131
|
+
- Firmware Driver
|
132
|
+
- Hypervisor Cluster Profile
|
133
|
+
- Hypervisor Manager
|
134
|
+
- Interconnects
|
135
|
+
- Interconnect Type
|
136
|
+
- LIG Uplink Set
|
137
|
+
- Logical Enclosure
|
138
|
+
- Logical Interconnect
|
139
|
+
- Logical Interconnect Group
|
140
|
+
- Network Set
|
141
|
+
- OS Deployment Plan
|
142
|
+
- Scope
|
143
|
+
- Server Certificate
|
144
|
+
- Server Hardware
|
145
|
+
- Server Hardware Type
|
146
|
+
- Storage Pool
|
147
|
+
- Server Profile
|
148
|
+
- Server Profile Template
|
149
|
+
- Storage System
|
150
|
+
- Uplink Set
|
151
|
+
- Volume
|
152
|
+
- Volume Attachment
|
153
|
+
- Volume Template
|
154
|
+
|
155
|
+
## v5.17.0
|
156
|
+
#### Notes
|
157
|
+
Extends support of the SDK to OneView REST API version 2200 (OneView v5.50) and ImageStreamer REST API version 2000 (I3S v5.40).
|
158
|
+
|
159
|
+
#### Bug fixes & Enhancements
|
160
|
+
- [#473](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/473)Failing to install oneview-sdk gem as runtime environment
|
161
|
+
|
162
|
+
#### Features supported
|
163
|
+
- Artifact Bundle
|
164
|
+
- Build Plan
|
165
|
+
- Connection Template
|
166
|
+
- Deployment Group
|
167
|
+
- Deployment Plan
|
168
|
+
- Enclosure
|
169
|
+
- Enclosure Group
|
170
|
+
- Ethernet Network
|
171
|
+
- FC Network
|
172
|
+
- FCOE Network
|
173
|
+
- Firmware Driver
|
174
|
+
- Golden Image
|
175
|
+
- Hypervisor Cluster Profile
|
176
|
+
- Hypervisor Manager
|
177
|
+
- Interconnects
|
178
|
+
- Interconnect Type
|
179
|
+
- LIG Uplink Set
|
180
|
+
- Logical Enclosure
|
181
|
+
- Logical Interconnect
|
182
|
+
- Logical Interconnect Group
|
183
|
+
- Network Set
|
184
|
+
- OS Deployment Plan
|
185
|
+
- OS Volume
|
186
|
+
- Plan Script
|
187
|
+
- Scope
|
188
|
+
- Server Certificate
|
189
|
+
- Server Hardware
|
190
|
+
- Server Hardware Type
|
191
|
+
- Storage Pool
|
192
|
+
- Server Profile
|
193
|
+
- Server Profile Template
|
194
|
+
- Storage System
|
195
|
+
- Uplink Set
|
196
|
+
- Volume
|
197
|
+
- Volume Attachment
|
198
|
+
- Volume Template
|
199
|
+
|
1
200
|
## v5.16.0
|
2
201
|
|
3
202
|
#### Notes
|
@@ -67,7 +266,7 @@ This release extends support to OneView Rest API version 1800 (OneView v5.30) fo
|
|
67
266
|
- Hypervisor Manager
|
68
267
|
- Interconnects
|
69
268
|
- Interconnect Types
|
70
|
-
- LIG
|
269
|
+
- LIG Uplink Set
|
71
270
|
- Logical Enclosure
|
72
271
|
- Logical Interconnect
|
73
272
|
- Logical Interconnect Group
|
data/Dockerfile
CHANGED
@@ -9,8 +9,8 @@ RUN apt-get update -y && \
|
|
9
9
|
RUN gem install oneview
|
10
10
|
ADD . oneview/
|
11
11
|
WORKDIR /root/oneview
|
12
|
-
RUN gem install bundler
|
13
|
-
RUN bundle
|
12
|
+
RUN gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
|
13
|
+
RUN bundle install
|
14
14
|
|
15
15
|
# Clean and remove not required packages
|
16
16
|
RUN DEBIAN_FRONTEND=noninteractive \
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
data/LICENSE
CHANGED
@@ -175,7 +175,7 @@ of your accepting any such warranty or additional liability.
|
|
175
175
|
|
176
176
|
END OF TERMS AND CONDITIONS
|
177
177
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
179
|
|
180
180
|
To apply the Apache License to your work, attach the following
|
181
181
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
data/README.md
CHANGED
@@ -1,34 +1,50 @@
|
|
1
|
-
#
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/oneview-sdk.svg)](https://badge.fury.io/rb/oneview-sdk)
|
3
|
-
[![Yard Docs](https://img.shields.io/badge/yard-docs-yellow.svg)](http://www.rubydoc.info/gems/oneview-sdk)
|
1
|
+
# HPE OneView SDK for Ruby
|
4
2
|
|
5
|
-
|
6
|
-
[![Coverage Status](https://coveralls.io/repos/github/HewlettPackard/oneview-sdk-ruby/badge.svg)](https://coveralls.io/github/HewlettPackard/oneview-sdk-ruby)
|
7
|
-
[![Code Climate](https://codeclimate.com/github/HewlettPackard/oneview-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/HewlettPackard/oneview-sdk-ruby)
|
3
|
+
## Build Status
|
8
4
|
|
9
|
-
|
5
|
+
OV Version | 6.20 | 6.10 | 6.00 | 5.60 | 5.50 | 5.40 |
|
6
|
+
| ------------- |:-------------:| :-------------:| :-------------:| :-------------:| :-------------:| :-------------:|
|
7
|
+
SDK Version/Tag | [v6.2.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.2.0) | [v6.1.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.1.0) | [v6.0.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.0.0) | [v5.18.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.18.0) | [v5.17.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.17.0) | [v5.16.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.16.0) |
|
8
|
+
Build Status | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/runs/2949080207) | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/769868941)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/634796649)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/519793086)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/349360042)|[![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/343154951)|
|
9
|
+
|
10
|
+
|
11
|
+
## Introduction
|
12
|
+
|
13
|
+
HPE OneView makes it simple to deploy and manage today’s complex hybrid cloud infrastructure. HPE OneView can help you transform your data center to software-defined, and it supports HPE’s broad portfolio of servers, storage, and networking solutions, ensuring the simple and automated management of your hybrid infrastructure. Software-defined intelligence enables a template-driven approach for deploying, provisioning, updating, and integrating compute, storage, and networking infrastructure.
|
14
|
+
|
15
|
+
The HPE OneView Ruby SDK provides library to easily interact with HPE OneView and HPE Image Streamer REST APIs. The HPE OneView Ruby SDK enables developers to easily build integrations and scalable solutions with HPE OneView and HPE Image Streamer.
|
16
|
+
|
17
|
+
You can find the latest supported HPE OneView Ruby SDK [here](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/latest)
|
18
|
+
|
19
|
+
## What's New
|
20
|
+
|
21
|
+
HPE OneView Ruby library extends support of the SDK to OneView REST API version 3000 (OneView v6.20)
|
22
|
+
|
23
|
+
Please refer to [notes](https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version
|
24
|
+
|
25
|
+
## Getting Started
|
26
|
+
|
27
|
+
## Installation and Configuration
|
10
28
|
|
11
29
|
## Installation
|
12
|
-
You can either use a docker container which will have the
|
30
|
+
HPE OneView SDK for Ruby can be installed from Source and Docker container installation methods.You can either use a docker container which will have the HPE OneView SDK for Ruby installed or perform local installation.
|
31
|
+
|
13
32
|
### Docker Setup
|
14
|
-
|
15
|
-
an installation of oneview-sdk-ruby and you can use it by just pulling down the Docker Image:
|
16
|
-
The Docker Store image tag consist of two sections: <sdk_version-OV_version>
|
33
|
+
The light weight containerized version of the HPE OneView SDK for Ruby is available in the [Docker Store](https://store.docker.com/community/images/hewlettpackardenterprise/hpe-oneview-sdk-for-ruby). The Docker Store image tag consist of two sections: <sdk_version-OV_version>
|
17
34
|
|
18
35
|
```bash
|
19
|
-
# Download and store a local copy of oneview-sdk-ruby and
|
20
|
-
|
21
|
-
|
22
|
-
#
|
23
|
-
|
24
|
-
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.16.0-OV5.4 /bin/sh
|
36
|
+
# Download and store a local copy of oneview-sdk-ruby and use it as a Docker Image.
|
37
|
+
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v6.1.0-OV6.1
|
38
|
+
# Run docker commands below given, which will in turn create a sh session
|
39
|
+
# where you can create files, issue commands and execute the examples.
|
40
|
+
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v6.1.0-OV6.1 /bin/sh
|
25
41
|
```
|
26
42
|
|
27
43
|
### Local Setup
|
28
|
-
-
|
44
|
+
- Local installation requires the gem in your Gemfile:
|
29
45
|
|
30
46
|
```ruby
|
31
|
-
gem 'oneview-sdk', '~>
|
47
|
+
gem 'oneview-sdk', '~> 6.1.0'
|
32
48
|
```
|
33
49
|
|
34
50
|
Then run `$ bundle install`
|
@@ -40,7 +56,9 @@ $ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.16.0-OV5.4
|
|
40
56
|
|
41
57
|
|
42
58
|
## Configuration
|
43
|
-
|
59
|
+
|
60
|
+
### OneView Client Configuration
|
61
|
+
The OneView Client configuration options that can be passed during OneView Client object creation:
|
44
62
|
|
45
63
|
```ruby
|
46
64
|
# Create a OneView client object:
|
@@ -49,18 +67,19 @@ client = OneviewSDK::Client.new(
|
|
49
67
|
url: 'https://oneview.example.com',
|
50
68
|
user: 'Administrator', # This is the default
|
51
69
|
password: 'secret123',
|
52
|
-
token: 'xxxx...', # Set EITHER
|
70
|
+
token: 'xxxx...', # Set EITHER token or the username & password
|
53
71
|
ssl_enabled: true, # This is the default and strongly encouraged
|
54
72
|
logger: Logger.new(STDOUT), # This is the default
|
55
73
|
log_level: :info, # This is the default
|
56
74
|
domain: 'LOCAL', # This is the default
|
57
|
-
api_version:
|
75
|
+
api_version: 3000 # Defaults to appliance's max API version which is API version of OneView 6.20
|
58
76
|
)
|
59
77
|
```
|
60
78
|
|
61
79
|
:lock: Tip: Check the file permissions because the password is stored in clear-text.
|
62
80
|
|
63
|
-
|
81
|
+
### Image Streamer Client Configuration
|
82
|
+
The Image Streamer (I3S) client is very much similar to the OneView client, but has one key difference:
|
64
83
|
it cannot generate it's own token. However, it uses the same token given to or generated by the OneView client,
|
65
84
|
so if you need to generate a token, create a OneView client using a user & password, then pass the generated token
|
66
85
|
into the Image Streamer client.
|
@@ -74,11 +93,12 @@ i3s_client = OneviewSDK::ImageStreamer::Client.new(
|
|
74
93
|
ssl_enabled: true, # This is the default and strongly encouraged
|
75
94
|
logger: Logger.new(STDOUT), # This is the default
|
76
95
|
log_level: :info, # This is the default
|
77
|
-
api_version:
|
96
|
+
api_version: 2020 # Defaults to appliance's max API version
|
78
97
|
)
|
79
98
|
```
|
80
99
|
|
81
|
-
You can also create the
|
100
|
+
You can also create the Image Streamer(I3S) client through the Oneview client instance.
|
101
|
+
|
82
102
|
```ruby
|
83
103
|
# Create an Image Streamer client object through the Oneview client object:
|
84
104
|
require 'oneview-sdk'
|
@@ -87,13 +107,13 @@ i3s_client = client.new_i3s_client(
|
|
87
107
|
ssl_enabled: true, # This is the default and strongly encouraged
|
88
108
|
logger: Logger.new(STDOUT), # This is the default
|
89
109
|
log_level: :info, # This is the default
|
90
|
-
api_version:
|
110
|
+
api_version: 2020 # Defaults to appliance's max API version
|
91
111
|
)
|
92
112
|
```
|
93
113
|
|
94
|
-
|
114
|
+
### Environment Variables
|
95
115
|
|
96
|
-
|
116
|
+
Configuration can also be defined through environment variables.To set these variables in bash:
|
97
117
|
|
98
118
|
```bash
|
99
119
|
# OneView client options:
|
@@ -136,7 +156,7 @@ i3s_client = OneviewSDK::ImageStreamer::Client.new
|
|
136
156
|
|
137
157
|
NOTE: Run `$ oneview-sdk-ruby env` to see a list of available environment variables and their current values.
|
138
158
|
|
139
|
-
|
159
|
+
### Configuration Files
|
140
160
|
|
141
161
|
Configuration files can also be used to define client configuration (json or yaml formats). Here's an example json file:
|
142
162
|
|
@@ -145,7 +165,7 @@ Configuration files can also be used to define client configuration (json or yam
|
|
145
165
|
"url": "https://oneview.example.com",
|
146
166
|
"user": "Administrator",
|
147
167
|
"password": "secret123",
|
148
|
-
"api_version":
|
168
|
+
"api_version": 3000
|
149
169
|
}
|
150
170
|
```
|
151
171
|
|
@@ -174,76 +194,32 @@ level=(Symbol, etc.) # The parameter here will be the log_level attribute
|
|
174
194
|
|
175
195
|
## API Implementation
|
176
196
|
|
177
|
-
A
|
197
|
+
A detailed list of the HPE OneView REST interfaces that have been implemented in this SDK can be found in the [endpoints-support.md](https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/endpoints-support.md) file.
|
178
198
|
|
179
|
-
### OneView API
|
180
|
-
You may notice resource classes being accessed in a few different ways; for example, `OneviewSDK::EthernetNetwork`, `OneviewSDK::
|
199
|
+
### HPE OneView API Versions and Appliance types
|
200
|
+
You may notice resource classes being accessed in a few different ways; for example, `OneviewSDK::EthernetNetwork`, `OneviewSDK::API1000::EthernetNetwork`, and `OneviewSDK::API1000::C7000::EthernetNetwork`. However, each of these accessors may actually be referring to the same class. This is because in order to keep backwards compatibility and make examples a little more simple, there are module methods in place to redirect/resolve the shorthand accessors to their full namespace identifier. In order to automatically complete the full namespace identifier, there are some defaults in place. Here's some example code that should help clear things up (return values are commented behind the code):
|
181
201
|
|
182
202
|
```ruby
|
183
203
|
require 'oneview-sdk'
|
184
204
|
|
185
205
|
# Show defaults:
|
186
|
-
OneviewSDK::SUPPORTED_API_VERSIONS # [
|
187
|
-
OneviewSDK::DEFAULT_API_VERSION #
|
188
|
-
OneviewSDK.api_version #
|
206
|
+
OneviewSDK::SUPPORTED_API_VERSIONS # [1000, 1200, 1600, 1800, 2000, 2200, 2600, 2800, 3000]
|
207
|
+
OneviewSDK::DEFAULT_API_VERSION # 3000
|
208
|
+
OneviewSDK.api_version # 3000
|
189
209
|
OneviewSDK.api_version_updated? # false
|
190
210
|
|
191
211
|
# Notice the automatic redirection/resolution when we use the shorthand accessor:
|
192
|
-
OneviewSDK::EthernetNetwork # OneviewSDK::
|
212
|
+
OneviewSDK::EthernetNetwork # OneviewSDK::API3000::EthernetNetwork
|
193
213
|
|
194
214
|
# Even this comparison is true:
|
195
|
-
OneviewSDK::EthernetNetwork == OneviewSDK::
|
215
|
+
OneviewSDK::EthernetNetwork == OneviewSDK::API3000::EthernetNetwork # true
|
196
216
|
|
197
217
|
# Now let's set a new API version default:
|
198
|
-
OneviewSDK.api_version =
|
199
|
-
OneviewSDK.api_version #
|
218
|
+
OneviewSDK.api_version = 3000
|
219
|
+
OneviewSDK.api_version # 3000
|
200
220
|
OneviewSDK.api_version_updated? # true
|
201
221
|
|
202
|
-
# The
|
203
|
-
OneviewSDK::API300::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
204
|
-
OneviewSDK::API300::DEFAULT_VARIANT # 'C7000'
|
205
|
-
OneviewSDK::API300.variant # 'C7000'
|
206
|
-
OneviewSDK::API300.variant_updated? # false
|
207
|
-
|
208
|
-
OneviewSDK::API500::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
209
|
-
OneviewSDK::API500::DEFAULT_VARIANT # 'C7000'
|
210
|
-
OneviewSDK::API500.variant # 'C7000'
|
211
|
-
OneviewSDK::API500.variant_updated? # false
|
212
|
-
|
213
|
-
OneviewSDK::API600::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
214
|
-
OneviewSDK::API600::DEFAULT_VARIANT # 'C7000'
|
215
|
-
OneviewSDK::API600.variant # 'C7000'
|
216
|
-
OneviewSDK::API600.variant_updated? # false
|
217
|
-
|
218
|
-
OneviewSDK::API800::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
219
|
-
OneviewSDK::API800::DEFAULT_VARIANT # 'C7000'
|
220
|
-
OneviewSDK::API800.variant # 'C7000'
|
221
|
-
OneviewSDK::API800.variant_updated? # false
|
222
|
-
|
223
|
-
OneviewSDK::API1000::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
224
|
-
OneviewSDK::API1000::DEFAULT_VARIANT # 'C7000'
|
225
|
-
OneviewSDK::API1000.variant # 'C7000'
|
226
|
-
OneviewSDK::API1000.variant_updated? # false
|
227
|
-
|
228
|
-
OneviewSDK::API1200::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
229
|
-
OneviewSDK::API1200::DEFAULT_VARIANT # 'C7000'
|
230
|
-
OneviewSDK::API1200.variant # 'C7000'
|
231
|
-
OneviewSDK::API1200.variant_updated? # false
|
232
|
-
# Therefore, there is 1 more namespace level to the real resource class name
|
233
|
-
OneviewSDK::EthernetNetwork # OneviewSDK::API300::C7000::EthernetNetwork
|
234
|
-
OneviewSDK::API300::EthernetNetwork # OneviewSDK::API300::C7000::EthernetNetwork
|
235
|
-
|
236
|
-
# Likewise, we can set a new default variant for the API300 module:
|
237
|
-
OneviewSDK::API300.variant = 'Synergy'
|
238
|
-
OneviewSDK::API300.variant # 'Synergy'
|
239
|
-
OneviewSDK::API300.variant_updated? # true
|
240
|
-
OneviewSDK::EthernetNetwork # OneviewSDK::API300::Synergy::EthernetNetwork
|
241
|
-
OneviewSDK::API300::EthernetNetwork # OneviewSDK::API300::Synergy::EthernetNetwork
|
242
|
-
|
243
|
-
OneviewSDK::API1600::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
244
|
-
OneviewSDK::API1600::DEFAULT_VARIANT # 'C7000'
|
245
|
-
OneviewSDK::API1600.variant # 'C7000'
|
246
|
-
OneviewSDK::API1600.variant_updated? # false
|
222
|
+
# The API300 and above has 2 variants (C7000 & Synergy): For eg
|
247
223
|
|
248
224
|
OneviewSDK::API1800::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
249
225
|
OneviewSDK::API1800::DEFAULT_VARIANT # 'C7000'
|
@@ -255,16 +231,24 @@ OneviewSDK::API2000::DEFAULT_VARIANT # 'C7000'
|
|
255
231
|
OneviewSDK::API2000.variant # 'C7000'
|
256
232
|
OneviewSDK::API2000.variant_updated? # false
|
257
233
|
|
258
|
-
#
|
259
|
-
OneviewSDK::
|
260
|
-
OneviewSDK::
|
261
|
-
OneviewSDK::
|
262
|
-
|
263
|
-
OneviewSDK::
|
264
|
-
OneviewSDK::
|
234
|
+
OneviewSDK::API2200::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
235
|
+
OneviewSDK::API2200::DEFAULT_VARIANT # 'C7000'
|
236
|
+
OneviewSDK::API2200.variant # 'C7000'
|
237
|
+
OneviewSDK::API2200.variant_updated? # false
|
238
|
+
|
239
|
+
OneviewSDK::API3000::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
240
|
+
OneviewSDK::API3000::DEFAULT_VARIANT # 'C7000'
|
241
|
+
OneviewSDK::API3000.variant # 'C7000'
|
242
|
+
OneviewSDK::API3000.variant_updated? # false
|
243
|
+
|
244
|
+
# Likewise, we can set a new default variant for the API3000 module:
|
245
|
+
OneviewSDK::3000.variant = 'Synergy'
|
246
|
+
OneviewSDK::API3000.variant # 'Synergy'
|
247
|
+
OneviewSDK::API3000.variant_updated? # true
|
248
|
+
|
265
249
|
```
|
266
250
|
|
267
|
-
We understand that this can be confusing, so to avoid any confusion or unexpected behavior, we recommend specifying the full namespace identifier in your code. At the very least, set defaults explicitly using `OneviewSDK.api_version = <ver>` and `OneviewSDK::
|
251
|
+
:lock: Tip: We understand that this can be confusing, so to avoid any confusion or unexpected behavior, we recommend specifying the full namespace identifier in your code. At the very least, set defaults explicitly using `OneviewSDK.api_version = <ver>` and `OneviewSDK::API3000.variant = <variant>`, as the defaults may change.
|
268
252
|
|
269
253
|
## Resources
|
270
254
|
Each OneView and Image Streamer resource is exposed via a Ruby class, enabling CRUD-like functionality (with some exceptions).
|
@@ -385,7 +369,6 @@ This example is about as basic as it gets, but you can make any type of OneView
|
|
385
369
|
If a resource does not do what you need, this will allow you to do it.
|
386
370
|
Please refer to the documentation and [code](lib/oneview-sdk/rest.rb) for complete list of methods and information about how to use them.
|
387
371
|
|
388
|
-
|
389
372
|
## CLI
|
390
373
|
This gem also comes with a command-line interface to make interacting with OneView possible without the need to create a Ruby program or script.
|
391
374
|
|
@@ -484,19 +467,6 @@ $ oneview-sdk-ruby cert import https://oneview.example.com
|
|
484
467
|
$ oneview-sdk-ruby scmb
|
485
468
|
$ oneview-sdk-ruby scmb -r 'scmb.ethernet-networks.#'
|
486
469
|
```
|
487
|
-
|
488
|
-
## License
|
489
|
-
This project is licensed under the Apache 2.0 license. Please see [LICENSE](LICENSE) for more info.
|
490
|
-
|
491
|
-
## Contributing and feature requests
|
492
|
-
**Contributing:** You know the drill. Fork it, branch it, change it, commit it, and pull-request it.
|
493
|
-
We are passionate about improving this project, and glad to accept help to make it better.
|
494
|
-
|
495
|
-
NOTE: We reserve the right to reject changes that we feel do not fit the scope of this project, so for feature additions, please open an issue to discuss your ideas before doing the work.
|
496
|
-
|
497
|
-
**Feature Requests:** If you have a need that is not met by the current implementation, please let us know (via a new issue).
|
498
|
-
This feedback is crucial for us to deliver a useful product. Do not assume we have already thought of everything, because we assure you that is not the case.
|
499
|
-
|
500
470
|
### Building the Gem
|
501
471
|
First run `$ bundle` (requires the bundler gem), then...
|
502
472
|
- To build only, run `$ rake build`.
|
@@ -512,5 +482,49 @@ First run `$ bundle` (requires the bundler gem), then...
|
|
512
482
|
|
513
483
|
For the full testing reference please look into [TESTING.md](TESTING.md) file.
|
514
484
|
|
515
|
-
##
|
516
|
-
|
485
|
+
## Getting Help
|
486
|
+
|
487
|
+
Are you running into a road block? Have an issue with unexpected behavior? Feel free to open a new issue on the [issue tracker](https://github.com/HewlettPackard/oneview-ansible/issues)
|
488
|
+
|
489
|
+
## License
|
490
|
+
This project is licensed under the Apache 2.0 license. Please see [LICENSE](LICENSE) for more info.
|
491
|
+
|
492
|
+
## Contributing and feature requests
|
493
|
+
|
494
|
+
We welcome your contributions to the HPE OneView for Ruby SDK library.
|
495
|
+
|
496
|
+
**Contributing:** You know the drill. Fork it, branch it, change it, commit it, and pull-request it.
|
497
|
+
We are passionate about improving this project, and glad to accept help to make it better.
|
498
|
+
|
499
|
+
NOTE: We reserve the right to reject changes that we feel do not fit the scope of this project, so for feature additions, please open an issue to discuss your ideas before doing the work.
|
500
|
+
|
501
|
+
**Feature Requests:** If you have a need that is not met by the current implementation, please let us know opening an new enhancement request/issue.
|
502
|
+
This feedback is important for us to deliver a useful product.
|
503
|
+
|
504
|
+
|
505
|
+
## Additional Resources
|
506
|
+
|
507
|
+
**HPE OneView Documentation**
|
508
|
+
|
509
|
+
[HPE OneView Release Notes](http://hpe.com/info/OneView/docs)
|
510
|
+
|
511
|
+
[HPE OneView Support Matrix](http://hpe.com/info/OneView/docs)
|
512
|
+
|
513
|
+
[HPE OneView Installation Guide](http://hpe.com/info/OneView/docs)
|
514
|
+
|
515
|
+
[HPE OneView User Guide](http://hpe.com/info/OneView/docs)
|
516
|
+
|
517
|
+
[HPE OneView Online Help](http://hpe.com/info/OneView/docs)
|
518
|
+
|
519
|
+
[HPE OneView REST API Reference](http://hpe.com/info/OneView/docs)
|
520
|
+
|
521
|
+
[HPE OneView Firmware Management White Paper](http://hpe.com/info/OneView/docs)
|
522
|
+
|
523
|
+
[HPE OneView Deployment and Management White Paper](http://hpe.com/info/OneView/docs)
|
524
|
+
|
525
|
+
|
526
|
+
**HPE OneView Community**
|
527
|
+
|
528
|
+
[HPE OneView Community Forums](http://hpe.com/info/oneviewcommunity)
|
529
|
+
|
530
|
+
Learn more about HPE OneView at [hpe.com/info/oneview](https://hpe.com/info/oneview)
|