| 1 | package Google::Cloud::Optimization::V1::AsyncModel::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 'DataFormat', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'InputConfig', | ||
| 14 | as InstanceOf['Google::Cloud::Optimization::V1::AsyncModel::InputConfig']; | ||
| 15 | |||
| 16 | coerce 'InputConfig', | ||
| 17 | from HashRef, via { 'Google::Cloud::Optimization::V1::AsyncModel::InputConfig'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedInputConfig', | ||
| 20 | as ArrayRef[InputConfig()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedInputConfig', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::AsyncModel::InputConfig'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringInputConfig', | ||
| 26 | as HashRef[InputConfig()]; | ||
| 27 | |||
| 28 | declare 'OutputConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Optimization::V1::AsyncModel::OutputConfig']; | ||
| 30 | |||
| 31 | coerce 'OutputConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Optimization::V1::AsyncModel::OutputConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedOutputConfig', | ||
| 35 | as ArrayRef[OutputConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedOutputConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::AsyncModel::OutputConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringOutputConfig', | ||
| 41 | as HashRef[OutputConfig()]; | ||
| 42 | |||
| 43 | declare 'GcsSource', | ||
| 44 | as InstanceOf['Google::Cloud::Optimization::V1::AsyncModel::GcsSource']; | ||
| 45 | |||
| 46 | coerce 'GcsSource', | ||
| 47 | from HashRef, via { 'Google::Cloud::Optimization::V1::AsyncModel::GcsSource'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedGcsSource', | ||
| 50 | as ArrayRef[GcsSource()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedGcsSource', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::AsyncModel::GcsSource'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringGcsSource', | ||
| 56 | as HashRef[GcsSource()]; | ||
| 57 | |||
| 58 | declare 'GcsDestination', | ||
| 59 | as InstanceOf['Google::Cloud::Optimization::V1::AsyncModel::GcsDestination']; | ||
| 60 | |||
| 61 | coerce 'GcsDestination', | ||
| 62 | from HashRef, via { 'Google::Cloud::Optimization::V1::AsyncModel::GcsDestination'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedGcsDestination', | ||
| 65 | as ArrayRef[GcsDestination()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedGcsDestination', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::AsyncModel::GcsDestination'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringGcsDestination', | ||
| 71 | as HashRef[GcsDestination()]; | ||
| 72 | |||
| 73 | declare 'AsyncModelMetadata', | ||
| 74 | as InstanceOf['Google::Cloud::Optimization::V1::AsyncModel::AsyncModelMetadata']; | ||
| 75 | |||
| 76 | coerce 'AsyncModelMetadata', | ||
| 77 | from HashRef, via { 'Google::Cloud::Optimization::V1::AsyncModel::AsyncModelMetadata'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedAsyncModelMetadata', | ||
| 80 | as ArrayRef[AsyncModelMetadata()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedAsyncModelMetadata', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::AsyncModel::AsyncModelMetadata'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringAsyncModelMetadata', | ||
| 86 | as HashRef[AsyncModelMetadata()]; | ||
| 87 | |||
| 88 | declare 'State', | ||
| 89 | as (Int | Str); | ||
| 90 | |||
| 91 | 1; | ||
| 92 | |||
| 93 | __END__ |