Module: OneviewSDK::API300::Synergy::SASLogicalJBODHelper
- Included in:
- OneviewSDK::API1000::Synergy::ServerProfile, OneviewSDK::API1200::Synergy::ServerProfile, OneviewSDK::API1600::Synergy::ServerProfile, OneviewSDK::API1800::Synergy::ServerProfile, OneviewSDK::API2000::Synergy::ServerProfile, OneviewSDK::API2200::Synergy::ServerProfile, ServerProfile, OneviewSDK::API500::Synergy::ServerProfile, OneviewSDK::API600::Synergy::ServerProfile, OneviewSDK::API800::Synergy::ServerProfile
- Defined in:
- lib/oneview-sdk/resource/api300/synergy/server_profile.rb
Overview
Contains helper methods to include operation with SAS Logical JBOD
Constant Summary collapse
- LOGICAL_JBOD_URI =
'/rest/sas-logical-jbods'.freeze
- ATTACHMENT_URI =
'/rest/sas-logical-jbod-attachments'.freeze
Instance Method Summary collapse
-
#get_sas_logical_jbod(client, name) ⇒ Hash
Retrieves a SAS Logical JBOD by name.
-
#get_sas_logical_jbod_attachment(client, name) ⇒ Hash
Retrieves a SAS Logical JBOD Attachment by name.
-
#get_sas_logical_jbod_attachments(client) ⇒ Array
Retrieves all SAS Logical JBOD Attachments.
-
#get_sas_logical_jbod_drives(client, name) ⇒ Array
Retrieves drives by SAS Logical JBOD name.
-
#get_sas_logical_jbods(client) ⇒ Array
Retrieves all SAS Logical JBOD.
Instance Method Details
#get_sas_logical_jbod(client, name) ⇒ Hash
Retrieves a SAS Logical JBOD by name
33 34 35 36 |
# File 'lib/oneview-sdk/resource/api300/synergy/server_profile.rb', line 33 def get_sas_logical_jbod(client, name) results = get_sas_logical_jbods(client) results.find { |item| item['name'] == name } end |
#get_sas_logical_jbod_attachment(client, name) ⇒ Hash
Retrieves a SAS Logical JBOD Attachment by name
59 60 61 62 |
# File 'lib/oneview-sdk/resource/api300/synergy/server_profile.rb', line 59 def (client, name) results = (client) results.find { || ['name'] == name } end |
#get_sas_logical_jbod_attachments(client) ⇒ Array
Retrieves all SAS Logical JBOD Attachments
51 52 53 |
# File 'lib/oneview-sdk/resource/api300/synergy/server_profile.rb', line 51 def (client) OneviewSDK::Resource.find_with_pagination(client, ATTACHMENT_URI) end |
#get_sas_logical_jbod_drives(client, name) ⇒ Array
Retrieves drives by SAS Logical JBOD name
42 43 44 45 46 |
# File 'lib/oneview-sdk/resource/api300/synergy/server_profile.rb', line 42 def get_sas_logical_jbod_drives(client, name) item = get_sas_logical_jbod(client, name) response = client.rest_get(item['uri'] + '/drives') client.response_handler(response) end |
#get_sas_logical_jbods(client) ⇒ Array
Retrieves all SAS Logical JBOD
25 26 27 |
# File 'lib/oneview-sdk/resource/api300/synergy/server_profile.rb', line 25 def get_sas_logical_jbods(client) OneviewSDK::Resource.find_with_pagination(client, LOGICAL_JBOD_URI) end |