V1beta/Allocation/Types.pm untested

filter: Statementstmt 0.0% 0 / 97 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 102 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::Capacityplanner::V1beta::Allocation::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 'Allocation',
11 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation'];
12  
13 coerce 'Allocation',
14 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation'->new($_) };
15  
16 declare 'RepeatedAllocation',
17 as ArrayRef[Allocation()];
18  
19 coerce 'RepeatedAllocation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation'->new($_) } @$_ ] };
21  
22 declare 'MapStringAllocation',
23 as HashRef[Allocation()];
24  
25 declare 'Status',
26 as (Int | Str);
27  
28 declare 'SpecificSKUAllocation',
29 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation'];
30  
31 coerce 'SpecificSKUAllocation',
32 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation'->new($_) };
33  
34 declare 'RepeatedSpecificSKUAllocation',
35 as ArrayRef[SpecificSKUAllocation()];
36  
37 coerce 'RepeatedSpecificSKUAllocation',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation'->new($_) } @$_ ] };
39  
40 declare 'MapStringSpecificSKUAllocation',
41 as HashRef[SpecificSKUAllocation()];
42  
43 declare 'AllocatedInstanceProperties',
44 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties'];
45  
46 coerce 'AllocatedInstanceProperties',
47 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties'->new($_) };
48  
49 declare 'RepeatedAllocatedInstanceProperties',
50 as ArrayRef[AllocatedInstanceProperties()];
51  
52 coerce 'RepeatedAllocatedInstanceProperties',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties'->new($_) } @$_ ] };
54  
55 declare 'MapStringAllocatedInstanceProperties',
56 as HashRef[AllocatedInstanceProperties()];
57  
58 declare 'AcceleratorConfig',
59 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AcceleratorConfig'];
60  
61 coerce 'AcceleratorConfig',
62 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AcceleratorConfig'->new($_) };
63  
64 declare 'RepeatedAcceleratorConfig',
65 as ArrayRef[AcceleratorConfig()];
66  
67 coerce 'RepeatedAcceleratorConfig',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AcceleratorConfig'->new($_) } @$_ ] };
69  
70 declare 'MapStringAcceleratorConfig',
71 as HashRef[AcceleratorConfig()];
72  
73 declare 'AllocatedDisk',
74 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AllocatedDisk'];
75  
76 coerce 'AllocatedDisk',
77 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AllocatedDisk'->new($_) };
78  
79 declare 'RepeatedAllocatedDisk',
80 as ArrayRef[AllocatedDisk()];
81  
82 coerce 'RepeatedAllocatedDisk',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AllocatedDisk'->new($_) } @$_ ] };
84  
85 declare 'MapStringAllocatedDisk',
86 as HashRef[AllocatedDisk()];
87  
88 declare 'DiskInterface',
89 as (Int | Str);
90  
91 declare 'ShareSettings',
92 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::ShareSettings'];
93  
94 coerce 'ShareSettings',
95 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::ShareSettings'->new($_) };
96  
97 declare 'RepeatedShareSettings',
98 as ArrayRef[ShareSettings()];
99  
100 coerce 'RepeatedShareSettings',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Allocation::Allocation::ShareSettings'->new($_) } @$_ ] };
102  
103 declare 'MapStringShareSettings',
104 as HashRef[ShareSettings()];
105  
106 declare 'ShareType',
107 as (Int | Str);
108  
109 1;
110  
111 __END__