| 1 | package Google::Cloud::Video::Stitcher::V1::LiveConfigs::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 'AdTracking', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'LiveConfig', | ||
| 14 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::LiveConfigs::LiveConfig']; | ||
| 15 | |||
| 16 | coerce 'LiveConfig', | ||
| 17 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::LiveConfigs::LiveConfig'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedLiveConfig', | ||
| 20 | as ArrayRef[LiveConfig()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedLiveConfig', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::LiveConfigs::LiveConfig'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringLiveConfig', | ||
| 26 | as HashRef[LiveConfig()]; | ||
| 27 | |||
| 28 | declare 'State', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'StitchingPolicy', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'PrefetchConfig', | ||
| 35 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::LiveConfigs::PrefetchConfig']; | ||
| 36 | |||
| 37 | coerce 'PrefetchConfig', | ||
| 38 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::LiveConfigs::PrefetchConfig'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedPrefetchConfig', | ||
| 41 | as ArrayRef[PrefetchConfig()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedPrefetchConfig', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::LiveConfigs::PrefetchConfig'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringPrefetchConfig', | ||
| 47 | as HashRef[PrefetchConfig()]; | ||
| 48 | |||
| 49 | declare 'GamLiveConfig', | ||
| 50 | as InstanceOf['Google::Cloud::Video::Stitcher::V1::LiveConfigs::GamLiveConfig']; | ||
| 51 | |||
| 52 | coerce 'GamLiveConfig', | ||
| 53 | from HashRef, via { 'Google::Cloud::Video::Stitcher::V1::LiveConfigs::GamLiveConfig'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedGamLiveConfig', | ||
| 56 | as ArrayRef[GamLiveConfig()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedGamLiveConfig', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Video::Stitcher::V1::LiveConfigs::GamLiveConfig'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringGamLiveConfig', | ||
| 62 | as HashRef[GamLiveConfig()]; | ||
| 63 | |||
| 64 | 1; | ||
| 65 | |||
| 66 | __END__ |