V1beta1/Insight/Types.pm untested

filter: Statementstmt 0.0% 0 / 84 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 89 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::Recommender::V1beta1::Insight::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 'Insight',
11 as InstanceOf['Google::Cloud::Recommender::V1beta1::Insight::Insight'];
12  
13 coerce 'Insight',
14 from HashRef, via { 'Google::Cloud::Recommender::V1beta1::Insight::Insight'->new($_) };
15  
16 declare 'RepeatedInsight',
17 as ArrayRef[Insight()];
18  
19 coerce 'RepeatedInsight',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Recommender::V1beta1::Insight::Insight'->new($_) } @$_ ] };
21  
22 declare 'MapStringInsight',
23 as HashRef[Insight()];
24  
25 declare 'Category',
26 as (Int | Str);
27  
28 declare 'Severity',
29 as (Int | Str);
30  
31 declare 'RecommendationReference',
32 as InstanceOf['Google::Cloud::Recommender::V1beta1::Insight::Insight::RecommendationReference'];
33  
34 coerce 'RecommendationReference',
35 from HashRef, via { 'Google::Cloud::Recommender::V1beta1::Insight::Insight::RecommendationReference'->new($_) };
36  
37 declare 'RepeatedRecommendationReference',
38 as ArrayRef[RecommendationReference()];
39  
40 coerce 'RepeatedRecommendationReference',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Recommender::V1beta1::Insight::Insight::RecommendationReference'->new($_) } @$_ ] };
42  
43 declare 'MapStringRecommendationReference',
44 as HashRef[RecommendationReference()];
45  
46 declare 'InsightStateInfo',
47 as InstanceOf['Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo'];
48  
49 coerce 'InsightStateInfo',
50 from HashRef, via { 'Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo'->new($_) };
51  
52 declare 'RepeatedInsightStateInfo',
53 as ArrayRef[InsightStateInfo()];
54  
55 coerce 'RepeatedInsightStateInfo',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo'->new($_) } @$_ ] };
57  
58 declare 'MapStringInsightStateInfo',
59 as HashRef[InsightStateInfo()];
60  
61 declare 'State',
62 as (Int | Str);
63  
64 declare 'StateMetadataEntry',
65 as InstanceOf['Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo::StateMetadataEntry'];
66  
67 coerce 'StateMetadataEntry',
68 from HashRef, via { 'Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo::StateMetadataEntry'->new($_) };
69  
70 declare 'RepeatedStateMetadataEntry',
71 as ArrayRef[StateMetadataEntry()];
72  
73 coerce 'RepeatedStateMetadataEntry',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo::StateMetadataEntry'->new($_) } @$_ ] };
75  
76 declare 'MapStringStateMetadataEntry',
77 as HashRef[StateMetadataEntry()];
78  
79 declare 'InsightType',
80 as InstanceOf['Google::Cloud::Recommender::V1beta1::Insight::InsightType'];
81  
82 coerce 'InsightType',
83 from HashRef, via { 'Google::Cloud::Recommender::V1beta1::Insight::InsightType'->new($_) };
84  
85 declare 'RepeatedInsightType',
86 as ArrayRef[InsightType()];
87  
88 coerce 'RepeatedInsightType',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Recommender::V1beta1::Insight::InsightType'->new($_) } @$_ ] };
90  
91 declare 'MapStringInsightType',
92 as HashRef[InsightType()];
93  
94 1;
95  
96 __END__