nl-linux 0.2.0 → 0.2.2

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Rakefile +31 -5
  4. data/generated/nl/linux/binder.rb +96 -0
  5. data/generated/nl/linux/conntrack.rb +1227 -0
  6. data/generated/nl/linux/dev_energymodel.rb +235 -0
  7. data/generated/nl/linux/devlink.rb +5177 -0
  8. data/generated/nl/linux/dpll.rb +944 -0
  9. data/generated/nl/linux/ethtool.rb +7121 -0
  10. data/generated/nl/linux/fou.rb +332 -0
  11. data/generated/nl/linux/handshake.rb +238 -0
  12. data/generated/nl/linux/lockd.rb +99 -0
  13. data/generated/nl/linux/mptcp_pm.rb +607 -0
  14. data/generated/nl/linux/net_shaper.rb +731 -0
  15. data/generated/nl/linux/netdev.rb +1450 -0
  16. data/generated/nl/linux/nfsd.rb +500 -0
  17. data/generated/nl/linux/nftables.rb +2924 -0
  18. data/generated/nl/linux/nl80211.rb +3393 -0
  19. data/generated/nl/linux/nlctrl.rb +397 -0
  20. data/generated/nl/linux/ovpn.rb +964 -0
  21. data/generated/nl/linux/ovs_datapath.rb +321 -0
  22. data/generated/nl/linux/ovs_flow.rb +1447 -0
  23. data/generated/nl/linux/ovs_vport.rb +391 -0
  24. data/generated/nl/linux/psp.rb +463 -0
  25. data/generated/nl/linux/rt_addr.rb +448 -0
  26. data/generated/nl/linux/rt_link.rb +4613 -0
  27. data/generated/nl/linux/rt_neigh.rb +897 -0
  28. data/generated/nl/linux/rt_route.rb +1126 -0
  29. data/generated/nl/linux/rt_rule.rb +708 -0
  30. data/generated/nl/linux/tc.rb +7066 -0
  31. data/generated/nl/linux/tcp_metrics.rb +317 -0
  32. data/generated/nl/linux/team.rb +339 -0
  33. data/generated/nl/linux/wireguard.rb +430 -0
  34. data/generated/nl/linux.rb +35 -0
  35. data/lib/nl/linux/version.rb +1 -1
  36. data/lib/nl-linux.rb +1 -1
  37. metadata +37 -7
  38. data/lib/nl/linux.rb +0 -3
@@ -0,0 +1,500 @@
1
+ # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
+ #--
3
+ # frozen_string_literal: true
4
+ # rbs_inline: enabled
5
+ # This code is generated by Ynl::Generator. DO NOT EDIT.
6
+ require 'nl'
7
+ module Nl; module Linux
8
+ # NFSD configuration over generic netlink.
9
+ class Nfsd < ::Nl::Family
10
+ NAME = "nfsd"
11
+ PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("nfsd"))
12
+ module Structs
13
+ end
14
+ module AttributeSets
15
+ class RpcStatus < ::Nl::Protocols::Genl::AttributeSet
16
+ # Abstract class
17
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
18
+ end
19
+ class Xid < Attribute
20
+ TYPE = 1
21
+ NAME = :"xid"
22
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
23
+ end
24
+ class Flags < Attribute
25
+ TYPE = 2
26
+ NAME = :"flags"
27
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
28
+ end
29
+ class Prog < Attribute
30
+ TYPE = 3
31
+ NAME = :"prog"
32
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
33
+ end
34
+ class Version < Attribute
35
+ TYPE = 4
36
+ NAME = :"version"
37
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)
38
+ end
39
+ class Proc < Attribute
40
+ TYPE = 5
41
+ NAME = :"proc"
42
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
43
+ end
44
+ class ServiceTime < Attribute
45
+ TYPE = 6
46
+ NAME = :"service_time"
47
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S64, check: nil)
48
+ end
49
+ class Pad < Attribute
50
+ TYPE = 7
51
+ NAME = :"pad"
52
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Pad.new()
53
+ end
54
+ class Saddr4 < Attribute
55
+ TYPE = 8
56
+ NAME = :"saddr4"
57
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
58
+ end
59
+ class Daddr4 < Attribute
60
+ TYPE = 9
61
+ NAME = :"daddr4"
62
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
63
+ end
64
+ class Saddr6 < Attribute
65
+ TYPE = 10
66
+ NAME = :"saddr6"
67
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Binary.new(check: nil)
68
+ end
69
+ class Daddr6 < Attribute
70
+ TYPE = 11
71
+ NAME = :"daddr6"
72
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Binary.new(check: nil)
73
+ end
74
+ class Sport < Attribute
75
+ TYPE = 12
76
+ NAME = :"sport"
77
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)
78
+ end
79
+ class Dport < Attribute
80
+ TYPE = 13
81
+ NAME = :"dport"
82
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)
83
+ end
84
+ class CompoundOps < Attribute
85
+ TYPE = 14
86
+ NAME = :"compound_ops"
87
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
88
+ end
89
+ # :nodoc:
90
+ BY_NAME = Ractor.make_shareable({:"xid" => Xid, :"flags" => Flags, :"prog" => Prog, :"version" => Version, :"proc" => Proc, :"service_time" => ServiceTime, :"pad" => Pad, :"saddr4" => Saddr4, :"daddr4" => Daddr4, :"saddr6" => Saddr6, :"daddr6" => Daddr6, :"sport" => Sport, :"dport" => Dport, :"compound_ops" => CompoundOps}) #: Hash[::Symbol, Attribute]
91
+ # :nodoc:
92
+ BY_TYPE = Ractor.make_shareable({1 => Xid, 2 => Flags, 3 => Prog, 4 => Version, 5 => Proc, 6 => ServiceTime, 7 => Pad, 8 => Saddr4, 9 => Daddr4, 10 => Saddr6, 11 => Daddr6, 12 => Sport, 13 => Dport, 14 => CompoundOps}) #: Hash[::Integer, Attribute]
93
+ class << self
94
+ # Looks up Attribute class by name.
95
+ #--
96
+ # @rbs name: Symbol
97
+ # @rbs return: Attribute
98
+ def by_name(name); BY_NAME.fetch(name); end
99
+ # Looks up Attribute class by type value.
100
+ #--
101
+ # @rbs type: Integer
102
+ # @rbs return: Attribute
103
+ def by_type(type); BY_TYPE.fetch(type); end
104
+ end
105
+ end
106
+ class Server < ::Nl::Protocols::Genl::AttributeSet
107
+ # Abstract class
108
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
109
+ end
110
+ class Threads < Attribute
111
+ TYPE = 1
112
+ NAME = :"threads"
113
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
114
+ end
115
+ class Gracetime < Attribute
116
+ TYPE = 2
117
+ NAME = :"gracetime"
118
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
119
+ end
120
+ class Leasetime < Attribute
121
+ TYPE = 3
122
+ NAME = :"leasetime"
123
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
124
+ end
125
+ class Scope < Attribute
126
+ TYPE = 4
127
+ NAME = :"scope"
128
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
129
+ end
130
+ # :nodoc:
131
+ BY_NAME = Ractor.make_shareable({:"threads" => Threads, :"gracetime" => Gracetime, :"leasetime" => Leasetime, :"scope" => Scope}) #: Hash[::Symbol, Attribute]
132
+ # :nodoc:
133
+ BY_TYPE = Ractor.make_shareable({1 => Threads, 2 => Gracetime, 3 => Leasetime, 4 => Scope}) #: Hash[::Integer, Attribute]
134
+ class << self
135
+ # Looks up Attribute class by name.
136
+ #--
137
+ # @rbs name: Symbol
138
+ # @rbs return: Attribute
139
+ def by_name(name); BY_NAME.fetch(name); end
140
+ # Looks up Attribute class by type value.
141
+ #--
142
+ # @rbs type: Integer
143
+ # @rbs return: Attribute
144
+ def by_type(type); BY_TYPE.fetch(type); end
145
+ end
146
+ end
147
+ class Version < ::Nl::Protocols::Genl::AttributeSet
148
+ # Abstract class
149
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
150
+ end
151
+ class Major < Attribute
152
+ TYPE = 1
153
+ NAME = :"major"
154
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
155
+ end
156
+ class Minor < Attribute
157
+ TYPE = 2
158
+ NAME = :"minor"
159
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
160
+ end
161
+ class Enabled < Attribute
162
+ TYPE = 3
163
+ NAME = :"enabled"
164
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Flag.new
165
+ end
166
+ # :nodoc:
167
+ BY_NAME = Ractor.make_shareable({:"major" => Major, :"minor" => Minor, :"enabled" => Enabled}) #: Hash[::Symbol, Attribute]
168
+ # :nodoc:
169
+ BY_TYPE = Ractor.make_shareable({1 => Major, 2 => Minor, 3 => Enabled}) #: Hash[::Integer, Attribute]
170
+ class << self
171
+ # Looks up Attribute class by name.
172
+ #--
173
+ # @rbs name: Symbol
174
+ # @rbs return: Attribute
175
+ def by_name(name); BY_NAME.fetch(name); end
176
+ # Looks up Attribute class by type value.
177
+ #--
178
+ # @rbs type: Integer
179
+ # @rbs return: Attribute
180
+ def by_type(type); BY_TYPE.fetch(type); end
181
+ end
182
+ end
183
+ class ServerProto < ::Nl::Protocols::Genl::AttributeSet
184
+ # Abstract class
185
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
186
+ end
187
+ class Version < Attribute
188
+ TYPE = 1
189
+ NAME = :"version"
190
+ end
191
+ # :nodoc:
192
+ BY_NAME = Ractor.make_shareable({:"version" => Version}) #: Hash[::Symbol, Attribute]
193
+ # :nodoc:
194
+ BY_TYPE = Ractor.make_shareable({1 => Version}) #: Hash[::Integer, Attribute]
195
+ class << self
196
+ # Looks up Attribute class by name.
197
+ #--
198
+ # @rbs name: Symbol
199
+ # @rbs return: Attribute
200
+ def by_name(name); BY_NAME.fetch(name); end
201
+ # Looks up Attribute class by type value.
202
+ #--
203
+ # @rbs type: Integer
204
+ # @rbs return: Attribute
205
+ def by_type(type); BY_TYPE.fetch(type); end
206
+ end
207
+ end
208
+ class Sock < ::Nl::Protocols::Genl::AttributeSet
209
+ # Abstract class
210
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
211
+ end
212
+ class Addr < Attribute
213
+ TYPE = 1
214
+ NAME = :"addr"
215
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Binary.new(check: nil)
216
+ end
217
+ class TransportName < Attribute
218
+ TYPE = 2
219
+ NAME = :"transport_name"
220
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
221
+ end
222
+ # :nodoc:
223
+ BY_NAME = Ractor.make_shareable({:"addr" => Addr, :"transport_name" => TransportName}) #: Hash[::Symbol, Attribute]
224
+ # :nodoc:
225
+ BY_TYPE = Ractor.make_shareable({1 => Addr, 2 => TransportName}) #: Hash[::Integer, Attribute]
226
+ class << self
227
+ # Looks up Attribute class by name.
228
+ #--
229
+ # @rbs name: Symbol
230
+ # @rbs return: Attribute
231
+ def by_name(name); BY_NAME.fetch(name); end
232
+ # Looks up Attribute class by type value.
233
+ #--
234
+ # @rbs type: Integer
235
+ # @rbs return: Attribute
236
+ def by_type(type); BY_TYPE.fetch(type); end
237
+ end
238
+ end
239
+ class ServerSock < ::Nl::Protocols::Genl::AttributeSet
240
+ # Abstract class
241
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
242
+ end
243
+ class Addr < Attribute
244
+ TYPE = 1
245
+ NAME = :"addr"
246
+ end
247
+ # :nodoc:
248
+ BY_NAME = Ractor.make_shareable({:"addr" => Addr}) #: Hash[::Symbol, Attribute]
249
+ # :nodoc:
250
+ BY_TYPE = Ractor.make_shareable({1 => Addr}) #: Hash[::Integer, Attribute]
251
+ class << self
252
+ # Looks up Attribute class by name.
253
+ #--
254
+ # @rbs name: Symbol
255
+ # @rbs return: Attribute
256
+ def by_name(name); BY_NAME.fetch(name); end
257
+ # Looks up Attribute class by type value.
258
+ #--
259
+ # @rbs type: Integer
260
+ # @rbs return: Attribute
261
+ def by_type(type); BY_TYPE.fetch(type); end
262
+ end
263
+ end
264
+ class PoolMode < ::Nl::Protocols::Genl::AttributeSet
265
+ # Abstract class
266
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
267
+ end
268
+ class Mode < Attribute
269
+ TYPE = 1
270
+ NAME = :"mode"
271
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
272
+ end
273
+ class Npools < Attribute
274
+ TYPE = 2
275
+ NAME = :"npools"
276
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
277
+ end
278
+ # :nodoc:
279
+ BY_NAME = Ractor.make_shareable({:"mode" => Mode, :"npools" => Npools}) #: Hash[::Symbol, Attribute]
280
+ # :nodoc:
281
+ BY_TYPE = Ractor.make_shareable({1 => Mode, 2 => Npools}) #: Hash[::Integer, Attribute]
282
+ class << self
283
+ # Looks up Attribute class by name.
284
+ #--
285
+ # @rbs name: Symbol
286
+ # @rbs return: Attribute
287
+ def by_name(name); BY_NAME.fetch(name); end
288
+ # Looks up Attribute class by type value.
289
+ #--
290
+ # @rbs type: Integer
291
+ # @rbs return: Attribute
292
+ def by_type(type); BY_TYPE.fetch(type); end
293
+ end
294
+ end
295
+ ServerProto::Version::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(Version)
296
+ ServerSock::Addr::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(Sock)
297
+ end
298
+ module Messages
299
+ # dump pending nfsd rpc
300
+ class DumpRpcStatusGetReply < ::Nl::Protocols::Genl::Message
301
+ TYPE = 1
302
+ FIXED_HEADER = nil
303
+ ATTRIBUTE_SET = AttributeSets::RpcStatus
304
+ ATTRIBUTES = Ractor.make_shareable(%i[xid flags prog version proc service_time saddr4 daddr4 saddr6 daddr6 sport dport compound_ops])
305
+ # Gets the value of `xid` attribute in the message.
306
+ #--
307
+ # @rbs return: ::Integer
308
+ def xid; attributes[:"xid"]&.value; end
309
+ # Gets the value of `flags` attribute in the message.
310
+ #--
311
+ # @rbs return: ::Integer
312
+ def flags; attributes[:"flags"]&.value; end
313
+ # Gets the value of `prog` attribute in the message.
314
+ #--
315
+ # @rbs return: ::Integer
316
+ def prog; attributes[:"prog"]&.value; end
317
+ # Gets the value of `version` attribute in the message.
318
+ #--
319
+ # @rbs return: ::Integer
320
+ def version; attributes[:"version"]&.value; end
321
+ # Gets the value of `proc` attribute in the message.
322
+ #--
323
+ # @rbs return: ::Integer
324
+ def proc; attributes[:"proc"]&.value; end
325
+ # Gets the value of `service-time` attribute in the message.
326
+ #--
327
+ # @rbs return: ::Integer
328
+ def service_time; attributes[:"service_time"]&.value; end
329
+ # Gets the value of `saddr4` attribute in the message.
330
+ #--
331
+ # @rbs return: ::Integer
332
+ def saddr4; attributes[:"saddr4"]&.value; end
333
+ # Gets the value of `daddr4` attribute in the message.
334
+ #--
335
+ # @rbs return: ::Integer
336
+ def daddr4; attributes[:"daddr4"]&.value; end
337
+ # Gets the value of `saddr6` attribute in the message.
338
+ #--
339
+ # @rbs return: untyped
340
+ def saddr6; attributes[:"saddr6"]&.value; end
341
+ # Gets the value of `daddr6` attribute in the message.
342
+ #--
343
+ # @rbs return: untyped
344
+ def daddr6; attributes[:"daddr6"]&.value; end
345
+ # Gets the value of `sport` attribute in the message.
346
+ #--
347
+ # @rbs return: ::Integer
348
+ def sport; attributes[:"sport"]&.value; end
349
+ # Gets the value of `dport` attribute in the message.
350
+ #--
351
+ # @rbs return: ::Integer
352
+ def dport; attributes[:"dport"]&.value; end
353
+ # Gets the value of `compound-ops` attribute in the message.
354
+ #--
355
+ # @rbs return: ::Integer
356
+ def compound_ops; attributes[:"compound_ops"]&.value; end
357
+ end
358
+ # set the number of running threads
359
+ class DoThreadsSetRequest < ::Nl::Protocols::Genl::Message
360
+ TYPE = 2
361
+ FIXED_HEADER = nil
362
+ ATTRIBUTE_SET = AttributeSets::Server
363
+ ATTRIBUTES = Ractor.make_shareable(%i[threads gracetime leasetime scope])
364
+ # Gets the value of `threads` attribute in the message.
365
+ #--
366
+ # @rbs return: ::Integer
367
+ def threads; attributes[:"threads"]&.value; end
368
+ # Gets the value of `gracetime` attribute in the message.
369
+ #--
370
+ # @rbs return: ::Integer
371
+ def gracetime; attributes[:"gracetime"]&.value; end
372
+ # Gets the value of `leasetime` attribute in the message.
373
+ #--
374
+ # @rbs return: ::Integer
375
+ def leasetime; attributes[:"leasetime"]&.value; end
376
+ # Gets the value of `scope` attribute in the message.
377
+ #--
378
+ # @rbs return: ::String
379
+ def scope; attributes[:"scope"]&.value; end
380
+ end
381
+ # get the number of running threads
382
+ class DoThreadsGetReply < ::Nl::Protocols::Genl::Message
383
+ TYPE = 3
384
+ FIXED_HEADER = nil
385
+ ATTRIBUTE_SET = AttributeSets::Server
386
+ ATTRIBUTES = Ractor.make_shareable(%i[threads gracetime leasetime scope])
387
+ # Gets the value of `threads` attribute in the message.
388
+ #--
389
+ # @rbs return: ::Integer
390
+ def threads; attributes[:"threads"]&.value; end
391
+ # Gets the value of `gracetime` attribute in the message.
392
+ #--
393
+ # @rbs return: ::Integer
394
+ def gracetime; attributes[:"gracetime"]&.value; end
395
+ # Gets the value of `leasetime` attribute in the message.
396
+ #--
397
+ # @rbs return: ::Integer
398
+ def leasetime; attributes[:"leasetime"]&.value; end
399
+ # Gets the value of `scope` attribute in the message.
400
+ #--
401
+ # @rbs return: ::String
402
+ def scope; attributes[:"scope"]&.value; end
403
+ end
404
+ # set nfs enabled versions
405
+ class DoVersionSetRequest < ::Nl::Protocols::Genl::Message
406
+ TYPE = 4
407
+ FIXED_HEADER = nil
408
+ ATTRIBUTE_SET = AttributeSets::ServerProto
409
+ ATTRIBUTES = Ractor.make_shareable(%i[version])
410
+ # Gets the value of `version` attribute in the message.
411
+ #--
412
+ # @rbs return: AttributeSets::Version
413
+ def version; attributes[:"version"]&.value; end
414
+ end
415
+ # get nfs enabled versions
416
+ class DoVersionGetReply < ::Nl::Protocols::Genl::Message
417
+ TYPE = 5
418
+ FIXED_HEADER = nil
419
+ ATTRIBUTE_SET = AttributeSets::ServerProto
420
+ ATTRIBUTES = Ractor.make_shareable(%i[version])
421
+ # Gets the value of `version` attribute in the message.
422
+ #--
423
+ # @rbs return: AttributeSets::Version
424
+ def version; attributes[:"version"]&.value; end
425
+ end
426
+ # set nfs running sockets
427
+ class DoListenerSetRequest < ::Nl::Protocols::Genl::Message
428
+ TYPE = 6
429
+ FIXED_HEADER = nil
430
+ ATTRIBUTE_SET = AttributeSets::ServerSock
431
+ ATTRIBUTES = Ractor.make_shareable(%i[addr])
432
+ # Gets the value of `addr` attribute in the message.
433
+ #--
434
+ # @rbs return: AttributeSets::Sock
435
+ def addr; attributes[:"addr"]&.value; end
436
+ end
437
+ # get nfs running listeners
438
+ class DoListenerGetReply < ::Nl::Protocols::Genl::Message
439
+ TYPE = 7
440
+ FIXED_HEADER = nil
441
+ ATTRIBUTE_SET = AttributeSets::ServerSock
442
+ ATTRIBUTES = Ractor.make_shareable(%i[addr])
443
+ # Gets the value of `addr` attribute in the message.
444
+ #--
445
+ # @rbs return: AttributeSets::Sock
446
+ def addr; attributes[:"addr"]&.value; end
447
+ end
448
+ # set the current server pool-mode
449
+ class DoPoolModeSetRequest < ::Nl::Protocols::Genl::Message
450
+ TYPE = 8
451
+ FIXED_HEADER = nil
452
+ ATTRIBUTE_SET = AttributeSets::PoolMode
453
+ ATTRIBUTES = Ractor.make_shareable(%i[mode])
454
+ # Gets the value of `mode` attribute in the message.
455
+ #--
456
+ # @rbs return: ::String
457
+ def mode; attributes[:"mode"]&.value; end
458
+ end
459
+ # get info about server pool-mode
460
+ class DoPoolModeGetReply < ::Nl::Protocols::Genl::Message
461
+ TYPE = 9
462
+ FIXED_HEADER = nil
463
+ ATTRIBUTE_SET = AttributeSets::PoolMode
464
+ ATTRIBUTES = Ractor.make_shareable(%i[mode npools])
465
+ # Gets the value of `mode` attribute in the message.
466
+ #--
467
+ # @rbs return: ::String
468
+ def mode; attributes[:"mode"]&.value; end
469
+ # Gets the value of `npools` attribute in the message.
470
+ #--
471
+ # @rbs return: ::Integer
472
+ def npools; attributes[:"npools"]&.value; end
473
+ end
474
+ end
475
+ # set the number of running threads
476
+ #--
477
+ # @rbs (?threads: ::Integer, ?gracetime: ::Integer, ?leasetime: ::Integer, ?scope: ::String) -> void
478
+ def do_threads_set(**args)
479
+ exchange_message(:"do", Messages::DoThreadsSetRequest, nil, args)
480
+ end
481
+ # set nfs enabled versions
482
+ #--
483
+ # @rbs (?version: AttributeSets::Version) -> void
484
+ def do_version_set(**args)
485
+ exchange_message(:"do", Messages::DoVersionSetRequest, nil, args)
486
+ end
487
+ # set nfs running sockets
488
+ #--
489
+ # @rbs (?addr: AttributeSets::Sock) -> void
490
+ def do_listener_set(**args)
491
+ exchange_message(:"do", Messages::DoListenerSetRequest, nil, args)
492
+ end
493
+ # set the current server pool-mode
494
+ #--
495
+ # @rbs (?mode: ::String) -> void
496
+ def do_pool_mode_set(**args)
497
+ exchange_message(:"do", Messages::DoPoolModeSetRequest, nil, args)
498
+ end
499
+ end
500
+ end; end