V1/Resources/Types.pm untested

filter: Statementstmt 0.0% 0 / 218 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 223 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::Iot::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 'MqttState',
11 as (Int | Str);
12  
13 declare 'HttpState',
14 as (Int | Str);
15  
16 declare 'LogLevel',
17 as (Int | Str);
18  
19 declare 'GatewayType',
20 as (Int | Str);
21  
22 declare 'GatewayAuthMethod',
23 as (Int | Str);
24  
25 declare 'PublicKeyCertificateFormat',
26 as (Int | Str);
27  
28 declare 'PublicKeyFormat',
29 as (Int | Str);
30  
31 declare 'Device',
32 as InstanceOf['Google::Cloud::Iot::V1::Resources::Device'];
33  
34 coerce 'Device',
35 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::Device'->new($_) };
36  
37 declare 'RepeatedDevice',
38 as ArrayRef[Device()];
39  
40 coerce 'RepeatedDevice',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::Device'->new($_) } @$_ ] };
42  
43 declare 'MapStringDevice',
44 as HashRef[Device()];
45  
46 declare 'MetadataEntry',
47 as InstanceOf['Google::Cloud::Iot::V1::Resources::Device::MetadataEntry'];
48  
49 coerce 'MetadataEntry',
50 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::Device::MetadataEntry'->new($_) };
51  
52 declare 'RepeatedMetadataEntry',
53 as ArrayRef[MetadataEntry()];
54  
55 coerce 'RepeatedMetadataEntry',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::Device::MetadataEntry'->new($_) } @$_ ] };
57  
58 declare 'MapStringMetadataEntry',
59 as HashRef[MetadataEntry()];
60  
61 declare 'GatewayConfig',
62 as InstanceOf['Google::Cloud::Iot::V1::Resources::GatewayConfig'];
63  
64 coerce 'GatewayConfig',
65 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::GatewayConfig'->new($_) };
66  
67 declare 'RepeatedGatewayConfig',
68 as ArrayRef[GatewayConfig()];
69  
70 coerce 'RepeatedGatewayConfig',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::GatewayConfig'->new($_) } @$_ ] };
72  
73 declare 'MapStringGatewayConfig',
74 as HashRef[GatewayConfig()];
75  
76 declare 'DeviceRegistry',
77 as InstanceOf['Google::Cloud::Iot::V1::Resources::DeviceRegistry'];
78  
79 coerce 'DeviceRegistry',
80 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::DeviceRegistry'->new($_) };
81  
82 declare 'RepeatedDeviceRegistry',
83 as ArrayRef[DeviceRegistry()];
84  
85 coerce 'RepeatedDeviceRegistry',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::DeviceRegistry'->new($_) } @$_ ] };
87  
88 declare 'MapStringDeviceRegistry',
89 as HashRef[DeviceRegistry()];
90  
91 declare 'MqttConfig',
92 as InstanceOf['Google::Cloud::Iot::V1::Resources::MqttConfig'];
93  
94 coerce 'MqttConfig',
95 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::MqttConfig'->new($_) };
96  
97 declare 'RepeatedMqttConfig',
98 as ArrayRef[MqttConfig()];
99  
100 coerce 'RepeatedMqttConfig',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::MqttConfig'->new($_) } @$_ ] };
102  
103 declare 'MapStringMqttConfig',
104 as HashRef[MqttConfig()];
105  
106 declare 'HttpConfig',
107 as InstanceOf['Google::Cloud::Iot::V1::Resources::HttpConfig'];
108  
109 coerce 'HttpConfig',
110 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::HttpConfig'->new($_) };
111  
112 declare 'RepeatedHttpConfig',
113 as ArrayRef[HttpConfig()];
114  
115 coerce 'RepeatedHttpConfig',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::HttpConfig'->new($_) } @$_ ] };
117  
118 declare 'MapStringHttpConfig',
119 as HashRef[HttpConfig()];
120  
121 declare 'EventNotificationConfig',
122 as InstanceOf['Google::Cloud::Iot::V1::Resources::EventNotificationConfig'];
123  
124 coerce 'EventNotificationConfig',
125 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::EventNotificationConfig'->new($_) };
126  
127 declare 'RepeatedEventNotificationConfig',
128 as ArrayRef[EventNotificationConfig()];
129  
130 coerce 'RepeatedEventNotificationConfig',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::EventNotificationConfig'->new($_) } @$_ ] };
132  
133 declare 'MapStringEventNotificationConfig',
134 as HashRef[EventNotificationConfig()];
135  
136 declare 'StateNotificationConfig',
137 as InstanceOf['Google::Cloud::Iot::V1::Resources::StateNotificationConfig'];
138  
139 coerce 'StateNotificationConfig',
140 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::StateNotificationConfig'->new($_) };
141  
142 declare 'RepeatedStateNotificationConfig',
143 as ArrayRef[StateNotificationConfig()];
144  
145 coerce 'RepeatedStateNotificationConfig',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::StateNotificationConfig'->new($_) } @$_ ] };
147  
148 declare 'MapStringStateNotificationConfig',
149 as HashRef[StateNotificationConfig()];
150  
151 declare 'RegistryCredential',
152 as InstanceOf['Google::Cloud::Iot::V1::Resources::RegistryCredential'];
153  
154 coerce 'RegistryCredential',
155 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::RegistryCredential'->new($_) };
156  
157 declare 'RepeatedRegistryCredential',
158 as ArrayRef[RegistryCredential()];
159  
160 coerce 'RepeatedRegistryCredential',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::RegistryCredential'->new($_) } @$_ ] };
162  
163 declare 'MapStringRegistryCredential',
164 as HashRef[RegistryCredential()];
165  
166 declare 'X509CertificateDetails',
167 as InstanceOf['Google::Cloud::Iot::V1::Resources::X509CertificateDetails'];
168  
169 coerce 'X509CertificateDetails',
170 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::X509CertificateDetails'->new($_) };
171  
172 declare 'RepeatedX509CertificateDetails',
173 as ArrayRef[X509CertificateDetails()];
174  
175 coerce 'RepeatedX509CertificateDetails',
176 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::X509CertificateDetails'->new($_) } @$_ ] };
177  
178 declare 'MapStringX509CertificateDetails',
179 as HashRef[X509CertificateDetails()];
180  
181 declare 'PublicKeyCertificate',
182 as InstanceOf['Google::Cloud::Iot::V1::Resources::PublicKeyCertificate'];
183  
184 coerce 'PublicKeyCertificate',
185 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::PublicKeyCertificate'->new($_) };
186  
187 declare 'RepeatedPublicKeyCertificate',
188 as ArrayRef[PublicKeyCertificate()];
189  
190 coerce 'RepeatedPublicKeyCertificate',
191 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::PublicKeyCertificate'->new($_) } @$_ ] };
192  
193 declare 'MapStringPublicKeyCertificate',
194 as HashRef[PublicKeyCertificate()];
195  
196 declare 'DeviceCredential',
197 as InstanceOf['Google::Cloud::Iot::V1::Resources::DeviceCredential'];
198  
199 coerce 'DeviceCredential',
200 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::DeviceCredential'->new($_) };
201  
202 declare 'RepeatedDeviceCredential',
203 as ArrayRef[DeviceCredential()];
204  
205 coerce 'RepeatedDeviceCredential',
206 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::DeviceCredential'->new($_) } @$_ ] };
207  
208 declare 'MapStringDeviceCredential',
209 as HashRef[DeviceCredential()];
210  
211 declare 'PublicKeyCredential',
212 as InstanceOf['Google::Cloud::Iot::V1::Resources::PublicKeyCredential'];
213  
214 coerce 'PublicKeyCredential',
215 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::PublicKeyCredential'->new($_) };
216  
217 declare 'RepeatedPublicKeyCredential',
218 as ArrayRef[PublicKeyCredential()];
219  
220 coerce 'RepeatedPublicKeyCredential',
221 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::PublicKeyCredential'->new($_) } @$_ ] };
222  
223 declare 'MapStringPublicKeyCredential',
224 as HashRef[PublicKeyCredential()];
225  
226 declare 'DeviceConfig',
227 as InstanceOf['Google::Cloud::Iot::V1::Resources::DeviceConfig'];
228  
229 coerce 'DeviceConfig',
230 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::DeviceConfig'->new($_) };
231  
232 declare 'RepeatedDeviceConfig',
233 as ArrayRef[DeviceConfig()];
234  
235 coerce 'RepeatedDeviceConfig',
236 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::DeviceConfig'->new($_) } @$_ ] };
237  
238 declare 'MapStringDeviceConfig',
239 as HashRef[DeviceConfig()];
240  
241 declare 'DeviceState',
242 as InstanceOf['Google::Cloud::Iot::V1::Resources::DeviceState'];
243  
244 coerce 'DeviceState',
245 from HashRef, via { 'Google::Cloud::Iot::V1::Resources::DeviceState'->new($_) };
246  
247 declare 'RepeatedDeviceState',
248 as ArrayRef[DeviceState()];
249  
250 coerce 'RepeatedDeviceState',
251 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Iot::V1::Resources::DeviceState'->new($_) } @$_ ] };
252  
253 declare 'MapStringDeviceState',
254 as HashRef[DeviceState()];
255  
256 1;
257  
258 __END__