| 1 | package Google::Cloud::Gkebackup::V1::Backup::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 'Backup', | ||
| 11 | as InstanceOf['Google::Cloud::Gkebackup::V1::Backup::Backup']; | ||
| 12 | |||
| 13 | coerce 'Backup', | ||
| 14 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::Backup::Backup'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedBackup', | ||
| 17 | as ArrayRef[Backup()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedBackup', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Backup::Backup'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringBackup', | ||
| 23 | as HashRef[Backup()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ClusterMetadata', | ||
| 29 | as InstanceOf['Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata']; | ||
| 30 | |||
| 31 | coerce 'ClusterMetadata', | ||
| 32 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedClusterMetadata', | ||
| 35 | as ArrayRef[ClusterMetadata()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedClusterMetadata', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringClusterMetadata', | ||
| 41 | as HashRef[ClusterMetadata()]; | ||
| 42 | |||
| 43 | declare 'BackupCrdVersionsEntry', | ||
| 44 | as InstanceOf['Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata::BackupCrdVersionsEntry']; | ||
| 45 | |||
| 46 | coerce 'BackupCrdVersionsEntry', | ||
| 47 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata::BackupCrdVersionsEntry'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedBackupCrdVersionsEntry', | ||
| 50 | as ArrayRef[BackupCrdVersionsEntry()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedBackupCrdVersionsEntry', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata::BackupCrdVersionsEntry'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringBackupCrdVersionsEntry', | ||
| 56 | as HashRef[BackupCrdVersionsEntry()]; | ||
| 57 | |||
| 58 | declare 'LabelsEntry', | ||
| 59 | as InstanceOf['Google::Cloud::Gkebackup::V1::Backup::Backup::LabelsEntry']; | ||
| 60 | |||
| 61 | coerce 'LabelsEntry', | ||
| 62 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::Backup::Backup::LabelsEntry'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedLabelsEntry', | ||
| 65 | as ArrayRef[LabelsEntry()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedLabelsEntry', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::Backup::Backup::LabelsEntry'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringLabelsEntry', | ||
| 71 | as HashRef[LabelsEntry()]; | ||
| 72 | |||
| 73 | 1; | ||
| 74 | |||
| 75 | __END__ |