| 1 | package Google::Cloud::Securitycenter::V1::MitreAttack::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 'MitreAttack', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V1::MitreAttack::MitreAttack']; | ||
| 12 | |||
| 13 | coerce 'MitreAttack', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::MitreAttack::MitreAttack'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedMitreAttack', | ||
| 17 | as ArrayRef[MitreAttack()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedMitreAttack', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::MitreAttack::MitreAttack'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringMitreAttack', | ||
| 23 | as HashRef[MitreAttack()]; | ||
| 24 | |||
| 25 | declare 'Tactic', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Technique', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | 1; | ||
| 32 | |||
| 33 | __END__ |