Class: OneviewSDK::API1000::C7000::StorageSystem
- Inherits:
-
OneviewSDK::API800::C7000::StorageSystem
- Object
- Resource
- OneviewSDK::API200::Resource
- OneviewSDK::API200::StorageSystem
- OneviewSDK::API300::C7000::StorageSystem
- OneviewSDK::API500::C7000::StorageSystem
- OneviewSDK::API600::C7000::StorageSystem
- OneviewSDK::API800::C7000::StorageSystem
- OneviewSDK::API1000::C7000::StorageSystem
- Defined in:
- lib/oneview-sdk/resource/api1000/c7000/storage_system.rb
Overview
Storage System resource implementation for API1000 C7000
Direct Known Subclasses
Synergy::StorageSystem, OneviewSDK::API1200::C7000::StorageSystem
Constant Summary
Constants inherited from OneviewSDK::API500::C7000::StorageSystem
OneviewSDK::API500::C7000::StorageSystem::UNIQUE_IDENTIFIERS
Constants inherited from OneviewSDK::API200::StorageSystem
OneviewSDK::API200::StorageSystem::BASE_URI, OneviewSDK::API200::StorageSystem::UNIQUE_IDENTIFIERS
Constants inherited from Resource
Resource::BASE_URI, Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS
Instance Attribute Summary
Attributes inherited from Resource
#api_version, #client, #data, #logger
Instance Method Summary collapse
-
#update(attributes = {}) ⇒ Resource
Set data and save to OneView.
Methods inherited from OneviewSDK::API500::C7000::StorageSystem
#add, #exists?, #get_managed_ports, #get_reachable_ports, #get_templates, #initialize, #remove, #request_refresh, #retrieve!, #set_refresh_state
Methods inherited from OneviewSDK::API200::StorageSystem
#add, #create, #create!, #delete, #exists?, get_host_types, #get_managed_ports, #get_storage_pools, #initialize, #like?, #remove, #retrieve!, #set_refresh_state
Methods inherited from Resource
#==, #[], #[]=, build_query, #create, #create!, #deep_merge!, #delete, #each, #eql?, #exists?, find_by, find_with_pagination, from_file, get_all, get_all_with_query, #initialize, #like?, #refresh, #retrieve!, #schema, schema, #set, #set_all, #to_file
Constructor Details
This class inherits a constructor from OneviewSDK::API500::C7000::StorageSystem
Instance Method Details
#update(attributes = {}) ⇒ Resource
Set data and save to OneView
24 25 26 27 28 29 30 31 |
# File 'lib/oneview-sdk/resource/api1000/c7000/storage_system.rb', line 24 def update(attributes = {}) set_all(attributes) ensure_client && ensure_uri @data.delete('type') response = @client.rest_put(@data['uri'] + '/?force=true', { 'body' => @data }, @api_version) @client.response_handler(response) self end |