class OneviewSDK::API300::Synergy::SASInterconnect
SAS Interconnect
resource implementation
Constants
- BASE_URI
- TYPE_URI
Public Class Methods
Retrieves a SAS interconnect type by name @param [OneviewSDK::Client] client The client object for the OneView appliance @param [String] name Interconnect
type name @return [Array] Interconnect
type
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 60 def self.get_type(client, name) results = get_types(client) results.find { |interconnect_type| interconnect_type['name'] == name } end
Retrieves SAS interconnect types @param [OneviewSDK::Client] client The client object for the OneView appliance
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 50 def self.get_types(client) response = client.rest_get(TYPE_URI) response = client.response_handler(response) response['members'] end
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/sas_interconnect.rb, line 26 def initialize(client, params = {}, api_ver = nil) super end
Public Instance Methods
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 32 def create(*) unavailable_method end
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 44 def delete(*) unavailable_method end
Updates specific attributes for a given SAS interconnect @param [String] operation operation to be performed @param [String] path path @param [String] value value
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 78 def patch(operation, path, value) ensure_client && ensure_uri response = @client.rest_patch(@data['uri'], 'body' => [{ op: operation, path: path, value: value }]) patched_data = @client.response_handler(response) set_all(patched_data) end
Set refresh state for SAS Interconnect
@param [String] state Desired refresh state
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 67 def set_refresh_state(state) ensure_client && ensure_uri response = @client.rest_put(@data['uri'] + '/refreshState', 'body' => { refreshState: state }) refreshed_data = @client.response_handler(response) set_all(refreshed_data) end
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api300/synergy/sas_interconnect.rb, line 38 def update(*) unavailable_method end