Method: OneviewSDK::LogicalInterconnect#update_ethernet_settings
- Defined in:
- lib/oneview-sdk/resource/logical_interconnect.rb
#update_ethernet_settings ⇒ Object
Note:
The attribute is defined inside the instance of the Logical Interconnect
Updates ethernet settings of the logical interconnect
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/oneview-sdk/resource/logical_interconnect.rb', line 85 def update_ethernet_settings ensure_client && ensure_uri fail IncompleteResource, 'Please retrieve the Logical Interconnect before trying to update' unless @data['ethernetSettings'] = { 'If-Match' => @data['ethernetSettings'].delete('eTag'), 'body' => @data['ethernetSettings'] } response = @client.rest_put(@data['uri'] + '/ethernetSettings', , @api_version) body = @client.response_handler(response) set_all(body) end |