| 1 | package Grafeas::V1::DsseAttestation::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 'DSSEAttestationNote', | ||
| 11 | as InstanceOf['Grafeas::V1::DsseAttestation::DSSEAttestationNote']; | ||
| 12 | |||
| 13 | coerce 'DSSEAttestationNote', | ||
| 14 | from HashRef, via { 'Grafeas::V1::DsseAttestation::DSSEAttestationNote'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDSSEAttestationNote', | ||
| 17 | as ArrayRef[DSSEAttestationNote()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDSSEAttestationNote', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::DsseAttestation::DSSEAttestationNote'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDSSEAttestationNote', | ||
| 23 | as HashRef[DSSEAttestationNote()]; | ||
| 24 | |||
| 25 | declare 'DSSEHint', | ||
| 26 | as InstanceOf['Grafeas::V1::DsseAttestation::DSSEAttestationNote::DSSEHint']; | ||
| 27 | |||
| 28 | coerce 'DSSEHint', | ||
| 29 | from HashRef, via { 'Grafeas::V1::DsseAttestation::DSSEAttestationNote::DSSEHint'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDSSEHint', | ||
| 32 | as ArrayRef[DSSEHint()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDSSEHint', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::DsseAttestation::DSSEAttestationNote::DSSEHint'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDSSEHint', | ||
| 38 | as HashRef[DSSEHint()]; | ||
| 39 | |||
| 40 | declare 'DSSEAttestationOccurrence', | ||
| 41 | as InstanceOf['Grafeas::V1::DsseAttestation::DSSEAttestationOccurrence']; | ||
| 42 | |||
| 43 | coerce 'DSSEAttestationOccurrence', | ||
| 44 | from HashRef, via { 'Grafeas::V1::DsseAttestation::DSSEAttestationOccurrence'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedDSSEAttestationOccurrence', | ||
| 47 | as ArrayRef[DSSEAttestationOccurrence()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedDSSEAttestationOccurrence', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::DsseAttestation::DSSEAttestationOccurrence'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringDSSEAttestationOccurrence', | ||
| 53 | as HashRef[DSSEAttestationOccurrence()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |