Module: XClarityClient::Mixins::UpdateCompMixin
- Included in:
- Client
- Defined in:
- lib/xclarity_client/mixins/update_comp_mixin.rb
Overview
Exposes UpdateCompManagement features
Instance Method Summary collapse
- #apply_firmware_update(opts, activation_mode = nil, force_update_mode = nil, onerror_mode = nil) ⇒ Object
- #cancel_firmware_update(server = nil, switch = nil, storage = nil, cmm = nil) ⇒ Object
- #discover_firmware_update_status ⇒ Object
- #discover_updatable_device_comp ⇒ Object
- #modify_power_state(server = nil, switch = nil, storage = nil, cmm = nil) ⇒ Object
Instance Method Details
#apply_firmware_update(opts, activation_mode = nil, force_update_mode = nil, onerror_mode = nil) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/xclarity_client/mixins/update_comp_mixin.rb', line 14 def apply_firmware_update(opts, activation_mode = nil, force_update_mode = nil, onerror_mode = nil) UpdateCompManagement.new(@config).apply_firmware_update(opts, activation_mode, force_update_mode, onerror_mode) end |
#cancel_firmware_update(server = nil, switch = nil, storage = nil, cmm = nil) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/xclarity_client/mixins/update_comp_mixin.rb', line 22 def cancel_firmware_update(server = nil, switch = nil, storage = nil, cmm = nil) UpdateCompManagement.new(@config).cancel_firmware_update(server, switch, storage, cmm) end |
#discover_firmware_update_status ⇒ Object
6 7 8 |
# File 'lib/xclarity_client/mixins/update_comp_mixin.rb', line 6 def discover_firmware_update_status UpdateCompManagement.new(@config).fetch_all end |
#discover_updatable_device_comp ⇒ Object
10 11 12 |
# File 'lib/xclarity_client/mixins/update_comp_mixin.rb', line 10 def discover_updatable_device_comp UpdateCompManagement.new(@config).updatable_device_comp end |
#modify_power_state(server = nil, switch = nil, storage = nil, cmm = nil) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/xclarity_client/mixins/update_comp_mixin.rb', line 30 def modify_power_state(server = nil, switch = nil, storage = nil, cmm = nil) UpdateCompManagement.new(@config).modify_power_state(server, switch, storage, cmm) end |