Method: OneviewSDK::API600::Synergy::FCNetwork#initialize

Defined in:
lib/oneview-sdk/resource/api600/synergy/fc_network.rb

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

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.



23
24
25
26
27
28
29
30
31
# File 'lib/oneview-sdk/resource/api600/synergy/fc_network.rb', line 23

def initialize(client, params = {}, api_ver = nil)
  @data ||= {}
  # Default values
  @data['autoLoginRedistribution'] ||= false
  @data['type'] ||= 'fc-networkV4'
  @data['linkStabilityTime'] ||= 30
  @data['fabricType'] ||= 'FabricAttach'
  super
end