| 1 | package Grafeas::V1::IntotoStatement::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 'InTotoStatement', | ||
| 11 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoStatement']; | ||
| 12 | |||
| 13 | coerce 'InTotoStatement', | ||
| 14 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoStatement'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedInTotoStatement', | ||
| 17 | as ArrayRef[InTotoStatement()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedInTotoStatement', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoStatement'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringInTotoStatement', | ||
| 23 | as HashRef[InTotoStatement()]; | ||
| 24 | |||
| 25 | declare 'Subject', | ||
| 26 | as InstanceOf['Grafeas::V1::IntotoStatement::Subject']; | ||
| 27 | |||
| 28 | coerce 'Subject', | ||
| 29 | from HashRef, via { 'Grafeas::V1::IntotoStatement::Subject'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSubject', | ||
| 32 | as ArrayRef[Subject()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSubject', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::Subject'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSubject', | ||
| 38 | as HashRef[Subject()]; | ||
| 39 | |||
| 40 | declare 'DigestEntry', | ||
| 41 | as InstanceOf['Grafeas::V1::IntotoStatement::Subject::DigestEntry']; | ||
| 42 | |||
| 43 | coerce 'DigestEntry', | ||
| 44 | from HashRef, via { 'Grafeas::V1::IntotoStatement::Subject::DigestEntry'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedDigestEntry', | ||
| 47 | as ArrayRef[DigestEntry()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedDigestEntry', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::Subject::DigestEntry'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringDigestEntry', | ||
| 53 | as HashRef[DigestEntry()]; | ||
| 54 | |||
| 55 | declare 'InTotoSlsaProvenanceV1', | ||
| 56 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1']; | ||
| 57 | |||
| 58 | coerce 'InTotoSlsaProvenanceV1', | ||
| 59 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedInTotoSlsaProvenanceV1', | ||
| 62 | as ArrayRef[InTotoSlsaProvenanceV1()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedInTotoSlsaProvenanceV1', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringInTotoSlsaProvenanceV1', | ||
| 68 | as HashRef[InTotoSlsaProvenanceV1()]; | ||
| 69 | |||
| 70 | declare 'SlsaProvenanceV1', | ||
| 71 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::SlsaProvenanceV1']; | ||
| 72 | |||
| 73 | coerce 'SlsaProvenanceV1', | ||
| 74 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::SlsaProvenanceV1'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedSlsaProvenanceV1', | ||
| 77 | as ArrayRef[SlsaProvenanceV1()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedSlsaProvenanceV1', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::SlsaProvenanceV1'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringSlsaProvenanceV1', | ||
| 83 | as HashRef[SlsaProvenanceV1()]; | ||
| 84 | |||
| 85 | declare 'BuildDefinition', | ||
| 86 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::BuildDefinition']; | ||
| 87 | |||
| 88 | coerce 'BuildDefinition', | ||
| 89 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::BuildDefinition'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedBuildDefinition', | ||
| 92 | as ArrayRef[BuildDefinition()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedBuildDefinition', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::BuildDefinition'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringBuildDefinition', | ||
| 98 | as HashRef[BuildDefinition()]; | ||
| 99 | |||
| 100 | declare 'ResourceDescriptor', | ||
| 101 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor']; | ||
| 102 | |||
| 103 | coerce 'ResourceDescriptor', | ||
| 104 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedResourceDescriptor', | ||
| 107 | as ArrayRef[ResourceDescriptor()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedResourceDescriptor', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringResourceDescriptor', | ||
| 113 | as HashRef[ResourceDescriptor()]; | ||
| 114 | |||
| 115 | declare 'DigestEntry', | ||
| 116 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor::DigestEntry']; | ||
| 117 | |||
| 118 | coerce 'DigestEntry', | ||
| 119 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor::DigestEntry'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedDigestEntry', | ||
| 122 | as ArrayRef[DigestEntry()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedDigestEntry', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor::DigestEntry'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringDigestEntry', | ||
| 128 | as HashRef[DigestEntry()]; | ||
| 129 | |||
| 130 | declare 'AnnotationsEntry', | ||
| 131 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor::AnnotationsEntry']; | ||
| 132 | |||
| 133 | coerce 'AnnotationsEntry', | ||
| 134 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor::AnnotationsEntry'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedAnnotationsEntry', | ||
| 137 | as ArrayRef[AnnotationsEntry()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedAnnotationsEntry', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ResourceDescriptor::AnnotationsEntry'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringAnnotationsEntry', | ||
| 143 | as HashRef[AnnotationsEntry()]; | ||
| 144 | |||
| 145 | declare 'RunDetails', | ||
| 146 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::RunDetails']; | ||
| 147 | |||
| 148 | coerce 'RunDetails', | ||
| 149 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::RunDetails'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedRunDetails', | ||
| 152 | as ArrayRef[RunDetails()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedRunDetails', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::RunDetails'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringRunDetails', | ||
| 158 | as HashRef[RunDetails()]; | ||
| 159 | |||
| 160 | declare 'ProvenanceBuilder', | ||
| 161 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ProvenanceBuilder']; | ||
| 162 | |||
| 163 | coerce 'ProvenanceBuilder', | ||
| 164 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ProvenanceBuilder'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedProvenanceBuilder', | ||
| 167 | as ArrayRef[ProvenanceBuilder()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedProvenanceBuilder', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ProvenanceBuilder'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringProvenanceBuilder', | ||
| 173 | as HashRef[ProvenanceBuilder()]; | ||
| 174 | |||
| 175 | declare 'VersionEntry', | ||
| 176 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ProvenanceBuilder::VersionEntry']; | ||
| 177 | |||
| 178 | coerce 'VersionEntry', | ||
| 179 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ProvenanceBuilder::VersionEntry'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedVersionEntry', | ||
| 182 | as ArrayRef[VersionEntry()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedVersionEntry', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::ProvenanceBuilder::VersionEntry'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringVersionEntry', | ||
| 188 | as HashRef[VersionEntry()]; | ||
| 189 | |||
| 190 | declare 'BuildMetadata', | ||
| 191 | as InstanceOf['Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::BuildMetadata']; | ||
| 192 | |||
| 193 | coerce 'BuildMetadata', | ||
| 194 | from HashRef, via { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::BuildMetadata'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedBuildMetadata', | ||
| 197 | as ArrayRef[BuildMetadata()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedBuildMetadata', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::IntotoStatement::InTotoSlsaProvenanceV1::BuildMetadata'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringBuildMetadata', | ||
| 203 | as HashRef[BuildMetadata()]; | ||
| 204 | |||
| 205 | 1; | ||
| 206 | |||
| 207 | __END__ |