| 1 | package Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::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 'AutonomousDatabaseBackup', | ||
| 11 | as InstanceOf['Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackup']; | ||
| 12 | |||
| 13 | coerce 'AutonomousDatabaseBackup', | ||
| 14 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackup'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAutonomousDatabaseBackup', | ||
| 17 | as ArrayRef[AutonomousDatabaseBackup()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAutonomousDatabaseBackup', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackup'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAutonomousDatabaseBackup', | ||
| 23 | as HashRef[AutonomousDatabaseBackup()]; | ||
| 24 | |||
| 25 | declare 'LabelsEntry', | ||
| 26 | as InstanceOf['Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackup::LabelsEntry']; | ||
| 27 | |||
| 28 | coerce 'LabelsEntry', | ||
| 29 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackup::LabelsEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedLabelsEntry', | ||
| 32 | as ArrayRef[LabelsEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedLabelsEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackup::LabelsEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringLabelsEntry', | ||
| 38 | as HashRef[LabelsEntry()]; | ||
| 39 | |||
| 40 | declare 'AutonomousDatabaseBackupProperties', | ||
| 41 | as InstanceOf['Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackupProperties']; | ||
| 42 | |||
| 43 | coerce 'AutonomousDatabaseBackupProperties', | ||
| 44 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackupProperties'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedAutonomousDatabaseBackupProperties', | ||
| 47 | as ArrayRef[AutonomousDatabaseBackupProperties()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedAutonomousDatabaseBackupProperties', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::AutonomousDbBackup::AutonomousDatabaseBackupProperties'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringAutonomousDatabaseBackupProperties', | ||
| 53 | as HashRef[AutonomousDatabaseBackupProperties()]; | ||
| 54 | |||
| 55 | declare 'State', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | declare 'Type', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | 1; | ||
| 62 | |||
| 63 | __END__ |