| 1 | package Google::Cloud::Datalabeling::V1beta1::EvaluationJob::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 'EvaluationJob', | ||
| 11 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJob']; | ||
| 12 | |||
| 13 | coerce 'EvaluationJob', | ||
| 14 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJob'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEvaluationJob', | ||
| 17 | as ArrayRef[EvaluationJob()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEvaluationJob', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJob'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEvaluationJob', | ||
| 23 | as HashRef[EvaluationJob()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'EvaluationJobConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig']; | ||
| 30 | |||
| 31 | coerce 'EvaluationJobConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedEvaluationJobConfig', | ||
| 35 | as ArrayRef[EvaluationJobConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedEvaluationJobConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringEvaluationJobConfig', | ||
| 41 | as HashRef[EvaluationJobConfig()]; | ||
| 42 | |||
| 43 | declare 'BigqueryImportKeysEntry', | ||
| 44 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig::BigqueryImportKeysEntry']; | ||
| 45 | |||
| 46 | coerce 'BigqueryImportKeysEntry', | ||
| 47 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig::BigqueryImportKeysEntry'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedBigqueryImportKeysEntry', | ||
| 50 | as ArrayRef[BigqueryImportKeysEntry()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedBigqueryImportKeysEntry', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig::BigqueryImportKeysEntry'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringBigqueryImportKeysEntry', | ||
| 56 | as HashRef[BigqueryImportKeysEntry()]; | ||
| 57 | |||
| 58 | declare 'EvaluationJobAlertConfig', | ||
| 59 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobAlertConfig']; | ||
| 60 | |||
| 61 | coerce 'EvaluationJobAlertConfig', | ||
| 62 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobAlertConfig'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedEvaluationJobAlertConfig', | ||
| 65 | as ArrayRef[EvaluationJobAlertConfig()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedEvaluationJobAlertConfig', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobAlertConfig'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringEvaluationJobAlertConfig', | ||
| 71 | as HashRef[EvaluationJobAlertConfig()]; | ||
| 72 | |||
| 73 | declare 'Attempt', | ||
| 74 | as InstanceOf['Google::Cloud::Datalabeling::V1beta1::EvaluationJob::Attempt']; | ||
| 75 | |||
| 76 | coerce 'Attempt', | ||
| 77 | from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::Attempt'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedAttempt', | ||
| 80 | as ArrayRef[Attempt()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedAttempt', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::EvaluationJob::Attempt'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringAttempt', | ||
| 86 | as HashRef[Attempt()]; | ||
| 87 | |||
| 88 | 1; | ||
| 89 | |||
| 90 | __END__ |