V1/ApiEntities/Types.pm untested

filter: Statementstmt 0.0% 0 / 151 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 156 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::Licensemanager::V1::ApiEntities::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 'LicenseType',
11 as (Int | Str);
12  
13 declare 'ActivationState',
14 as (Int | Str);
15  
16 declare 'Configuration',
17 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Configuration'];
18  
19 coerce 'Configuration',
20 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Configuration'->new($_) };
21  
22 declare 'RepeatedConfiguration',
23 as ArrayRef[Configuration()];
24  
25 coerce 'RepeatedConfiguration',
26 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Configuration'->new($_) } @$_ ] };
27  
28 declare 'MapStringConfiguration',
29 as HashRef[Configuration()];
30  
31 declare 'State',
32 as (Int | Str);
33  
34 declare 'LabelsEntry',
35 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Configuration::LabelsEntry'];
36  
37 coerce 'LabelsEntry',
38 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Configuration::LabelsEntry'->new($_) };
39  
40 declare 'RepeatedLabelsEntry',
41 as ArrayRef[LabelsEntry()];
42  
43 coerce 'RepeatedLabelsEntry',
44 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Configuration::LabelsEntry'->new($_) } @$_ ] };
45  
46 declare 'MapStringLabelsEntry',
47 as HashRef[LabelsEntry()];
48  
49 declare 'BillingInfo',
50 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::BillingInfo'];
51  
52 coerce 'BillingInfo',
53 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::BillingInfo'->new($_) };
54  
55 declare 'RepeatedBillingInfo',
56 as ArrayRef[BillingInfo()];
57  
58 coerce 'RepeatedBillingInfo',
59 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::BillingInfo'->new($_) } @$_ ] };
60  
61 declare 'MapStringBillingInfo',
62 as HashRef[BillingInfo()];
63  
64 declare 'UserCountBillingInfo',
65 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::UserCountBillingInfo'];
66  
67 coerce 'UserCountBillingInfo',
68 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::UserCountBillingInfo'->new($_) };
69  
70 declare 'RepeatedUserCountBillingInfo',
71 as ArrayRef[UserCountBillingInfo()];
72  
73 coerce 'RepeatedUserCountBillingInfo',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::UserCountBillingInfo'->new($_) } @$_ ] };
75  
76 declare 'MapStringUserCountBillingInfo',
77 as HashRef[UserCountBillingInfo()];
78  
79 declare 'UserCountUsage',
80 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::UserCountUsage'];
81  
82 coerce 'UserCountUsage',
83 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::UserCountUsage'->new($_) };
84  
85 declare 'RepeatedUserCountUsage',
86 as ArrayRef[UserCountUsage()];
87  
88 coerce 'RepeatedUserCountUsage',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::UserCountUsage'->new($_) } @$_ ] };
90  
91 declare 'MapStringUserCountUsage',
92 as HashRef[UserCountUsage()];
93  
94 declare 'Product',
95 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Product'];
96  
97 coerce 'Product',
98 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Product'->new($_) };
99  
100 declare 'RepeatedProduct',
101 as ArrayRef[Product()];
102  
103 coerce 'RepeatedProduct',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Product'->new($_) } @$_ ] };
105  
106 declare 'MapStringProduct',
107 as HashRef[Product()];
108  
109 declare 'State',
110 as (Int | Str);
111  
112 declare 'Instance',
113 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Instance'];
114  
115 coerce 'Instance',
116 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Instance'->new($_) };
117  
118 declare 'RepeatedInstance',
119 as ArrayRef[Instance()];
120  
121 coerce 'RepeatedInstance',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Instance'->new($_) } @$_ ] };
123  
124 declare 'MapStringInstance',
125 as HashRef[Instance()];
126  
127 declare 'State',
128 as (Int | Str);
129  
130 declare 'LabelsEntry',
131 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Instance::LabelsEntry'];
132  
133 coerce 'LabelsEntry',
134 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Instance::LabelsEntry'->new($_) };
135  
136 declare 'RepeatedLabelsEntry',
137 as ArrayRef[LabelsEntry()];
138  
139 coerce 'RepeatedLabelsEntry',
140 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Instance::LabelsEntry'->new($_) } @$_ ] };
141  
142 declare 'MapStringLabelsEntry',
143 as HashRef[LabelsEntry()];
144  
145 declare 'ProductActivationEntry',
146 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Instance::ProductActivationEntry'];
147  
148 coerce 'ProductActivationEntry',
149 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Instance::ProductActivationEntry'->new($_) };
150  
151 declare 'RepeatedProductActivationEntry',
152 as ArrayRef[ProductActivationEntry()];
153  
154 coerce 'RepeatedProductActivationEntry',
155 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Instance::ProductActivationEntry'->new($_) } @$_ ] };
156  
157 declare 'MapStringProductActivationEntry',
158 as HashRef[ProductActivationEntry()];
159  
160 declare 'Usage',
161 as InstanceOf['Google::Cloud::Licensemanager::V1::ApiEntities::Usage'];
162  
163 coerce 'Usage',
164 from HashRef, via { 'Google::Cloud::Licensemanager::V1::ApiEntities::Usage'->new($_) };
165  
166 declare 'RepeatedUsage',
167 as ArrayRef[Usage()];
168  
169 coerce 'RepeatedUsage',
170 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Licensemanager::V1::ApiEntities::Usage'->new($_) } @$_ ] };
171  
172 declare 'MapStringUsage',
173 as HashRef[Usage()];
174  
175 1;
176  
177 __END__