V1/Resource/Types.pm untested

filter: Statementstmt 0.0% 0 / 161 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 166 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::Securitycenter::V1::Resource::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 'CloudProvider',
11 as (Int | Str);
12  
13 declare 'Resource',
14 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::Resource'];
15  
16 coerce 'Resource',
17 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::Resource'->new($_) };
18  
19 declare 'RepeatedResource',
20 as ArrayRef[Resource()];
21  
22 coerce 'RepeatedResource',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::Resource'->new($_) } @$_ ] };
24  
25 declare 'MapStringResource',
26 as HashRef[Resource()];
27  
28 declare 'AwsMetadata',
29 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AwsMetadata'];
30  
31 coerce 'AwsMetadata',
32 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata'->new($_) };
33  
34 declare 'RepeatedAwsMetadata',
35 as ArrayRef[AwsMetadata()];
36  
37 coerce 'RepeatedAwsMetadata',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata'->new($_) } @$_ ] };
39  
40 declare 'MapStringAwsMetadata',
41 as HashRef[AwsMetadata()];
42  
43 declare 'AwsOrganization',
44 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsOrganization'];
45  
46 coerce 'AwsOrganization',
47 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsOrganization'->new($_) };
48  
49 declare 'RepeatedAwsOrganization',
50 as ArrayRef[AwsOrganization()];
51  
52 coerce 'RepeatedAwsOrganization',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsOrganization'->new($_) } @$_ ] };
54  
55 declare 'MapStringAwsOrganization',
56 as HashRef[AwsOrganization()];
57  
58 declare 'AwsOrganizationalUnit',
59 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsOrganizationalUnit'];
60  
61 coerce 'AwsOrganizationalUnit',
62 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsOrganizationalUnit'->new($_) };
63  
64 declare 'RepeatedAwsOrganizationalUnit',
65 as ArrayRef[AwsOrganizationalUnit()];
66  
67 coerce 'RepeatedAwsOrganizationalUnit',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsOrganizationalUnit'->new($_) } @$_ ] };
69  
70 declare 'MapStringAwsOrganizationalUnit',
71 as HashRef[AwsOrganizationalUnit()];
72  
73 declare 'AwsAccount',
74 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsAccount'];
75  
76 coerce 'AwsAccount',
77 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsAccount'->new($_) };
78  
79 declare 'RepeatedAwsAccount',
80 as ArrayRef[AwsAccount()];
81  
82 coerce 'RepeatedAwsAccount',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AwsMetadata::AwsAccount'->new($_) } @$_ ] };
84  
85 declare 'MapStringAwsAccount',
86 as HashRef[AwsAccount()];
87  
88 declare 'AzureMetadata',
89 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AzureMetadata'];
90  
91 coerce 'AzureMetadata',
92 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata'->new($_) };
93  
94 declare 'RepeatedAzureMetadata',
95 as ArrayRef[AzureMetadata()];
96  
97 coerce 'RepeatedAzureMetadata',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata'->new($_) } @$_ ] };
99  
100 declare 'MapStringAzureMetadata',
101 as HashRef[AzureMetadata()];
102  
103 declare 'AzureManagementGroup',
104 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureManagementGroup'];
105  
106 coerce 'AzureManagementGroup',
107 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureManagementGroup'->new($_) };
108  
109 declare 'RepeatedAzureManagementGroup',
110 as ArrayRef[AzureManagementGroup()];
111  
112 coerce 'RepeatedAzureManagementGroup',
113 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureManagementGroup'->new($_) } @$_ ] };
114  
115 declare 'MapStringAzureManagementGroup',
116 as HashRef[AzureManagementGroup()];
117  
118 declare 'AzureSubscription',
119 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureSubscription'];
120  
121 coerce 'AzureSubscription',
122 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureSubscription'->new($_) };
123  
124 declare 'RepeatedAzureSubscription',
125 as ArrayRef[AzureSubscription()];
126  
127 coerce 'RepeatedAzureSubscription',
128 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureSubscription'->new($_) } @$_ ] };
129  
130 declare 'MapStringAzureSubscription',
131 as HashRef[AzureSubscription()];
132  
133 declare 'AzureResourceGroup',
134 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureResourceGroup'];
135  
136 coerce 'AzureResourceGroup',
137 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureResourceGroup'->new($_) };
138  
139 declare 'RepeatedAzureResourceGroup',
140 as ArrayRef[AzureResourceGroup()];
141  
142 coerce 'RepeatedAzureResourceGroup',
143 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::AzureMetadata::AzureResourceGroup'->new($_) } @$_ ] };
144  
145 declare 'MapStringAzureResourceGroup',
146 as HashRef[AzureResourceGroup()];
147  
148 declare 'ResourcePath',
149 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::ResourcePath'];
150  
151 coerce 'ResourcePath',
152 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::ResourcePath'->new($_) };
153  
154 declare 'RepeatedResourcePath',
155 as ArrayRef[ResourcePath()];
156  
157 coerce 'RepeatedResourcePath',
158 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::ResourcePath'->new($_) } @$_ ] };
159  
160 declare 'MapStringResourcePath',
161 as HashRef[ResourcePath()];
162  
163 declare 'ResourcePathNodeType',
164 as (Int | Str);
165  
166 declare 'ResourcePathNode',
167 as InstanceOf['Google::Cloud::Securitycenter::V1::Resource::ResourcePath::ResourcePathNode'];
168  
169 coerce 'ResourcePathNode',
170 from HashRef, via { 'Google::Cloud::Securitycenter::V1::Resource::ResourcePath::ResourcePathNode'->new($_) };
171  
172 declare 'RepeatedResourcePathNode',
173 as ArrayRef[ResourcePathNode()];
174  
175 coerce 'RepeatedResourcePathNode',
176 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Resource::ResourcePath::ResourcePathNode'->new($_) } @$_ ] };
177  
178 declare 'MapStringResourcePathNode',
179 as HashRef[ResourcePathNode()];
180  
181 1;
182  
183 __END__