V1/Resources/Types.pm untested

filter: Statementstmt 0.0% 0 / 208 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 213 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::Kms::V1::Resources::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 'ProtectionLevel',
11 as (Int | Str);
12  
13 declare 'AccessReason',
14 as (Int | Str);
15  
16 declare 'KeyRing',
17 as InstanceOf['Google::Cloud::Kms::V1::Resources::KeyRing'];
18  
19 coerce 'KeyRing',
20 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::KeyRing'->new($_) };
21  
22 declare 'RepeatedKeyRing',
23 as ArrayRef[KeyRing()];
24  
25 coerce 'RepeatedKeyRing',
26 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::KeyRing'->new($_) } @$_ ] };
27  
28 declare 'MapStringKeyRing',
29 as HashRef[KeyRing()];
30  
31 declare 'CryptoKey',
32 as InstanceOf['Google::Cloud::Kms::V1::Resources::CryptoKey'];
33  
34 coerce 'CryptoKey',
35 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::CryptoKey'->new($_) };
36  
37 declare 'RepeatedCryptoKey',
38 as ArrayRef[CryptoKey()];
39  
40 coerce 'RepeatedCryptoKey',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::CryptoKey'->new($_) } @$_ ] };
42  
43 declare 'MapStringCryptoKey',
44 as HashRef[CryptoKey()];
45  
46 declare 'CryptoKeyPurpose',
47 as (Int | Str);
48  
49 declare 'LabelsEntry',
50 as InstanceOf['Google::Cloud::Kms::V1::Resources::CryptoKey::LabelsEntry'];
51  
52 coerce 'LabelsEntry',
53 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::CryptoKey::LabelsEntry'->new($_) };
54  
55 declare 'RepeatedLabelsEntry',
56 as ArrayRef[LabelsEntry()];
57  
58 coerce 'RepeatedLabelsEntry',
59 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::CryptoKey::LabelsEntry'->new($_) } @$_ ] };
60  
61 declare 'MapStringLabelsEntry',
62 as HashRef[LabelsEntry()];
63  
64 declare 'CryptoKeyVersionTemplate',
65 as InstanceOf['Google::Cloud::Kms::V1::Resources::CryptoKeyVersionTemplate'];
66  
67 coerce 'CryptoKeyVersionTemplate',
68 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::CryptoKeyVersionTemplate'->new($_) };
69  
70 declare 'RepeatedCryptoKeyVersionTemplate',
71 as ArrayRef[CryptoKeyVersionTemplate()];
72  
73 coerce 'RepeatedCryptoKeyVersionTemplate',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::CryptoKeyVersionTemplate'->new($_) } @$_ ] };
75  
76 declare 'MapStringCryptoKeyVersionTemplate',
77 as HashRef[CryptoKeyVersionTemplate()];
78  
79 declare 'KeyOperationAttestation',
80 as InstanceOf['Google::Cloud::Kms::V1::Resources::KeyOperationAttestation'];
81  
82 coerce 'KeyOperationAttestation',
83 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::KeyOperationAttestation'->new($_) };
84  
85 declare 'RepeatedKeyOperationAttestation',
86 as ArrayRef[KeyOperationAttestation()];
87  
88 coerce 'RepeatedKeyOperationAttestation',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::KeyOperationAttestation'->new($_) } @$_ ] };
90  
91 declare 'MapStringKeyOperationAttestation',
92 as HashRef[KeyOperationAttestation()];
93  
94 declare 'AttestationFormat',
95 as (Int | Str);
96  
97 declare 'CertificateChains',
98 as InstanceOf['Google::Cloud::Kms::V1::Resources::KeyOperationAttestation::CertificateChains'];
99  
100 coerce 'CertificateChains',
101 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::KeyOperationAttestation::CertificateChains'->new($_) };
102  
103 declare 'RepeatedCertificateChains',
104 as ArrayRef[CertificateChains()];
105  
106 coerce 'RepeatedCertificateChains',
107 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::KeyOperationAttestation::CertificateChains'->new($_) } @$_ ] };
108  
109 declare 'MapStringCertificateChains',
110 as HashRef[CertificateChains()];
111  
112 declare 'CryptoKeyVersion',
113 as InstanceOf['Google::Cloud::Kms::V1::Resources::CryptoKeyVersion'];
114  
115 coerce 'CryptoKeyVersion',
116 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::CryptoKeyVersion'->new($_) };
117  
118 declare 'RepeatedCryptoKeyVersion',
119 as ArrayRef[CryptoKeyVersion()];
120  
121 coerce 'RepeatedCryptoKeyVersion',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::CryptoKeyVersion'->new($_) } @$_ ] };
123  
124 declare 'MapStringCryptoKeyVersion',
125 as HashRef[CryptoKeyVersion()];
126  
127 declare 'CryptoKeyVersionAlgorithm',
128 as (Int | Str);
129  
130 declare 'CryptoKeyVersionState',
131 as (Int | Str);
132  
133 declare 'CryptoKeyVersionView',
134 as (Int | Str);
135  
136 declare 'ChecksummedData',
137 as InstanceOf['Google::Cloud::Kms::V1::Resources::ChecksummedData'];
138  
139 coerce 'ChecksummedData',
140 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::ChecksummedData'->new($_) };
141  
142 declare 'RepeatedChecksummedData',
143 as ArrayRef[ChecksummedData()];
144  
145 coerce 'RepeatedChecksummedData',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::ChecksummedData'->new($_) } @$_ ] };
147  
148 declare 'MapStringChecksummedData',
149 as HashRef[ChecksummedData()];
150  
151 declare 'PublicKey',
152 as InstanceOf['Google::Cloud::Kms::V1::Resources::PublicKey'];
153  
154 coerce 'PublicKey',
155 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::PublicKey'->new($_) };
156  
157 declare 'RepeatedPublicKey',
158 as ArrayRef[PublicKey()];
159  
160 coerce 'RepeatedPublicKey',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::PublicKey'->new($_) } @$_ ] };
162  
163 declare 'MapStringPublicKey',
164 as HashRef[PublicKey()];
165  
166 declare 'PublicKeyFormat',
167 as (Int | Str);
168  
169 declare 'ImportJob',
170 as InstanceOf['Google::Cloud::Kms::V1::Resources::ImportJob'];
171  
172 coerce 'ImportJob',
173 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::ImportJob'->new($_) };
174  
175 declare 'RepeatedImportJob',
176 as ArrayRef[ImportJob()];
177  
178 coerce 'RepeatedImportJob',
179 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::ImportJob'->new($_) } @$_ ] };
180  
181 declare 'MapStringImportJob',
182 as HashRef[ImportJob()];
183  
184 declare 'ImportMethod',
185 as (Int | Str);
186  
187 declare 'ImportJobState',
188 as (Int | Str);
189  
190 declare 'WrappingPublicKey',
191 as InstanceOf['Google::Cloud::Kms::V1::Resources::ImportJob::WrappingPublicKey'];
192  
193 coerce 'WrappingPublicKey',
194 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::ImportJob::WrappingPublicKey'->new($_) };
195  
196 declare 'RepeatedWrappingPublicKey',
197 as ArrayRef[WrappingPublicKey()];
198  
199 coerce 'RepeatedWrappingPublicKey',
200 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::ImportJob::WrappingPublicKey'->new($_) } @$_ ] };
201  
202 declare 'MapStringWrappingPublicKey',
203 as HashRef[WrappingPublicKey()];
204  
205 declare 'ExternalProtectionLevelOptions',
206 as InstanceOf['Google::Cloud::Kms::V1::Resources::ExternalProtectionLevelOptions'];
207  
208 coerce 'ExternalProtectionLevelOptions',
209 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::ExternalProtectionLevelOptions'->new($_) };
210  
211 declare 'RepeatedExternalProtectionLevelOptions',
212 as ArrayRef[ExternalProtectionLevelOptions()];
213  
214 coerce 'RepeatedExternalProtectionLevelOptions',
215 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::ExternalProtectionLevelOptions'->new($_) } @$_ ] };
216  
217 declare 'MapStringExternalProtectionLevelOptions',
218 as HashRef[ExternalProtectionLevelOptions()];
219  
220 declare 'KeyAccessJustificationsPolicy',
221 as InstanceOf['Google::Cloud::Kms::V1::Resources::KeyAccessJustificationsPolicy'];
222  
223 coerce 'KeyAccessJustificationsPolicy',
224 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::KeyAccessJustificationsPolicy'->new($_) };
225  
226 declare 'RepeatedKeyAccessJustificationsPolicy',
227 as ArrayRef[KeyAccessJustificationsPolicy()];
228  
229 coerce 'RepeatedKeyAccessJustificationsPolicy',
230 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::KeyAccessJustificationsPolicy'->new($_) } @$_ ] };
231  
232 declare 'MapStringKeyAccessJustificationsPolicy',
233 as HashRef[KeyAccessJustificationsPolicy()];
234  
235 declare 'RetiredResource',
236 as InstanceOf['Google::Cloud::Kms::V1::Resources::RetiredResource'];
237  
238 coerce 'RetiredResource',
239 from HashRef, via { 'Google::Cloud::Kms::V1::Resources::RetiredResource'->new($_) };
240  
241 declare 'RepeatedRetiredResource',
242 as ArrayRef[RetiredResource()];
243  
244 coerce 'RepeatedRetiredResource',
245 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Kms::V1::Resources::RetiredResource'->new($_) } @$_ ] };
246  
247 declare 'MapStringRetiredResource',
248 as HashRef[RetiredResource()];
249  
250 1;
251  
252 __END__