ibm_power_hmc 0.14.0 → 0.15.0

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: 3162f83d1c3168407716f683401e5f3f1b3c49489728561e52ab49410209beaa
4
- data.tar.gz: c50f1ac36cda911c01262b06762fd928c06790d4df116f020958edd10ca0713e
3
+ metadata.gz: 795c24c54a66370ed07b6d1fdac7f156e2802f2e3ddcc874a3e63704cea8c1f9
4
+ data.tar.gz: 0cb32bfa4740e020d444e1d4b520cee210c50e14c13c7caacf3c79edc9529121
5
5
  SHA512:
6
- metadata.gz: 014ff944d75d5dccf07d894628a0b41c08fe99d3478558f57b22aff2a1e86cc9589368c3a55696dc0f196edabd59f0d9e47b0f2aa09f726b7d6b18c5d250e775
7
- data.tar.gz: 68a388e0a6a75c9cc61e9befeca8644fa64f92e95ca8411948fe166ba81c44997bd67c0247d943567fb0f345671bb9164dbc77294bdeb153f534b394c4637334
6
+ metadata.gz: c980bfb6bea2bcf632903a5cda0dccfafc49f4115fa94d80823d6ba836cd9c385a37faa7e3951bb1c7675e8d928d92250890920689d8b07c870b8043196d532e
7
+ data.tar.gz: 7af86636d815da7b63587e459bbd4601045c55f4485cb22eb503b6875e00c43cd94f83d412882fe995e3846171547979f0fd5f93ab4e6804013e01fb9bd9d38d
@@ -90,6 +90,29 @@ module IbmPowerHmc
90
90
  FeedParser.new(response.body).objects(:ManagedSystem)
91
91
  end
92
92
 
93
+ ##
94
+ # @!method managed_systems_quick
95
+ # Retrieve the list of systems managed by the HMC (using Quick API).
96
+ # @return [Array<Hash>] The list of managed systems.
97
+ def managed_systems_quick
98
+ method_url = "/rest/api/uom/ManagedSystem/quick/All"
99
+ response = request(:get, method_url)
100
+ JSON.parse(response.body)
101
+ end
102
+
103
+ ##
104
+ # @!method managed_system_quick(sys_uuid, property = nil)
105
+ # Retrieve information about a managed system (using Quick API).
106
+ # @param sys_uuid [String] The UUID of the managed system.
107
+ # @param property_name [String] The quick property name (optional).
108
+ # @return [Hash] The managed system.
109
+ def managed_system_quick(sys_uuid, property = nil)
110
+ method_url = "/rest/api/uom/ManagedSystem/#{sys_uuid}/quick"
111
+ method_url += "/#{property}" unless property.nil?
112
+ response = request(:get, method_url)
113
+ JSON.parse(response.body)
114
+ end
115
+
93
116
  ##
94
117
  # @!method managed_system(lpar_uuid, sys_uuid = nil, group_name = nil)
95
118
  # Retrieve information about a managed system.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IbmPowerHmc
4
- VERSION = "0.14.0"
4
+ VERSION = "0.15.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_power_hmc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - IBM Power
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client