| 1 | package Google::Cloud::Securitycenter::V1::AgentAnomaly::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 'AgentAnomaly', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V1::AgentAnomaly::AgentAnomaly']; | ||
| 12 | |||
| 13 | coerce 'AgentAnomaly', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::AgentAnomaly::AgentAnomaly'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAgentAnomaly', | ||
| 17 | as ArrayRef[AgentAnomaly()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAgentAnomaly', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AgentAnomaly::AgentAnomaly'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAgentAnomaly', | ||
| 23 | as HashRef[AgentAnomaly()]; | ||
| 24 | |||
| 25 | declare 'DetectorReference', | ||
| 26 | as InstanceOf['Google::Cloud::Securitycenter::V1::AgentAnomaly::DetectorReference']; | ||
| 27 | |||
| 28 | coerce 'DetectorReference', | ||
| 29 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::AgentAnomaly::DetectorReference'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDetectorReference', | ||
| 32 | as ArrayRef[DetectorReference()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDetectorReference', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AgentAnomaly::DetectorReference'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDetectorReference', | ||
| 38 | as HashRef[DetectorReference()]; | ||
| 39 | |||
| 40 | declare 'Severity', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'InvocationReference', | ||
| 44 | as InstanceOf['Google::Cloud::Securitycenter::V1::AgentAnomaly::InvocationReference']; | ||
| 45 | |||
| 46 | coerce 'InvocationReference', | ||
| 47 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::AgentAnomaly::InvocationReference'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedInvocationReference', | ||
| 50 | as ArrayRef[InvocationReference()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedInvocationReference', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AgentAnomaly::InvocationReference'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringInvocationReference', | ||
| 56 | as HashRef[InvocationReference()]; | ||
| 57 | |||
| 58 | 1; | ||
| 59 | |||
| 60 | __END__ |