| 1 | package Google::Cloud::Video::Stitcher::V1::Slates::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 'Slate', | ||
| 11 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::Slates::Slate']; | ||
| 12 | |||
| 13 | coerce 'Slate', | ||
| 14 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::Slates::Slate'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSlate', | ||
| 17 | as ArrayRef[Slate()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSlate', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::Slates::Slate'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSlate', | ||
| 23 | as HashRef[Slate()]; | ||
| 24 | |||
| 25 | declare 'GamSlate', | ||
| 26 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::Slates::Slate::GamSlate']; | ||
| 27 | |||
| 28 | coerce 'GamSlate', | ||
| 29 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::Slates::Slate::GamSlate'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGamSlate', | ||
| 32 | as ArrayRef[GamSlate()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGamSlate', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::Slates::Slate::GamSlate'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGamSlate', | ||
| 38 | as HashRef[GamSlate()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |