nl-linux 0.4.2 → 0.5.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/NLSPEC_VERSION +1 -1
- data/generated/nl/linux/binder.rb +103 -187
- data/generated/nl/linux/conntrack.rb +1053 -1649
- data/generated/nl/linux/dev_energymodel.rb +303 -265
- data/generated/nl/linux/devlink.rb +4904 -5576
- data/generated/nl/linux/dpll.rb +1097 -1467
- data/generated/nl/linux/drm_ras.rb +235 -195
- data/generated/nl/linux/ethtool.rb +6652 -7415
- data/generated/nl/linux/fou.rb +234 -255
- data/generated/nl/linux/handshake.rb +208 -280
- data/generated/nl/linux/lockd.rb +99 -73
- data/generated/nl/linux/mptcp_pm.rb +589 -687
- data/generated/nl/linux/net_shaper.rb +520 -615
- data/generated/nl/linux/netdev.rb +1640 -1987
- data/generated/nl/linux/nfsd.rb +1341 -1215
- data/generated/nl/linux/nftables.rb +5143 -4870
- data/generated/nl/linux/nl80211.rb +2542 -6316
- data/generated/nl/linux/nlctrl.rb +338 -483
- data/generated/nl/linux/ovpn.rb +1006 -1522
- data/generated/nl/linux/ovs_datapath.rb +291 -186
- data/generated/nl/linux/ovs_flow.rb +1393 -2065
- data/generated/nl/linux/ovs_packet.rb +186 -223
- data/generated/nl/linux/ovs_vport.rb +328 -285
- data/generated/nl/linux/psp.rb +812 -717
- data/generated/nl/linux/rt_addr.rb +513 -243
- data/generated/nl/linux/rt_link.rb +4504 -7238
- data/generated/nl/linux/rt_neigh.rb +935 -847
- data/generated/nl/linux/rt_route.rb +1198 -871
- data/generated/nl/linux/rt_rule.rb +680 -659
- data/generated/nl/linux/sunrpc_cache.rb +323 -321
- data/generated/nl/linux/tc.rb +9058 -10454
- data/generated/nl/linux/tcp_metrics.rb +258 -367
- data/generated/nl/linux/team.rb +327 -345
- data/generated/nl/linux/wireguard.rb +270 -434
- data/lib/nl/linux/nlctrl_resolver.rb +1 -1
- data/lib/nl/linux/version.rb +1 -1
- data/linux/conntrack.yaml +18 -3
- data/linux/devlink.yaml +26 -4
- data/linux/dpll.yaml +19 -0
- data/linux/netdev.yaml +21 -0
- data/linux/nfsd.yaml +111 -0
- data/linux/nl80211.yaml +2 -2
- data/linux/rt-addr.yaml +4 -0
- data/linux/rt-link.yaml +7 -0
- data/linux/rt-neigh.yaml +3 -0
- data/linux/rt-route.yaml +83 -2
- data/sig/generated/nl/linux/binder.rbs +77 -220
- data/sig/generated/nl/linux/conntrack.rbs +770 -1954
- data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
- data/sig/generated/nl/linux/devlink.rbs +3318 -6068
- data/sig/generated/nl/linux/dpll.rbs +791 -1589
- data/sig/generated/nl/linux/drm_ras.rbs +160 -208
- data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
- data/sig/generated/nl/linux/fou.rbs +139 -254
- data/sig/generated/nl/linux/handshake.rbs +144 -319
- data/sig/generated/nl/linux/lockd.rbs +64 -74
- data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
- data/sig/generated/nl/linux/net_shaper.rbs +351 -644
- data/sig/generated/nl/linux/netdev.rbs +1151 -2146
- data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
- data/sig/generated/nl/linux/nftables.rbs +2907 -5030
- data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
- data/sig/generated/nl/linux/nlctrl.rbs +220 -544
- data/sig/generated/nl/linux/ovpn.rbs +835 -1859
- data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
- data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
- data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
- data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
- data/sig/generated/nl/linux/psp.rbs +550 -741
- data/sig/generated/nl/linux/rt_addr.rbs +188 -226
- data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
- data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
- data/sig/generated/nl/linux/rt_route.rbs +632 -862
- data/sig/generated/nl/linux/rt_rule.rbs +217 -639
- data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
- data/sig/generated/nl/linux/tc.rbs +6199 -13391
- data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
- data/sig/generated/nl/linux/team.rbs +232 -391
- data/sig/generated/nl/linux/wireguard.rbs +197 -502
- metadata +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
2
2
|
#
|
|
3
|
-
# This file is based on Documentation/netlink/specs/dev-energymodel.yaml from Linux v7.
|
|
3
|
+
# This file is based on Documentation/netlink/specs/dev-energymodel.yaml from Linux v7.3.
|
|
4
4
|
#
|
|
5
5
|
# Original YNL comment:
|
|
6
6
|
#
|
|
@@ -32,7 +32,7 @@ class DevEnergymodel < ::Nl::Genl::Family
|
|
|
32
32
|
super
|
|
33
33
|
end
|
|
34
34
|
# @private
|
|
35
|
-
MCAST_GROUPS =
|
|
35
|
+
MCAST_GROUPS = {:"event" => ::Nl::McastGroup.new("event", nil)}.freeze #: Hash[::Symbol, ::Nl::McastGroup]
|
|
36
36
|
module Flags
|
|
37
37
|
module PerfStateFlags
|
|
38
38
|
# The performance state is inefficient. There is in this perf-domain, another performance state with a higher frequency but a lower or equal power cost.
|
|
@@ -52,394 +52,432 @@ class DevEnergymodel < ::Nl::Genl::Family
|
|
|
52
52
|
module AttributeSets
|
|
53
53
|
# Information on a single performance domains.
|
|
54
54
|
class PerfDomain < ::Nl::AttributeSet
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
module Definitions
|
|
56
|
+
# A unique ID number for each performance domain.
|
|
57
|
+
# @rbs return: ::Integer
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
60
|
+
# Bitmask of performance domain flags.
|
|
61
|
+
#
|
|
62
|
+
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
63
|
+
# @rbs return: ::Integer
|
|
64
|
+
# @return [Integer]
|
|
65
|
+
def flags; self[:"flags"]; end
|
|
66
|
+
# CPUs that belong to this performance domain.
|
|
67
|
+
# @rbs return: ::Array[::Integer]
|
|
68
|
+
# @return [Array<Integer>]
|
|
69
|
+
def cpus; self[:"cpus"]; end
|
|
57
70
|
end
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
# @private
|
|
64
|
-
DATATYPE = ::Nl::DataTypes::Pad.new()
|
|
65
|
-
end
|
|
66
|
-
# A unique ID number for each performance domain.
|
|
67
|
-
class PerfDomainId < Attribute
|
|
68
|
-
TYPE = 2
|
|
69
|
-
NAME = :"perf_domain_id"
|
|
70
|
-
# @private
|
|
71
|
-
ORDER = 1
|
|
72
|
-
# @private
|
|
73
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
74
|
-
end
|
|
75
|
-
# Bitmask of performance domain flags.
|
|
76
|
-
#
|
|
77
|
-
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
78
|
-
class Flags < Attribute
|
|
79
|
-
TYPE = 3
|
|
80
|
-
NAME = :"flags"
|
|
81
|
-
# @private
|
|
82
|
-
ORDER = 2
|
|
83
|
-
# @private
|
|
84
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
|
|
85
|
-
end
|
|
86
|
-
# CPUs that belong to this performance domain.
|
|
87
|
-
class Cpus < Attribute
|
|
88
|
-
TYPE = 4
|
|
89
|
-
NAME = :"cpus"
|
|
90
|
-
# @private
|
|
91
|
-
MULTI = true
|
|
92
|
-
# @private
|
|
93
|
-
ORDER = 3
|
|
94
|
-
# @private
|
|
95
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
|
|
96
|
-
end
|
|
97
|
-
# @private
|
|
98
|
-
BY_NAME = Ractor.make_shareable({:"pad" => Pad, :"perf_domain_id" => PerfDomainId, :"flags" => Flags, :"cpus" => Cpus}) #: Hash[::Symbol, Attribute]
|
|
99
|
-
# @private
|
|
100
|
-
BY_TYPE = Ractor.make_shareable({1 => Pad, 2 => PerfDomainId, 3 => Flags, 4 => Cpus}) #: Hash[::Integer, Attribute]
|
|
101
|
-
# A unique ID number for each performance domain.
|
|
102
|
-
# @rbs return: ::Integer
|
|
103
|
-
# @return [Integer]
|
|
104
|
-
# @see PerfDomainId
|
|
105
|
-
def perf_domain_id; self[:"perf_domain_id"]&.value; end
|
|
106
|
-
# Bitmask of performance domain flags.
|
|
107
|
-
#
|
|
108
|
-
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
109
|
-
# @rbs return: ::Integer
|
|
110
|
-
# @return [Integer]
|
|
111
|
-
# @see Flags
|
|
112
|
-
def flags; self[:"flags"]&.value; end
|
|
113
|
-
# CPUs that belong to this performance domain.
|
|
114
|
-
# @rbs return: ::Array[::Integer]
|
|
115
|
-
# @return [Array<Integer>]
|
|
116
|
-
# @see Cpus
|
|
117
|
-
def cpus; self[:"cpus"].map(&:value); end
|
|
118
|
-
class << self
|
|
119
|
-
# Looks up Attribute class by name.
|
|
120
|
-
# @rbs name: Symbol
|
|
121
|
-
# @rbs return: Attribute
|
|
122
|
-
# @param [Symbol] name
|
|
123
|
-
# @return [Attribute]
|
|
124
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
125
|
-
# Looks up Attribute class by type value.
|
|
126
|
-
# @rbs type: Integer
|
|
127
|
-
# @rbs return: Attribute
|
|
128
|
-
# @param [Integer] type
|
|
129
|
-
# @return [Attribute]
|
|
130
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
71
|
+
include Definitions
|
|
72
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
73
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
74
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
75
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
131
76
|
end
|
|
132
77
|
end
|
|
133
78
|
# Performance states table.
|
|
134
79
|
class PerfTable < ::Nl::AttributeSet
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
ORDER = 0
|
|
144
|
-
# @private
|
|
145
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
146
|
-
end
|
|
147
|
-
class PerfState < Attribute
|
|
148
|
-
TYPE = 2
|
|
149
|
-
NAME = :"perf_state"
|
|
150
|
-
# @private
|
|
151
|
-
MULTI = true
|
|
152
|
-
# @private
|
|
153
|
-
ORDER = 1
|
|
80
|
+
module Definitions
|
|
81
|
+
# A unique ID number for each performance domain.
|
|
82
|
+
# @rbs return: ::Integer
|
|
83
|
+
# @return [Integer]
|
|
84
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
85
|
+
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
86
|
+
# @return [Array<AttributeSets::PerfState>]
|
|
87
|
+
def perf_state; self[:"perf_state"]; end
|
|
154
88
|
end
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
# @
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
# @rbs return: ::Integer
|
|
161
|
-
# @return [Integer]
|
|
162
|
-
# @see PerfDomainId
|
|
163
|
-
def perf_domain_id; self[:"perf_domain_id"]&.value; end
|
|
164
|
-
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
165
|
-
# @return [Array<AttributeSets::PerfState>]
|
|
166
|
-
# @see PerfState
|
|
167
|
-
def perf_state; self[:"perf_state"].map(&:value); end
|
|
168
|
-
class << self
|
|
169
|
-
# Looks up Attribute class by name.
|
|
170
|
-
# @rbs name: Symbol
|
|
171
|
-
# @rbs return: Attribute
|
|
172
|
-
# @param [Symbol] name
|
|
173
|
-
# @return [Attribute]
|
|
174
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
175
|
-
# Looks up Attribute class by type value.
|
|
176
|
-
# @rbs type: Integer
|
|
177
|
-
# @rbs return: Attribute
|
|
178
|
-
# @param [Integer] type
|
|
179
|
-
# @return [Attribute]
|
|
180
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
89
|
+
include Definitions
|
|
90
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
91
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
92
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
93
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
181
94
|
end
|
|
182
95
|
end
|
|
183
96
|
# Performance state of a performance domain.
|
|
184
97
|
class PerfState < ::Nl::AttributeSet
|
|
185
|
-
|
|
186
|
-
|
|
98
|
+
module Definitions
|
|
99
|
+
# CPU performance (capacity) at a given frequency.
|
|
100
|
+
# @rbs return: ::Integer
|
|
101
|
+
# @return [Integer]
|
|
102
|
+
def performance; self[:"performance"]; end
|
|
103
|
+
# The frequency in KHz, for consistency with CPUFreq.
|
|
104
|
+
# @rbs return: ::Integer
|
|
105
|
+
# @return [Integer]
|
|
106
|
+
def frequency; self[:"frequency"]; end
|
|
107
|
+
# The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
|
|
108
|
+
# @rbs return: ::Integer
|
|
109
|
+
# @return [Integer]
|
|
110
|
+
def power; self[:"power"]; end
|
|
111
|
+
# The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
|
|
112
|
+
# @rbs return: ::Integer
|
|
113
|
+
# @return [Integer]
|
|
114
|
+
def cost; self[:"cost"]; end
|
|
115
|
+
# Bitmask of performance state flags.
|
|
116
|
+
#
|
|
117
|
+
# Known flags are defined in {Flags::PerfStateFlags}.
|
|
118
|
+
# @rbs return: ::Integer
|
|
119
|
+
# @return [Integer]
|
|
120
|
+
def flags; self[:"flags"]; end
|
|
187
121
|
end
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
# @private
|
|
194
|
-
DATATYPE = ::Nl::DataTypes::Pad.new()
|
|
195
|
-
end
|
|
196
|
-
# CPU performance (capacity) at a given frequency.
|
|
197
|
-
class Performance < Attribute
|
|
198
|
-
TYPE = 2
|
|
199
|
-
NAME = :"performance"
|
|
200
|
-
# @private
|
|
201
|
-
ORDER = 1
|
|
202
|
-
# @private
|
|
203
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
|
|
204
|
-
end
|
|
205
|
-
# The frequency in KHz, for consistency with CPUFreq.
|
|
206
|
-
class Frequency < Attribute
|
|
207
|
-
TYPE = 3
|
|
208
|
-
NAME = :"frequency"
|
|
209
|
-
# @private
|
|
210
|
-
ORDER = 2
|
|
211
|
-
# @private
|
|
212
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
|
|
122
|
+
include Definitions
|
|
123
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
124
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
125
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
126
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
213
127
|
end
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
module AttributeSets
|
|
131
|
+
class PerfDomain
|
|
132
|
+
module Definitions
|
|
218
133
|
# @private
|
|
219
|
-
|
|
134
|
+
BY_TYPE = ::Array.new(5).tap do |definitions|
|
|
135
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 0, selector_slot: nil)
|
|
136
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"perf_domain_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
|
|
137
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 2, selector_slot: nil)
|
|
138
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"cpus", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: true, order: 3, selector_slot: nil)
|
|
139
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
140
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
220
141
|
# @private
|
|
221
|
-
|
|
142
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
222
143
|
end
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
NAME = :"cost"
|
|
144
|
+
end
|
|
145
|
+
class PerfTable
|
|
146
|
+
module Definitions
|
|
227
147
|
# @private
|
|
228
|
-
|
|
148
|
+
BY_TYPE = ::Array.new(3).tap do |definitions|
|
|
149
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"perf_domain_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
150
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"perf_state", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::PerfState, selector_bindings: []), multi: true, order: 1, selector_slot: nil)
|
|
151
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
152
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
229
153
|
# @private
|
|
230
|
-
|
|
154
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
231
155
|
end
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
class Flags < Attribute
|
|
236
|
-
TYPE = 6
|
|
237
|
-
NAME = :"flags"
|
|
156
|
+
end
|
|
157
|
+
class PerfState
|
|
158
|
+
module Definitions
|
|
238
159
|
# @private
|
|
239
|
-
|
|
160
|
+
BY_TYPE = ::Array.new(7).tap do |definitions|
|
|
161
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 0, selector_slot: nil)
|
|
162
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"performance", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 1, selector_slot: nil)
|
|
163
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"frequency", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 2, selector_slot: nil)
|
|
164
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"power", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 3, selector_slot: nil)
|
|
165
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"cost", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 4, selector_slot: nil)
|
|
166
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 5, selector_slot: nil)
|
|
167
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
168
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
240
169
|
# @private
|
|
241
|
-
|
|
242
|
-
end
|
|
243
|
-
# @private
|
|
244
|
-
BY_NAME = Ractor.make_shareable({:"pad" => Pad, :"performance" => Performance, :"frequency" => Frequency, :"power" => Power, :"cost" => Cost, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
|
|
245
|
-
# @private
|
|
246
|
-
BY_TYPE = Ractor.make_shareable({1 => Pad, 2 => Performance, 3 => Frequency, 4 => Power, 5 => Cost, 6 => Flags}) #: Hash[::Integer, Attribute]
|
|
247
|
-
# CPU performance (capacity) at a given frequency.
|
|
248
|
-
# @rbs return: ::Integer
|
|
249
|
-
# @return [Integer]
|
|
250
|
-
# @see Performance
|
|
251
|
-
def performance; self[:"performance"]&.value; end
|
|
252
|
-
# The frequency in KHz, for consistency with CPUFreq.
|
|
253
|
-
# @rbs return: ::Integer
|
|
254
|
-
# @return [Integer]
|
|
255
|
-
# @see Frequency
|
|
256
|
-
def frequency; self[:"frequency"]&.value; end
|
|
257
|
-
# The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
|
|
258
|
-
# @rbs return: ::Integer
|
|
259
|
-
# @return [Integer]
|
|
260
|
-
# @see Power
|
|
261
|
-
def power; self[:"power"]&.value; end
|
|
262
|
-
# The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
|
|
263
|
-
# @rbs return: ::Integer
|
|
264
|
-
# @return [Integer]
|
|
265
|
-
# @see Cost
|
|
266
|
-
def cost; self[:"cost"]&.value; end
|
|
267
|
-
# Bitmask of performance state flags.
|
|
268
|
-
#
|
|
269
|
-
# Known flags are defined in {Flags::PerfStateFlags}.
|
|
270
|
-
# @rbs return: ::Integer
|
|
271
|
-
# @return [Integer]
|
|
272
|
-
# @see Flags
|
|
273
|
-
def flags; self[:"flags"]&.value; end
|
|
274
|
-
class << self
|
|
275
|
-
# Looks up Attribute class by name.
|
|
276
|
-
# @rbs name: Symbol
|
|
277
|
-
# @rbs return: Attribute
|
|
278
|
-
# @param [Symbol] name
|
|
279
|
-
# @return [Attribute]
|
|
280
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
281
|
-
# Looks up Attribute class by type value.
|
|
282
|
-
# @rbs type: Integer
|
|
283
|
-
# @rbs return: Attribute
|
|
284
|
-
# @param [Integer] type
|
|
285
|
-
# @return [Attribute]
|
|
286
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
170
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
287
171
|
end
|
|
288
172
|
end
|
|
289
|
-
# @private
|
|
290
|
-
PerfTable::PerfState::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::PerfState, selector_bindings: Ractor.make_shareable([]))
|
|
291
173
|
end
|
|
292
174
|
module Messages
|
|
293
175
|
# Get the list of information for all performance domains.
|
|
294
|
-
class DoGetPerfDomainsRequest < ::Nl::
|
|
176
|
+
class DoGetPerfDomainsRequest < ::Nl::Message
|
|
295
177
|
TYPE = 1
|
|
296
178
|
FIXED_HEADER = nil
|
|
297
179
|
ATTRIBUTE_SET = AttributeSets::PerfDomain
|
|
298
|
-
ATTRIBUTES =
|
|
180
|
+
ATTRIBUTES = %i[perf_domain_id].freeze
|
|
181
|
+
include ATTRIBUTE_SET::Definitions
|
|
182
|
+
def initialize(attributes = [])
|
|
183
|
+
@attributes = attributes
|
|
184
|
+
end
|
|
185
|
+
# @private
|
|
186
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
187
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
188
|
+
new(
|
|
189
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
193
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
194
|
+
def self.decode(decoder)
|
|
195
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
196
|
+
end
|
|
197
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
198
|
+
encode_attributes(encoder, external_selectors:)
|
|
199
|
+
end
|
|
299
200
|
# A unique ID number for each performance domain.
|
|
300
201
|
# @rbs return: ::Integer
|
|
301
202
|
# @return [Integer]
|
|
302
|
-
|
|
303
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
203
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
304
204
|
end
|
|
305
205
|
# Get the list of information for all performance domains.
|
|
306
|
-
class DoGetPerfDomainsReply < ::Nl::
|
|
206
|
+
class DoGetPerfDomainsReply < ::Nl::Message
|
|
307
207
|
TYPE = 1
|
|
308
208
|
FIXED_HEADER = nil
|
|
309
209
|
ATTRIBUTE_SET = AttributeSets::PerfDomain
|
|
310
|
-
ATTRIBUTES =
|
|
210
|
+
ATTRIBUTES = %i[pad perf_domain_id flags cpus].freeze
|
|
211
|
+
include ATTRIBUTE_SET::Definitions
|
|
212
|
+
def initialize(attributes = [])
|
|
213
|
+
@attributes = attributes
|
|
214
|
+
end
|
|
215
|
+
# @private
|
|
216
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
217
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
218
|
+
new(
|
|
219
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
220
|
+
)
|
|
221
|
+
end
|
|
222
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
223
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
224
|
+
def self.decode(decoder)
|
|
225
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
226
|
+
end
|
|
227
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
228
|
+
encode_attributes(encoder, external_selectors:)
|
|
229
|
+
end
|
|
311
230
|
# A unique ID number for each performance domain.
|
|
312
231
|
# @rbs return: ::Integer
|
|
313
232
|
# @return [Integer]
|
|
314
|
-
|
|
315
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
233
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
316
234
|
# Bitmask of performance domain flags.
|
|
317
235
|
#
|
|
318
236
|
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
319
237
|
# @rbs return: ::Integer
|
|
320
238
|
# @return [Integer]
|
|
321
|
-
|
|
322
|
-
def flags; attributes[:"flags"]&.value; end
|
|
239
|
+
def flags; self[:"flags"]; end
|
|
323
240
|
# CPUs that belong to this performance domain.
|
|
324
241
|
# @rbs return: ::Array[::Integer]
|
|
325
242
|
# @return [Array<Integer>]
|
|
326
|
-
|
|
327
|
-
def cpus; attributes[:"cpus"].map(&:value); end
|
|
243
|
+
def cpus; self[:"cpus"]; end
|
|
328
244
|
end
|
|
329
245
|
# Get the list of information for all performance domains.
|
|
330
|
-
class DumpGetPerfDomainsRequest < ::Nl::
|
|
246
|
+
class DumpGetPerfDomainsRequest < ::Nl::Message
|
|
331
247
|
TYPE = 1
|
|
332
248
|
FIXED_HEADER = nil
|
|
333
249
|
ATTRIBUTE_SET = AttributeSets::PerfDomain
|
|
334
|
-
ATTRIBUTES =
|
|
250
|
+
ATTRIBUTES = %i[].freeze
|
|
251
|
+
include ATTRIBUTE_SET::Definitions
|
|
252
|
+
def initialize(attributes = [])
|
|
253
|
+
@attributes = attributes
|
|
254
|
+
end
|
|
255
|
+
# @private
|
|
256
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
257
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
258
|
+
new(
|
|
259
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
260
|
+
)
|
|
261
|
+
end
|
|
262
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
263
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
264
|
+
def self.decode(decoder)
|
|
265
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
266
|
+
end
|
|
267
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
268
|
+
encode_attributes(encoder, external_selectors:)
|
|
269
|
+
end
|
|
335
270
|
end
|
|
336
271
|
# Get the list of information for all performance domains.
|
|
337
|
-
class DumpGetPerfDomainsReply < ::Nl::
|
|
272
|
+
class DumpGetPerfDomainsReply < ::Nl::Message
|
|
338
273
|
TYPE = 1
|
|
339
274
|
FIXED_HEADER = nil
|
|
340
275
|
ATTRIBUTE_SET = AttributeSets::PerfDomain
|
|
341
|
-
ATTRIBUTES =
|
|
276
|
+
ATTRIBUTES = %i[pad perf_domain_id flags cpus].freeze
|
|
277
|
+
include ATTRIBUTE_SET::Definitions
|
|
278
|
+
def initialize(attributes = [])
|
|
279
|
+
@attributes = attributes
|
|
280
|
+
end
|
|
281
|
+
# @private
|
|
282
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
283
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
284
|
+
new(
|
|
285
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
289
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
290
|
+
def self.decode(decoder)
|
|
291
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
292
|
+
end
|
|
293
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
294
|
+
encode_attributes(encoder, external_selectors:)
|
|
295
|
+
end
|
|
342
296
|
# A unique ID number for each performance domain.
|
|
343
297
|
# @rbs return: ::Integer
|
|
344
298
|
# @return [Integer]
|
|
345
|
-
|
|
346
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
299
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
347
300
|
# Bitmask of performance domain flags.
|
|
348
301
|
#
|
|
349
302
|
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
350
303
|
# @rbs return: ::Integer
|
|
351
304
|
# @return [Integer]
|
|
352
|
-
|
|
353
|
-
def flags; attributes[:"flags"]&.value; end
|
|
305
|
+
def flags; self[:"flags"]; end
|
|
354
306
|
# CPUs that belong to this performance domain.
|
|
355
307
|
# @rbs return: ::Array[::Integer]
|
|
356
308
|
# @return [Array<Integer>]
|
|
357
|
-
|
|
358
|
-
def cpus; attributes[:"cpus"].map(&:value); end
|
|
309
|
+
def cpus; self[:"cpus"]; end
|
|
359
310
|
end
|
|
360
311
|
# Get the energy model table of a performance domain.
|
|
361
|
-
class DoGetPerfTableRequest < ::Nl::
|
|
312
|
+
class DoGetPerfTableRequest < ::Nl::Message
|
|
362
313
|
TYPE = 2
|
|
363
314
|
FIXED_HEADER = nil
|
|
364
315
|
ATTRIBUTE_SET = AttributeSets::PerfTable
|
|
365
|
-
ATTRIBUTES =
|
|
316
|
+
ATTRIBUTES = %i[perf_domain_id].freeze
|
|
317
|
+
include ATTRIBUTE_SET::Definitions
|
|
318
|
+
def initialize(attributes = [])
|
|
319
|
+
@attributes = attributes
|
|
320
|
+
end
|
|
321
|
+
# @private
|
|
322
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
323
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
324
|
+
new(
|
|
325
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
326
|
+
)
|
|
327
|
+
end
|
|
328
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
329
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
330
|
+
def self.decode(decoder)
|
|
331
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
332
|
+
end
|
|
333
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
334
|
+
encode_attributes(encoder, external_selectors:)
|
|
335
|
+
end
|
|
366
336
|
# A unique ID number for each performance domain.
|
|
367
337
|
# @rbs return: ::Integer
|
|
368
338
|
# @return [Integer]
|
|
369
|
-
|
|
370
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
339
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
371
340
|
end
|
|
372
341
|
# Get the energy model table of a performance domain.
|
|
373
|
-
class DoGetPerfTableReply < ::Nl::
|
|
342
|
+
class DoGetPerfTableReply < ::Nl::Message
|
|
374
343
|
TYPE = 2
|
|
375
344
|
FIXED_HEADER = nil
|
|
376
345
|
ATTRIBUTE_SET = AttributeSets::PerfTable
|
|
377
|
-
ATTRIBUTES =
|
|
346
|
+
ATTRIBUTES = %i[perf_domain_id perf_state].freeze
|
|
347
|
+
include ATTRIBUTE_SET::Definitions
|
|
348
|
+
def initialize(attributes = [])
|
|
349
|
+
@attributes = attributes
|
|
350
|
+
end
|
|
351
|
+
# @private
|
|
352
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
353
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
354
|
+
new(
|
|
355
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
356
|
+
)
|
|
357
|
+
end
|
|
358
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
359
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
360
|
+
def self.decode(decoder)
|
|
361
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
362
|
+
end
|
|
363
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
364
|
+
encode_attributes(encoder, external_selectors:)
|
|
365
|
+
end
|
|
378
366
|
# A unique ID number for each performance domain.
|
|
379
367
|
# @rbs return: ::Integer
|
|
380
368
|
# @return [Integer]
|
|
381
|
-
|
|
382
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
369
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
383
370
|
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
384
371
|
# @return [Array<AttributeSets::PerfState>]
|
|
385
|
-
|
|
386
|
-
def perf_state; attributes[:"perf_state"].map(&:value); end
|
|
372
|
+
def perf_state; self[:"perf_state"]; end
|
|
387
373
|
end
|
|
388
374
|
end
|
|
389
375
|
module Notifications
|
|
390
376
|
# A performance domain is created.
|
|
391
377
|
#
|
|
392
378
|
# Multicast group: `event`.
|
|
393
|
-
class PerfDomainCreated < ::Nl::
|
|
379
|
+
class PerfDomainCreated < ::Nl::Message
|
|
394
380
|
TYPE = 3
|
|
395
381
|
FIXED_HEADER = nil
|
|
396
382
|
ATTRIBUTE_SET = AttributeSets::PerfTable
|
|
397
|
-
ATTRIBUTES =
|
|
383
|
+
ATTRIBUTES = %i[perf_domain_id perf_state].freeze
|
|
384
|
+
include ATTRIBUTE_SET::Definitions
|
|
385
|
+
def initialize(attributes = [])
|
|
386
|
+
@attributes = attributes
|
|
387
|
+
end
|
|
388
|
+
# @private
|
|
389
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
390
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
391
|
+
new(
|
|
392
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
393
|
+
)
|
|
394
|
+
end
|
|
395
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
396
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
397
|
+
def self.decode(decoder)
|
|
398
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
399
|
+
end
|
|
400
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
401
|
+
encode_attributes(encoder, external_selectors:)
|
|
402
|
+
end
|
|
398
403
|
# A unique ID number for each performance domain.
|
|
399
404
|
# @rbs return: ::Integer
|
|
400
405
|
# @return [Integer]
|
|
401
|
-
|
|
402
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
406
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
403
407
|
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
404
408
|
# @return [Array<AttributeSets::PerfState>]
|
|
405
|
-
|
|
406
|
-
def perf_state; attributes[:"perf_state"].map(&:value); end
|
|
409
|
+
def perf_state; self[:"perf_state"]; end
|
|
407
410
|
end
|
|
408
411
|
# A performance domain is updated.
|
|
409
412
|
#
|
|
410
413
|
# Multicast group: `event`.
|
|
411
|
-
class PerfDomainUpdated < ::Nl::
|
|
414
|
+
class PerfDomainUpdated < ::Nl::Message
|
|
412
415
|
TYPE = 4
|
|
413
416
|
FIXED_HEADER = nil
|
|
414
417
|
ATTRIBUTE_SET = AttributeSets::PerfTable
|
|
415
|
-
ATTRIBUTES =
|
|
418
|
+
ATTRIBUTES = %i[perf_domain_id perf_state].freeze
|
|
419
|
+
include ATTRIBUTE_SET::Definitions
|
|
420
|
+
def initialize(attributes = [])
|
|
421
|
+
@attributes = attributes
|
|
422
|
+
end
|
|
423
|
+
# @private
|
|
424
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
425
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
426
|
+
new(
|
|
427
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
428
|
+
)
|
|
429
|
+
end
|
|
430
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
431
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
432
|
+
def self.decode(decoder)
|
|
433
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
434
|
+
end
|
|
435
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
436
|
+
encode_attributes(encoder, external_selectors:)
|
|
437
|
+
end
|
|
416
438
|
# A unique ID number for each performance domain.
|
|
417
439
|
# @rbs return: ::Integer
|
|
418
440
|
# @return [Integer]
|
|
419
|
-
|
|
420
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
441
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
421
442
|
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
422
443
|
# @return [Array<AttributeSets::PerfState>]
|
|
423
|
-
|
|
424
|
-
def perf_state; attributes[:"perf_state"].map(&:value); end
|
|
444
|
+
def perf_state; self[:"perf_state"]; end
|
|
425
445
|
end
|
|
426
446
|
# A performance domain is deleted.
|
|
427
447
|
#
|
|
428
448
|
# Multicast group: `event`.
|
|
429
|
-
class PerfDomainDeleted < ::Nl::
|
|
449
|
+
class PerfDomainDeleted < ::Nl::Message
|
|
430
450
|
TYPE = 5
|
|
431
451
|
FIXED_HEADER = nil
|
|
432
452
|
ATTRIBUTE_SET = AttributeSets::PerfTable
|
|
433
|
-
ATTRIBUTES =
|
|
453
|
+
ATTRIBUTES = %i[perf_domain_id].freeze
|
|
454
|
+
include ATTRIBUTE_SET::Definitions
|
|
455
|
+
def initialize(attributes = [])
|
|
456
|
+
@attributes = attributes
|
|
457
|
+
end
|
|
458
|
+
# @private
|
|
459
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
460
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
461
|
+
new(
|
|
462
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
463
|
+
)
|
|
464
|
+
end
|
|
465
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
466
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
467
|
+
def self.decode(decoder)
|
|
468
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
469
|
+
end
|
|
470
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
471
|
+
encode_attributes(encoder, external_selectors:)
|
|
472
|
+
end
|
|
434
473
|
# A unique ID number for each performance domain.
|
|
435
474
|
# @rbs return: ::Integer
|
|
436
475
|
# @return [Integer]
|
|
437
|
-
|
|
438
|
-
def perf_domain_id; attributes[:"perf_domain_id"]&.value; end
|
|
476
|
+
def perf_domain_id; self[:"perf_domain_id"]; end
|
|
439
477
|
end
|
|
440
478
|
end
|
|
441
479
|
# @private
|
|
442
|
-
NOTIFICATIONS =
|
|
480
|
+
NOTIFICATIONS = {3 => Notifications::PerfDomainCreated, 4 => Notifications::PerfDomainUpdated, 5 => Notifications::PerfDomainDeleted}.freeze #: Hash[::Integer, ::Class]
|
|
443
481
|
# Get the list of information for all performance domains.
|
|
444
482
|
# @rbs (?perf_domain_id: ::Integer) -> Messages::DoGetPerfDomainsReply
|
|
445
483
|
# @param [Hash] args
|