Module: XClarityClient::Mixins::PowerSupplyMixin

Included in:
Client
Defined in:
lib/xclarity_client/mixins/power_supply_mixin.rb

Overview

Exposes PowerSupplyManagement features

Instance Method Summary collapse

Instance Method Details

#discover_power_supplies(opts = {}) ⇒ Object



6
7
8
# File 'lib/xclarity_client/mixins/power_supply_mixin.rb', line 6

def discover_power_supplies(opts = {})
  PowerSupplyManagement.new(@config).fetch_all(opts)
end

#fetch_power_supplies(uuids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/xclarity_client/mixins/power_supply_mixin.rb', line 10

def fetch_power_supplies(uuids = nil,
                         include_attributes = nil,
                         exclude_attributes = nil)
  PowerSupplyManagement.new(@config).get_object(
    uuids,
    include_attributes,
    exclude_attributes
  )
end