| 1 | package Google::Cloud::Agentregistry::V1::Skill::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 'Skill', | ||
| 11 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::Skill']; | ||
| 12 | |||
| 13 | coerce 'Skill', | ||
| 14 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::Skill'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSkill', | ||
| 17 | as ArrayRef[Skill()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSkill', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::Skill'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSkill', | ||
| 23 | as HashRef[Skill()]; | ||
| 24 | |||
| 25 | declare 'Type', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'State', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'TargetState', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'ScanningConfig', | ||
| 35 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::ScanningConfig']; | ||
| 36 | |||
| 37 | coerce 'ScanningConfig', | ||
| 38 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::ScanningConfig'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedScanningConfig', | ||
| 41 | as ArrayRef[ScanningConfig()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedScanningConfig', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::ScanningConfig'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringScanningConfig', | ||
| 47 | as HashRef[ScanningConfig()]; | ||
| 48 | |||
| 49 | declare 'Policy', | ||
| 50 | as (Int | Str); | ||
| 51 | |||
| 52 | declare 'Frontmatter', | ||
| 53 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::Frontmatter']; | ||
| 54 | |||
| 55 | coerce 'Frontmatter', | ||
| 56 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::Frontmatter'->new($_) }; | ||
| 57 | |||
| 58 | declare 'RepeatedFrontmatter', | ||
| 59 | as ArrayRef[Frontmatter()]; | ||
| 60 | |||
| 61 | coerce 'RepeatedFrontmatter', | ||
| 62 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::Frontmatter'->new($_) } @$_ ] }; | ||
| 63 | |||
| 64 | declare 'MapStringFrontmatter', | ||
| 65 | as HashRef[Frontmatter()]; | ||
| 66 | |||
| 67 | declare 'MetadataEntry', | ||
| 68 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::Frontmatter::MetadataEntry']; | ||
| 69 | |||
| 70 | coerce 'MetadataEntry', | ||
| 71 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::Frontmatter::MetadataEntry'->new($_) }; | ||
| 72 | |||
| 73 | declare 'RepeatedMetadataEntry', | ||
| 74 | as ArrayRef[MetadataEntry()]; | ||
| 75 | |||
| 76 | coerce 'RepeatedMetadataEntry', | ||
| 77 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::Frontmatter::MetadataEntry'->new($_) } @$_ ] }; | ||
| 78 | |||
| 79 | declare 'MapStringMetadataEntry', | ||
| 80 | as HashRef[MetadataEntry()]; | ||
| 81 | |||
| 82 | declare 'ArchiveUploadSource', | ||
| 83 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::ArchiveUploadSource']; | ||
| 84 | |||
| 85 | coerce 'ArchiveUploadSource', | ||
| 86 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::ArchiveUploadSource'->new($_) }; | ||
| 87 | |||
| 88 | declare 'RepeatedArchiveUploadSource', | ||
| 89 | as ArrayRef[ArchiveUploadSource()]; | ||
| 90 | |||
| 91 | coerce 'RepeatedArchiveUploadSource', | ||
| 92 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::ArchiveUploadSource'->new($_) } @$_ ] }; | ||
| 93 | |||
| 94 | declare 'MapStringArchiveUploadSource', | ||
| 95 | as HashRef[ArchiveUploadSource()]; | ||
| 96 | |||
| 97 | declare 'SkillRevision', | ||
| 98 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::SkillRevision']; | ||
| 99 | |||
| 100 | coerce 'SkillRevision', | ||
| 101 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::SkillRevision'->new($_) }; | ||
| 102 | |||
| 103 | declare 'RepeatedSkillRevision', | ||
| 104 | as ArrayRef[SkillRevision()]; | ||
| 105 | |||
| 106 | coerce 'RepeatedSkillRevision', | ||
| 107 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::SkillRevision'->new($_) } @$_ ] }; | ||
| 108 | |||
| 109 | declare 'MapStringSkillRevision', | ||
| 110 | as HashRef[SkillRevision()]; | ||
| 111 | |||
| 112 | declare 'State', | ||
| 113 | as (Int | Str); | ||
| 114 | |||
| 115 | declare 'ScanResult', | ||
| 116 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::SkillRevision::ScanResult']; | ||
| 117 | |||
| 118 | coerce 'ScanResult', | ||
| 119 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::SkillRevision::ScanResult'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedScanResult', | ||
| 122 | as ArrayRef[ScanResult()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedScanResult', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::SkillRevision::ScanResult'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringScanResult', | ||
| 128 | as HashRef[ScanResult()]; | ||
| 129 | |||
| 130 | declare 'ScanState', | ||
| 131 | as (Int | Str); | ||
| 132 | |||
| 133 | declare 'GcsSource', | ||
| 134 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::GcsSource']; | ||
| 135 | |||
| 136 | coerce 'GcsSource', | ||
| 137 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::GcsSource'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedGcsSource', | ||
| 140 | as ArrayRef[GcsSource()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedGcsSource', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::GcsSource'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringGcsSource', | ||
| 146 | as HashRef[GcsSource()]; | ||
| 147 | |||
| 148 | declare 'Publisher', | ||
| 149 | as InstanceOf['Google::Cloud::Agentregistry::V1::Skill::Publisher']; | ||
| 150 | |||
| 151 | coerce 'Publisher', | ||
| 152 | from HashRef, via { 'Google::Cloud::Agentregistry::V1::Skill::Publisher'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedPublisher', | ||
| 155 | as ArrayRef[Publisher()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedPublisher', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Skill::Publisher'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringPublisher', | ||
| 161 | as HashRef[Publisher()]; | ||
| 162 | |||
| 163 | declare 'PublisherTier', | ||
| 164 | as (Int | Str); | ||
| 165 | |||
| 166 | 1; | ||
| 167 | |||
| 168 | __END__ |