class OneviewSDK::API300::C7000::LogicalInterconnect
Logical interconnect resource implementation for API300
C7000
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::API200::LogicalInterconnect::new
# File lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb, line 26 def initialize(client, params = {}, api_ver = nil) @data ||= {} # Default values: @data['type'] ||= 'logical-interconnectV300' super end
Public Instance Methods
update_settings(options = {})
click to toggle source
Updates settings of the logical interconnect @param options Options to update the Logical Interconnect
@return Updated instance of the Logical Interconnect
Calls superclass method
OneviewSDK::API200::LogicalInterconnect#update_settings
# File lib/oneview-sdk/resource/api300/c7000/logical_interconnect.rb, line 36 def update_settings(options = {}) options['type'] ||= 'InterconnectSettingsV201' options['ethernetSettings'] ||= {} options['ethernetSettings']['type'] ||= 'EthernetInterconnectSettingsV201' super(options) end