| 1 | package Google::Cloud::Connectors::V1::Runtime::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 'GetRuntimeConfigRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Connectors::V1::Runtime::GetRuntimeConfigRequest']; | ||
| 12 | |||
| 13 | coerce 'GetRuntimeConfigRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Connectors::V1::Runtime::GetRuntimeConfigRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGetRuntimeConfigRequest', | ||
| 17 | as ArrayRef[GetRuntimeConfigRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGetRuntimeConfigRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Runtime::GetRuntimeConfigRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGetRuntimeConfigRequest', | ||
| 23 | as HashRef[GetRuntimeConfigRequest()]; | ||
| 24 | |||
| 25 | declare 'RuntimeConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Connectors::V1::Runtime::RuntimeConfig']; | ||
| 27 | |||
| 28 | coerce 'RuntimeConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Connectors::V1::Runtime::RuntimeConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedRuntimeConfig', | ||
| 32 | as ArrayRef[RuntimeConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedRuntimeConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Runtime::RuntimeConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringRuntimeConfig', | ||
| 38 | as HashRef[RuntimeConfig()]; | ||
| 39 | |||
| 40 | declare 'State', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ |