V2/Resource/Types.pm untested

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