| 1 | #################################################################### | ||||||||||||
| 2 | # | ||||||||||||
| 3 | # This file was generated using XDR::Parse version v1.0.1 | ||||||||||||
| 4 | # and LibVirt version v12.9.0 | ||||||||||||
| 5 | # | ||||||||||||
| 6 | # Don't edit this file, use the source template instead | ||||||||||||
| 7 | # | ||||||||||||
| 8 | # ANY CHANGES HERE WILL BE LOST ! | ||||||||||||
| 9 | # | ||||||||||||
| 10 | #################################################################### | ||||||||||||
| 11 | |||||||||||||
| 12 | |||||||||||||
| 13 | 1 | ▶ | use v5.26; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | 1 | ▶ | use experimental 'signatures'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 1 | ▶ | use Future::AsyncAwait; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | 1 | ▶ | use Object::Pad; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 18 | |||||||||||||
| 19 | class Sys::Async::Virt::NetworkPort v0.6.9; | ||||||||||||
| 20 | |||||||||||||
| 21 | 1 | ▶ | use Carp qw(croak); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | 1 | ▶ | use Log::Any qw($log); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 23 | |||||||||||||
| 24 | 1 | ▶ | use Protocol::Sys::Virt::Remote::XDR v12.9.0; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 25 | 1 | my $remote = 'Protocol::Sys::Virt::Remote::XDR'; | |||||||||||
| 26 | |||||||||||||
| 27 | 1 | ▶ | use constant { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 28 | 1 | BANDWIDTH_IN_AVERAGE => "inbound.average", | |||||||||||
| 29 | BANDWIDTH_IN_PEAK => "inbound.peak", | ||||||||||||
| 30 | BANDWIDTH_IN_BURST => "inbound.burst", | ||||||||||||
| 31 | BANDWIDTH_IN_FLOOR => "inbound.floor", | ||||||||||||
| 32 | BANDWIDTH_OUT_AVERAGE => "outbound.average", | ||||||||||||
| 33 | BANDWIDTH_OUT_PEAK => "outbound.peak", | ||||||||||||
| 34 | BANDWIDTH_OUT_BURST => "outbound.burst", | ||||||||||||
| 35 | 1 | }; | |||||||||||
| 36 | |||||||||||||
| 37 | |||||||||||||
| 38 | 0 | ▶ | field $_rpc_id :param :reader; | ||||||||||
|
Subroutine
rpc_id: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 39 | 0 | ▶ | field $_client :param :reader; | ||||||||||
|
Subroutine
client: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 40 | |||||||||||||
| 41 | 0 | ▶ | method network() { | ||||||||||
|
Subroutine
network: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 42 | 0 | return $_client->_domain_network_instance( $_rpc_id->{net} ); | |||||||||||
| 43 | 1 | } | |||||||||||
| 44 | |||||||||||||
| 45 | 0 | ▶ | method uuid() { | ||||||||||
|
Subroutine
uuid: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 46 | 0 | return $_rpc_id->{uuid}; | |||||||||||
| 47 | 1 | } | |||||||||||
| 48 | |||||||||||||
| 49 | 0 | ▶ | method uuid_string() { | ||||||||||
|
Subroutine
uuid_string: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 50 | 0 | return join( '-', unpack('H8H4H4H4H12', $_rpc_id->{uuid}) ); | |||||||||||
| 51 | 1 | } | |||||||||||
| 52 | |||||||||||||
| 53 | |||||||||||||
| 54 | 0 | ▶ | method delete($flags = 0) { | ||||||||||
|
Subroutine
delete: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 55 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 56 | $remote->PROC_NETWORK_PORT_DELETE, | ||||||||||||
| 57 | { port => $_rpc_id, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 58 | 1 | } | |||||||||||
| 59 | |||||||||||||
| 60 | 0 | ▶ | async method get_parameters($flags = 0) { | ||||||||||
|
Subroutine
get_parameters: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||||
| 61 | 0 | $flags |= await $_client->_typed_param_string_okay(); | |||||||||||
| 62 | 0 | ▶ | my $nparams = await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 63 | $remote->PROC_NETWORK_PORT_GET_PARAMETERS, | ||||||||||||
| 64 | { port => $_rpc_id, nparams => 0, flags => $flags // 0 }, unwrap => 'nparams' ); | ||||||||||||
| 65 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 66 | $remote->PROC_NETWORK_PORT_GET_PARAMETERS, | ||||||||||||
| 67 | { port => $_rpc_id, nparams => $nparams, flags => $flags // 0 }, unwrap => 'params' ); | ||||||||||||
| 68 | 1 | } | |||||||||||
| 69 | |||||||||||||
| 70 | 0 | ▶ | async method get_xml_desc($flags = 0) { | ||||||||||
|
Subroutine
get_xml_desc: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 71 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 72 | $remote->PROC_NETWORK_PORT_GET_XML_DESC, | ||||||||||||
| 73 | { port => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' ); | ||||||||||||
| 74 | 1 | } | |||||||||||
| 75 | |||||||||||||
| 76 | 0 | ▶ | async method set_parameters($params, $flags = 0) { | ||||||||||
|
Subroutine
set_parameters: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 77 | 0 | $params = await $_client->_filter_typed_param_string( $params ); | |||||||||||
| 78 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 79 | $remote->PROC_NETWORK_PORT_SET_PARAMETERS, | ||||||||||||
| 80 | { port => $_rpc_id, params => $params, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 81 | 1 | } | |||||||||||
| 82 | |||||||||||||
| 83 | |||||||||||||
| 84 | |||||||||||||
| 85 | 1 | 1; | |||||||||||
| 86 | |||||||||||||
| 87 | |||||||||||||
| 88 | __END__ | ||||||||||||