V1/Violations/Types.pm untested

filter: Statementstmt 0.0% 0 / 122 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 127 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::Cloudcontrolspartner::V1::Violations::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 'Violation',
11 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation'];
12  
13 coerce 'Violation',
14 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation'->new($_) };
15  
16 declare 'RepeatedViolation',
17 as ArrayRef[Violation()];
18  
19 coerce 'RepeatedViolation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation'->new($_) } @$_ ] };
21  
22 declare 'MapStringViolation',
23 as HashRef[Violation()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'Remediation',
29 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation'];
30  
31 coerce 'Remediation',
32 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation'->new($_) };
33  
34 declare 'RepeatedRemediation',
35 as ArrayRef[Remediation()];
36  
37 coerce 'RepeatedRemediation',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation'->new($_) } @$_ ] };
39  
40 declare 'MapStringRemediation',
41 as HashRef[Remediation()];
42  
43 declare 'RemediationType',
44 as (Int | Str);
45  
46 declare 'Instructions',
47 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions'];
48  
49 coerce 'Instructions',
50 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions'->new($_) };
51  
52 declare 'RepeatedInstructions',
53 as ArrayRef[Instructions()];
54  
55 coerce 'RepeatedInstructions',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions'->new($_) } @$_ ] };
57  
58 declare 'MapStringInstructions',
59 as HashRef[Instructions()];
60  
61 declare 'Gcloud',
62 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions::Gcloud'];
63  
64 coerce 'Gcloud',
65 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions::Gcloud'->new($_) };
66  
67 declare 'RepeatedGcloud',
68 as ArrayRef[Gcloud()];
69  
70 coerce 'RepeatedGcloud',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions::Gcloud'->new($_) } @$_ ] };
72  
73 declare 'MapStringGcloud',
74 as HashRef[Gcloud()];
75  
76 declare 'Console',
77 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions::Console'];
78  
79 coerce 'Console',
80 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions::Console'->new($_) };
81  
82 declare 'RepeatedConsole',
83 as ArrayRef[Console()];
84  
85 coerce 'RepeatedConsole',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation::Instructions::Console'->new($_) } @$_ ] };
87  
88 declare 'MapStringConsole',
89 as HashRef[Console()];
90  
91 declare 'ListViolationsRequest',
92 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsRequest'];
93  
94 coerce 'ListViolationsRequest',
95 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsRequest'->new($_) };
96  
97 declare 'RepeatedListViolationsRequest',
98 as ArrayRef[ListViolationsRequest()];
99  
100 coerce 'RepeatedListViolationsRequest',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsRequest'->new($_) } @$_ ] };
102  
103 declare 'MapStringListViolationsRequest',
104 as HashRef[ListViolationsRequest()];
105  
106 declare 'ListViolationsResponse',
107 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsResponse'];
108  
109 coerce 'ListViolationsResponse',
110 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsResponse'->new($_) };
111  
112 declare 'RepeatedListViolationsResponse',
113 as ArrayRef[ListViolationsResponse()];
114  
115 coerce 'RepeatedListViolationsResponse',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsResponse'->new($_) } @$_ ] };
117  
118 declare 'MapStringListViolationsResponse',
119 as HashRef[ListViolationsResponse()];
120  
121 declare 'GetViolationRequest',
122 as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::Violations::GetViolationRequest'];
123  
124 coerce 'GetViolationRequest',
125 from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::GetViolationRequest'->new($_) };
126  
127 declare 'RepeatedGetViolationRequest',
128 as ArrayRef[GetViolationRequest()];
129  
130 coerce 'RepeatedGetViolationRequest',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::Violations::GetViolationRequest'->new($_) } @$_ ] };
132  
133 declare 'MapStringGetViolationRequest',
134 as HashRef[GetViolationRequest()];
135  
136 1;
137  
138 __END__