| 1 | package Google::Cloud::Gkebackup::V1::Volume::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 'VolumeBackup', | ||
| 11 | as InstanceOf['Google::Cloud::Gkebackup::V1::Volume::VolumeBackup']; | ||
| 12 | |||
| 13 | coerce 'VolumeBackup', | ||
| 14 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::Volume::VolumeBackup'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedVolumeBackup', | ||
| 17 | as ArrayRef[VolumeBackup()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedVolumeBackup', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Volume::VolumeBackup'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringVolumeBackup', | ||
| 23 | as HashRef[VolumeBackup()]; | ||
| 24 | |||
| 25 | declare 'VolumeBackupFormat', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'State', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'VolumeRestore', | ||
| 32 | as InstanceOf['Google::Cloud::Gkebackup::V1::Volume::VolumeRestore']; | ||
| 33 | |||
| 34 | coerce 'VolumeRestore', | ||
| 35 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::Volume::VolumeRestore'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedVolumeRestore', | ||
| 38 | as ArrayRef[VolumeRestore()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedVolumeRestore', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Volume::VolumeRestore'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringVolumeRestore', | ||
| 44 | as HashRef[VolumeRestore()]; | ||
| 45 | |||
| 46 | declare 'VolumeType', | ||
| 47 | as (Int | Str); | ||
| 48 | |||
| 49 | declare 'State', | ||
| 50 | as (Int | Str); | ||
| 51 | |||
| 52 | 1; | ||
| 53 | |||
| 54 | __END__ |