Method: OneviewSDK::API300::Synergy::UplinkSet#initialize

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

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

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.



24
25
26
27
28
29
# File 'lib/oneview-sdk/resource/api300/synergy/uplink_set.rb', line 24

def initialize(client, params = {}, api_ver = nil)
  # Default values for api300
  @data ||= {}
  @data['type'] ||= 'uplink-setV300'
  super
end