class OneviewSDK::API300::Synergy::Interconnect
Interconnect
resource implementation on API300
Synergy
Constants
- LINK_TOPOLOGY_URI
Public Class Methods
get_link_topologies(client)
click to toggle source
Retrieves the interconnect link topologies @param [OneviewSDK::Client] client The client object for the OneView appliance @return [Array] All the Interconnect
Link Topologies
# File lib/oneview-sdk/resource/api300/synergy/interconnect.rb, line 35 def self.get_link_topologies(client) response = client.rest_get(LINK_TOPOLOGY_URI) response = client.response_handler(response) response['members'] end
get_link_topology(client, name)
click to toggle source
Retrieves the interconnect link topology with the name @param [OneviewSDK::Client] client The client object for the OneView appliance @param [String] name Switch
type name @return [Array] Switch
type
# File lib/oneview-sdk/resource/api300/synergy/interconnect.rb, line 45 def self.get_link_topology(client, name) results = get_link_topologies(client) results.find { |interconnect_link_topology| interconnect_link_topology['name'] == name } end
new(client, params = {}, api_ver = nil)
click to toggle source
Create a resource object, associate it with a client, and set its properties. @param [OneviewSDK::Client] client The client object for the OneView appliance @param [Hash] params The options for this resource (key-value pairs) @param [Integer] api_ver The api version to use when interracting with this resource.
Calls superclass method
OneviewSDK::API200::Interconnect::new
# File lib/oneview-sdk/resource/api300/synergy/interconnect.rb, line 25 def initialize(client, params = {}, api_ver = nil) @data ||= {} # Default values: @data['type'] ||= 'InterconnectV300' super end