Class: OneviewSDK::API300::C7000::LogicalEnclosure

Inherits:
OneviewSDK::API200::LogicalEnclosure show all
Includes:
ResourceHelper::PatchOperation
Defined in:
lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb

Overview

Logical Enclosure resource implementation on API300 C7000

Constant Summary

Constants inherited from OneviewSDK::API200::LogicalEnclosure

OneviewSDK::API200::LogicalEnclosure::BASE_URI

Constants inherited from Resource

Resource::BASE_URI, Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS

Instance Attribute Summary

Attributes inherited from Resource

#api_version, #client, #data, #logger

Instance Method Summary collapse

Methods included from ResourceHelper::PatchOperation

#patch

Methods inherited from OneviewSDK::API200::LogicalEnclosure

#get_script, #reconfigure, #set_script, #support_dump, #update_from_group

Methods inherited from Resource

#==, #[], #[]=, build_query, #create, #create!, #deep_merge!, #delete, #each, #eql?, #exists?, find_by, find_with_pagination, from_file, get_all, get_all_with_query, #like?, #refresh, #retrieve!, #schema, schema, #set, #set_all, #to_file, #update

Constructor Details

#initialize(client, params = {}, api_ver = nil) ⇒ LogicalEnclosure

Returns a new instance of LogicalEnclosure.



22
23
24
# File 'lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb', line 22

def initialize(client, params = {}, api_ver = nil)
  super
end

Instance Method Details

#update_firmware(attributes = {}) ⇒ Object

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



31
32
33
# File 'lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb', line 31

def update_firmware(attributes = {})
  patch('replace', '/firmware', attributes)
end