Module: XClarityClient::Mixins::ChassiMixin

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

Overview

Exposes ChassiManagement features

Instance Method Summary collapse

Instance Method Details



20
21
22
# File 'lib/xclarity_client/mixins/chassi_mixin.rb', line 20

def blink_loc_led_chassis(uuid = '', name = 'Location')
  chassi_management.set_loc_led_state(uuid, 'Blinking', name)
end

#discover_chassis(opts = {}) ⇒ Object



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

def discover_chassis(opts = {})
  chassi_management.fetch_all(opts)
end

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



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

def fetch_chassis(uuids = nil,
                  include_attributes = nil,
                  exclude_attributes = nil)
  chassi_management.get_object(
    uuids,
    include_attributes,
    exclude_attributes
  )
end

#turn_off_loc_led_chassis(uuid = '', name = 'Location') ⇒ Object



28
29
30
# File 'lib/xclarity_client/mixins/chassi_mixin.rb', line 28

def turn_off_loc_led_chassis(uuid = '', name = 'Location')
  chassi_management.set_loc_led_state(uuid, 'Off', name)
end

#turn_on_loc_led_chassis(uuid = '', name = 'Location') ⇒ Object



24
25
26
# File 'lib/xclarity_client/mixins/chassi_mixin.rb', line 24

def turn_on_loc_led_chassis(uuid = '', name = 'Location')
  chassi_management.set_loc_led_state(uuid, 'On', name)
end