V1/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 82 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 87 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Gkebackup::V1::Common::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'Namespaces',
11 as InstanceOf['Google::Cloud::Gkebackup::V1::Common::Namespaces'];
12  
13 coerce 'Namespaces',
14 from HashRef, via { 'Google::Cloud::Gkebackup::V1::Common::Namespaces'->new($_) };
15  
16 declare 'RepeatedNamespaces',
17 as ArrayRef[Namespaces()];
18  
19 coerce 'RepeatedNamespaces',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Common::Namespaces'->new($_) } @$_ ] };
21  
22 declare 'MapStringNamespaces',
23 as HashRef[Namespaces()];
24  
25 declare 'NamespacedName',
26 as InstanceOf['Google::Cloud::Gkebackup::V1::Common::NamespacedName'];
27  
28 coerce 'NamespacedName',
29 from HashRef, via { 'Google::Cloud::Gkebackup::V1::Common::NamespacedName'->new($_) };
30  
31 declare 'RepeatedNamespacedName',
32 as ArrayRef[NamespacedName()];
33  
34 coerce 'RepeatedNamespacedName',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Common::NamespacedName'->new($_) } @$_ ] };
36  
37 declare 'MapStringNamespacedName',
38 as HashRef[NamespacedName()];
39  
40 declare 'NamespacedNames',
41 as InstanceOf['Google::Cloud::Gkebackup::V1::Common::NamespacedNames'];
42  
43 coerce 'NamespacedNames',
44 from HashRef, via { 'Google::Cloud::Gkebackup::V1::Common::NamespacedNames'->new($_) };
45  
46 declare 'RepeatedNamespacedNames',
47 as ArrayRef[NamespacedNames()];
48  
49 coerce 'RepeatedNamespacedNames',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Common::NamespacedNames'->new($_) } @$_ ] };
51  
52 declare 'MapStringNamespacedNames',
53 as HashRef[NamespacedNames()];
54  
55 declare 'EncryptionKey',
56 as InstanceOf['Google::Cloud::Gkebackup::V1::Common::EncryptionKey'];
57  
58 coerce 'EncryptionKey',
59 from HashRef, via { 'Google::Cloud::Gkebackup::V1::Common::EncryptionKey'->new($_) };
60  
61 declare 'RepeatedEncryptionKey',
62 as ArrayRef[EncryptionKey()];
63  
64 coerce 'RepeatedEncryptionKey',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Common::EncryptionKey'->new($_) } @$_ ] };
66  
67 declare 'MapStringEncryptionKey',
68 as HashRef[EncryptionKey()];
69  
70 declare 'VolumeTypeEnum',
71 as InstanceOf['Google::Cloud::Gkebackup::V1::Common::VolumeTypeEnum'];
72  
73 coerce 'VolumeTypeEnum',
74 from HashRef, via { 'Google::Cloud::Gkebackup::V1::Common::VolumeTypeEnum'->new($_) };
75  
76 declare 'RepeatedVolumeTypeEnum',
77 as ArrayRef[VolumeTypeEnum()];
78  
79 coerce 'RepeatedVolumeTypeEnum',
80 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Common::VolumeTypeEnum'->new($_) } @$_ ] };
81  
82 declare 'MapStringVolumeTypeEnum',
83 as HashRef[VolumeTypeEnum()];
84  
85 declare 'VolumeType',
86 as (Int | Str);
87  
88 1;
89  
90 __END__