| 1 | package Google::Cloud::Apphub::V1::Attributes::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 'Attributes', | ||
| 11 | as InstanceOf['Google::Cloud::Apphub::V1::Attributes::Attributes']; | ||
| 12 | |||
| 13 | coerce 'Attributes', | ||
| 14 | from HashRef, via { 'Google::Cloud::Apphub::V1::Attributes::Attributes'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAttributes', | ||
| 17 | as ArrayRef[Attributes()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAttributes', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Attributes::Attributes'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAttributes', | ||
| 23 | as HashRef[Attributes()]; | ||
| 24 | |||
| 25 | declare 'Criticality', | ||
| 26 | as InstanceOf['Google::Cloud::Apphub::V1::Attributes::Criticality']; | ||
| 27 | |||
| 28 | coerce 'Criticality', | ||
| 29 | from HashRef, via { 'Google::Cloud::Apphub::V1::Attributes::Criticality'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedCriticality', | ||
| 32 | as ArrayRef[Criticality()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedCriticality', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Attributes::Criticality'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringCriticality', | ||
| 38 | as HashRef[Criticality()]; | ||
| 39 | |||
| 40 | declare 'Type', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'Environment', | ||
| 44 | as InstanceOf['Google::Cloud::Apphub::V1::Attributes::Environment']; | ||
| 45 | |||
| 46 | coerce 'Environment', | ||
| 47 | from HashRef, via { 'Google::Cloud::Apphub::V1::Attributes::Environment'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedEnvironment', | ||
| 50 | as ArrayRef[Environment()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedEnvironment', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Attributes::Environment'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringEnvironment', | ||
| 56 | as HashRef[Environment()]; | ||
| 57 | |||
| 58 | declare 'Type', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'ContactInfo', | ||
| 62 | as InstanceOf['Google::Cloud::Apphub::V1::Attributes::ContactInfo']; | ||
| 63 | |||
| 64 | coerce 'ContactInfo', | ||
| 65 | from HashRef, via { 'Google::Cloud::Apphub::V1::Attributes::ContactInfo'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedContactInfo', | ||
| 68 | as ArrayRef[ContactInfo()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedContactInfo', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Attributes::ContactInfo'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringContactInfo', | ||
| 74 | as HashRef[ContactInfo()]; | ||
| 75 | |||
| 76 | 1; | ||
| 77 | |||
| 78 | __END__ |