| 1 | package Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::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 'ResourceErrorDetail', | ||
| 11 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ResourceErrorDetail']; | ||
| 12 | |||
| 13 | coerce 'ResourceErrorDetail', | ||
| 14 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ResourceErrorDetail'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedResourceErrorDetail', | ||
| 17 | as ArrayRef[ResourceErrorDetail()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedResourceErrorDetail', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ResourceErrorDetail'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringResourceErrorDetail', | ||
| 23 | as HashRef[ResourceErrorDetail()]; | ||
| 24 | |||
| 25 | declare 'ErrorDetail', | ||
| 26 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ErrorDetail']; | ||
| 27 | |||
| 28 | coerce 'ErrorDetail', | ||
| 29 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ErrorDetail'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedErrorDetail', | ||
| 32 | as ArrayRef[ErrorDetail()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedErrorDetail', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ErrorDetail'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringErrorDetail', | ||
| 38 | as HashRef[ErrorDetail()]; | ||
| 39 | |||
| 40 | declare 'ErrorLocation', | ||
| 41 | as InstanceOf['Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ErrorLocation']; | ||
| 42 | |||
| 43 | coerce 'ErrorLocation', | ||
| 44 | from HashRef, via { 'Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ErrorLocation'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedErrorLocation', | ||
| 47 | as ArrayRef[ErrorLocation()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedErrorLocation', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::ErrorLocation'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringErrorLocation', | ||
| 53 | as HashRef[ErrorLocation()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |