| 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::NodeDevice 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 | XML_INACTIVE => 1 << 0, | |||||||||||
| 29 | UPDATE_AFFECT_CURRENT => 0, | ||||||||||||
| 30 | UPDATE_AFFECT_LIVE => 1 << 0, | ||||||||||||
| 31 | UPDATE_AFFECT_CONFIG => 1 << 1, | ||||||||||||
| 32 | EVENT_CREATED => 0, | ||||||||||||
| 33 | EVENT_DELETED => 1, | ||||||||||||
| 34 | EVENT_DEFINED => 2, | ||||||||||||
| 35 | EVENT_UNDEFINED => 3, | ||||||||||||
| 36 | 1 | }; | |||||||||||
| 37 | |||||||||||||
| 38 | |||||||||||||
| 39 | 0 | ▶ | field $_rpc_id :param :reader; | ||||||||||
|
Subroutine
rpc_id: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 40 | 0 | ▶ | field $_client :param :reader; | ||||||||||
|
Subroutine
client: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 41 | |||||||||||||
| 42 | 0 | ▶ | method name() { | ||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 43 | 0 | return $_rpc_id->{name}; | |||||||||||
| 44 | 1 | } | |||||||||||
| 45 | |||||||||||||
| 46 | |||||||||||||
| 47 | 0 | ▶ | method create($flags = 0) { | ||||||||||
|
Subroutine
create: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 48 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 49 | $remote->PROC_NODE_DEVICE_CREATE, | ||||||||||||
| 50 | { name => $_rpc_id, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 51 | 1 | } | |||||||||||
| 52 | |||||||||||||
| 53 | 0 | ▶ | async method create_xml($flags = 0) { | ||||||||||
|
Subroutine
create_xml: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 54 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 55 | $remote->PROC_NODE_DEVICE_CREATE_XML, | ||||||||||||
| 56 | { xml_desc => $_rpc_id, flags => $flags // 0 }, unwrap => 'dev' ); | ||||||||||||
| 57 | 1 | } | |||||||||||
| 58 | |||||||||||||
| 59 | 0 | ▶ | async method define_xml($flags = 0) { | ||||||||||
|
Subroutine
define_xml: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 60 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 61 | $remote->PROC_NODE_DEVICE_DEFINE_XML, | ||||||||||||
| 62 | { xml_desc => $_rpc_id, flags => $flags // 0 }, unwrap => 'dev' ); | ||||||||||||
| 63 | 1 | } | |||||||||||
| 64 | |||||||||||||
| 65 | 0 | ▶ | method destroy() { | ||||||||||
|
Subroutine
destroy: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 66 | 0 | return $_client->_call( | |||||||||||
| 67 | $remote->PROC_NODE_DEVICE_DESTROY, | ||||||||||||
| 68 | { name => $_rpc_id }, empty => 1 ); | ||||||||||||
| 69 | 1 | } | |||||||||||
| 70 | |||||||||||||
| 71 | 0 | ▶ | method detach_flags($driverName, $flags = 0) { | ||||||||||
|
Subroutine
detach_flags: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 72 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 73 | $remote->PROC_NODE_DEVICE_DETACH_FLAGS, | ||||||||||||
| 74 | { name => $_rpc_id, driverName => $driverName, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 75 | 1 | } | |||||||||||
| 76 | |||||||||||||
| 77 | 0 | ▶ | method dettach() { | ||||||||||
|
Subroutine
dettach: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 78 | 0 | return $_client->_call( | |||||||||||
| 79 | $remote->PROC_NODE_DEVICE_DETTACH, | ||||||||||||
| 80 | { name => $_rpc_id }, empty => 1 ); | ||||||||||||
| 81 | 1 | } | |||||||||||
| 82 | |||||||||||||
| 83 | 0 | ▶ | async method get_autostart() { | ||||||||||
|
Subroutine
get_autostart: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 84 | 0 | return await $_client->_call( | |||||||||||
| 85 | $remote->PROC_NODE_DEVICE_GET_AUTOSTART, | ||||||||||||
| 86 | { name => $_rpc_id }, unwrap => 'autostart' ); | ||||||||||||
| 87 | 1 | } | |||||||||||
| 88 | |||||||||||||
| 89 | 0 | ▶ | async method get_parent() { | ||||||||||
|
Subroutine
get_parent: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 90 | 0 | return await $_client->_call( | |||||||||||
| 91 | $remote->PROC_NODE_DEVICE_GET_PARENT, | ||||||||||||
| 92 | { name => $_rpc_id }, unwrap => 'parentName' ); | ||||||||||||
| 93 | 1 | } | |||||||||||
| 94 | |||||||||||||
| 95 | 0 | ▶ | async method get_xml_desc($flags = 0) { | ||||||||||
|
Subroutine
get_xml_desc: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 96 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 97 | $remote->PROC_NODE_DEVICE_GET_XML_DESC, | ||||||||||||
| 98 | { name => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' ); | ||||||||||||
| 99 | 1 | } | |||||||||||
| 100 | |||||||||||||
| 101 | 0 | ▶ | async method is_active() { | ||||||||||
|
Subroutine
is_active: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 102 | 0 | return await $_client->_call( | |||||||||||
| 103 | $remote->PROC_NODE_DEVICE_IS_ACTIVE, | ||||||||||||
| 104 | { name => $_rpc_id }, unwrap => 'active' ); | ||||||||||||
| 105 | 1 | } | |||||||||||
| 106 | |||||||||||||
| 107 | 0 | ▶ | async method is_persistent() { | ||||||||||
|
Subroutine
is_persistent: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 108 | 0 | return await $_client->_call( | |||||||||||
| 109 | $remote->PROC_NODE_DEVICE_IS_PERSISTENT, | ||||||||||||
| 110 | { name => $_rpc_id }, unwrap => 'persistent' ); | ||||||||||||
| 111 | 1 | } | |||||||||||
| 112 | |||||||||||||
| 113 | 0 | ▶ | async method list_caps() { | ||||||||||
|
Subroutine
list_caps: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 114 | 0 | return await $_client->_call( | |||||||||||
| 115 | $remote->PROC_NODE_DEVICE_LIST_CAPS, | ||||||||||||
| 116 | { name => $_rpc_id, maxnames => $remote->NODE_DEVICE_CAPS_LIST_MAX }, unwrap => 'names' ); | ||||||||||||
| 117 | 1 | } | |||||||||||
| 118 | |||||||||||||
| 119 | 0 | ▶ | async method lookup_by_name() { | ||||||||||
|
Subroutine
lookup_by_name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 120 | 0 | return await $_client->_call( | |||||||||||
| 121 | $remote->PROC_NODE_DEVICE_LOOKUP_BY_NAME, | ||||||||||||
| 122 | { name => $_rpc_id }, unwrap => 'dev' ); | ||||||||||||
| 123 | 1 | } | |||||||||||
| 124 | |||||||||||||
| 125 | 0 | ▶ | async method lookup_scsi_host_by_wwn($wwpn, $flags = 0) { | ||||||||||
|
Subroutine
lookup_scsi_host_by_wwn: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 126 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 127 | $remote->PROC_NODE_DEVICE_LOOKUP_SCSI_HOST_BY_WWN, | ||||||||||||
| 128 | { wwnn => $_rpc_id, wwpn => $wwpn, flags => $flags // 0 }, unwrap => 'dev' ); | ||||||||||||
| 129 | 1 | } | |||||||||||
| 130 | |||||||||||||
| 131 | 0 | ▶ | async method num_of_caps() { | ||||||||||
|
Subroutine
num_of_caps: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 132 | 0 | return await $_client->_call( | |||||||||||
| 133 | $remote->PROC_NODE_DEVICE_NUM_OF_CAPS, | ||||||||||||
| 134 | { name => $_rpc_id }, unwrap => 'num' ); | ||||||||||||
| 135 | 1 | } | |||||||||||
| 136 | |||||||||||||
| 137 | 0 | ▶ | method reattach() { | ||||||||||
|
Subroutine
reattach: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 138 | 0 | return $_client->_call( | |||||||||||
| 139 | $remote->PROC_NODE_DEVICE_RE_ATTACH, | ||||||||||||
| 140 | { name => $_rpc_id }, empty => 1 ); | ||||||||||||
| 141 | 1 | } | |||||||||||
| 142 | |||||||||||||
| 143 | 0 | ▶ | method reset() { | ||||||||||
|
Subroutine
reset: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 144 | 0 | return $_client->_call( | |||||||||||
| 145 | $remote->PROC_NODE_DEVICE_RESET, | ||||||||||||
| 146 | { name => $_rpc_id }, empty => 1 ); | ||||||||||||
| 147 | 1 | } | |||||||||||
| 148 | |||||||||||||
| 149 | 0 | ▶ | method set_autostart($autostart) { | ||||||||||
|
Subroutine
set_autostart: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 150 | 0 | return $_client->_call( | |||||||||||
| 151 | $remote->PROC_NODE_DEVICE_SET_AUTOSTART, | ||||||||||||
| 152 | { name => $_rpc_id, autostart => $autostart }, empty => 1 ); | ||||||||||||
| 153 | 1 | } | |||||||||||
| 154 | |||||||||||||
| 155 | 0 | ▶ | method undefine($flags = 0) { | ||||||||||
|
Subroutine
undefine: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 156 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 157 | $remote->PROC_NODE_DEVICE_UNDEFINE, | ||||||||||||
| 158 | { name => $_rpc_id, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 159 | 1 | } | |||||||||||
| 160 | |||||||||||||
| 161 | 0 | ▶ | method update($xml_desc, $flags = 0) { | ||||||||||
|
Subroutine
update: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 162 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 163 | $remote->PROC_NODE_DEVICE_UPDATE, | ||||||||||||
| 164 | { name => $_rpc_id, xml_desc => $xml_desc, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 165 | 1 | } | |||||||||||
| 166 | |||||||||||||
| 167 | |||||||||||||
| 168 | |||||||||||||
| 169 | 1 | 1; | |||||||||||
| 170 | |||||||||||||
| 171 | |||||||||||||
| 172 | __END__ | ||||||||||||