V1beta1/Resources/Types.pm untested

filter: Statementstmt 0.0% 0 / 121 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 126 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::Secrets::V1beta1::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 'Secret',
11 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::Secret'];
12  
13 coerce 'Secret',
14 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::Secret'->new($_) };
15  
16 declare 'RepeatedSecret',
17 as ArrayRef[Secret()];
18  
19 coerce 'RepeatedSecret',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::Secret'->new($_) } @$_ ] };
21  
22 declare 'MapStringSecret',
23 as HashRef[Secret()];
24  
25 declare 'LabelsEntry',
26 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::Secret::LabelsEntry'];
27  
28 coerce 'LabelsEntry',
29 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::Secret::LabelsEntry'->new($_) };
30  
31 declare 'RepeatedLabelsEntry',
32 as ArrayRef[LabelsEntry()];
33  
34 coerce 'RepeatedLabelsEntry',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::Secret::LabelsEntry'->new($_) } @$_ ] };
36  
37 declare 'MapStringLabelsEntry',
38 as HashRef[LabelsEntry()];
39  
40 declare 'SecretVersion',
41 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::SecretVersion'];
42  
43 coerce 'SecretVersion',
44 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::SecretVersion'->new($_) };
45  
46 declare 'RepeatedSecretVersion',
47 as ArrayRef[SecretVersion()];
48  
49 coerce 'RepeatedSecretVersion',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::SecretVersion'->new($_) } @$_ ] };
51  
52 declare 'MapStringSecretVersion',
53 as HashRef[SecretVersion()];
54  
55 declare 'State',
56 as (Int | Str);
57  
58 declare 'Replication',
59 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::Replication'];
60  
61 coerce 'Replication',
62 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::Replication'->new($_) };
63  
64 declare 'RepeatedReplication',
65 as ArrayRef[Replication()];
66  
67 coerce 'RepeatedReplication',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::Replication'->new($_) } @$_ ] };
69  
70 declare 'MapStringReplication',
71 as HashRef[Replication()];
72  
73 declare 'Automatic',
74 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::Replication::Automatic'];
75  
76 coerce 'Automatic',
77 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::Replication::Automatic'->new($_) };
78  
79 declare 'RepeatedAutomatic',
80 as ArrayRef[Automatic()];
81  
82 coerce 'RepeatedAutomatic',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::Replication::Automatic'->new($_) } @$_ ] };
84  
85 declare 'MapStringAutomatic',
86 as HashRef[Automatic()];
87  
88 declare 'UserManaged',
89 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged'];
90  
91 coerce 'UserManaged',
92 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged'->new($_) };
93  
94 declare 'RepeatedUserManaged',
95 as ArrayRef[UserManaged()];
96  
97 coerce 'RepeatedUserManaged',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged'->new($_) } @$_ ] };
99  
100 declare 'MapStringUserManaged',
101 as HashRef[UserManaged()];
102  
103 declare 'Replica',
104 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged::Replica'];
105  
106 coerce 'Replica',
107 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged::Replica'->new($_) };
108  
109 declare 'RepeatedReplica',
110 as ArrayRef[Replica()];
111  
112 coerce 'RepeatedReplica',
113 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged::Replica'->new($_) } @$_ ] };
114  
115 declare 'MapStringReplica',
116 as HashRef[Replica()];
117  
118 declare 'SecretPayload',
119 as InstanceOf['Google::Cloud::Secrets::V1beta1::Resources::SecretPayload'];
120  
121 coerce 'SecretPayload',
122 from HashRef, via { 'Google::Cloud::Secrets::V1beta1::Resources::SecretPayload'->new($_) };
123  
124 declare 'RepeatedSecretPayload',
125 as ArrayRef[SecretPayload()];
126  
127 coerce 'RepeatedSecretPayload',
128 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Secrets::V1beta1::Resources::SecretPayload'->new($_) } @$_ ] };
129  
130 declare 'MapStringSecretPayload',
131 as HashRef[SecretPayload()];
132  
133 1;
134  
135 __END__