Method: OneviewSDK::API200::Interconnect.get_type

Defined in:
lib/oneview-sdk/resource/api200/interconnect.rb

.get_type(client, name) ⇒ Array

Retrieves the interconnect type with name

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • name (String)

    Interconnect type name

Returns:

  • (Array)

    Interconnect type



62
63
64
65
# File 'lib/oneview-sdk/resource/api200/interconnect.rb', line 62

def self.get_type(client, name)
  results = get_types(client)
  results.find { |interconnect_type| interconnect_type['name'] == name }
end