| 1 | package Google::Cloud::Bigquery::Migration::V2::TranslationDetails::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 'TranslationDetails', | ||
| 11 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TranslationDetails']; | ||
| 12 | |||
| 13 | coerce 'TranslationDetails', | ||
| 14 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TranslationDetails'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedTranslationDetails', | ||
| 17 | as ArrayRef[TranslationDetails()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedTranslationDetails', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TranslationDetails'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringTranslationDetails', | ||
| 23 | as HashRef[TranslationDetails()]; | ||
| 24 | |||
| 25 | declare 'SuggestionConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionConfig']; | ||
| 27 | |||
| 28 | coerce 'SuggestionConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSuggestionConfig', | ||
| 32 | as ArrayRef[SuggestionConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSuggestionConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSuggestionConfig', | ||
| 38 | as HashRef[SuggestionConfig()]; | ||
| 39 | |||
| 40 | declare 'SuggestionStep', | ||
| 41 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionStep']; | ||
| 42 | |||
| 43 | coerce 'SuggestionStep', | ||
| 44 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionStep'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSuggestionStep', | ||
| 47 | as ArrayRef[SuggestionStep()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSuggestionStep', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionStep'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSuggestionStep', | ||
| 53 | as HashRef[SuggestionStep()]; | ||
| 54 | |||
| 55 | declare 'SuggestionType', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | declare 'RewriteTarget', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'SourceTargetMapping', | ||
| 62 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceTargetMapping']; | ||
| 63 | |||
| 64 | coerce 'SourceTargetMapping', | ||
| 65 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceTargetMapping'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedSourceTargetMapping', | ||
| 68 | as ArrayRef[SourceTargetMapping()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedSourceTargetMapping', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceTargetMapping'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringSourceTargetMapping', | ||
| 74 | as HashRef[SourceTargetMapping()]; | ||
| 75 | |||
| 76 | declare 'SourceSpec', | ||
| 77 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceSpec']; | ||
| 78 | |||
| 79 | coerce 'SourceSpec', | ||
| 80 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceSpec'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedSourceSpec', | ||
| 83 | as ArrayRef[SourceSpec()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedSourceSpec', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceSpec'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringSourceSpec', | ||
| 89 | as HashRef[SourceSpec()]; | ||
| 90 | |||
| 91 | declare 'TargetSpec', | ||
| 92 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TargetSpec']; | ||
| 93 | |||
| 94 | coerce 'TargetSpec', | ||
| 95 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TargetSpec'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedTargetSpec', | ||
| 98 | as ArrayRef[TargetSpec()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedTargetSpec', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TargetSpec'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringTargetSpec', | ||
| 104 | as HashRef[TargetSpec()]; | ||
| 105 | |||
| 106 | declare 'Literal', | ||
| 107 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::Literal']; | ||
| 108 | |||
| 109 | coerce 'Literal', | ||
| 110 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::Literal'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedLiteral', | ||
| 113 | as ArrayRef[Literal()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedLiteral', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::Literal'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringLiteral', | ||
| 119 | as HashRef[Literal()]; | ||
| 120 | |||
| 121 | declare 'SourceEnvironment', | ||
| 122 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceEnvironment']; | ||
| 123 | |||
| 124 | coerce 'SourceEnvironment', | ||
| 125 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceEnvironment'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedSourceEnvironment', | ||
| 128 | as ArrayRef[SourceEnvironment()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedSourceEnvironment', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceEnvironment'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringSourceEnvironment', | ||
| 134 | as HashRef[SourceEnvironment()]; | ||
| 135 | |||
| 136 | 1; | ||
| 137 | |||
| 138 | __END__ |