| 1 | package Google::Cloud::Batch::V1alpha::ResourceAllowance::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 'ResourceAllowanceState', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'ResourceAllowance', | ||
| 17 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance']; | ||
| 18 | |||
| 19 | coerce 'ResourceAllowance', | ||
| 20 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance'->new($_) }; | ||
| 21 | |||
| 22 | declare 'RepeatedResourceAllowance', | ||
| 23 | as ArrayRef[ResourceAllowance()]; | ||
| 24 | |||
| 25 | coerce 'RepeatedResourceAllowance', | ||
| 26 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance'->new($_) } @$_ ] }; | ||
| 27 | |||
| 28 | declare 'MapStringResourceAllowance', | ||
| 29 | as HashRef[ResourceAllowance()]; | ||
| 30 | |||
| 31 | declare 'LabelsEntry', | ||
| 32 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance::LabelsEntry']; | ||
| 33 | |||
| 34 | coerce 'LabelsEntry', | ||
| 35 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance::LabelsEntry'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedLabelsEntry', | ||
| 38 | as ArrayRef[LabelsEntry()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedLabelsEntry', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance::LabelsEntry'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringLabelsEntry', | ||
| 44 | as HashRef[LabelsEntry()]; | ||
| 45 | |||
| 46 | declare 'UsageResourceAllowance', | ||
| 47 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowance']; | ||
| 48 | |||
| 49 | coerce 'UsageResourceAllowance', | ||
| 50 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowance'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedUsageResourceAllowance', | ||
| 53 | as ArrayRef[UsageResourceAllowance()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedUsageResourceAllowance', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowance'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringUsageResourceAllowance', | ||
| 59 | as HashRef[UsageResourceAllowance()]; | ||
| 60 | |||
| 61 | declare 'UsageResourceAllowanceSpec', | ||
| 62 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec']; | ||
| 63 | |||
| 64 | coerce 'UsageResourceAllowanceSpec', | ||
| 65 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedUsageResourceAllowanceSpec', | ||
| 68 | as ArrayRef[UsageResourceAllowanceSpec()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedUsageResourceAllowanceSpec', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringUsageResourceAllowanceSpec', | ||
| 74 | as HashRef[UsageResourceAllowanceSpec()]; | ||
| 75 | |||
| 76 | declare 'Limit', | ||
| 77 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec::Limit']; | ||
| 78 | |||
| 79 | coerce 'Limit', | ||
| 80 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec::Limit'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedLimit', | ||
| 83 | as ArrayRef[Limit()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedLimit', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceSpec::Limit'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringLimit', | ||
| 89 | as HashRef[Limit()]; | ||
| 90 | |||
| 91 | declare 'UsageResourceAllowanceStatus', | ||
| 92 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus']; | ||
| 93 | |||
| 94 | coerce 'UsageResourceAllowanceStatus', | ||
| 95 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedUsageResourceAllowanceStatus', | ||
| 98 | as ArrayRef[UsageResourceAllowanceStatus()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedUsageResourceAllowanceStatus', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringUsageResourceAllowanceStatus', | ||
| 104 | as HashRef[UsageResourceAllowanceStatus()]; | ||
| 105 | |||
| 106 | declare 'LimitStatus', | ||
| 107 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::LimitStatus']; | ||
| 108 | |||
| 109 | coerce 'LimitStatus', | ||
| 110 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::LimitStatus'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedLimitStatus', | ||
| 113 | as ArrayRef[LimitStatus()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedLimitStatus', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::LimitStatus'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringLimitStatus', | ||
| 119 | as HashRef[LimitStatus()]; | ||
| 120 | |||
| 121 | declare 'PeriodConsumption', | ||
| 122 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::PeriodConsumption']; | ||
| 123 | |||
| 124 | coerce 'PeriodConsumption', | ||
| 125 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::PeriodConsumption'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedPeriodConsumption', | ||
| 128 | as ArrayRef[PeriodConsumption()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedPeriodConsumption', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::PeriodConsumption'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringPeriodConsumption', | ||
| 134 | as HashRef[PeriodConsumption()]; | ||
| 135 | |||
| 136 | declare 'ConsumptionReport', | ||
| 137 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport']; | ||
| 138 | |||
| 139 | coerce 'ConsumptionReport', | ||
| 140 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedConsumptionReport', | ||
| 143 | as ArrayRef[ConsumptionReport()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedConsumptionReport', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringConsumptionReport', | ||
| 149 | as HashRef[ConsumptionReport()]; | ||
| 150 | |||
| 151 | declare 'LatestPeriodConsumptionsEntry', | ||
| 152 | as InstanceOf['Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport::LatestPeriodConsumptionsEntry']; | ||
| 153 | |||
| 154 | coerce 'LatestPeriodConsumptionsEntry', | ||
| 155 | from HashRef, via { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport::LatestPeriodConsumptionsEntry'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedLatestPeriodConsumptionsEntry', | ||
| 158 | as ArrayRef[LatestPeriodConsumptionsEntry()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedLatestPeriodConsumptionsEntry', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::ResourceAllowance::UsageResourceAllowanceStatus::ConsumptionReport::LatestPeriodConsumptionsEntry'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringLatestPeriodConsumptionsEntry', | ||
| 164 | as HashRef[LatestPeriodConsumptionsEntry()]; | ||
| 165 | |||
| 166 | 1; | ||
| 167 | |||
| 168 | __END__ |