| 1 | package Google::Cloud::Channel::V1::Common::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 'EduData', | ||
| 11 | as InstanceOf['Google::Cloud::Channel::V1::Common::EduData']; | ||
| 12 | |||
| 13 | coerce 'EduData', | ||
| 14 | from HashRef, via { 'Google::Cloud::Channel::V1::Common::EduData'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEduData', | ||
| 17 | as ArrayRef[EduData()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEduData', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Common::EduData'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEduData', | ||
| 23 | as HashRef[EduData()]; | ||
| 24 | |||
| 25 | declare 'InstituteType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'InstituteSize', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'CloudIdentityInfo', | ||
| 32 | as InstanceOf['Google::Cloud::Channel::V1::Common::CloudIdentityInfo']; | ||
| 33 | |||
| 34 | coerce 'CloudIdentityInfo', | ||
| 35 | from HashRef, via { 'Google::Cloud::Channel::V1::Common::CloudIdentityInfo'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedCloudIdentityInfo', | ||
| 38 | as ArrayRef[CloudIdentityInfo()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedCloudIdentityInfo', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Common::CloudIdentityInfo'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringCloudIdentityInfo', | ||
| 44 | as HashRef[CloudIdentityInfo()]; | ||
| 45 | |||
| 46 | declare 'CustomerType', | ||
| 47 | as (Int | Str); | ||
| 48 | |||
| 49 | declare 'Value', | ||
| 50 | as InstanceOf['Google::Cloud::Channel::V1::Common::Value']; | ||
| 51 | |||
| 52 | coerce 'Value', | ||
| 53 | from HashRef, via { 'Google::Cloud::Channel::V1::Common::Value'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedValue', | ||
| 56 | as ArrayRef[Value()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedValue', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Common::Value'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringValue', | ||
| 62 | as HashRef[Value()]; | ||
| 63 | |||
| 64 | declare 'AdminUser', | ||
| 65 | as InstanceOf['Google::Cloud::Channel::V1::Common::AdminUser']; | ||
| 66 | |||
| 67 | coerce 'AdminUser', | ||
| 68 | from HashRef, via { 'Google::Cloud::Channel::V1::Common::AdminUser'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedAdminUser', | ||
| 71 | as ArrayRef[AdminUser()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedAdminUser', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Common::AdminUser'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringAdminUser', | ||
| 77 | as HashRef[AdminUser()]; | ||
| 78 | |||
| 79 | 1; | ||
| 80 | |||
| 81 | __END__ |