| 1 | package Google::Firestore::Admin::V1::Database::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 'Database', | ||
| 11 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database']; | ||
| 12 | |||
| 13 | coerce 'Database', | ||
| 14 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDatabase', | ||
| 17 | as ArrayRef[Database()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDatabase', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDatabase', | ||
| 23 | as HashRef[Database()]; | ||
| 24 | |||
| 25 | declare 'DatabaseType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ConcurrencyMode', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'PointInTimeRecoveryEnablement', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'AppEngineIntegrationMode', | ||
| 35 | as (Int | Str); | ||
| 36 | |||
| 37 | declare 'DeleteProtectionState', | ||
| 38 | as (Int | Str); | ||
| 39 | |||
| 40 | declare 'DatabaseEdition', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'DataAccessMode', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'CmekConfig', | ||
| 47 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::CmekConfig']; | ||
| 48 | |||
| 49 | coerce 'CmekConfig', | ||
| 50 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::CmekConfig'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedCmekConfig', | ||
| 53 | as ArrayRef[CmekConfig()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedCmekConfig', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::CmekConfig'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringCmekConfig', | ||
| 59 | as HashRef[CmekConfig()]; | ||
| 60 | |||
| 61 | declare 'SourceInfo', | ||
| 62 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::SourceInfo']; | ||
| 63 | |||
| 64 | coerce 'SourceInfo', | ||
| 65 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::SourceInfo'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedSourceInfo', | ||
| 68 | as ArrayRef[SourceInfo()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedSourceInfo', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::SourceInfo'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringSourceInfo', | ||
| 74 | as HashRef[SourceInfo()]; | ||
| 75 | |||
| 76 | declare 'BackupSource', | ||
| 77 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::SourceInfo::BackupSource']; | ||
| 78 | |||
| 79 | coerce 'BackupSource', | ||
| 80 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::SourceInfo::BackupSource'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedBackupSource', | ||
| 83 | as ArrayRef[BackupSource()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedBackupSource', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::SourceInfo::BackupSource'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringBackupSource', | ||
| 89 | as HashRef[BackupSource()]; | ||
| 90 | |||
| 91 | declare 'EncryptionConfig', | ||
| 92 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::EncryptionConfig']; | ||
| 93 | |||
| 94 | coerce 'EncryptionConfig', | ||
| 95 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedEncryptionConfig', | ||
| 98 | as ArrayRef[EncryptionConfig()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedEncryptionConfig', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringEncryptionConfig', | ||
| 104 | as HashRef[EncryptionConfig()]; | ||
| 105 | |||
| 106 | declare 'GoogleDefaultEncryptionOptions', | ||
| 107 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::GoogleDefaultEncryptionOptions']; | ||
| 108 | |||
| 109 | coerce 'GoogleDefaultEncryptionOptions', | ||
| 110 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::GoogleDefaultEncryptionOptions'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedGoogleDefaultEncryptionOptions', | ||
| 113 | as ArrayRef[GoogleDefaultEncryptionOptions()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedGoogleDefaultEncryptionOptions', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::GoogleDefaultEncryptionOptions'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringGoogleDefaultEncryptionOptions', | ||
| 119 | as HashRef[GoogleDefaultEncryptionOptions()]; | ||
| 120 | |||
| 121 | declare 'SourceEncryptionOptions', | ||
| 122 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::SourceEncryptionOptions']; | ||
| 123 | |||
| 124 | coerce 'SourceEncryptionOptions', | ||
| 125 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::SourceEncryptionOptions'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedSourceEncryptionOptions', | ||
| 128 | as ArrayRef[SourceEncryptionOptions()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedSourceEncryptionOptions', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::SourceEncryptionOptions'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringSourceEncryptionOptions', | ||
| 134 | as HashRef[SourceEncryptionOptions()]; | ||
| 135 | |||
| 136 | declare 'CustomerManagedEncryptionOptions', | ||
| 137 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::CustomerManagedEncryptionOptions']; | ||
| 138 | |||
| 139 | coerce 'CustomerManagedEncryptionOptions', | ||
| 140 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::CustomerManagedEncryptionOptions'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedCustomerManagedEncryptionOptions', | ||
| 143 | as ArrayRef[CustomerManagedEncryptionOptions()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedCustomerManagedEncryptionOptions', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::EncryptionConfig::CustomerManagedEncryptionOptions'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringCustomerManagedEncryptionOptions', | ||
| 149 | as HashRef[CustomerManagedEncryptionOptions()]; | ||
| 150 | |||
| 151 | declare 'TagsEntry', | ||
| 152 | as InstanceOf['Google::Firestore::Admin::V1::Database::Database::TagsEntry']; | ||
| 153 | |||
| 154 | coerce 'TagsEntry', | ||
| 155 | from HashRef, via { 'Google::Firestore::Admin::V1::Database::Database::TagsEntry'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedTagsEntry', | ||
| 158 | as ArrayRef[TagsEntry()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedTagsEntry', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Database::Database::TagsEntry'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringTagsEntry', | ||
| 164 | as HashRef[TagsEntry()]; | ||
| 165 | |||
| 166 | 1; | ||
| 167 | |||
| 168 | __END__ |