Class: OneviewSDK::API500::C7000::LogicalEnclosure

Inherits:
OneviewSDK::API300::C7000::LogicalEnclosure show all
Includes:
FirmwareHelper
Defined in:
lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb

Overview

Logical Enclosure resource implementation on API500 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 FirmwareHelper

#update_firmware

Methods included from ResourceHelper::PatchOperation

#patch

Methods inherited from OneviewSDK::API300::C7000::LogicalEnclosure

#initialize, #update_firmware

Methods inherited from OneviewSDK::API200::LogicalEnclosure

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

Methods inherited from Resource

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

Constructor Details

This class inherits a constructor from OneviewSDK::API300::C7000::LogicalEnclosure

Instance Method Details

#createObject

Method is not available

Raises:



41
42
43
# File 'lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb', line 41

def create(*)
  unavailable_method
end

#deleteObject

Method is not available

Raises:



47
48
49
# File 'lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb', line 47

def delete(*)
  unavailable_method
end

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

Updates a logical enclosure

Parameters:

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

    attributes to be updated

Returns:



54
55
56
57
58
# File 'lib/oneview-sdk/resource/api500/c7000/logical_enclosure.rb', line 54

def update(attributes = {})
  super(attributes)
  retrieve!
  self
end