| 1 | package Google::Cloud::Video::Stitcher::V1::StitchDetails::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 'VodStitchDetail', | ||
| 11 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::StitchDetails::VodStitchDetail']; | ||
| 12 | |||
| 13 | coerce 'VodStitchDetail', | ||
| 14 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::StitchDetails::VodStitchDetail'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedVodStitchDetail', | ||
| 17 | as ArrayRef[VodStitchDetail()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedVodStitchDetail', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::StitchDetails::VodStitchDetail'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringVodStitchDetail', | ||
| 23 | as HashRef[VodStitchDetail()]; | ||
| 24 | |||
| 25 | declare 'AdStitchDetail', | ||
| 26 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::StitchDetails::AdStitchDetail']; | ||
| 27 | |||
| 28 | coerce 'AdStitchDetail', | ||
| 29 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::StitchDetails::AdStitchDetail'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAdStitchDetail', | ||
| 32 | as ArrayRef[AdStitchDetail()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAdStitchDetail', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::StitchDetails::AdStitchDetail'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAdStitchDetail', | ||
| 38 | as HashRef[AdStitchDetail()]; | ||
| 39 | |||
| 40 | declare 'MediaEntry', | ||
| 41 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::StitchDetails::AdStitchDetail::MediaEntry']; | ||
| 42 | |||
| 43 | coerce 'MediaEntry', | ||
| 44 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::StitchDetails::AdStitchDetail::MediaEntry'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedMediaEntry', | ||
| 47 | as ArrayRef[MediaEntry()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedMediaEntry', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::StitchDetails::AdStitchDetail::MediaEntry'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringMediaEntry', | ||
| 53 | as HashRef[MediaEntry()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |