Method: OneviewSDK::API300::Synergy::SASInterconnect.get_type

Defined in:
lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb

.get_type(client, name) ⇒ Array

Retrieves a SAS interconnect type by name

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • name (String)

    Interconnect type name

Returns:

  • (Array)

    Interconnect type



60
61
62
63
# File 'lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb', line 60

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