class OneviewSDK::API600::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::API500::Synergy::EnclosureGroup::new
# File lib/oneview-sdk/resource/api600/synergy/enclosure_group.rb, line 23 def initialize(client, params = {}, api_ver = nil) @data ||= {} # Default values: super @data.delete('type') @data.delete('interconnectBayMappingCount') @data.delete('stackingMode') end
Public Instance Methods
update(attributes = {})
click to toggle source
Calls superclass method
OneviewSDK::API500::Synergy::EnclosureGroup#update
# File lib/oneview-sdk/resource/api600/synergy/enclosure_group.rb, line 32 def update(attributes = {}) @data['type'] ||= 'EnclosureGroupV7' @data['stackingMode'] ||= 'Enclosure' super end