| 1 | package Google::Cloud::Capacityplanner::V1beta::FutureReservation::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 'FutureReservation', | ||
| 11 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation']; | ||
| 12 | |||
| 13 | coerce 'FutureReservation', | ||
| 14 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedFutureReservation', | ||
| 17 | as ArrayRef[FutureReservation()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedFutureReservation', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringFutureReservation', | ||
| 23 | as HashRef[FutureReservation()]; | ||
| 24 | |||
| 25 | declare 'SpecificSKUProperties', | ||
| 26 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::SpecificSKUProperties']; | ||
| 27 | |||
| 28 | coerce 'SpecificSKUProperties', | ||
| 29 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::SpecificSKUProperties'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSpecificSKUProperties', | ||
| 32 | as ArrayRef[SpecificSKUProperties()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSpecificSKUProperties', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::SpecificSKUProperties'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSpecificSKUProperties', | ||
| 38 | as HashRef[SpecificSKUProperties()]; | ||
| 39 | |||
| 40 | declare 'TimeWindow', | ||
| 41 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::TimeWindow']; | ||
| 42 | |||
| 43 | coerce 'TimeWindow', | ||
| 44 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::TimeWindow'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTimeWindow', | ||
| 47 | as ArrayRef[TimeWindow()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTimeWindow', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::TimeWindow'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTimeWindow', | ||
| 53 | as HashRef[TimeWindow()]; | ||
| 54 | |||
| 55 | declare 'Status', | ||
| 56 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::Status']; | ||
| 57 | |||
| 58 | coerce 'Status', | ||
| 59 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::Status'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedStatus', | ||
| 62 | as ArrayRef[Status()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedStatus', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::FutureReservation::FutureReservation::Status'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringStatus', | ||
| 68 | as HashRef[Status()]; | ||
| 69 | |||
| 70 | declare 'ProcurementStatus', | ||
| 71 | as (Int | Str); | ||
| 72 | |||
| 73 | 1; | ||
| 74 | |||
| 75 | __END__ |