class OneviewSDK::API1000::C7000::StorageSystem
Public Instance Methods
update(attributes = {})
click to toggle source
Set data and save to OneView @param [Hash] attributes The attributes to add/change for this resource (key-value pairs) @raise [OneviewSDK::IncompleteResource] if the client or uri is not set @raise [StandardError] if the resource save fails @return [Resource] self
# File lib/oneview-sdk/resource/api1000/c7000/storage_system.rb, line 24 def update(attributes = {}) set_all(attributes) ensure_client && ensure_uri @data.delete('type') response = @client.rest_put(@data['uri'] + '/?force=true', { 'body' => @data }, @api_version) @client.response_handler(response) self end