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

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

Overview

Logical Enclosure resource implementation on API300 C7000

Direct Known Subclasses

Synergy::LogicalEnclosure

Constant Summary

Constants inherited from OneviewSDK::API200::LogicalEnclosure

OneviewSDK::API200::LogicalEnclosure::BASE_URI

Constants inherited from Resource

Resource::BASE_URI, Resource::UNIQUE_IDENTIFIERS

Instance Attribute Summary

Attributes inherited from Resource

#api_version, #client, #data, #logger

Instance Method Summary collapse

Methods inherited from OneviewSDK::API200::LogicalEnclosure

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

Methods inherited from Resource

#==, #[], #[]=, build_query, #create, #create!, #delete, #each, #eql?, #exists?, find_by, from_file, get_all, #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.



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

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

Instance Method Details

#patch(value) ⇒ Object

Updates specific attributes of a given logical enclosure resource

Parameters:

  • value (String)

    Value



26
27
28
29
30
31
# File 'lib/oneview-sdk/resource/api300/c7000/logical_enclosure.rb', line 26

def patch(value)
  ensure_client && ensure_uri
  body = { op: 'replace', path: '/firmware', value: value }
  response = @client.rest_patch(@data['uri'], { 'body' => [body] }, @api_version)
  @client.response_handler(response)
end