Method: OneviewSDK::API600::C7000::Interconnect#initialize

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

#initialize(client, params = {}, api_ver = nil) ⇒ Interconnect

Create a resource object, associate it with a client, and set its properties.

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • params (Hash) (defaults to: {})

    The options for this resource (key-value pairs)

  • api_ver (Integer) (defaults to: nil)

    The api version to use when interracting with this resource.



25
26
27
28
29
30
# File 'lib/oneview-sdk/resource/api600/c7000/interconnect.rb', line 25

def initialize(client, params = {}, api_ver = nil)
  @data ||= {}
  # Default values:
  @data['type'] ||= 'InterconnectV4'
  super
end