V2beta3/Queue/Types.pm untested

filter: Statementstmt 0.0% 0 / 83 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 88 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::Tasks::V2beta3::Queue::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 'Queue',
11 as InstanceOf['Google::Cloud::Tasks::V2beta3::Queue::Queue'];
12  
13 coerce 'Queue',
14 from HashRef, via { 'Google::Cloud::Tasks::V2beta3::Queue::Queue'->new($_) };
15  
16 declare 'RepeatedQueue',
17 as ArrayRef[Queue()];
18  
19 coerce 'RepeatedQueue',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta3::Queue::Queue'->new($_) } @$_ ] };
21  
22 declare 'MapStringQueue',
23 as HashRef[Queue()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'Type',
29 as (Int | Str);
30  
31 declare 'RateLimits',
32 as InstanceOf['Google::Cloud::Tasks::V2beta3::Queue::RateLimits'];
33  
34 coerce 'RateLimits',
35 from HashRef, via { 'Google::Cloud::Tasks::V2beta3::Queue::RateLimits'->new($_) };
36  
37 declare 'RepeatedRateLimits',
38 as ArrayRef[RateLimits()];
39  
40 coerce 'RepeatedRateLimits',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta3::Queue::RateLimits'->new($_) } @$_ ] };
42  
43 declare 'MapStringRateLimits',
44 as HashRef[RateLimits()];
45  
46 declare 'RetryConfig',
47 as InstanceOf['Google::Cloud::Tasks::V2beta3::Queue::RetryConfig'];
48  
49 coerce 'RetryConfig',
50 from HashRef, via { 'Google::Cloud::Tasks::V2beta3::Queue::RetryConfig'->new($_) };
51  
52 declare 'RepeatedRetryConfig',
53 as ArrayRef[RetryConfig()];
54  
55 coerce 'RepeatedRetryConfig',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta3::Queue::RetryConfig'->new($_) } @$_ ] };
57  
58 declare 'MapStringRetryConfig',
59 as HashRef[RetryConfig()];
60  
61 declare 'StackdriverLoggingConfig',
62 as InstanceOf['Google::Cloud::Tasks::V2beta3::Queue::StackdriverLoggingConfig'];
63  
64 coerce 'StackdriverLoggingConfig',
65 from HashRef, via { 'Google::Cloud::Tasks::V2beta3::Queue::StackdriverLoggingConfig'->new($_) };
66  
67 declare 'RepeatedStackdriverLoggingConfig',
68 as ArrayRef[StackdriverLoggingConfig()];
69  
70 coerce 'RepeatedStackdriverLoggingConfig',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta3::Queue::StackdriverLoggingConfig'->new($_) } @$_ ] };
72  
73 declare 'MapStringStackdriverLoggingConfig',
74 as HashRef[StackdriverLoggingConfig()];
75  
76 declare 'QueueStats',
77 as InstanceOf['Google::Cloud::Tasks::V2beta3::Queue::QueueStats'];
78  
79 coerce 'QueueStats',
80 from HashRef, via { 'Google::Cloud::Tasks::V2beta3::Queue::QueueStats'->new($_) };
81  
82 declare 'RepeatedQueueStats',
83 as ArrayRef[QueueStats()];
84  
85 coerce 'RepeatedQueueStats',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tasks::V2beta3::Queue::QueueStats'->new($_) } @$_ ] };
87  
88 declare 'MapStringQueueStats',
89 as HashRef[QueueStats()];
90  
91 1;
92  
93 __END__