Method: OneviewSDK::LogicalInterconnect#update_settings

Defined in:
lib/oneview-sdk/resource/logical_interconnect.rb

#update_settings(options = {}) ⇒ Object

Updates settings of the logical interconnect



100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/oneview-sdk/resource/logical_interconnect.rb', line 100

def update_settings(options = {})
  ensure_client && ensure_uri
  options['type'] ||= 'InterconnectSettingsV3'
  options['ethernetSettings'] ||= {}
  options['ethernetSettings']['type'] ||= 'EthernetInterconnectSettingsV3'
  update_options = {
    'If-Match' =>  @data['eTag'],
    'body' => options
  }
  response = @client.rest_put(@data['uri'] + '/settings', update_options, @api_version)
  body = @client.response_handler(response)
  set_all(body)
end