V1/BudgetModel/Types.pm untested

filter: Statementstmt 0.0% 0 / 123 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 128 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::Billing::Budgets::V1::BudgetModel::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 'CalendarPeriod',
11 as (Int | Str);
12  
13 declare 'Budget',
14 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::Budget'];
15  
16 coerce 'Budget',
17 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::Budget'->new($_) };
18  
19 declare 'RepeatedBudget',
20 as ArrayRef[Budget()];
21  
22 coerce 'RepeatedBudget',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::Budget'->new($_) } @$_ ] };
24  
25 declare 'MapStringBudget',
26 as HashRef[Budget()];
27  
28 declare 'BudgetAmount',
29 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::BudgetAmount'];
30  
31 coerce 'BudgetAmount',
32 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::BudgetAmount'->new($_) };
33  
34 declare 'RepeatedBudgetAmount',
35 as ArrayRef[BudgetAmount()];
36  
37 coerce 'RepeatedBudgetAmount',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::BudgetAmount'->new($_) } @$_ ] };
39  
40 declare 'MapStringBudgetAmount',
41 as HashRef[BudgetAmount()];
42  
43 declare 'LastPeriodAmount',
44 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::LastPeriodAmount'];
45  
46 coerce 'LastPeriodAmount',
47 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::LastPeriodAmount'->new($_) };
48  
49 declare 'RepeatedLastPeriodAmount',
50 as ArrayRef[LastPeriodAmount()];
51  
52 coerce 'RepeatedLastPeriodAmount',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::LastPeriodAmount'->new($_) } @$_ ] };
54  
55 declare 'MapStringLastPeriodAmount',
56 as HashRef[LastPeriodAmount()];
57  
58 declare 'ThresholdRule',
59 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::ThresholdRule'];
60  
61 coerce 'ThresholdRule',
62 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::ThresholdRule'->new($_) };
63  
64 declare 'RepeatedThresholdRule',
65 as ArrayRef[ThresholdRule()];
66  
67 coerce 'RepeatedThresholdRule',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::ThresholdRule'->new($_) } @$_ ] };
69  
70 declare 'MapStringThresholdRule',
71 as HashRef[ThresholdRule()];
72  
73 declare 'Basis',
74 as (Int | Str);
75  
76 declare 'NotificationsRule',
77 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::NotificationsRule'];
78  
79 coerce 'NotificationsRule',
80 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::NotificationsRule'->new($_) };
81  
82 declare 'RepeatedNotificationsRule',
83 as ArrayRef[NotificationsRule()];
84  
85 coerce 'RepeatedNotificationsRule',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::NotificationsRule'->new($_) } @$_ ] };
87  
88 declare 'MapStringNotificationsRule',
89 as HashRef[NotificationsRule()];
90  
91 declare 'Filter',
92 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::Filter'];
93  
94 coerce 'Filter',
95 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::Filter'->new($_) };
96  
97 declare 'RepeatedFilter',
98 as ArrayRef[Filter()];
99  
100 coerce 'RepeatedFilter',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::Filter'->new($_) } @$_ ] };
102  
103 declare 'MapStringFilter',
104 as HashRef[Filter()];
105  
106 declare 'CreditTypesTreatment',
107 as (Int | Str);
108  
109 declare 'LabelsEntry',
110 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::Filter::LabelsEntry'];
111  
112 coerce 'LabelsEntry',
113 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::Filter::LabelsEntry'->new($_) };
114  
115 declare 'RepeatedLabelsEntry',
116 as ArrayRef[LabelsEntry()];
117  
118 coerce 'RepeatedLabelsEntry',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::Filter::LabelsEntry'->new($_) } @$_ ] };
120  
121 declare 'MapStringLabelsEntry',
122 as HashRef[LabelsEntry()];
123  
124 declare 'CustomPeriod',
125 as InstanceOf['Google::Cloud::Billing::Budgets::V1::BudgetModel::CustomPeriod'];
126  
127 coerce 'CustomPeriod',
128 from HashRef, via { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::CustomPeriod'->new($_) };
129  
130 declare 'RepeatedCustomPeriod',
131 as ArrayRef[CustomPeriod()];
132  
133 coerce 'RepeatedCustomPeriod',
134 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Billing::Budgets::V1::BudgetModel::CustomPeriod'->new($_) } @$_ ] };
135  
136 declare 'MapStringCustomPeriod',
137 as HashRef[CustomPeriod()];
138  
139 1;
140  
141 __END__