class OneviewSDK::API500::Synergy::EnclosureGroup
Public Class Methods
new(client, params = {}, api_ver = nil)
click to toggle source
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.
Calls superclass method
OneviewSDK::API300::Synergy::EnclosureGroup::new
# File lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb, line 23 def initialize(client, params = {}, api_ver = nil) @data ||= {} # Default values: @data['type'] ||= 'EnclosureGroupV400' super end
Public Instance Methods
get_script(*)
click to toggle source
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb, line 32 def get_script(*) unavailable_method end
update(attributes = {})
click to toggle source
Updates an enclosure group @param [Hash] attributes The attributes to add/change for this resource (key-value pairs) @raise [OneviewSDK::IncompleteResource] if the client or uri is not set @raise [StandardError] if the resource save fails @return [Resource] self
Calls superclass method
OneviewSDK::Resource#update
# File lib/oneview-sdk/resource/api500/synergy/enclosure_group.rb, line 41 def update(attributes = {}) super(attributes) retrieve! self end