| 1 | package Google::Cloud::Orchestration::Airflow::Service::V1::Operations::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 'OperationMetadata', | ||
| 11 | as InstanceOf['Google::Cloud::Orchestration::Airflow::Service::V1::Operations::OperationMetadata']; | ||
| 12 | |||
| 13 | coerce 'OperationMetadata', | ||
| 14 | from HashRef, via { 'Google::Cloud::Orchestration::Airflow::Service::V1::Operations::OperationMetadata'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedOperationMetadata', | ||
| 17 | as ArrayRef[OperationMetadata()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedOperationMetadata', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orchestration::Airflow::Service::V1::Operations::OperationMetadata'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringOperationMetadata', | ||
| 23 | as HashRef[OperationMetadata()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Type', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | 1; | ||
| 32 | |||
| 33 | __END__ |