| 1 | package Google::Cloud::Baremetalsolution::V2::Osimage::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 'OSImage', | ||
| 11 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Osimage::OSImage']; | ||
| 12 | |||
| 13 | coerce 'OSImage', | ||
| 14 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Osimage::OSImage'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedOSImage', | ||
| 17 | as ArrayRef[OSImage()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedOSImage', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Osimage::OSImage'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringOSImage', | ||
| 23 | as HashRef[OSImage()]; | ||
| 24 | |||
| 25 | declare 'ListOSImagesRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Osimage::ListOSImagesRequest']; | ||
| 27 | |||
| 28 | coerce 'ListOSImagesRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Osimage::ListOSImagesRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListOSImagesRequest', | ||
| 32 | as ArrayRef[ListOSImagesRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListOSImagesRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Osimage::ListOSImagesRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListOSImagesRequest', | ||
| 38 | as HashRef[ListOSImagesRequest()]; | ||
| 39 | |||
| 40 | declare 'ListOSImagesResponse', | ||
| 41 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Osimage::ListOSImagesResponse']; | ||
| 42 | |||
| 43 | coerce 'ListOSImagesResponse', | ||
| 44 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Osimage::ListOSImagesResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListOSImagesResponse', | ||
| 47 | as ArrayRef[ListOSImagesResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListOSImagesResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Osimage::ListOSImagesResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListOSImagesResponse', | ||
| 53 | as HashRef[ListOSImagesResponse()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |