| 1 | package Google::Monitoring::Dashboard::V1::Text::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 'Text', | ||
| 11 | as InstanceOf['Google::Monitoring::Dashboard::V1::Text::Text']; | ||
| 12 | |||
| 13 | coerce 'Text', | ||
| 14 | from HashRef, via { 'Google::Monitoring::Dashboard::V1::Text::Text'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedText', | ||
| 17 | as ArrayRef[Text()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedText', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::Dashboard::V1::Text::Text'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringText', | ||
| 23 | as HashRef[Text()]; | ||
| 24 | |||
| 25 | declare 'Format', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'TextStyle', | ||
| 29 | as InstanceOf['Google::Monitoring::Dashboard::V1::Text::Text::TextStyle']; | ||
| 30 | |||
| 31 | coerce 'TextStyle', | ||
| 32 | from HashRef, via { 'Google::Monitoring::Dashboard::V1::Text::Text::TextStyle'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedTextStyle', | ||
| 35 | as ArrayRef[TextStyle()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedTextStyle', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::Dashboard::V1::Text::Text::TextStyle'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringTextStyle', | ||
| 41 | as HashRef[TextStyle()]; | ||
| 42 | |||
| 43 | declare 'HorizontalAlignment', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'VerticalAlignment', | ||
| 47 | as (Int | Str); | ||
| 48 | |||
| 49 | declare 'PaddingSize', | ||
| 50 | as (Int | Str); | ||
| 51 | |||
| 52 | declare 'FontSize', | ||
| 53 | as (Int | Str); | ||
| 54 | |||
| 55 | declare 'PointerLocation', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | 1; | ||
| 59 | |||
| 60 | __END__ |