V1/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 226 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 231 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::Pubsublite::V1::Common::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 'AttributeValues',
11 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::AttributeValues'];
12  
13 coerce 'AttributeValues',
14 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::AttributeValues'->new($_) };
15  
16 declare 'RepeatedAttributeValues',
17 as ArrayRef[AttributeValues()];
18  
19 coerce 'RepeatedAttributeValues',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::AttributeValues'->new($_) } @$_ ] };
21  
22 declare 'MapStringAttributeValues',
23 as HashRef[AttributeValues()];
24  
25 declare 'PubSubMessage',
26 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::PubSubMessage'];
27  
28 coerce 'PubSubMessage',
29 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::PubSubMessage'->new($_) };
30  
31 declare 'RepeatedPubSubMessage',
32 as ArrayRef[PubSubMessage()];
33  
34 coerce 'RepeatedPubSubMessage',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::PubSubMessage'->new($_) } @$_ ] };
36  
37 declare 'MapStringPubSubMessage',
38 as HashRef[PubSubMessage()];
39  
40 declare 'AttributesEntry',
41 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::PubSubMessage::AttributesEntry'];
42  
43 coerce 'AttributesEntry',
44 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::PubSubMessage::AttributesEntry'->new($_) };
45  
46 declare 'RepeatedAttributesEntry',
47 as ArrayRef[AttributesEntry()];
48  
49 coerce 'RepeatedAttributesEntry',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::PubSubMessage::AttributesEntry'->new($_) } @$_ ] };
51  
52 declare 'MapStringAttributesEntry',
53 as HashRef[AttributesEntry()];
54  
55 declare 'Cursor',
56 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Cursor'];
57  
58 coerce 'Cursor',
59 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Cursor'->new($_) };
60  
61 declare 'RepeatedCursor',
62 as ArrayRef[Cursor()];
63  
64 coerce 'RepeatedCursor',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Cursor'->new($_) } @$_ ] };
66  
67 declare 'MapStringCursor',
68 as HashRef[Cursor()];
69  
70 declare 'SequencedMessage',
71 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::SequencedMessage'];
72  
73 coerce 'SequencedMessage',
74 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::SequencedMessage'->new($_) };
75  
76 declare 'RepeatedSequencedMessage',
77 as ArrayRef[SequencedMessage()];
78  
79 coerce 'RepeatedSequencedMessage',
80 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::SequencedMessage'->new($_) } @$_ ] };
81  
82 declare 'MapStringSequencedMessage',
83 as HashRef[SequencedMessage()];
84  
85 declare 'Reservation',
86 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Reservation'];
87  
88 coerce 'Reservation',
89 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Reservation'->new($_) };
90  
91 declare 'RepeatedReservation',
92 as ArrayRef[Reservation()];
93  
94 coerce 'RepeatedReservation',
95 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Reservation'->new($_) } @$_ ] };
96  
97 declare 'MapStringReservation',
98 as HashRef[Reservation()];
99  
100 declare 'Topic',
101 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Topic'];
102  
103 coerce 'Topic',
104 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Topic'->new($_) };
105  
106 declare 'RepeatedTopic',
107 as ArrayRef[Topic()];
108  
109 coerce 'RepeatedTopic',
110 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Topic'->new($_) } @$_ ] };
111  
112 declare 'MapStringTopic',
113 as HashRef[Topic()];
114  
115 declare 'PartitionConfig',
116 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Topic::PartitionConfig'];
117  
118 coerce 'PartitionConfig',
119 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Topic::PartitionConfig'->new($_) };
120  
121 declare 'RepeatedPartitionConfig',
122 as ArrayRef[PartitionConfig()];
123  
124 coerce 'RepeatedPartitionConfig',
125 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Topic::PartitionConfig'->new($_) } @$_ ] };
126  
127 declare 'MapStringPartitionConfig',
128 as HashRef[PartitionConfig()];
129  
130 declare 'Capacity',
131 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Topic::PartitionConfig::Capacity'];
132  
133 coerce 'Capacity',
134 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Topic::PartitionConfig::Capacity'->new($_) };
135  
136 declare 'RepeatedCapacity',
137 as ArrayRef[Capacity()];
138  
139 coerce 'RepeatedCapacity',
140 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Topic::PartitionConfig::Capacity'->new($_) } @$_ ] };
141  
142 declare 'MapStringCapacity',
143 as HashRef[Capacity()];
144  
145 declare 'RetentionConfig',
146 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Topic::RetentionConfig'];
147  
148 coerce 'RetentionConfig',
149 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Topic::RetentionConfig'->new($_) };
150  
151 declare 'RepeatedRetentionConfig',
152 as ArrayRef[RetentionConfig()];
153  
154 coerce 'RepeatedRetentionConfig',
155 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Topic::RetentionConfig'->new($_) } @$_ ] };
156  
157 declare 'MapStringRetentionConfig',
158 as HashRef[RetentionConfig()];
159  
160 declare 'ReservationConfig',
161 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Topic::ReservationConfig'];
162  
163 coerce 'ReservationConfig',
164 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Topic::ReservationConfig'->new($_) };
165  
166 declare 'RepeatedReservationConfig',
167 as ArrayRef[ReservationConfig()];
168  
169 coerce 'RepeatedReservationConfig',
170 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Topic::ReservationConfig'->new($_) } @$_ ] };
171  
172 declare 'MapStringReservationConfig',
173 as HashRef[ReservationConfig()];
174  
175 declare 'Subscription',
176 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Subscription'];
177  
178 coerce 'Subscription',
179 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Subscription'->new($_) };
180  
181 declare 'RepeatedSubscription',
182 as ArrayRef[Subscription()];
183  
184 coerce 'RepeatedSubscription',
185 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Subscription'->new($_) } @$_ ] };
186  
187 declare 'MapStringSubscription',
188 as HashRef[Subscription()];
189  
190 declare 'DeliveryConfig',
191 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::Subscription::DeliveryConfig'];
192  
193 coerce 'DeliveryConfig',
194 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::Subscription::DeliveryConfig'->new($_) };
195  
196 declare 'RepeatedDeliveryConfig',
197 as ArrayRef[DeliveryConfig()];
198  
199 coerce 'RepeatedDeliveryConfig',
200 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::Subscription::DeliveryConfig'->new($_) } @$_ ] };
201  
202 declare 'MapStringDeliveryConfig',
203 as HashRef[DeliveryConfig()];
204  
205 declare 'DeliveryRequirement',
206 as (Int | Str);
207  
208 declare 'ExportConfig',
209 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::ExportConfig'];
210  
211 coerce 'ExportConfig',
212 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::ExportConfig'->new($_) };
213  
214 declare 'RepeatedExportConfig',
215 as ArrayRef[ExportConfig()];
216  
217 coerce 'RepeatedExportConfig',
218 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::ExportConfig'->new($_) } @$_ ] };
219  
220 declare 'MapStringExportConfig',
221 as HashRef[ExportConfig()];
222  
223 declare 'State',
224 as (Int | Str);
225  
226 declare 'PubSubConfig',
227 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::ExportConfig::PubSubConfig'];
228  
229 coerce 'PubSubConfig',
230 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::ExportConfig::PubSubConfig'->new($_) };
231  
232 declare 'RepeatedPubSubConfig',
233 as ArrayRef[PubSubConfig()];
234  
235 coerce 'RepeatedPubSubConfig',
236 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::ExportConfig::PubSubConfig'->new($_) } @$_ ] };
237  
238 declare 'MapStringPubSubConfig',
239 as HashRef[PubSubConfig()];
240  
241 declare 'TimeTarget',
242 as InstanceOf['Google::Cloud::Pubsublite::V1::Common::TimeTarget'];
243  
244 coerce 'TimeTarget',
245 from HashRef, via { 'Google::Cloud::Pubsublite::V1::Common::TimeTarget'->new($_) };
246  
247 declare 'RepeatedTimeTarget',
248 as ArrayRef[TimeTarget()];
249  
250 coerce 'RepeatedTimeTarget',
251 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Pubsublite::V1::Common::TimeTarget'->new($_) } @$_ ] };
252  
253 declare 'MapStringTimeTarget',
254 as HashRef[TimeTarget()];
255  
256 1;
257  
258 __END__