Module: OneviewSDK::ResourceHelper::ConfigurationOperation

Overview

Contains helper method to call configuration endpoint of resource

Instance Method Summary collapse

Instance Method Details

#configurationObject

Reapplies the configuration



36
37
38
39
40
41
# File 'lib/oneview-sdk/resource_helper.rb', line 36

def configuration
  ensure_client && ensure_uri
  response = @client.rest_put(@data['uri'] + '/configuration', {}, @api_version)
  new_data = @client.response_handler(response)
  set_all(new_data)
end