oneview-sdk 4.5.1 → 5.0.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 +56 -0
- data/Gemfile +0 -0
- data/Guardfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/oneview-sdk-ruby +0 -0
- data/lib/oneview-sdk.rb +0 -0
- data/lib/oneview-sdk/cli.rb +0 -0
- data/lib/oneview-sdk/client.rb +0 -0
- data/lib/oneview-sdk/config_loader.rb +0 -0
- data/lib/oneview-sdk/exceptions.rb +0 -0
- data/lib/oneview-sdk/image-streamer/client.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/artifact_bundle.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/build_plan.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/deployment_group.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/deployment_plan.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/golden_image.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/os_volume.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/plan_script.rb +0 -0
- data/lib/oneview-sdk/image-streamer/resource/api300/resource.rb +0 -0
- data/lib/oneview-sdk/image_streamer.rb +0 -0
- data/lib/oneview-sdk/resource.rb +54 -23
- data/lib/oneview-sdk/resource/api200.rb +0 -0
- data/lib/oneview-sdk/resource/api200/client_certificate.rb +134 -0
- data/lib/oneview-sdk/resource/api200/connection_template.rb +2 -1
- data/lib/oneview-sdk/resource/api200/datacenter.rb +0 -0
- data/lib/oneview-sdk/resource/api200/enclosure.rb +5 -9
- data/lib/oneview-sdk/resource/api200/enclosure_group.rb +2 -1
- data/lib/oneview-sdk/resource/api200/ethernet_network.rb +2 -2
- data/lib/oneview-sdk/resource/api200/event.rb +0 -0
- data/lib/oneview-sdk/resource/api200/fabric.rb +0 -0
- data/lib/oneview-sdk/resource/api200/fc_network.rb +0 -0
- data/lib/oneview-sdk/resource/api200/fcoe_network.rb +0 -0
- data/lib/oneview-sdk/resource/api200/firmware_bundle.rb +2 -1
- data/lib/oneview-sdk/resource/api200/firmware_driver.rb +0 -0
- data/lib/oneview-sdk/resource/api200/id_pool.rb +5 -3
- data/lib/oneview-sdk/resource/api200/interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api200/lig_uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api200/logical_downlink.rb +0 -0
- data/lib/oneview-sdk/resource/api200/logical_enclosure.rb +1 -1
- data/lib/oneview-sdk/resource/api200/logical_interconnect.rb +4 -3
- data/lib/oneview-sdk/resource/api200/logical_interconnect_group.rb +2 -2
- data/lib/oneview-sdk/resource/api200/logical_switch.rb +0 -0
- data/lib/oneview-sdk/resource/api200/logical_switch_group.rb +0 -0
- data/lib/oneview-sdk/resource/api200/managed_san.rb +0 -0
- data/lib/oneview-sdk/resource/api200/network_set.rb +0 -0
- data/lib/oneview-sdk/resource/api200/power_device.rb +1 -1
- data/lib/oneview-sdk/resource/api200/rack.rb +0 -0
- data/lib/oneview-sdk/resource/api200/resource.rb +0 -0
- data/lib/oneview-sdk/resource/api200/san_manager.rb +0 -0
- data/lib/oneview-sdk/resource/api200/server_hardware.rb +2 -2
- data/lib/oneview-sdk/resource/api200/server_hardware_type.rb +0 -0
- data/lib/oneview-sdk/resource/api200/server_profile.rb +35 -25
- data/lib/oneview-sdk/resource/api200/server_profile_template.rb +24 -14
- data/lib/oneview-sdk/resource/api200/storage_pool.rb +0 -0
- data/lib/oneview-sdk/resource/api200/storage_system.rb +6 -10
- data/lib/oneview-sdk/resource/api200/switch.rb +4 -10
- data/lib/oneview-sdk/resource/api200/unmanaged_device.rb +0 -0
- data/lib/oneview-sdk/resource/api200/uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api200/user.rb +18 -0
- data/lib/oneview-sdk/resource/api200/volume.rb +15 -11
- data/lib/oneview-sdk/resource/api200/volume_attachment.rb +3 -1
- data/lib/oneview-sdk/resource/api200/volume_snapshot.rb +0 -0
- data/lib/oneview-sdk/resource/api200/volume_template.rb +0 -0
- data/lib/oneview-sdk/resource/api200/web_server_certificate.rb +97 -0
- data/lib/oneview-sdk/resource/api300.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api300/c7000/connection_template.rb +0 -8
- data/lib/oneview-sdk/resource/api300/c7000/datacenter.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/enclosure.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/enclosure_group.rb +0 -1
- data/lib/oneview-sdk/resource/api300/c7000/ethernet_network.rb +1 -0
- data/lib/oneview-sdk/resource/api300/c7000/event.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/fabric.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/fc_network.rb +1 -0
- data/lib/oneview-sdk/resource/api300/c7000/fcoe_network.rb +1 -0
- data/lib/oneview-sdk/resource/api300/c7000/firmware_bundle.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/firmware_driver.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/id_pool.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api300/{synergy/logical_switch.rb → c7000/internal_link_set.rb} +30 -7
- data/lib/oneview-sdk/resource/api300/c7000/lig_uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_downlink.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb +9 -7
- data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb +2 -20
- data/lib/oneview-sdk/resource/api300/c7000/logical_interconnect_group.rb +2 -0
- data/lib/oneview-sdk/resource/api300/c7000/logical_switch.rb +0 -19
- data/lib/oneview-sdk/resource/api300/c7000/logical_switch_group.rb +1 -0
- data/lib/oneview-sdk/resource/api300/c7000/managed_san.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/network_set.rb +1 -0
- data/lib/oneview-sdk/resource/api300/c7000/power_device.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/rack.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/resource.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/san_manager.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/scope.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_hardware.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_hardware_type.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_profile.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/server_profile_template.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/storage_pool.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/storage_system.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/switch.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/unmanaged_device.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/user.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_attachment.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_snapshot.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/volume_template.rb +0 -0
- data/lib/oneview-sdk/resource/api300/c7000/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/connection_template.rb +0 -8
- data/lib/oneview-sdk/resource/api300/synergy/datacenter.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/enclosure.rb +2 -2
- data/lib/oneview-sdk/resource/api300/synergy/enclosure_group.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/ethernet_network.rb +1 -0
- data/lib/oneview-sdk/resource/api300/synergy/event.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/fabric.rb +1 -1
- data/lib/oneview-sdk/resource/api300/synergy/fc_network.rb +1 -0
- data/lib/oneview-sdk/resource/api300/synergy/fcoe_network.rb +3 -15
- data/lib/oneview-sdk/resource/api300/synergy/firmware_bundle.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/firmware_driver.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/id_pool.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api300/synergy/lig_uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_downlink.rb +2 -14
- data/lib/oneview-sdk/resource/api300/synergy/logical_enclosure.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect.rb +0 -20
- data/lib/oneview-sdk/resource/api300/synergy/logical_interconnect_group.rb +3 -1
- data/lib/oneview-sdk/resource/api300/synergy/managed_san.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/network_set.rb +2 -17
- data/lib/oneview-sdk/resource/api300/synergy/os_deployment_plan.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/power_device.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/rack.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/resource.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/san_manager.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/sas_logical_interconnect_group.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/scope.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_hardware.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_hardware_type.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/server_profile.rb +24 -27
- data/lib/oneview-sdk/resource/api300/synergy/server_profile_template.rb +0 -12
- data/lib/oneview-sdk/resource/api300/synergy/storage_pool.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/storage_system.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/switch.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/unmanaged_device.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/user.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_attachment.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_snapshot.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/volume_template.rb +0 -0
- data/lib/oneview-sdk/resource/api300/synergy/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/connection_template.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/datacenter.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/enclosure.rb +35 -0
- data/lib/oneview-sdk/resource/api500/c7000/enclosure_group.rb +21 -0
- data/lib/oneview-sdk/resource/api500/c7000/ethernet_network.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/event.rb +2 -2
- data/lib/oneview-sdk/resource/api500/c7000/fabric.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/fc_network.rb +1 -0
- data/lib/oneview-sdk/resource/api500/c7000/fcoe_network.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/firmware_bundle.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/firmware_driver.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/id_pool.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/interconnect.rb +8 -0
- data/lib/oneview-sdk/resource/api500/c7000/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/c7000/lig_uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_downlink.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb +40 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_interconnect_group.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_switch.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/logical_switch_group.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/managed_san.rb +10 -0
- data/lib/oneview-sdk/resource/api500/c7000/network_set.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/power_device.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/rack.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/resource.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/san_manager.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/scope.rb +49 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_hardware.rb +20 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_hardware_type.rb +1 -0
- data/lib/oneview-sdk/resource/api500/c7000/server_profile.rb +60 -1
- data/lib/oneview-sdk/resource/api500/c7000/server_profile_template.rb +86 -0
- data/lib/oneview-sdk/resource/api500/c7000/storage_pool.rb +57 -2
- data/lib/oneview-sdk/resource/api500/c7000/storage_system.rb +132 -0
- data/lib/oneview-sdk/resource/api500/c7000/switch.rb +7 -0
- data/lib/oneview-sdk/resource/api500/c7000/unmanaged_device.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/user.rb +0 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume.rb +135 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume_attachment.rb +24 -1
- data/lib/oneview-sdk/resource/api500/c7000/volume_snapshot.rb +10 -0
- data/lib/oneview-sdk/resource/api500/c7000/volume_template.rb +94 -3
- data/lib/oneview-sdk/resource/api500/c7000/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/client_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/connection_template.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/datacenter.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/drive_enclosure.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/enclosure.rb +35 -0
- data/lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb +27 -0
- data/lib/oneview-sdk/resource/api500/synergy/ethernet_network.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/event.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/fabric.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/fc_network.rb +1 -0
- data/lib/oneview-sdk/resource/api500/synergy/fcoe_network.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/firmware_bundle.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/firmware_driver.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/{logical_switch.rb → id_pool.rb} +3 -3
- data/lib/oneview-sdk/resource/api500/synergy/interconnect.rb +17 -1
- data/lib/oneview-sdk/resource/api500/synergy/internal_link_set.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/lig_uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_downlink.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_enclosure.rb +17 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/logical_interconnect_group.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/managed_san.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/network_set.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/os_deployment_plan.rb +22 -0
- data/lib/oneview-sdk/resource/api500/synergy/power_device.rb +1 -1
- data/lib/oneview-sdk/resource/api500/synergy/rack.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/resource.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/san_manager.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/sas_interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/sas_logical_interconnect_group.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/scope.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/server_hardware.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/server_hardware_type.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/server_profile.rb +4 -1
- data/lib/oneview-sdk/resource/api500/synergy/server_profile_template.rb +16 -2
- data/lib/oneview-sdk/resource/api500/synergy/storage_pool.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/storage_system.rb +1 -1
- data/lib/oneview-sdk/resource/api500/synergy/switch.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/unmanaged_device.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/uplink_set.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/user.rb +0 -0
- data/lib/oneview-sdk/resource/api500/synergy/volume.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/volume_attachment.rb +3 -3
- data/lib/oneview-sdk/resource/api500/synergy/volume_snapshot.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/volume_template.rb +2 -2
- data/lib/oneview-sdk/resource/api500/synergy/web_server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource_helper.rb +30 -0
- data/lib/oneview-sdk/rest.rb +6 -2
- data/lib/oneview-sdk/scmb.rb +0 -0
- data/lib/oneview-sdk/ssl_helper.rb +0 -0
- data/lib/oneview-sdk/version.rb +1 -1
- data/oneview-sdk.gemspec +0 -0
- metadata +21 -5
File without changes
|
File without changes
|
@@ -10,24 +10,26 @@
|
|
10
10
|
# language governing permissions and limitations under the License.
|
11
11
|
|
12
12
|
require_relative '../../api200/logical_enclosure'
|
13
|
+
require_relative '../../../resource_helper'
|
13
14
|
|
14
15
|
module OneviewSDK
|
15
16
|
module API300
|
16
17
|
module C7000
|
17
18
|
# Logical Enclosure resource implementation on API300 C7000
|
18
19
|
class LogicalEnclosure < OneviewSDK::API200::LogicalEnclosure
|
20
|
+
include OneviewSDK::ResourceHelper
|
19
21
|
|
20
22
|
def initialize(client, params = {}, api_ver = nil)
|
21
23
|
super
|
22
24
|
end
|
23
25
|
|
24
|
-
# Updates
|
25
|
-
# @param [
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
# Updates the firmware attributes of a given logical enclosure resource
|
27
|
+
# @param [Hash] attributes Hash with firmware attributes
|
28
|
+
# @option options [String] :firmwareUpdateOn Specifies the component types within the enclosure which has to be updated
|
29
|
+
# @option options [Boolean] :forceInstallFirmware Specifies whether the firmware operation to be carried forcefully or not
|
30
|
+
# @option options [String] :firmwareBaselineUri Firmware-drivers URI for the firmware bundle containing the baseline firmware
|
31
|
+
def update_firmware(attributes = {})
|
32
|
+
patch('replace', '/firmware', attributes)
|
31
33
|
end
|
32
34
|
end
|
33
35
|
end
|
@@ -10,12 +10,14 @@
|
|
10
10
|
# language governing permissions and limitations under the License.
|
11
11
|
|
12
12
|
require_relative '../../api200/logical_interconnect'
|
13
|
+
require_relative 'scope'
|
13
14
|
|
14
15
|
module OneviewSDK
|
15
16
|
module API300
|
16
17
|
module C7000
|
17
18
|
# Logical interconnect resource implementation for API300 C7000
|
18
19
|
class LogicalInterconnect < OneviewSDK::API200::LogicalInterconnect
|
20
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
19
21
|
|
20
22
|
# Create a resource object, associate it with a client, and set its properties.
|
21
23
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
@@ -28,26 +30,6 @@ module OneviewSDK
|
|
28
30
|
super
|
29
31
|
end
|
30
32
|
|
31
|
-
# Lists internal networks on the logical interconnect
|
32
|
-
# @return [OneviewSDK::Resource] List of networks
|
33
|
-
def list_vlan_networks
|
34
|
-
ensure_client && ensure_uri
|
35
|
-
results = OneviewSDK::Resource.find_by(@client, {}, @data['uri'] + '/internalVlans')
|
36
|
-
internal_networks = []
|
37
|
-
results.each do |vlan|
|
38
|
-
net = if vlan['generalNetworkUri'].include? 'ethernet-network'
|
39
|
-
OneviewSDK::API300::C7000::EthernetNetwork.new(@client, uri: vlan['generalNetworkUri'])
|
40
|
-
elsif vlan['generalNetworkUri'].include? 'fc-network'
|
41
|
-
OneviewSDK::API300::C7000::FCNetwork.new(@client, uri: vlan['generalNetworkUri'])
|
42
|
-
else
|
43
|
-
OneviewSDK::API300::C7000::FCoENetwork.new(@client, uri: vlan['generalNetworkUri'])
|
44
|
-
end
|
45
|
-
net.retrieve!
|
46
|
-
internal_networks.push(net)
|
47
|
-
end
|
48
|
-
internal_networks
|
49
|
-
end
|
50
|
-
|
51
33
|
# Updates settings of the logical interconnect
|
52
34
|
# @param options Options to update the Logical Interconnect
|
53
35
|
# @return Updated instance of the Logical Interconnect
|
@@ -10,12 +10,14 @@
|
|
10
10
|
# language governing permissions and limitations under the License.
|
11
11
|
|
12
12
|
require_relative '../../api200/logical_interconnect_group'
|
13
|
+
require_relative 'scope'
|
13
14
|
|
14
15
|
module OneviewSDK
|
15
16
|
module API300
|
16
17
|
module C7000
|
17
18
|
# Logical interconnect group resource implementation
|
18
19
|
class LogicalInterconnectGroup < OneviewSDK::API200::LogicalInterconnectGroup
|
20
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
19
21
|
|
20
22
|
# Create a resource object, associate it with a client, and set its properties.
|
21
23
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
@@ -19,8 +19,6 @@ module OneviewSDK
|
|
19
19
|
class LogicalSwitch < OneviewSDK::API200::LogicalSwitch
|
20
20
|
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
21
21
|
|
22
|
-
INTERNAL_LINK_SET_URI = '/rest/internal-link-sets'.freeze
|
23
|
-
|
24
22
|
# Create a resource object, associate it with a client, and set its properties.
|
25
23
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
26
24
|
# @param [Hash] params The options for this resource (key-value pairs)
|
@@ -32,23 +30,6 @@ module OneviewSDK
|
|
32
30
|
@data['scopeUris'] ||= []
|
33
31
|
super
|
34
32
|
end
|
35
|
-
|
36
|
-
# Retrieves all internal link sets
|
37
|
-
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
38
|
-
def self.get_internal_link_sets(client)
|
39
|
-
response = client.rest_get(INTERNAL_LINK_SET_URI)
|
40
|
-
response = client.response_handler(response)
|
41
|
-
response['members']
|
42
|
-
end
|
43
|
-
|
44
|
-
# Retrieves the internal link set with name
|
45
|
-
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
46
|
-
# @param [String] name The internal link set name
|
47
|
-
# @return [Array] Internal Link Set Array
|
48
|
-
def self.get_internal_link_set(client, name)
|
49
|
-
results = get_internal_link_sets(client)
|
50
|
-
results.find { |internal_link_set| internal_link_set['name'] == name }
|
51
|
-
end
|
52
33
|
end
|
53
34
|
end
|
54
35
|
end
|
@@ -16,6 +16,7 @@ module OneviewSDK
|
|
16
16
|
module C7000
|
17
17
|
# Logical switch group resource implementation for API300 C7000
|
18
18
|
class LogicalSwitchGroup < OneviewSDK::API200::LogicalSwitchGroup
|
19
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
19
20
|
|
20
21
|
# Create a resource object, associate it with a client, and set its properties.
|
21
22
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
File without changes
|
@@ -16,6 +16,7 @@ module OneviewSDK
|
|
16
16
|
module C7000
|
17
17
|
# Network set resource implementation for API300 C7000
|
18
18
|
class NetworkSet < OneviewSDK::API200::NetworkSet
|
19
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
19
20
|
|
20
21
|
# Create a resource object, associate it with a client, and set its properties.
|
21
22
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2017 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 '../../api200/web_server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API300
|
16
|
+
module C7000
|
17
|
+
# Client certificate resource implementation for API300 C7000
|
18
|
+
class WebServerCertificate < OneviewSDK::API200::WebServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2017 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 '../../api200/client_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API300
|
16
|
+
module Synergy
|
17
|
+
# Client certificate resource implementation for API300 Synergy
|
18
|
+
class ClientCertificate < OneviewSDK::API200::ClientCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -16,14 +16,6 @@ module OneviewSDK
|
|
16
16
|
module Synergy
|
17
17
|
# Connection template resource implementation for API300 Synergy
|
18
18
|
class ConnectionTemplate < OneviewSDK::API200::ConnectionTemplate
|
19
|
-
|
20
|
-
# Get the default network connection template
|
21
|
-
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
22
|
-
# @return [OneviewSDK::API300::Synergy::ConnectionTemplate] Connection template
|
23
|
-
def self.get_default(client)
|
24
|
-
response = client.rest_get(BASE_URI + '/defaultConnectionTemplate')
|
25
|
-
OneviewSDK::API300::Synergy::ConnectionTemplate.new(client, client.response_handler(response))
|
26
|
-
end
|
27
19
|
end
|
28
20
|
end
|
29
21
|
end
|
File without changes
|
File without changes
|
@@ -31,7 +31,7 @@ module OneviewSDK
|
|
31
31
|
|
32
32
|
# Renames the enclosures if the @data['name'] is not nil, otherwise only returns the enclosures
|
33
33
|
@data['name'] ||= ''
|
34
|
-
|
34
|
+
self.class.update_enclosure_names(@client, @data['hostname'], @data['name'])
|
35
35
|
end
|
36
36
|
|
37
37
|
# Method is not available
|
@@ -59,7 +59,7 @@ module OneviewSDK
|
|
59
59
|
|
60
60
|
# Retrieve the frameLinkModuleDomain of the specified enclosure, then use it to find all enclosures
|
61
61
|
# that share that frameLinkModuleDomain.
|
62
|
-
all_enclosures =
|
62
|
+
all_enclosures = find_by(client, {})
|
63
63
|
all_enclosures.each do |encl|
|
64
64
|
frame_link = encl['frameLinkModuleDomain'] if encl['managerBays'].first['ipAddress'] == hostname
|
65
65
|
end
|
File without changes
|
@@ -16,6 +16,7 @@ module OneviewSDK
|
|
16
16
|
module Synergy
|
17
17
|
# Ethernet network resource implementation for API300 Synergy
|
18
18
|
class EthernetNetwork < OneviewSDK::API200::EthernetNetwork
|
19
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
19
20
|
|
20
21
|
# Create a resource object, associate it with a client, and set its properties.
|
21
22
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
File without changes
|
@@ -24,7 +24,7 @@ module OneviewSDK
|
|
24
24
|
# @return [OneviewSDK::Fabric] self
|
25
25
|
def get_reserved_vlan_range
|
26
26
|
ensure_client && ensure_uri
|
27
|
-
response = @client.rest_get("#{@data['uri']}/reserved-vlan-range", @api_version)
|
27
|
+
response = @client.rest_get("#{@data['uri']}/reserved-vlan-range", {}, @api_version)
|
28
28
|
@client.response_handler(response)
|
29
29
|
end
|
30
30
|
|
@@ -16,6 +16,7 @@ module OneviewSDK
|
|
16
16
|
module Synergy
|
17
17
|
# FC network resource implementation for API300 Synergy
|
18
18
|
class FCNetwork < OneviewSDK::API200::FCNetwork
|
19
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
19
20
|
|
20
21
|
# Create a resource object, associate it with a client, and set its properties.
|
21
22
|
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
@@ -9,26 +9,14 @@
|
|
9
9
|
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
10
|
# language governing permissions and limitations under the License.
|
11
11
|
|
12
|
-
require_relative '
|
12
|
+
require_relative '../c7000/fcoe_network'
|
13
13
|
|
14
14
|
module OneviewSDK
|
15
15
|
module API300
|
16
16
|
module Synergy
|
17
17
|
# FCoE network resource implementation for API300 Synergy
|
18
|
-
class FCoENetwork < OneviewSDK::
|
19
|
-
|
20
|
-
# Create a resource object, associate it with a client, and set its properties.
|
21
|
-
# @param [OneviewSDK::Client] client The client object for the OneView appliance
|
22
|
-
# @param [Hash] params The options for this resource (key-value pairs)
|
23
|
-
# @param [Integer] api_ver The api version to use when interracting with this resource.
|
24
|
-
def initialize(client, params = {}, api_ver = nil)
|
25
|
-
@data ||= {}
|
26
|
-
# Default values:
|
27
|
-
@data['connectionTemplateUri'] ||= nil
|
28
|
-
@data['type'] ||= 'fcoe-networkV300'
|
29
|
-
super
|
30
|
-
end
|
31
|
-
|
18
|
+
class FCoENetwork < OneviewSDK::API300::C7000::FCoENetwork
|
19
|
+
include OneviewSDK::API300::C7000::Scope::ScopeHelperMethods
|
32
20
|
end
|
33
21
|
end
|
34
22
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2017 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/internal_link_set'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API300
|
16
|
+
module Synergy
|
17
|
+
# Internal Link Set resource implementation for API300 Synergy
|
18
|
+
class InternalLinkSet < OneviewSDK::API300::C7000::InternalLinkSet
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
File without changes
|
@@ -9,25 +9,13 @@
|
|
9
9
|
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
10
|
# language governing permissions and limitations under the License.
|
11
11
|
|
12
|
-
require_relative '
|
12
|
+
require_relative '../c7000/logical_downlink'
|
13
13
|
|
14
14
|
module OneviewSDK
|
15
15
|
module API300
|
16
16
|
module Synergy
|
17
17
|
# Logical downlink resource implementation for API300 Synergy
|
18
|
-
class LogicalDownlink < OneviewSDK::
|
19
|
-
|
20
|
-
# Method is not available
|
21
|
-
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
22
|
-
def self.get_without_ethernet(*)
|
23
|
-
raise MethodUnavailable, 'The method #self.get_without_ethernet is unavailable for this resource'
|
24
|
-
end
|
25
|
-
|
26
|
-
# Method is not available
|
27
|
-
# @raise [OneviewSDK::MethodUnavailable] method is not available
|
28
|
-
def get_without_ethernet(*)
|
29
|
-
unavailable_method
|
30
|
-
end
|
18
|
+
class LogicalDownlink < OneviewSDK::API300::C7000::LogicalDownlink
|
31
19
|
end
|
32
20
|
end
|
33
21
|
end
|
File without changes
|
@@ -16,26 +16,6 @@ module OneviewSDK
|
|
16
16
|
module Synergy
|
17
17
|
# Logical interconnect resource implementation for API300 Synergy
|
18
18
|
class LogicalInterconnect < OneviewSDK::API300::C7000::LogicalInterconnect
|
19
|
-
|
20
|
-
# Lists internal networks on the logical interconnect
|
21
|
-
# @return [OneviewSDK::Resource] List of networks
|
22
|
-
def list_vlan_networks
|
23
|
-
ensure_client && ensure_uri
|
24
|
-
results = OneviewSDK::Resource.find_by(@client, {}, @data['uri'] + '/internalVlans')
|
25
|
-
internal_networks = []
|
26
|
-
results.each do |vlan|
|
27
|
-
net = if vlan['generalNetworkUri'].include? 'ethernet-network'
|
28
|
-
OneviewSDK::API300::Synergy::EthernetNetwork.new(@client, uri: vlan['generalNetworkUri'])
|
29
|
-
elsif vlan['generalNetworkUri'].include? 'fc-network'
|
30
|
-
OneviewSDK::API300::Synergy::FCNetwork.new(@client, uri: vlan['generalNetworkUri'])
|
31
|
-
else
|
32
|
-
OneviewSDK::API300::Synergy::FCoENetwork.new(@client, uri: vlan['generalNetworkUri'])
|
33
|
-
end
|
34
|
-
net.retrieve!
|
35
|
-
internal_networks.push(net)
|
36
|
-
end
|
37
|
-
internal_networks
|
38
|
-
end
|
39
19
|
end
|
40
20
|
end
|
41
21
|
end
|