Class: OneviewSDK::API300::Synergy::DriveEnclosure
- Defined in:
- lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb
Overview
Drive enclosure resource implementation for API300 Synergy
Direct Known Subclasses
Constant Summary collapse
- BASE_URI =
'/rest/drive-enclosures'.freeze
Constants inherited from Resource
Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS
Instance Attribute Summary
Attributes inherited from Resource
#api_version, #client, #data, #logger
Instance Method Summary collapse
-
#create ⇒ Object
Method is unavailable.
-
#delete ⇒ Object
Method is unavailable.
-
#get_port_map ⇒ Object
Retrieve the drive enclosure I/O adapter port to SAS interconnect port connectivity.
-
#initialize(client, params = {}, api_ver = nil) ⇒ DriveEnclosure
constructor
Create a resource object, associate it with a client, and set its properties.
-
#patch(operation, path, value) ⇒ Object
Update specific attributes of a given drive enclosure.
-
#set_refresh_state(state) ⇒ Object
Refresh a drive enclosure.
-
#update ⇒ Object
Method is unavailable.
Methods inherited from Resource
#==, #[], #[]=, build_query, #create!, #deep_merge!, #each, #eql?, #exists?, find_by, find_with_pagination, from_file, get_all, #like?, #refresh, #retrieve!, #schema, schema, #set, #set_all, #to_file
Constructor Details
#initialize(client, params = {}, api_ver = nil) ⇒ DriveEnclosure
Create a resource object, associate it with a client, and set its properties.
25 26 27 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 25 def initialize(client, params = {}, api_ver = nil) super end |
Instance Method Details
#create ⇒ Object
Method is unavailable
31 32 33 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 31 def create(*) unavailable_method end |
#delete ⇒ Object
Method is unavailable
37 38 39 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 37 def delete(*) unavailable_method end |
#get_port_map ⇒ Object
Retrieve the drive enclosure I/O adapter port to SAS interconnect port connectivity
48 49 50 51 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 48 def get_port_map response = @client.rest_get(@data['uri'] + '/port-map') response.body end |
#patch(operation, path, value) ⇒ Object
Update specific attributes of a given drive enclosure
64 65 66 67 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 64 def patch(operation, path, value) response = @client.rest_patch(@data['uri'], 'body' => [{ op: operation, path: path, value: value }]) @client.response_handler(response) end |
#set_refresh_state(state) ⇒ Object
Refresh a drive enclosure
55 56 57 58 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 55 def set_refresh_state(state) response = @client.rest_put(@data['uri'] + '/refreshState', 'body' => { refreshState: state }) @client.response_handler(response) end |
#update ⇒ Object
Method is unavailable
43 44 45 |
# File 'lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb', line 43 def update(*) unavailable_method end |