| 1 | package Google::Api::Logging::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 'Logging', | ||
| 11 | as InstanceOf['Google::Api::Logging::Logging']; | ||
| 12 | |||
| 13 | coerce 'Logging', | ||
| 14 | from HashRef, via { 'Google::Api::Logging::Logging'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedLogging', | ||
| 17 | as ArrayRef[Logging()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedLogging', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Api::Logging::Logging'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringLogging', | ||
| 23 | as HashRef[Logging()]; | ||
| 24 | |||
| 25 | declare 'LoggingDestination', | ||
| 26 | as InstanceOf['Google::Api::Logging::Logging::LoggingDestination']; | ||
| 27 | |||
| 28 | coerce 'LoggingDestination', | ||
| 29 | from HashRef, via { 'Google::Api::Logging::Logging::LoggingDestination'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedLoggingDestination', | ||
| 32 | as ArrayRef[LoggingDestination()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedLoggingDestination', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Api::Logging::Logging::LoggingDestination'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringLoggingDestination', | ||
| 38 | as HashRef[LoggingDestination()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |