| 1 | package Google::Cloud::Backupdr::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::Backupdr::V1::Backupplan::BackupPlan']; | ||
| 12 | |||
| 13 | coerce 'BackupPlan', | ||
| 14 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::BackupPlan'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedBackupPlan', | ||
| 17 | as ArrayRef[BackupPlan()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedBackupPlan', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::BackupPlan'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringBackupPlan', | ||
| 23 | as HashRef[BackupPlan()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'LabelsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::BackupPlan::LabelsEntry']; | ||
| 30 | |||
| 31 | coerce 'LabelsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::BackupPlan::LabelsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLabelsEntry', | ||
| 35 | as ArrayRef[LabelsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLabelsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::BackupPlan::LabelsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLabelsEntry', | ||
| 41 | as HashRef[LabelsEntry()]; | ||
| 42 | |||
| 43 | declare 'BackupRule', | ||
| 44 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::BackupRule']; | ||
| 45 | |||
| 46 | coerce 'BackupRule', | ||
| 47 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::BackupRule'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedBackupRule', | ||
| 50 | as ArrayRef[BackupRule()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedBackupRule', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::BackupRule'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringBackupRule', | ||
| 56 | as HashRef[BackupRule()]; | ||
| 57 | |||
| 58 | declare 'StandardSchedule', | ||
| 59 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::StandardSchedule']; | ||
| 60 | |||
| 61 | coerce 'StandardSchedule', | ||
| 62 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::StandardSchedule'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedStandardSchedule', | ||
| 65 | as ArrayRef[StandardSchedule()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedStandardSchedule', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::StandardSchedule'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringStandardSchedule', | ||
| 71 | as HashRef[StandardSchedule()]; | ||
| 72 | |||
| 73 | declare 'RecurrenceType', | ||
| 74 | as (Int | Str); | ||
| 75 | |||
| 76 | declare 'BackupWindow', | ||
| 77 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::BackupWindow']; | ||
| 78 | |||
| 79 | coerce 'BackupWindow', | ||
| 80 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::BackupWindow'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedBackupWindow', | ||
| 83 | as ArrayRef[BackupWindow()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedBackupWindow', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::BackupWindow'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringBackupWindow', | ||
| 89 | as HashRef[BackupWindow()]; | ||
| 90 | |||
| 91 | declare 'WeekDayOfMonth', | ||
| 92 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::WeekDayOfMonth']; | ||
| 93 | |||
| 94 | coerce 'WeekDayOfMonth', | ||
| 95 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::WeekDayOfMonth'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedWeekDayOfMonth', | ||
| 98 | as ArrayRef[WeekDayOfMonth()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedWeekDayOfMonth', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::WeekDayOfMonth'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringWeekDayOfMonth', | ||
| 104 | as HashRef[WeekDayOfMonth()]; | ||
| 105 | |||
| 106 | declare 'WeekOfMonth', | ||
| 107 | as (Int | Str); | ||
| 108 | |||
| 109 | declare 'CreateBackupPlanRequest', | ||
| 110 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::CreateBackupPlanRequest']; | ||
| 111 | |||
| 112 | coerce 'CreateBackupPlanRequest', | ||
| 113 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::CreateBackupPlanRequest'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedCreateBackupPlanRequest', | ||
| 116 | as ArrayRef[CreateBackupPlanRequest()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedCreateBackupPlanRequest', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::CreateBackupPlanRequest'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringCreateBackupPlanRequest', | ||
| 122 | as HashRef[CreateBackupPlanRequest()]; | ||
| 123 | |||
| 124 | declare 'ListBackupPlansRequest', | ||
| 125 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlansRequest']; | ||
| 126 | |||
| 127 | coerce 'ListBackupPlansRequest', | ||
| 128 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlansRequest'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedListBackupPlansRequest', | ||
| 131 | as ArrayRef[ListBackupPlansRequest()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedListBackupPlansRequest', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlansRequest'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringListBackupPlansRequest', | ||
| 137 | as HashRef[ListBackupPlansRequest()]; | ||
| 138 | |||
| 139 | declare 'ListBackupPlansResponse', | ||
| 140 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlansResponse']; | ||
| 141 | |||
| 142 | coerce 'ListBackupPlansResponse', | ||
| 143 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlansResponse'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedListBackupPlansResponse', | ||
| 146 | as ArrayRef[ListBackupPlansResponse()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedListBackupPlansResponse', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlansResponse'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringListBackupPlansResponse', | ||
| 152 | as HashRef[ListBackupPlansResponse()]; | ||
| 153 | |||
| 154 | declare 'GetBackupPlanRequest', | ||
| 155 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRequest']; | ||
| 156 | |||
| 157 | coerce 'GetBackupPlanRequest', | ||
| 158 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRequest'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedGetBackupPlanRequest', | ||
| 161 | as ArrayRef[GetBackupPlanRequest()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedGetBackupPlanRequest', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRequest'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringGetBackupPlanRequest', | ||
| 167 | as HashRef[GetBackupPlanRequest()]; | ||
| 168 | |||
| 169 | declare 'DeleteBackupPlanRequest', | ||
| 170 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::DeleteBackupPlanRequest']; | ||
| 171 | |||
| 172 | coerce 'DeleteBackupPlanRequest', | ||
| 173 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::DeleteBackupPlanRequest'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedDeleteBackupPlanRequest', | ||
| 176 | as ArrayRef[DeleteBackupPlanRequest()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedDeleteBackupPlanRequest', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::DeleteBackupPlanRequest'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringDeleteBackupPlanRequest', | ||
| 182 | as HashRef[DeleteBackupPlanRequest()]; | ||
| 183 | |||
| 184 | declare 'UpdateBackupPlanRequest', | ||
| 185 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::UpdateBackupPlanRequest']; | ||
| 186 | |||
| 187 | coerce 'UpdateBackupPlanRequest', | ||
| 188 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::UpdateBackupPlanRequest'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedUpdateBackupPlanRequest', | ||
| 191 | as ArrayRef[UpdateBackupPlanRequest()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedUpdateBackupPlanRequest', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::UpdateBackupPlanRequest'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringUpdateBackupPlanRequest', | ||
| 197 | as HashRef[UpdateBackupPlanRequest()]; | ||
| 198 | |||
| 199 | declare 'BackupPlanRevision', | ||
| 200 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::BackupPlanRevision']; | ||
| 201 | |||
| 202 | coerce 'BackupPlanRevision', | ||
| 203 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::BackupPlanRevision'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedBackupPlanRevision', | ||
| 206 | as ArrayRef[BackupPlanRevision()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedBackupPlanRevision', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::BackupPlanRevision'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringBackupPlanRevision', | ||
| 212 | as HashRef[BackupPlanRevision()]; | ||
| 213 | |||
| 214 | declare 'State', | ||
| 215 | as (Int | Str); | ||
| 216 | |||
| 217 | declare 'GetBackupPlanRevisionRequest', | ||
| 218 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRevisionRequest']; | ||
| 219 | |||
| 220 | coerce 'GetBackupPlanRevisionRequest', | ||
| 221 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRevisionRequest'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedGetBackupPlanRevisionRequest', | ||
| 224 | as ArrayRef[GetBackupPlanRevisionRequest()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedGetBackupPlanRevisionRequest', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRevisionRequest'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringGetBackupPlanRevisionRequest', | ||
| 230 | as HashRef[GetBackupPlanRevisionRequest()]; | ||
| 231 | |||
| 232 | declare 'ListBackupPlanRevisionsRequest', | ||
| 233 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsRequest']; | ||
| 234 | |||
| 235 | coerce 'ListBackupPlanRevisionsRequest', | ||
| 236 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsRequest'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedListBackupPlanRevisionsRequest', | ||
| 239 | as ArrayRef[ListBackupPlanRevisionsRequest()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedListBackupPlanRevisionsRequest', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsRequest'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringListBackupPlanRevisionsRequest', | ||
| 245 | as HashRef[ListBackupPlanRevisionsRequest()]; | ||
| 246 | |||
| 247 | declare 'ListBackupPlanRevisionsResponse', | ||
| 248 | as InstanceOf['Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsResponse']; | ||
| 249 | |||
| 250 | coerce 'ListBackupPlanRevisionsResponse', | ||
| 251 | from HashRef, via { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsResponse'->new($_) }; | ||
| 252 | |||
| 253 | declare 'RepeatedListBackupPlanRevisionsResponse', | ||
| 254 | as ArrayRef[ListBackupPlanRevisionsResponse()]; | ||
| 255 | |||
| 256 | coerce 'RepeatedListBackupPlanRevisionsResponse', | ||
| 257 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsResponse'->new($_) } @$_ ] }; | ||
| 258 | |||
| 259 | declare 'MapStringListBackupPlanRevisionsResponse', | ||
| 260 | as HashRef[ListBackupPlanRevisionsResponse()]; | ||
| 261 | |||
| 262 | 1; | ||
| 263 | |||
| 264 | __END__ |