| 1 | package Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::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 'FeatureSpec', | ||
| 11 | as InstanceOf['Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::FeatureSpec']; | ||
| 12 | |||
| 13 | coerce 'FeatureSpec', | ||
| 14 | from HashRef, via { 'Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::FeatureSpec'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedFeatureSpec', | ||
| 17 | as ArrayRef[FeatureSpec()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedFeatureSpec', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::FeatureSpec'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringFeatureSpec', | ||
| 23 | as HashRef[FeatureSpec()]; | ||
| 24 | |||
| 25 | declare 'FeatureState', | ||
| 26 | as InstanceOf['Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::FeatureState']; | ||
| 27 | |||
| 28 | coerce 'FeatureState', | ||
| 29 | from HashRef, via { 'Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::FeatureState'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedFeatureState', | ||
| 32 | as ArrayRef[FeatureState()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedFeatureState', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkehub::Rbacrolebindingactuation::V1::Rbacrolebindingactuation::FeatureState'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringFeatureState', | ||
| 38 | as HashRef[FeatureState()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |