| 1 | package Google::Cloud::Securitycenter::V1::Indicator::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 'Indicator', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V1::Indicator::Indicator']; | ||
| 12 | |||
| 13 | coerce 'Indicator', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedIndicator', | ||
| 17 | as ArrayRef[Indicator()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedIndicator', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringIndicator', | ||
| 23 | as HashRef[Indicator()]; | ||
| 24 | |||
| 25 | declare 'ProcessSignature', | ||
| 26 | as InstanceOf['Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature']; | ||
| 27 | |||
| 28 | coerce 'ProcessSignature', | ||
| 29 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedProcessSignature', | ||
| 32 | as ArrayRef[ProcessSignature()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedProcessSignature', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringProcessSignature', | ||
| 38 | as HashRef[ProcessSignature()]; | ||
| 39 | |||
| 40 | declare 'SignatureType', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'MemoryHashSignature', | ||
| 44 | as InstanceOf['Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::MemoryHashSignature']; | ||
| 45 | |||
| 46 | coerce 'MemoryHashSignature', | ||
| 47 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::MemoryHashSignature'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedMemoryHashSignature', | ||
| 50 | as ArrayRef[MemoryHashSignature()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedMemoryHashSignature', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::MemoryHashSignature'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringMemoryHashSignature', | ||
| 56 | as HashRef[MemoryHashSignature()]; | ||
| 57 | |||
| 58 | declare 'Detection', | ||
| 59 | as InstanceOf['Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::MemoryHashSignature::Detection']; | ||
| 60 | |||
| 61 | coerce 'Detection', | ||
| 62 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::MemoryHashSignature::Detection'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedDetection', | ||
| 65 | as ArrayRef[Detection()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedDetection', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::MemoryHashSignature::Detection'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringDetection', | ||
| 71 | as HashRef[Detection()]; | ||
| 72 | |||
| 73 | declare 'YaraRuleSignature', | ||
| 74 | as InstanceOf['Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::YaraRuleSignature']; | ||
| 75 | |||
| 76 | coerce 'YaraRuleSignature', | ||
| 77 | from HashRef, via { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::YaraRuleSignature'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedYaraRuleSignature', | ||
| 80 | as ArrayRef[YaraRuleSignature()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedYaraRuleSignature', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::Indicator::Indicator::ProcessSignature::YaraRuleSignature'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringYaraRuleSignature', | ||
| 86 | as HashRef[YaraRuleSignature()]; | ||
| 87 | |||
| 88 | 1; | ||
| 89 | |||
| 90 | __END__ |