| 1 | package Google::Cloud::Baremetalsolution::V2::Baremetalsolution::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::Baremetalsolution::V2::Baremetalsolution::OperationMetadata']; | ||
| 12 | |||
| 13 | coerce 'OperationMetadata', | ||
| 14 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Baremetalsolution::OperationMetadata'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedOperationMetadata', | ||
| 17 | as ArrayRef[OperationMetadata()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedOperationMetadata', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Baremetalsolution::OperationMetadata'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringOperationMetadata', | ||
| 23 | as HashRef[OperationMetadata()]; | ||
| 24 | |||
| 25 | declare 'ResetInstanceResponse', | ||
| 26 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Baremetalsolution::ResetInstanceResponse']; | ||
| 27 | |||
| 28 | coerce 'ResetInstanceResponse', | ||
| 29 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Baremetalsolution::ResetInstanceResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedResetInstanceResponse', | ||
| 32 | as ArrayRef[ResetInstanceResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedResetInstanceResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Baremetalsolution::ResetInstanceResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringResetInstanceResponse', | ||
| 38 | as HashRef[ResetInstanceResponse()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |