| 1 | package Google::Cloud::Policytroubleshooter::V1::Explanations::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 'AccessState', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'HeuristicRelevance', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'AccessTuple', | ||
| 17 | as InstanceOf['Google::Cloud::Policytroubleshooter::V1::Explanations::AccessTuple']; | ||
| 18 | |||
| 19 | coerce 'AccessTuple', | ||
| 20 | from HashRef, via { 'Google::Cloud::Policytroubleshooter::V1::Explanations::AccessTuple'->new($_) }; | ||
| 21 | |||
| 22 | declare 'RepeatedAccessTuple', | ||
| 23 | as ArrayRef[AccessTuple()]; | ||
| 24 | |||
| 25 | coerce 'RepeatedAccessTuple', | ||
| 26 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Policytroubleshooter::V1::Explanations::AccessTuple'->new($_) } @$_ ] }; | ||
| 27 | |||
| 28 | declare 'MapStringAccessTuple', | ||
| 29 | as HashRef[AccessTuple()]; | ||
| 30 | |||
| 31 | declare 'ExplainedPolicy', | ||
| 32 | as InstanceOf['Google::Cloud::Policytroubleshooter::V1::Explanations::ExplainedPolicy']; | ||
| 33 | |||
| 34 | coerce 'ExplainedPolicy', | ||
| 35 | from HashRef, via { 'Google::Cloud::Policytroubleshooter::V1::Explanations::ExplainedPolicy'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedExplainedPolicy', | ||
| 38 | as ArrayRef[ExplainedPolicy()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedExplainedPolicy', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Policytroubleshooter::V1::Explanations::ExplainedPolicy'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringExplainedPolicy', | ||
| 44 | as HashRef[ExplainedPolicy()]; | ||
| 45 | |||
| 46 | declare 'BindingExplanation', | ||
| 47 | as InstanceOf['Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation']; | ||
| 48 | |||
| 49 | coerce 'BindingExplanation', | ||
| 50 | from HashRef, via { 'Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedBindingExplanation', | ||
| 53 | as ArrayRef[BindingExplanation()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedBindingExplanation', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringBindingExplanation', | ||
| 59 | as HashRef[BindingExplanation()]; | ||
| 60 | |||
| 61 | declare 'RolePermission', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'Membership', | ||
| 65 | as (Int | Str); | ||
| 66 | |||
| 67 | declare 'AnnotatedMembership', | ||
| 68 | as InstanceOf['Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation::AnnotatedMembership']; | ||
| 69 | |||
| 70 | coerce 'AnnotatedMembership', | ||
| 71 | from HashRef, via { 'Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation::AnnotatedMembership'->new($_) }; | ||
| 72 | |||
| 73 | declare 'RepeatedAnnotatedMembership', | ||
| 74 | as ArrayRef[AnnotatedMembership()]; | ||
| 75 | |||
| 76 | coerce 'RepeatedAnnotatedMembership', | ||
| 77 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation::AnnotatedMembership'->new($_) } @$_ ] }; | ||
| 78 | |||
| 79 | declare 'MapStringAnnotatedMembership', | ||
| 80 | as HashRef[AnnotatedMembership()]; | ||
| 81 | |||
| 82 | declare 'MembershipsEntry', | ||
| 83 | as InstanceOf['Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation::MembershipsEntry']; | ||
| 84 | |||
| 85 | coerce 'MembershipsEntry', | ||
| 86 | from HashRef, via { 'Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation::MembershipsEntry'->new($_) }; | ||
| 87 | |||
| 88 | declare 'RepeatedMembershipsEntry', | ||
| 89 | as ArrayRef[MembershipsEntry()]; | ||
| 90 | |||
| 91 | coerce 'RepeatedMembershipsEntry', | ||
| 92 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Policytroubleshooter::V1::Explanations::BindingExplanation::MembershipsEntry'->new($_) } @$_ ] }; | ||
| 93 | |||
| 94 | declare 'MapStringMembershipsEntry', | ||
| 95 | as HashRef[MembershipsEntry()]; | ||
| 96 | |||
| 97 | 1; | ||
| 98 | |||
| 99 | __END__ |