| 1 | package Google::Cloud::Gkebackup::V1::BackupPlan::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 'BackupPlan', | ||
| 11 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan']; | ||
| 12 | |||
| 13 | coerce 'BackupPlan', | ||
| 14 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedBackupPlan', | ||
| 17 | as ArrayRef[BackupPlan()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedBackupPlan', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringBackupPlan', | ||
| 23 | as HashRef[BackupPlan()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'RetentionPolicy', | ||
| 29 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::RetentionPolicy']; | ||
| 30 | |||
| 31 | coerce 'RetentionPolicy', | ||
| 32 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::RetentionPolicy'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedRetentionPolicy', | ||
| 35 | as ArrayRef[RetentionPolicy()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedRetentionPolicy', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::RetentionPolicy'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringRetentionPolicy', | ||
| 41 | as HashRef[RetentionPolicy()]; | ||
| 42 | |||
| 43 | declare 'Schedule', | ||
| 44 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::Schedule']; | ||
| 45 | |||
| 46 | coerce 'Schedule', | ||
| 47 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::Schedule'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedSchedule', | ||
| 50 | as ArrayRef[Schedule()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedSchedule', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::Schedule'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringSchedule', | ||
| 56 | as HashRef[Schedule()]; | ||
| 57 | |||
| 58 | declare 'BackupConfig', | ||
| 59 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::BackupConfig']; | ||
| 60 | |||
| 61 | coerce 'BackupConfig', | ||
| 62 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::BackupConfig'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedBackupConfig', | ||
| 65 | as ArrayRef[BackupConfig()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedBackupConfig', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::BackupConfig'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringBackupConfig', | ||
| 71 | as HashRef[BackupConfig()]; | ||
| 72 | |||
| 73 | declare 'LabelsEntry', | ||
| 74 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::LabelsEntry']; | ||
| 75 | |||
| 76 | coerce 'LabelsEntry', | ||
| 77 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::LabelsEntry'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedLabelsEntry', | ||
| 80 | as ArrayRef[LabelsEntry()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedLabelsEntry', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::LabelsEntry'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringLabelsEntry', | ||
| 86 | as HashRef[LabelsEntry()]; | ||
| 87 | |||
| 88 | declare 'RpoConfig', | ||
| 89 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::RpoConfig']; | ||
| 90 | |||
| 91 | coerce 'RpoConfig', | ||
| 92 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::RpoConfig'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedRpoConfig', | ||
| 95 | as ArrayRef[RpoConfig()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedRpoConfig', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::RpoConfig'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringRpoConfig', | ||
| 101 | as HashRef[RpoConfig()]; | ||
| 102 | |||
| 103 | declare 'ExclusionWindow', | ||
| 104 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow']; | ||
| 105 | |||
| 106 | coerce 'ExclusionWindow', | ||
| 107 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedExclusionWindow', | ||
| 110 | as ArrayRef[ExclusionWindow()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedExclusionWindow', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringExclusionWindow', | ||
| 116 | as HashRef[ExclusionWindow()]; | ||
| 117 | |||
| 118 | declare 'DayOfWeekList', | ||
| 119 | as InstanceOf['Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow::DayOfWeekList']; | ||
| 120 | |||
| 121 | coerce 'DayOfWeekList', | ||
| 122 | from HashRef, via { 'Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow::DayOfWeekList'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedDayOfWeekList', | ||
| 125 | as ArrayRef[DayOfWeekList()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedDayOfWeekList', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow::DayOfWeekList'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringDayOfWeekList', | ||
| 131 | as HashRef[DayOfWeekList()]; | ||
| 132 | |||
| 133 | 1; | ||
| 134 | |||
| 135 | __END__ |