| 1 | package Google::Cloud::Securitycenter::V1beta1::Finding::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 'Finding', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V1beta1::Finding::Finding']; | ||
| 12 | |||
| 13 | coerce 'Finding', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V1beta1::Finding::Finding'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedFinding', | ||
| 17 | as ArrayRef[Finding()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedFinding', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1beta1::Finding::Finding'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringFinding', | ||
| 23 | as HashRef[Finding()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'SourcePropertiesEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Securitycenter::V1beta1::Finding::Finding::SourcePropertiesEntry']; | ||
| 30 | |||
| 31 | coerce 'SourcePropertiesEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Securitycenter::V1beta1::Finding::Finding::SourcePropertiesEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedSourcePropertiesEntry', | ||
| 35 | as ArrayRef[SourcePropertiesEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedSourcePropertiesEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1beta1::Finding::Finding::SourcePropertiesEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringSourcePropertiesEntry', | ||
| 41 | as HashRef[SourcePropertiesEntry()]; | ||
| 42 | |||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ |