| 1 | package Google::Cloud::Support::V2beta::SupportEventSubscription::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 'SupportEventSubscription', | ||
| 11 | as InstanceOf['Google::Cloud::Support::V2beta::SupportEventSubscription::SupportEventSubscription']; | ||
| 12 | |||
| 13 | coerce 'SupportEventSubscription', | ||
| 14 | from HashRef, via { 'Google::Cloud::Support::V2beta::SupportEventSubscription::SupportEventSubscription'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSupportEventSubscription', | ||
| 17 | as ArrayRef[SupportEventSubscription()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSupportEventSubscription', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Support::V2beta::SupportEventSubscription::SupportEventSubscription'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSupportEventSubscription', | ||
| 23 | as HashRef[SupportEventSubscription()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'FailureReason', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | 1; | ||
| 32 | |||
| 33 | __END__ |