oneview-sdk 5.15.0 → 6.1.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 +205 -1
- data/Dockerfile +2 -2
- data/Gemfile +1 -0
- data/Guardfile +1 -1
- data/LICENSE +1 -1
- data/README.md +128 -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 +2 -2
- 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.rb +1 -1
- 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/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/version.rb +2 -2
- data/oneview-sdk.gemspec +2 -2
- metadata +318 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6083c5e51b329b3c39ae20415286c7ba89fa256550cc4ee0afc6c8b7a2bd862f
|
4
|
+
data.tar.gz: 473fc371472b61de2d5822322a3d3767b4b0d6629235754209113e86075528b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bcf36a06bf907a30b0e5574294fbc958dbd01d73f95ac316cc79a92021ffb6dd944e952a717c41a9e354db3a682a12ed76fd01e5d540c80320426d2c9b1c61b
|
7
|
+
data.tar.gz: c235ac20daecff731b32db3229c0405ae5d4379d0096dd703709a0b5f0cbb6cf606d18bc0cbf0e7439d653eea33ee174244c546ca7f5b7faa6ac9888e7003592
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,207 @@
|
|
1
|
+
## 6.1.0
|
2
|
+
#### Notes
|
3
|
+
Extends support of the SDK to OneView REST API version 2800 (OneView v6.10) and ImageStreamer REST API version 2020 (I3S v6.10).
|
4
|
+
|
5
|
+
#### Features supported
|
6
|
+
- Artifact Bundle
|
7
|
+
- Build Plan
|
8
|
+
- Connection Template
|
9
|
+
- Deployment Group
|
10
|
+
- Deployment Plan
|
11
|
+
- Enclosure
|
12
|
+
- Enclosure Group
|
13
|
+
- Ethernet Network
|
14
|
+
- FC Network
|
15
|
+
- FCOE Network
|
16
|
+
- Firmware Driver
|
17
|
+
- Golden Image
|
18
|
+
- Hypervisor Cluster Profile
|
19
|
+
- Hypervisor Manager
|
20
|
+
- Interconnects
|
21
|
+
- Interconnect Type
|
22
|
+
- LIG Uplink Set
|
23
|
+
- Logical Enclosure
|
24
|
+
- Logical Interconnect
|
25
|
+
- Logical Interconnect Group
|
26
|
+
- Network Set
|
27
|
+
- OS Deployment Plan
|
28
|
+
- OS Volume
|
29
|
+
- Plan Script
|
30
|
+
- Scope
|
31
|
+
- Server Certificate
|
32
|
+
- Server Hardware
|
33
|
+
- Server Hardware Type
|
34
|
+
- Server Profile
|
35
|
+
- Server Profile Template
|
36
|
+
- Storage Pool
|
37
|
+
- Storage System
|
38
|
+
- Uplink Set
|
39
|
+
- Volume
|
40
|
+
- Volume Attachment
|
41
|
+
- Volume Template
|
42
|
+
|
43
|
+
## 6.0.0
|
44
|
+
#### Notes
|
45
|
+
Extends support of the SDK to OneView REST API version 2600 (OneView v6.00) and ImageStreamer REST API version 2010 (I3S v6.00).
|
46
|
+
|
47
|
+
#### Features supported
|
48
|
+
- Artifact Bundle
|
49
|
+
- Build Plan
|
50
|
+
- Connection Template
|
51
|
+
- Deployment Group
|
52
|
+
- Deployment Plan
|
53
|
+
- Enclosure
|
54
|
+
- Enclosure Group
|
55
|
+
- Ethernet Network
|
56
|
+
- FC Network
|
57
|
+
- FCOE Network
|
58
|
+
- Firmware Driver
|
59
|
+
- Golden Image
|
60
|
+
- Hypervisor Cluster Profile
|
61
|
+
- Hypervisor Manager
|
62
|
+
- Interconnects
|
63
|
+
- Interconnect Type
|
64
|
+
- LIG Uplink Set
|
65
|
+
- Logical Enclosure
|
66
|
+
- Logical Interconnect
|
67
|
+
- Logical Interconnect Group
|
68
|
+
- Network Set
|
69
|
+
- OS Deployment Plan
|
70
|
+
- OS Volume
|
71
|
+
- Plan Script
|
72
|
+
- Scope
|
73
|
+
- Server Certificate
|
74
|
+
- Server Hardware
|
75
|
+
- Server Hardware Type
|
76
|
+
- Server Profile
|
77
|
+
- Server Profile Template
|
78
|
+
- Storage Pool
|
79
|
+
- Storage System
|
80
|
+
- Uplink Set
|
81
|
+
- Volume
|
82
|
+
- Volume Attachment
|
83
|
+
- Volume Template
|
84
|
+
|
85
|
+
## v5.18.0
|
86
|
+
#### Notes
|
87
|
+
Extends support of the SDK to OneView REST API version 2400 (OneView v5.60).
|
88
|
+
|
89
|
+
#### Features supported
|
90
|
+
- Connection Template
|
91
|
+
- Enclosure
|
92
|
+
- Enclosure Group
|
93
|
+
- Ethernet Network
|
94
|
+
- FC Network
|
95
|
+
- FCOE Network
|
96
|
+
- Firmware Driver
|
97
|
+
- Hypervisor Cluster Profile
|
98
|
+
- Hypervisor Manager
|
99
|
+
- Interconnects
|
100
|
+
- Interconnect Type
|
101
|
+
- LIG Uplink Set
|
102
|
+
- Logical Enclosure
|
103
|
+
- Logical Interconnect
|
104
|
+
- Logical Interconnect Group
|
105
|
+
- Network Set
|
106
|
+
- OS Deployment Plan
|
107
|
+
- Scope
|
108
|
+
- Server Certificate
|
109
|
+
- Server Hardware
|
110
|
+
- Server Hardware Type
|
111
|
+
- Storage Pool
|
112
|
+
- Server Profile
|
113
|
+
- Server Profile Template
|
114
|
+
- Storage System
|
115
|
+
- Uplink Set
|
116
|
+
- Volume
|
117
|
+
- Volume Attachment
|
118
|
+
- Volume Template
|
119
|
+
|
120
|
+
## v5.17.0
|
121
|
+
#### Notes
|
122
|
+
Extends support of the SDK to OneView REST API version 2200 (OneView v5.50) and ImageStreamer REST API version 2000 (I3S v5.40).
|
123
|
+
|
124
|
+
#### Bug fixes & Enhancements
|
125
|
+
- [#473](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/473)Failing to install oneview-sdk gem as runtime environment
|
126
|
+
|
127
|
+
#### Features supported
|
128
|
+
- Artifact Bundle
|
129
|
+
- Build Plan
|
130
|
+
- Connection Template
|
131
|
+
- Deployment Group
|
132
|
+
- Deployment Plan
|
133
|
+
- Enclosure
|
134
|
+
- Enclosure Group
|
135
|
+
- Ethernet Network
|
136
|
+
- FC Network
|
137
|
+
- FCOE Network
|
138
|
+
- Firmware Driver
|
139
|
+
- Golden Image
|
140
|
+
- Hypervisor Cluster Profile
|
141
|
+
- Hypervisor Manager
|
142
|
+
- Interconnects
|
143
|
+
- Interconnect Type
|
144
|
+
- LIG Uplink Set
|
145
|
+
- Logical Enclosure
|
146
|
+
- Logical Interconnect
|
147
|
+
- Logical Interconnect Group
|
148
|
+
- Network Set
|
149
|
+
- OS Deployment Plan
|
150
|
+
- OS Volume
|
151
|
+
- Plan Script
|
152
|
+
- Scope
|
153
|
+
- Server Certificate
|
154
|
+
- Server Hardware
|
155
|
+
- Server Hardware Type
|
156
|
+
- Storage Pool
|
157
|
+
- Server Profile
|
158
|
+
- Server Profile Template
|
159
|
+
- Storage System
|
160
|
+
- Uplink Set
|
161
|
+
- Volume
|
162
|
+
- Volume Attachment
|
163
|
+
- Volume Template
|
164
|
+
|
165
|
+
## v5.16.0
|
166
|
+
|
167
|
+
#### Notes
|
168
|
+
This release extends support to OneView Rest API version 2000 (OneView v5.40) for the hardware variants C7000 and Synergy to the following features:
|
169
|
+
|
170
|
+
#### Features supported
|
171
|
+
- Connection Template
|
172
|
+
- Enclosure
|
173
|
+
- Enclosure Group
|
174
|
+
- Ethernet Network
|
175
|
+
- FC Network
|
176
|
+
- FCOE Network
|
177
|
+
- Firmware Driver
|
178
|
+
- Hypervisor Cluster Profile
|
179
|
+
- Hypervisor Manager
|
180
|
+
- Interconnect
|
181
|
+
- Interconnect Type
|
182
|
+
- LIG Uplink Set
|
183
|
+
- Logical Enclosure
|
184
|
+
- Logical Interconnect
|
185
|
+
- Logical Interconnect Group
|
186
|
+
- Network Set
|
187
|
+
- OS Deployment Plan
|
188
|
+
- Scope
|
189
|
+
- Server Certificate
|
190
|
+
- Server Hardware
|
191
|
+
- Server Hardware Type
|
192
|
+
- Server Profile
|
193
|
+
- Server Profile Template
|
194
|
+
- Storage Pool
|
195
|
+
- Storage System
|
196
|
+
- Uplink Set
|
197
|
+
- Volume
|
198
|
+
- Volume Attachment
|
199
|
+
- Volume Template
|
200
|
+
|
201
|
+
#### Bug fixes & Enhancements:
|
202
|
+
- Enhanced the method to set the default API version to appliance's max API version instead of hardcoded 200.
|
203
|
+
- Added an automation to upload package to Gems followed with uploading a new image to DockerHub when there is a new release in GitHub
|
204
|
+
|
1
205
|
## v5.15.0
|
2
206
|
|
3
207
|
#### Notes
|
@@ -27,7 +231,7 @@ This release extends support to OneView Rest API version 1800 (OneView v5.30) fo
|
|
27
231
|
- Hypervisor Manager
|
28
232
|
- Interconnects
|
29
233
|
- Interconnect Types
|
30
|
-
- LIG
|
234
|
+
- LIG Uplink Set
|
31
235
|
- Logical Enclosure
|
32
236
|
- Logical Interconnect
|
33
237
|
- 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.10 | 6.00 | 5.60 | 5.50 | 5.40 |
|
6
|
+
| ------------- |:-------------:| :-------------:| :-------------:| :-------------:| :-------------:|
|
7
|
+
SDK Version/Tag | [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/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 2800 (OneView v6.10)
|
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.15.0-OV5.3 /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.15.0-OV5.3
|
|
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: 2800 # Defaults to appliance's max API version which is API version of OneView 6.10
|
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": 2800
|
149
169
|
}
|
150
170
|
```
|
151
171
|
|
@@ -174,92 +194,61 @@ 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]
|
207
|
+
OneviewSDK::DEFAULT_API_VERSION # 2800
|
208
|
+
OneviewSDK.api_version # 2800
|
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::API2800::EthernetNetwork
|
193
213
|
|
194
214
|
# Even this comparison is true:
|
195
|
-
OneviewSDK::EthernetNetwork == OneviewSDK::
|
215
|
+
OneviewSDK::EthernetNetwork == OneviewSDK::API2800::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 = 2800
|
219
|
+
OneviewSDK.api_version # 2800
|
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'
|
250
226
|
OneviewSDK::API1800.variant # 'C7000'
|
251
227
|
OneviewSDK::API1800.variant_updated? # false
|
252
228
|
|
253
|
-
#
|
254
|
-
OneviewSDK::
|
255
|
-
OneviewSDK::
|
256
|
-
OneviewSDK::
|
257
|
-
|
258
|
-
OneviewSDK::
|
259
|
-
OneviewSDK::
|
229
|
+
OneviewSDK::API2000::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
230
|
+
OneviewSDK::API2000::DEFAULT_VARIANT # 'C7000'
|
231
|
+
OneviewSDK::API2000.variant # 'C7000'
|
232
|
+
OneviewSDK::API2000.variant_updated? # false
|
233
|
+
|
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::API2800::SUPPORTED_VARIANTS # ['C7000', 'Synergy']
|
240
|
+
OneviewSDK::API2800::DEFAULT_VARIANT # 'C7000'
|
241
|
+
OneviewSDK::API2800.variant # 'C7000'
|
242
|
+
OneviewSDK::API2800.variant_updated? # false
|
243
|
+
|
244
|
+
# Likewise, we can set a new default variant for the API2800 module:
|
245
|
+
OneviewSDK::2800.variant = 'Synergy'
|
246
|
+
OneviewSDK::API2800.variant # 'Synergy'
|
247
|
+
OneviewSDK::API2800.variant_updated? # true
|
248
|
+
|
260
249
|
```
|
261
250
|
|
262
|
-
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::API2800.variant = <variant>`, as the defaults may change.
|
263
252
|
|
264
253
|
## Resources
|
265
254
|
Each OneView and Image Streamer resource is exposed via a Ruby class, enabling CRUD-like functionality (with some exceptions).
|
@@ -380,7 +369,6 @@ This example is about as basic as it gets, but you can make any type of OneView
|
|
380
369
|
If a resource does not do what you need, this will allow you to do it.
|
381
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.
|
382
371
|
|
383
|
-
|
384
372
|
## CLI
|
385
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.
|
386
374
|
|
@@ -479,19 +467,6 @@ $ oneview-sdk-ruby cert import https://oneview.example.com
|
|
479
467
|
$ oneview-sdk-ruby scmb
|
480
468
|
$ oneview-sdk-ruby scmb -r 'scmb.ethernet-networks.#'
|
481
469
|
```
|
482
|
-
|
483
|
-
## License
|
484
|
-
This project is licensed under the Apache 2.0 license. Please see [LICENSE](LICENSE) for more info.
|
485
|
-
|
486
|
-
## Contributing and feature requests
|
487
|
-
**Contributing:** You know the drill. Fork it, branch it, change it, commit it, and pull-request it.
|
488
|
-
We are passionate about improving this project, and glad to accept help to make it better.
|
489
|
-
|
490
|
-
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.
|
491
|
-
|
492
|
-
**Feature Requests:** If you have a need that is not met by the current implementation, please let us know (via a new issue).
|
493
|
-
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.
|
494
|
-
|
495
470
|
### Building the Gem
|
496
471
|
First run `$ bundle` (requires the bundler gem), then...
|
497
472
|
- To build only, run `$ rake build`.
|
@@ -507,5 +482,49 @@ First run `$ bundle` (requires the bundler gem), then...
|
|
507
482
|
|
508
483
|
For the full testing reference please look into [TESTING.md](TESTING.md) file.
|
509
484
|
|
510
|
-
##
|
511
|
-
|
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)
|