radfish-supermicro 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a0045b1cbad8f48e84fad5836a53ff4d3e49b69230f709722698934c9245564
4
- data.tar.gz: 0d8a00612b320df6135f3d8f16548c96d6dbef15bb0aafc26235dac374c78dfd
3
+ metadata.gz: 202dcec4a1ba67974964ada0218d40876d291858bba3de7d163f401c05206fd9
4
+ data.tar.gz: a944dca7885e3df865a6ba44f2b776c321dfbce0480ed11533e49d92fa91e21f
5
5
  SHA512:
6
- metadata.gz: 50a0bb9db7c28d0502a8259da5a1e3d30a55b596bfa153a74dd426782fec20600be6929e4bf3a9f2f5f2c027f5aa36e11d86a01a90d0f7f6d353b97a3a08315e
7
- data.tar.gz: 35b56e38c069d0581d7572726b5b05c36c27dc068c16385dbd194d8fa68a120ab4346bf8d6b0cb023919288dfef06580d580dacb4a64c28c02ed951f0aa0a43e
6
+ metadata.gz: 9fbe20bfba799ddb24d2a7b14aaf66d4d123c4a5b15a4cebf2f52dac6a2a501c420d29662cfb432a06bb667666404d9b4721e5caf0a60b855f75d2df429c766e
7
+ data.tar.gz: 642e58e514d1baa77c972cfa4acb520d692490e421e273b92fd8b5a9b8e73ec342f3fdd460cc64e5b76a1de00a74ccf266fab04da01af31736354669e7ba2dbe
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Radfish
4
4
  module Supermicro
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
@@ -320,12 +320,24 @@ module Radfish
320
320
  end
321
321
  end
322
322
 
323
- def drives
324
- @supermicro_client.drives
323
+ def drives(controller_id)
324
+ # The Supermicro gem now requires controller_id following natural Redfish pattern
325
+ raise ArgumentError, "Controller ID is required" unless controller_id
326
+
327
+ drive_data = @supermicro_client.drives(controller_id)
328
+
329
+ # Convert to OpenStruct for consistency
330
+ drive_data.map { |drive| OpenStruct.new(drive) }
325
331
  end
326
332
 
327
- def volumes
328
- @supermicro_client.volumes
333
+ def volumes(controller_id)
334
+ # The Supermicro gem now requires controller_id following natural Redfish pattern
335
+ raise ArgumentError, "Controller ID is required" unless controller_id
336
+
337
+ volume_data = @supermicro_client.volumes(controller_id)
338
+
339
+ # Convert to OpenStruct for consistency
340
+ volume_data.map { |volume| OpenStruct.new(volume) }
329
341
  end
330
342
 
331
343
  def storage_summary
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radfish-supermicro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel