class OneviewSDK::API300::Synergy::DriveEnclosure
Constants
- BASE_URI
Public Class Methods
Create a resource object, associate it with a client, and set its properties. @param [OneviewSDK::Client] client The client object for the OneView appliance @param [Hash] params The options for this resource (key-value pairs) @param [Integer] api_ver The api version to use when interracting with this resource.
OneviewSDK::Resource::new
# File lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb, line 25 def initialize(client, params = {}, api_ver = nil) super end
Public Instance Methods
Method is unavailable @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb, line 31 def create(*) unavailable_method end
Method is unavailable @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb, line 37 def delete(*) unavailable_method end
Retrieve the drive enclosure I/O adapter port to SAS interconnect port connectivity
# 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
Update specific attributes of a given drive enclosure @param [String] operation Operation to be performed @param [String] path Path @param [String] value Value
# 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
Refresh a drive enclosure @param [String] state Indicates if the resource is currently refreshing
# 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
Method is unavailable @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api300/synergy/drive_enclosure.rb, line 43 def update(*) unavailable_method end