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