V1beta/ScanConfig/Types.pm untested

filter: Statementstmt 0.0% 0 / 85 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 90 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::Websecurityscanner::V1beta::ScanConfig::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 'ScanConfig',
11 as InstanceOf['Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig'];
12  
13 coerce 'ScanConfig',
14 from HashRef, via { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig'->new($_) };
15  
16 declare 'RepeatedScanConfig',
17 as ArrayRef[ScanConfig()];
18  
19 coerce 'RepeatedScanConfig',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig'->new($_) } @$_ ] };
21  
22 declare 'MapStringScanConfig',
23 as HashRef[ScanConfig()];
24  
25 declare 'UserAgent',
26 as (Int | Str);
27  
28 declare 'TargetPlatform',
29 as (Int | Str);
30  
31 declare 'RiskLevel',
32 as (Int | Str);
33  
34 declare 'ExportToSecurityCommandCenter',
35 as (Int | Str);
36  
37 declare 'Authentication',
38 as InstanceOf['Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication'];
39  
40 coerce 'Authentication',
41 from HashRef, via { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication'->new($_) };
42  
43 declare 'RepeatedAuthentication',
44 as ArrayRef[Authentication()];
45  
46 coerce 'RepeatedAuthentication',
47 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication'->new($_) } @$_ ] };
48  
49 declare 'MapStringAuthentication',
50 as HashRef[Authentication()];
51  
52 declare 'GoogleAccount',
53 as InstanceOf['Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication::GoogleAccount'];
54  
55 coerce 'GoogleAccount',
56 from HashRef, via { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication::GoogleAccount'->new($_) };
57  
58 declare 'RepeatedGoogleAccount',
59 as ArrayRef[GoogleAccount()];
60  
61 coerce 'RepeatedGoogleAccount',
62 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication::GoogleAccount'->new($_) } @$_ ] };
63  
64 declare 'MapStringGoogleAccount',
65 as HashRef[GoogleAccount()];
66  
67 declare 'CustomAccount',
68 as InstanceOf['Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication::CustomAccount'];
69  
70 coerce 'CustomAccount',
71 from HashRef, via { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication::CustomAccount'->new($_) };
72  
73 declare 'RepeatedCustomAccount',
74 as ArrayRef[CustomAccount()];
75  
76 coerce 'RepeatedCustomAccount',
77 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Authentication::CustomAccount'->new($_) } @$_ ] };
78  
79 declare 'MapStringCustomAccount',
80 as HashRef[CustomAccount()];
81  
82 declare 'Schedule',
83 as InstanceOf['Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Schedule'];
84  
85 coerce 'Schedule',
86 from HashRef, via { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Schedule'->new($_) };
87  
88 declare 'RepeatedSchedule',
89 as ArrayRef[Schedule()];
90  
91 coerce 'RepeatedSchedule',
92 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Websecurityscanner::V1beta::ScanConfig::ScanConfig::Schedule'->new($_) } @$_ ] };
93  
94 declare 'MapStringSchedule',
95 as HashRef[Schedule()];
96  
97 1;
98  
99 __END__