| 1 | package Google::Cloud::Video::Stitcher::V1::VodConfigs::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 'VodConfig', | ||
| 11 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::VodConfigs::VodConfig']; | ||
| 12 | |||
| 13 | coerce 'VodConfig', | ||
| 14 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::VodConfigs::VodConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedVodConfig', | ||
| 17 | as ArrayRef[VodConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedVodConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::VodConfigs::VodConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringVodConfig', | ||
| 23 | as HashRef[VodConfig()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'GamVodConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::VodConfigs::GamVodConfig']; | ||
| 30 | |||
| 31 | coerce 'GamVodConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::VodConfigs::GamVodConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedGamVodConfig', | ||
| 35 | as ArrayRef[GamVodConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedGamVodConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::VodConfigs::GamVodConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringGamVodConfig', | ||
| 41 | as HashRef[GamVodConfig()]; | ||
| 42 | |||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ |