Module: OneviewSDK::API500::C7000::FirmwareHelper

Includes:
ResourceHelper::PatchOperation
Included in:
LogicalEnclosure, Synergy::LogicalEnclosure
Defined in:
lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb

Overview

Contains helper methods to include operation with firmware of a given logical enclosure resource

Instance Method Summary collapse

Methods included from ResourceHelper::PatchOperation

#patch

Instance Method Details

#update_firmware(attributes = {}) ⇒ OneviewSDK::API500::C7000::LogicalEnclosure

Updates the firmware attributes of a given logical enclosure resource

Parameters:

  • attributes (Hash) (defaults to: {})

    Hash with firmware attributes

  • options (Hash)

    a customizable set of options

Returns:



28
29
30
31
32
# File 'lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb', line 28

def update_firmware(attributes = {})
  patch('replace', '/firmware', attributes, 'If-Match' => @data['eTag'])
  retrieve!
  self
end