| 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::Secret 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 | EVENT_DEFINED => 0, | |||||||||||
| 29 | EVENT_UNDEFINED => 1, | ||||||||||||
| 30 | 1 | }; | |||||||||||
| 31 | |||||||||||||
| 32 | |||||||||||||
| 33 | 0 | ▶ | field $_rpc_id :param :reader; | ||||||||||
|
Subroutine
rpc_id: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 34 | 0 | ▶ | field $_client :param :reader; | ||||||||||
|
Subroutine
client: not called CC=1 SCAR=2.6
Pod
undocumented
| |||||||||||||
| 35 | |||||||||||||
| 36 | 0 | ▶ | method uuid() { | ||||||||||
|
Subroutine
uuid: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 37 | 0 | return $_rpc_id->{uuid}; | |||||||||||
| 38 | 1 | } | |||||||||||
| 39 | |||||||||||||
| 40 | 0 | ▶ | method uuid_string() { | ||||||||||
|
Subroutine
uuid_string: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 41 | 0 | return join( '-', unpack('H8H4H4H4H12', $_rpc_id->{uuid}) ); | |||||||||||
| 42 | 1 | } | |||||||||||
| 43 | |||||||||||||
| 44 | 0 | ▶ | method usage_type() { | ||||||||||
|
Subroutine
usage_type: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 45 | 0 | return $_rpc_id->{usageType}; | |||||||||||
| 46 | 1 | } | |||||||||||
| 47 | |||||||||||||
| 48 | 0 | ▶ | method usage_id() { | ||||||||||
|
Subroutine
usage_id: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 49 | 0 | return $_rpc_id->{usageID}; | |||||||||||
| 50 | 1 | } | |||||||||||
| 51 | |||||||||||||
| 52 | 0 | ▶ | async method get_value($flags = 0) { | ||||||||||
|
Subroutine
get_value: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 53 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 54 | $remote->PROC_SECRET_GET_VALUE, | ||||||||||||
| 55 | { secret => $_rpc_id, flags => $flags // 0 }, unwrap => 'value' ); | ||||||||||||
| 56 | 1 | } | |||||||||||
| 57 | |||||||||||||
| 58 | 0 | ▶ | async method get_xml_desc($flags = 0) { | ||||||||||
|
Subroutine
get_xml_desc: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 59 | 0 | ▶ | return await $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 60 | $remote->PROC_SECRET_GET_XML_DESC, | ||||||||||||
| 61 | { secret => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' ); | ||||||||||||
| 62 | 1 | } | |||||||||||
| 63 | |||||||||||||
| 64 | 0 | ▶ | method set_value($value, $flags = 0) { | ||||||||||
|
Subroutine
set_value: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 65 | 0 | ▶ | return $_client->_call( | ||||||||||
|
Condition0%0/2
$flags // 0
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
| |||||||||||||
| 66 | $remote->PROC_SECRET_SET_VALUE, | ||||||||||||
| 67 | { secret => $_rpc_id, value => $value, flags => $flags // 0 }, empty => 1 ); | ||||||||||||
| 68 | 1 | } | |||||||||||
| 69 | |||||||||||||
| 70 | 0 | ▶ | method undefine() { | ||||||||||
|
Subroutine
undefine: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 71 | 0 | return $_client->_call( | |||||||||||
| 72 | $remote->PROC_SECRET_UNDEFINE, | ||||||||||||
| 73 | { secret => $_rpc_id }, empty => 1 ); | ||||||||||||
| 74 | 1 | } | |||||||||||
| 75 | |||||||||||||
| 76 | |||||||||||||
| 77 | |||||||||||||
| 78 | 1 | 1; | |||||||||||
| 79 | |||||||||||||
| 80 | |||||||||||||
| 81 | __END__ | ||||||||||||