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
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2200/synergy/os_deployment_plan'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# OS Deployment Plan resource implementation for API2400 Synergy
|
18
|
+
class OSDeploymentPlan < OneviewSDK::API2200::Synergy::OSDeploymentPlan
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2200/synergy/scope'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Scope resource implementation for API2400 Synergy
|
18
|
+
class Scope < OneviewSDK::API2200::Synergy::Scope
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2200/synergy/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Server certificate resource implementation for API 2400 Synergy
|
18
|
+
class ServerCertificate < OneviewSDK::API2200::Synergy::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2200/synergy/server_hardware'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Server Hardware resource implementation on API2400 Synergy
|
18
|
+
class ServerHardware < OneviewSDK::API2200::Synergy::ServerHardware
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2200/synergy/server_hardware_type'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Server hardware type resource implementation for API2400 Synergy
|
18
|
+
class ServerHardwareType < OneviewSDK::API2200::Synergy::ServerHardwareType
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api300/synergy/server_profile'
|
13
|
+
require_relative '../c7000/server_profile'
|
14
|
+
|
15
|
+
module OneviewSDK
|
16
|
+
module API2400
|
17
|
+
module Synergy
|
18
|
+
# Server profile resource implementation for API2400 Synergy
|
19
|
+
class ServerProfile < OneviewSDK::API2400::C7000::ServerProfile
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../c7000/server_profile_template'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Server Profile Template resource implementation for API2400 Synergy
|
18
|
+
class ServerProfileTemplate < OneviewSDK::API2400::C7000::ServerProfileTemplate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../c7000/storage_pool'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Storage pool resource implementation for API2400 Synergy
|
18
|
+
class StoragePool < OneviewSDK::API2400::C7000::StoragePool
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../c7000/storage_system'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Storage system resource implementation for API2400 Synergy
|
18
|
+
class StorageSystem < OneviewSDK::API2400::C7000::StorageSystem
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2200/synergy/uplink_set'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Uplink set resource implementation for API2400 Synergy
|
18
|
+
class UplinkSet < OneviewSDK::API2200::Synergy::UplinkSet
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../c7000/volume'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Volume resource implementation for API2400 Synergy
|
18
|
+
class Volume < OneviewSDK::API2400::C7000::Volume
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../c7000/volume_attachment'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Storage Volume Attachment resource implementation for API2400 Synergy
|
18
|
+
class VolumeAttachment < OneviewSDK::API2400::C7000::VolumeAttachment
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../c7000/volume_template'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2400
|
16
|
+
module Synergy
|
17
|
+
# Volume Template resource implementation for API2400 Synergy
|
18
|
+
class VolumeTemplate < OneviewSDK::API2400::C7000::VolumeTemplate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
module OneviewSDK
|
13
|
+
# Module for API v2600
|
14
|
+
module API2600
|
15
|
+
SUPPORTED_VARIANTS = %w[C7000 Synergy].freeze
|
16
|
+
DEFAULT_VARIANT = 'C7000'.freeze
|
17
|
+
@variant = DEFAULT_VARIANT
|
18
|
+
@variant_updated = false # Whether or not the API variant has been set by the user
|
19
|
+
|
20
|
+
# Get resource class that matches the type given
|
21
|
+
# @param [String] type Name of the desired class type
|
22
|
+
# @param [String] variant Variant (C7000 or Synergy)
|
23
|
+
# @return [Class] Resource class or nil if not found
|
24
|
+
def self.resource_named(type, variant = @variant)
|
25
|
+
raise "API2600 variant '#{variant}' is not supported! Try one of #{SUPPORTED_VARIANTS}" unless SUPPORTED_VARIANTS.include?(variant.to_s)
|
26
|
+
new_type = type.to_s.downcase.gsub(/[ -_]/, '')
|
27
|
+
api_module = OneviewSDK::API2600.const_get(variant)
|
28
|
+
api_module.constants.each do |c|
|
29
|
+
klass = api_module.const_get(c)
|
30
|
+
next unless klass.is_a?(Class)
|
31
|
+
name = klass.name.split('::').last.downcase.delete('_').delete('-')
|
32
|
+
return klass if new_type =~ /^#{name}[s]?$/
|
33
|
+
end
|
34
|
+
nil
|
35
|
+
end
|
36
|
+
|
37
|
+
# Get the current API2600 variant
|
38
|
+
def self.variant
|
39
|
+
@variant
|
40
|
+
end
|
41
|
+
|
42
|
+
# Has the API2600 variant been set by the user?
|
43
|
+
# @return [TrueClass, FalseClass]
|
44
|
+
def self.variant_updated?
|
45
|
+
@variant_updated
|
46
|
+
end
|
47
|
+
|
48
|
+
# Sets the API2600 variant
|
49
|
+
def self.variant=(variant)
|
50
|
+
raise "API2600 variant '#{variant}' is not supported! Try one of #{SUPPORTED_VARIANTS}" unless SUPPORTED_VARIANTS.include?(variant)
|
51
|
+
@variant_updated = true
|
52
|
+
@variant = variant
|
53
|
+
end
|
54
|
+
|
55
|
+
# Helps redirect resources to the correct API2600 variant
|
56
|
+
def self.const_missing(const)
|
57
|
+
api2600_module = OneviewSDK::API2600.const_get(@variant.to_s)
|
58
|
+
api2600_module.const_get(const)
|
59
|
+
rescue NameError
|
60
|
+
raise NameError, "The #{const} method or resource does not exist for OneView API2600 variant #{@variant}."
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Load all API2600-specific resources:
|
66
|
+
Dir[File.dirname(__FILE__) + '/api2600/*.rb'].each { |file| require file }
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
module OneviewSDK
|
13
|
+
module API2600
|
14
|
+
# Module for API2600 C7000
|
15
|
+
module C7000
|
16
|
+
# Get resource class that matches the type given
|
17
|
+
# @param [String] type Name of the desired class type
|
18
|
+
# @return [Class] Resource class or nil if not found
|
19
|
+
def self.resource_named(type)
|
20
|
+
OneviewSDK::API2600.resource_named(type, 'C7000')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Load all API-specific resources:
|
27
|
+
Dir[File.dirname(__FILE__) + '/c7000/*.rb'].each { |file| require file }
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2400/c7000/connection_template'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2600
|
16
|
+
module C7000
|
17
|
+
# Connection template resource implementation for API2600 C7000
|
18
|
+
class ConnectionTemplate < OneviewSDK::API2400::C7000::ConnectionTemplate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api2400/c7000/enclosure'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API2600
|
16
|
+
module C7000
|
17
|
+
# Enclosure resource implementation for API2600 C7000
|
18
|
+
class Enclosure < OneviewSDK::API2400::C7000::Enclosure
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|