| 1 | package Google::Cloud::Managedidentities::V1::Resource::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 'Domain', | ||
| 11 | as InstanceOf['Google::Cloud::Managedidentities::V1::Resource::Domain']; | ||
| 12 | |||
| 13 | coerce 'Domain', | ||
| 14 | from HashRef, via { 'Google::Cloud::Managedidentities::V1::Resource::Domain'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDomain', | ||
| 17 | as ArrayRef[Domain()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDomain', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Managedidentities::V1::Resource::Domain'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDomain', | ||
| 23 | as HashRef[Domain()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'LabelsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Managedidentities::V1::Resource::Domain::LabelsEntry']; | ||
| 30 | |||
| 31 | coerce 'LabelsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Managedidentities::V1::Resource::Domain::LabelsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLabelsEntry', | ||
| 35 | as ArrayRef[LabelsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLabelsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Managedidentities::V1::Resource::Domain::LabelsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLabelsEntry', | ||
| 41 | as HashRef[LabelsEntry()]; | ||
| 42 | |||
| 43 | declare 'Trust', | ||
| 44 | as InstanceOf['Google::Cloud::Managedidentities::V1::Resource::Trust']; | ||
| 45 | |||
| 46 | coerce 'Trust', | ||
| 47 | from HashRef, via { 'Google::Cloud::Managedidentities::V1::Resource::Trust'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedTrust', | ||
| 50 | as ArrayRef[Trust()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedTrust', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Managedidentities::V1::Resource::Trust'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringTrust', | ||
| 56 | as HashRef[Trust()]; | ||
| 57 | |||
| 58 | declare 'State', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'TrustType', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'TrustDirection', | ||
| 65 | as (Int | Str); | ||
| 66 | |||
| 67 | 1; | ||
| 68 | |||
| 69 | __END__ |