Class: OneviewSDK::API300::Synergy::Switch

Inherits:
Object
  • Object
show all
Defined in:
lib/oneview-sdk/resource/api300/synergy/switch.rb

Overview

Switch resource implementation

Direct Known Subclasses

OneviewSDK::API500::Synergy::Switch

Class Method Summary collapse

Class Method Details

.get_type(client, name) ⇒ Array

Retrieves the switch type with the name

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • name (String)

    Switch type name

Returns:

  • (Array)

    Switch type



31
32
33
# File 'lib/oneview-sdk/resource/api300/synergy/switch.rb', line 31

def self.get_type(client, name)
  OneviewSDK::API200::Switch.get_type(client, name)
end

.get_types(client) ⇒ Array

Retrieves the switch types

Parameters:

Returns:

  • (Array)

    All the Switch types



23
24
25
# File 'lib/oneview-sdk/resource/api300/synergy/switch.rb', line 23

def self.get_types(client)
  OneviewSDK::API200::Switch.get_types(client)
end