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